@memberjunction/server 5.29.0 → 5.30.1

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.
@@ -2999,6 +2999,19 @@ __decorate([
2999
2999
  Field({ nullable: true, description: `Optional JSON configuration for the action. For integration actions, contains routing info: integrationName, objectName, verb, and optional connectorConfig. Non-integration actions leave this NULL.` }),
3000
3000
  __metadata("design:type", String)
3001
3001
  ], MJAction_.prototype, "Config", void 0);
3002
+ __decorate([
3003
+ Field({ nullable: true, description: `JSON blob holding configuration specific to Type='Runtime' actions: declarative permission scopes (allowedEntities, allowedActions, allowedAgents with id+name pairs), resource limits (maxMemoryMB, maxBridgeCalls), and sandbox options (additionalLibraries, debugMode). Evolvable — new keys can be introduced without schema changes. NULL for non-Runtime actions.` }),
3004
+ __metadata("design:type", String)
3005
+ ], MJAction_.prototype, "RuntimeActionConfiguration", void 0);
3006
+ __decorate([
3007
+ Field(() => Int, { nullable: true, description: `Universal maximum execution time in milliseconds for a single action invocation. Enforced by ActionEngine across ALL action types (Custom, Generated, Runtime) via AbortSignal passed through RunActionParams. NULL means use the engine default.` }),
3008
+ __metadata("design:type", Number)
3009
+ ], MJAction_.prototype, "MaxExecutionTimeMS", void 0);
3010
+ __decorate([
3011
+ Field({ nullable: true, description: `Optional reference to the AI Agent that authored this action — populated when an agent (e.g. ActionSmith) dynamically generates a Runtime action. NULL for human-authored Custom/Generated actions. Provides an audit trail linking agent-generated capabilities back to their creator.` }),
3012
+ MaxLength(36),
3013
+ __metadata("design:type", String)
3014
+ ], MJAction_.prototype, "CreatedByAgentID", void 0);
3002
3015
  __decorate([
3003
3016
  Field({ nullable: true }),
3004
3017
  MaxLength(255),
@@ -3019,6 +3032,11 @@ __decorate([
3019
3032
  MaxLength(255),
3020
3033
  __metadata("design:type", String)
3021
3034
  ], MJAction_.prototype, "DefaultCompactPrompt", void 0);
3035
+ __decorate([
3036
+ Field({ nullable: true }),
3037
+ MaxLength(255),
3038
+ __metadata("design:type", String)
3039
+ ], MJAction_.prototype, "CreatedByAgent", void 0);
3022
3040
  __decorate([
3023
3041
  Field({ nullable: true }),
3024
3042
  MaxLength(36),
@@ -3169,6 +3187,18 @@ __decorate([
3169
3187
  Field({ nullable: true }),
3170
3188
  __metadata("design:type", String)
3171
3189
  ], CreateMJActionInput.prototype, "Config", void 0);
3190
+ __decorate([
3191
+ Field({ nullable: true }),
3192
+ __metadata("design:type", String)
3193
+ ], CreateMJActionInput.prototype, "RuntimeActionConfiguration", void 0);
3194
+ __decorate([
3195
+ Field(() => Int, { nullable: true }),
3196
+ __metadata("design:type", Number)
3197
+ ], CreateMJActionInput.prototype, "MaxExecutionTimeMS", void 0);
3198
+ __decorate([
3199
+ Field({ nullable: true }),
3200
+ __metadata("design:type", String)
3201
+ ], CreateMJActionInput.prototype, "CreatedByAgentID", void 0);
3172
3202
  __decorate([
3173
3203
  Field(() => RestoreContextInput, { nullable: true }),
3174
3204
  __metadata("design:type", RestoreContextInput)
@@ -3270,6 +3300,18 @@ __decorate([
3270
3300
  Field({ nullable: true }),
3271
3301
  __metadata("design:type", String)
3272
3302
  ], UpdateMJActionInput.prototype, "Config", void 0);
3303
+ __decorate([
3304
+ Field({ nullable: true }),
3305
+ __metadata("design:type", String)
3306
+ ], UpdateMJActionInput.prototype, "RuntimeActionConfiguration", void 0);
3307
+ __decorate([
3308
+ Field(() => Int, { nullable: true }),
3309
+ __metadata("design:type", Number)
3310
+ ], UpdateMJActionInput.prototype, "MaxExecutionTimeMS", void 0);
3311
+ __decorate([
3312
+ Field({ nullable: true }),
3313
+ __metadata("design:type", String)
3314
+ ], UpdateMJActionInput.prototype, "CreatedByAgentID", void 0);
3273
3315
  __decorate([
3274
3316
  Field(() => [KeyValuePairInput], { nullable: true }),
3275
3317
  __metadata("design:type", Array)
@@ -7597,6 +7639,28 @@ __decorate([
7597
7639
  Field({ nullable: true, description: `Optional expiration timestamp. Notes past this date are candidates for archival. NULL means no expiration.` }),
7598
7640
  __metadata("design:type", Date)
7599
7641
  ], MJAIAgentNote_.prototype, "ExpiresAt", void 0);
7642
+ __decorate([
7643
+ Field({ nullable: true, description: `Self-referential FK. Points to the consolidated note that replaced this one when revoked during consolidation or contradiction resolution.` }),
7644
+ MaxLength(36),
7645
+ __metadata("design:type", String)
7646
+ ], MJAIAgentNote_.prototype, "ConsolidatedIntoNoteID", void 0);
7647
+ __decorate([
7648
+ Field(() => Int, { description: `Tracks re-summarization depth. 0=raw extraction, 1=first consolidation, etc. Capped at 3 to prevent semantic drift.` }),
7649
+ __metadata("design:type", Number)
7650
+ ], MJAIAgentNote_.prototype, "ConsolidationCount", void 0);
7651
+ __decorate([
7652
+ Field({ nullable: true, description: `JSON array of source note IDs that were consolidated into this note. Enables provenance chain resolution and rollback.` }),
7653
+ __metadata("design:type", String)
7654
+ ], MJAIAgentNote_.prototype, "DerivedFromNoteIDs", void 0);
7655
+ __decorate([
7656
+ Field({ description: `Protection level: Immutable (never consolidated/archived), Protected (no consolidation, extended 365-day retention), Standard (default), Ephemeral (aggressive consolidation, 2x decay rate).` }),
7657
+ MaxLength(20),
7658
+ __metadata("design:type", String)
7659
+ ], MJAIAgentNote_.prototype, "ProtectionTier", void 0);
7660
+ __decorate([
7661
+ Field(() => Float, { nullable: true, description: `Composite importance score (0-10) computed from 7 signals: recency, LLM-importance, relevance, uniqueness, correction boost, goal alignment, user mark. Replaces raw AccessCount for authority and retention decisions.` }),
7662
+ __metadata("design:type", Number)
7663
+ ], MJAIAgentNote_.prototype, "ImportanceScore", void 0);
7600
7664
  __decorate([
7601
7665
  Field({ nullable: true }),
7602
7666
  MaxLength(255),
@@ -7641,6 +7705,19 @@ __decorate([
7641
7705
  MaxLength(255),
7642
7706
  __metadata("design:type", String)
7643
7707
  ], MJAIAgentNote_.prototype, "PrimaryScopeEntity", void 0);
7708
+ __decorate([
7709
+ Field({ nullable: true }),
7710
+ __metadata("design:type", String)
7711
+ ], MJAIAgentNote_.prototype, "ConsolidatedIntoNote", void 0);
7712
+ __decorate([
7713
+ Field({ nullable: true }),
7714
+ MaxLength(36),
7715
+ __metadata("design:type", String)
7716
+ ], MJAIAgentNote_.prototype, "RootConsolidatedIntoNoteID", void 0);
7717
+ __decorate([
7718
+ Field(() => [MJAIAgentNote_]),
7719
+ __metadata("design:type", Array)
7720
+ ], MJAIAgentNote_.prototype, "MJAIAgentNotes_ConsolidatedIntoNoteIDArray", void 0);
7644
7721
  MJAIAgentNote_ = __decorate([
7645
7722
  ObjectType({ description: `Stores notes, observations, and learnings for AI agents with multi-dimensional scoping (Agent, User, company). Scoping is determined by which FK fields are populated: all NULL = global, AgentID only = agent-specific, UserID only = user-specific across all agents, etc.` })
7646
7723
  ], MJAIAgentNote_);
@@ -7734,6 +7811,26 @@ __decorate([
7734
7811
  Field({ nullable: true }),
7735
7812
  __metadata("design:type", Date)
7736
7813
  ], CreateMJAIAgentNoteInput.prototype, "ExpiresAt", void 0);
7814
+ __decorate([
7815
+ Field({ nullable: true }),
7816
+ __metadata("design:type", String)
7817
+ ], CreateMJAIAgentNoteInput.prototype, "ConsolidatedIntoNoteID", void 0);
7818
+ __decorate([
7819
+ Field(() => Int, { nullable: true }),
7820
+ __metadata("design:type", Number)
7821
+ ], CreateMJAIAgentNoteInput.prototype, "ConsolidationCount", void 0);
7822
+ __decorate([
7823
+ Field({ nullable: true }),
7824
+ __metadata("design:type", String)
7825
+ ], CreateMJAIAgentNoteInput.prototype, "DerivedFromNoteIDs", void 0);
7826
+ __decorate([
7827
+ Field({ nullable: true }),
7828
+ __metadata("design:type", String)
7829
+ ], CreateMJAIAgentNoteInput.prototype, "ProtectionTier", void 0);
7830
+ __decorate([
7831
+ Field(() => Float, { nullable: true }),
7832
+ __metadata("design:type", Number)
7833
+ ], CreateMJAIAgentNoteInput.prototype, "ImportanceScore", void 0);
7737
7834
  __decorate([
7738
7835
  Field(() => RestoreContextInput, { nullable: true }),
7739
7836
  __metadata("design:type", RestoreContextInput)
@@ -7831,6 +7928,26 @@ __decorate([
7831
7928
  Field({ nullable: true }),
7832
7929
  __metadata("design:type", Date)
7833
7930
  ], UpdateMJAIAgentNoteInput.prototype, "ExpiresAt", void 0);
7931
+ __decorate([
7932
+ Field({ nullable: true }),
7933
+ __metadata("design:type", String)
7934
+ ], UpdateMJAIAgentNoteInput.prototype, "ConsolidatedIntoNoteID", void 0);
7935
+ __decorate([
7936
+ Field(() => Int, { nullable: true }),
7937
+ __metadata("design:type", Number)
7938
+ ], UpdateMJAIAgentNoteInput.prototype, "ConsolidationCount", void 0);
7939
+ __decorate([
7940
+ Field({ nullable: true }),
7941
+ __metadata("design:type", String)
7942
+ ], UpdateMJAIAgentNoteInput.prototype, "DerivedFromNoteIDs", void 0);
7943
+ __decorate([
7944
+ Field({ nullable: true }),
7945
+ __metadata("design:type", String)
7946
+ ], UpdateMJAIAgentNoteInput.prototype, "ProtectionTier", void 0);
7947
+ __decorate([
7948
+ Field(() => Float, { nullable: true }),
7949
+ __metadata("design:type", Number)
7950
+ ], UpdateMJAIAgentNoteInput.prototype, "ImportanceScore", void 0);
7834
7951
  __decorate([
7835
7952
  Field(() => [KeyValuePairInput], { nullable: true }),
7836
7953
  __metadata("design:type", Array)
@@ -7902,6 +8019,14 @@ let MJAIAgentNoteResolver = class MJAIAgentNoteResolver extends ResolverBase {
7902
8019
  const result = await this.MapFieldNamesToCodeNames('MJ: AI Agent Notes', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
7903
8020
  return result;
7904
8021
  }
8022
+ async MJAIAgentNotes_ConsolidatedIntoNoteIDArray(mjaiagentnote_, { userPayload, providers }, pubSub) {
8023
+ this.CheckUserReadPermissions('MJ: AI Agent Notes', userPayload);
8024
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
8025
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwAIAgentNotes')} WHERE ${provider.QuoteIdentifier('ConsolidatedIntoNoteID')}='${mjaiagentnote_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: AI Agent Notes', userPayload, EntityPermissionType.Read, 'AND');
8026
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
8027
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agent Notes', rows, this.GetUserFromPayload(userPayload));
8028
+ return result;
8029
+ }
7905
8030
  async CreateMJAIAgentNote(input, { providers, userPayload }, pubSub) {
7906
8031
  const provider = GetReadWriteProvider(providers);
7907
8032
  return this.CreateRecord('MJ: AI Agent Notes', input, provider, userPayload, pubSub);
@@ -7952,6 +8077,15 @@ __decorate([
7952
8077
  __metadata("design:paramtypes", [String, Object, PubSubEngine]),
7953
8078
  __metadata("design:returntype", Promise)
7954
8079
  ], MJAIAgentNoteResolver.prototype, "MJAIAgentNote", null);
8080
+ __decorate([
8081
+ FieldResolver(() => [MJAIAgentNote_]),
8082
+ __param(0, Root()),
8083
+ __param(1, Ctx()),
8084
+ __param(2, PubSub()),
8085
+ __metadata("design:type", Function),
8086
+ __metadata("design:paramtypes", [MJAIAgentNote_, Object, PubSubEngine]),
8087
+ __metadata("design:returntype", Promise)
8088
+ ], MJAIAgentNoteResolver.prototype, "MJAIAgentNotes_ConsolidatedIntoNoteIDArray", null);
7955
8089
  __decorate([
7956
8090
  Mutation(() => MJAIAgentNote_),
7957
8091
  __param(0, Arg('input', () => CreateMJAIAgentNoteInput)),
@@ -10818,6 +10952,11 @@ __decorate([
10818
10952
  MaxLength(200),
10819
10953
  __metadata("design:type", String)
10820
10954
  ], MJAIAgentRun_.prototype, "ExternalReferenceID", void 0);
10955
+ __decorate([
10956
+ Field({ nullable: true, description: `Optional company scope for multi-tenant memory. When populated, Memory Manager uses this to scope extracted notes to the company. Flows from ExecuteAgentParams.companyId at agent invocation time.` }),
10957
+ MaxLength(36),
10958
+ __metadata("design:type", String)
10959
+ ], MJAIAgentRun_.prototype, "CompanyID", void 0);
10821
10960
  __decorate([
10822
10961
  Field({ nullable: true }),
10823
10962
  MaxLength(255),
@@ -11104,6 +11243,10 @@ __decorate([
11104
11243
  Field({ nullable: true }),
11105
11244
  __metadata("design:type", String)
11106
11245
  ], CreateMJAIAgentRunInput.prototype, "ExternalReferenceID", void 0);
11246
+ __decorate([
11247
+ Field({ nullable: true }),
11248
+ __metadata("design:type", String)
11249
+ ], CreateMJAIAgentRunInput.prototype, "CompanyID", void 0);
11107
11250
  __decorate([
11108
11251
  Field(() => RestoreContextInput, { nullable: true }),
11109
11252
  __metadata("design:type", RestoreContextInput)
@@ -11289,6 +11432,10 @@ __decorate([
11289
11432
  Field({ nullable: true }),
11290
11433
  __metadata("design:type", String)
11291
11434
  ], UpdateMJAIAgentRunInput.prototype, "ExternalReferenceID", void 0);
11435
+ __decorate([
11436
+ Field({ nullable: true }),
11437
+ __metadata("design:type", String)
11438
+ ], UpdateMJAIAgentRunInput.prototype, "CompanyID", void 0);
11292
11439
  __decorate([
11293
11440
  Field(() => [KeyValuePairInput], { nullable: true }),
11294
11441
  __metadata("design:type", Array)
@@ -13206,6 +13353,10 @@ __decorate([
13206
13353
  Field(() => [MJAIAgent_]),
13207
13354
  __metadata("design:type", Array)
13208
13355
  ], MJAIAgent_.prototype, "MJAIAgents_ParentIDArray", void 0);
13356
+ __decorate([
13357
+ Field(() => [MJAction_]),
13358
+ __metadata("design:type", Array)
13359
+ ], MJAIAgent_.prototype, "MJActions_CreatedByAgentIDArray", void 0);
13209
13360
  MJAIAgent_ = __decorate([
13210
13361
  ObjectType({ description: `Table to store information about AI agents.` })
13211
13362
  ], MJAIAgent_);
@@ -13979,6 +14130,14 @@ let MJAIAgentResolver = class MJAIAgentResolver extends ResolverBase {
13979
14130
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: AI Agents', rows, this.GetUserFromPayload(userPayload));
13980
14131
  return result;
13981
14132
  }
14133
+ async MJActions_CreatedByAgentIDArray(mjaiagent_, { userPayload, providers }, pubSub) {
14134
+ this.CheckUserReadPermissions('MJ: Actions', userPayload);
14135
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
14136
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwActions')} WHERE ${provider.QuoteIdentifier('CreatedByAgentID')}='${mjaiagent_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Actions', userPayload, EntityPermissionType.Read, 'AND');
14137
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
14138
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Actions', rows, this.GetUserFromPayload(userPayload));
14139
+ return result;
14140
+ }
13982
14141
  async CreateMJAIAgent(input, { providers, userPayload }, pubSub) {
13983
14142
  const provider = GetReadWriteProvider(providers);
13984
14143
  return this.CreateRecord('MJ: AI Agents', input, provider, userPayload, pubSub);
@@ -14236,6 +14395,15 @@ __decorate([
14236
14395
  __metadata("design:paramtypes", [MJAIAgent_, Object, PubSubEngine]),
14237
14396
  __metadata("design:returntype", Promise)
14238
14397
  ], MJAIAgentResolver.prototype, "MJAIAgents_ParentIDArray", null);
14398
+ __decorate([
14399
+ FieldResolver(() => [MJAction_]),
14400
+ __param(0, Root()),
14401
+ __param(1, Ctx()),
14402
+ __param(2, PubSub()),
14403
+ __metadata("design:type", Function),
14404
+ __metadata("design:paramtypes", [MJAIAgent_, Object, PubSubEngine]),
14405
+ __metadata("design:returntype", Promise)
14406
+ ], MJAIAgentResolver.prototype, "MJActions_CreatedByAgentIDArray", null);
14239
14407
  __decorate([
14240
14408
  Mutation(() => MJAIAgent_),
14241
14409
  __param(0, Arg('input', () => CreateMJAIAgentInput)),
@@ -28994,6 +29162,14 @@ let MJArchiveConfigurationEntityResolver = class MJArchiveConfigurationEntityRes
28994
29162
  const result = await this.MapFieldNamesToCodeNames('MJ: Archive Configuration Entities', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
28995
29163
  return result;
28996
29164
  }
29165
+ async AllMJArchiveConfigurationEntities({ userPayload, providers }, pubSub) {
29166
+ this.CheckUserReadPermissions('MJ: Archive Configuration Entities', userPayload);
29167
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
29168
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArchiveConfigurationEntities')}` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Archive Configuration Entities', userPayload, EntityPermissionType.Read, ' WHERE');
29169
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
29170
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Archive Configuration Entities', rows, this.GetUserFromPayload(userPayload));
29171
+ return result;
29172
+ }
28997
29173
  async CreateMJArchiveConfigurationEntity(input, { providers, userPayload }, pubSub) {
28998
29174
  const provider = GetReadWriteProvider(providers);
28999
29175
  return this.CreateRecord('MJ: Archive Configuration Entities', input, provider, userPayload, pubSub);
@@ -29044,6 +29220,14 @@ __decorate([
29044
29220
  __metadata("design:paramtypes", [String, Object, PubSubEngine]),
29045
29221
  __metadata("design:returntype", Promise)
29046
29222
  ], MJArchiveConfigurationEntityResolver.prototype, "MJArchiveConfigurationEntity", null);
29223
+ __decorate([
29224
+ Query(() => [MJArchiveConfigurationEntity_]),
29225
+ __param(0, Ctx()),
29226
+ __param(1, PubSub()),
29227
+ __metadata("design:type", Function),
29228
+ __metadata("design:paramtypes", [Object, PubSubEngine]),
29229
+ __metadata("design:returntype", Promise)
29230
+ ], MJArchiveConfigurationEntityResolver.prototype, "AllMJArchiveConfigurationEntities", null);
29047
29231
  __decorate([
29048
29232
  Mutation(() => MJArchiveConfigurationEntity_),
29049
29233
  __param(0, Arg('input', () => CreateMJArchiveConfigurationEntityInput)),
@@ -29364,6 +29548,14 @@ let MJArchiveConfigurationResolver = class MJArchiveConfigurationResolver extend
29364
29548
  const result = await this.MapFieldNamesToCodeNames('MJ: Archive Configurations', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
29365
29549
  return result;
29366
29550
  }
29551
+ async AllMJArchiveConfigurations({ userPayload, providers }, pubSub) {
29552
+ this.CheckUserReadPermissions('MJ: Archive Configurations', userPayload);
29553
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
29554
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArchiveConfigurations')}` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Archive Configurations', userPayload, EntityPermissionType.Read, ' WHERE');
29555
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
29556
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Archive Configurations', rows, this.GetUserFromPayload(userPayload));
29557
+ return result;
29558
+ }
29367
29559
  async MJArchiveConfigurationEntities_ArchiveConfigurationIDArray(mjarchiveconfiguration_, { userPayload, providers }, pubSub) {
29368
29560
  this.CheckUserReadPermissions('MJ: Archive Configuration Entities', userPayload);
29369
29561
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -29430,6 +29622,14 @@ __decorate([
29430
29622
  __metadata("design:paramtypes", [String, Object, PubSubEngine]),
29431
29623
  __metadata("design:returntype", Promise)
29432
29624
  ], MJArchiveConfigurationResolver.prototype, "MJArchiveConfiguration", null);
29625
+ __decorate([
29626
+ Query(() => [MJArchiveConfiguration_]),
29627
+ __param(0, Ctx()),
29628
+ __param(1, PubSub()),
29629
+ __metadata("design:type", Function),
29630
+ __metadata("design:paramtypes", [Object, PubSubEngine]),
29631
+ __metadata("design:returntype", Promise)
29632
+ ], MJArchiveConfigurationResolver.prototype, "AllMJArchiveConfigurations", null);
29433
29633
  __decorate([
29434
29634
  FieldResolver(() => [MJArchiveConfigurationEntity_]),
29435
29635
  __param(0, Root()),
@@ -29543,6 +29743,10 @@ __decorate([
29543
29743
  Field(),
29544
29744
  __metadata("design:type", Date)
29545
29745
  ], MJArchiveRunDetail_.prototype, "_mj__UpdatedAt", void 0);
29746
+ __decorate([
29747
+ Field(),
29748
+ __metadata("design:type", Date)
29749
+ ], MJArchiveRunDetail_.prototype, "ArchiveRun", void 0);
29546
29750
  __decorate([
29547
29751
  Field(),
29548
29752
  MaxLength(255),
@@ -29729,6 +29933,14 @@ let MJArchiveRunDetailResolver = class MJArchiveRunDetailResolver extends Resolv
29729
29933
  const result = await this.MapFieldNamesToCodeNames('MJ: Archive Run Details', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
29730
29934
  return result;
29731
29935
  }
29936
+ async AllMJArchiveRunDetails({ userPayload, providers }, pubSub) {
29937
+ this.CheckUserReadPermissions('MJ: Archive Run Details', userPayload);
29938
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
29939
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArchiveRunDetails')}` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Archive Run Details', userPayload, EntityPermissionType.Read, ' WHERE');
29940
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
29941
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Archive Run Details', rows, this.GetUserFromPayload(userPayload));
29942
+ return result;
29943
+ }
29732
29944
  async CreateMJArchiveRunDetail(input, { providers, userPayload }, pubSub) {
29733
29945
  const provider = GetReadWriteProvider(providers);
29734
29946
  return this.CreateRecord('MJ: Archive Run Details', input, provider, userPayload, pubSub);
@@ -29779,6 +29991,14 @@ __decorate([
29779
29991
  __metadata("design:paramtypes", [String, Object, PubSubEngine]),
29780
29992
  __metadata("design:returntype", Promise)
29781
29993
  ], MJArchiveRunDetailResolver.prototype, "MJArchiveRunDetail", null);
29994
+ __decorate([
29995
+ Query(() => [MJArchiveRunDetail_]),
29996
+ __param(0, Ctx()),
29997
+ __param(1, PubSub()),
29998
+ __metadata("design:type", Function),
29999
+ __metadata("design:paramtypes", [Object, PubSubEngine]),
30000
+ __metadata("design:returntype", Promise)
30001
+ ], MJArchiveRunDetailResolver.prototype, "AllMJArchiveRunDetails", null);
29782
30002
  __decorate([
29783
30003
  Mutation(() => MJArchiveRunDetail_),
29784
30004
  __param(0, Arg('input', () => CreateMJArchiveRunDetailInput)),
@@ -30079,6 +30299,14 @@ let MJArchiveRunResolver = class MJArchiveRunResolver extends ResolverBase {
30079
30299
  const result = await this.MapFieldNamesToCodeNames('MJ: Archive Runs', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
30080
30300
  return result;
30081
30301
  }
30302
+ async AllMJArchiveRuns({ userPayload, providers }, pubSub) {
30303
+ this.CheckUserReadPermissions('MJ: Archive Runs', userPayload);
30304
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
30305
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwArchiveRuns')}` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Archive Runs', userPayload, EntityPermissionType.Read, ' WHERE');
30306
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
30307
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Archive Runs', rows, this.GetUserFromPayload(userPayload));
30308
+ return result;
30309
+ }
30082
30310
  async MJArchiveRunDetails_ArchiveRunIDArray(mjarchiverun_, { userPayload, providers }, pubSub) {
30083
30311
  this.CheckUserReadPermissions('MJ: Archive Run Details', userPayload);
30084
30312
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -30137,6 +30365,14 @@ __decorate([
30137
30365
  __metadata("design:paramtypes", [String, Object, PubSubEngine]),
30138
30366
  __metadata("design:returntype", Promise)
30139
30367
  ], MJArchiveRunResolver.prototype, "MJArchiveRun", null);
30368
+ __decorate([
30369
+ Query(() => [MJArchiveRun_]),
30370
+ __param(0, Ctx()),
30371
+ __param(1, PubSub()),
30372
+ __metadata("design:type", Function),
30373
+ __metadata("design:paramtypes", [Object, PubSubEngine]),
30374
+ __metadata("design:returntype", Promise)
30375
+ ], MJArchiveRunResolver.prototype, "AllMJArchiveRuns", null);
30140
30376
  __decorate([
30141
30377
  FieldResolver(() => [MJArchiveRunDetail_]),
30142
30378
  __param(0, Root()),
@@ -30541,6 +30777,11 @@ __decorate([
30541
30777
  MaxLength(10),
30542
30778
  __metadata("design:type", String)
30543
30779
  ], MJArtifactType_.prototype, "ContentCategory", void 0);
30780
+ __decorate([
30781
+ Field({ nullable: true, description: `Class name for the BaseArtifactToolLibrary subclass that provides type-specific artifact exploration tools for agents. Resolved via ClassFactory. When NULL, ArtifactToolManager uses name-based fallback resolution.` }),
30782
+ MaxLength(100),
30783
+ __metadata("design:type", String)
30784
+ ], MJArtifactType_.prototype, "ToolLibraryClass", void 0);
30544
30785
  __decorate([
30545
30786
  Field({ nullable: true }),
30546
30787
  MaxLength(100),
@@ -30620,6 +30861,10 @@ __decorate([
30620
30861
  Field({ nullable: true }),
30621
30862
  __metadata("design:type", String)
30622
30863
  ], CreateMJArtifactTypeInput.prototype, "ContentCategory", void 0);
30864
+ __decorate([
30865
+ Field({ nullable: true }),
30866
+ __metadata("design:type", String)
30867
+ ], CreateMJArtifactTypeInput.prototype, "ToolLibraryClass", void 0);
30623
30868
  __decorate([
30624
30869
  Field(() => RestoreContextInput, { nullable: true }),
30625
30870
  __metadata("design:type", RestoreContextInput)
@@ -30673,6 +30918,10 @@ __decorate([
30673
30918
  Field({ nullable: true }),
30674
30919
  __metadata("design:type", String)
30675
30920
  ], UpdateMJArtifactTypeInput.prototype, "ContentCategory", void 0);
30921
+ __decorate([
30922
+ Field({ nullable: true }),
30923
+ __metadata("design:type", String)
30924
+ ], UpdateMJArtifactTypeInput.prototype, "ToolLibraryClass", void 0);
30676
30925
  __decorate([
30677
30926
  Field(() => [KeyValuePairInput], { nullable: true }),
30678
30927
  __metadata("design:type", Array)
@@ -65029,6 +65278,11 @@ __decorate([
65029
65278
  Field(),
65030
65279
  __metadata("design:type", Date)
65031
65280
  ], MJEntityPermission_.prototype, "_mj__UpdatedAt", void 0);
65281
+ __decorate([
65282
+ Field({ description: `Allow or Deny. Deny rows override any Allow grants on the same (EntityID, RoleID, action) at evaluation time, letting administrators exclude a role from an action another role grants.` }),
65283
+ MaxLength(10),
65284
+ __metadata("design:type", String)
65285
+ ], MJEntityPermission_.prototype, "Type", void 0);
65032
65286
  __decorate([
65033
65287
  Field(),
65034
65288
  MaxLength(255),
@@ -65117,6 +65371,10 @@ __decorate([
65117
65371
  Field({ nullable: true }),
65118
65372
  __metadata("design:type", String)
65119
65373
  ], CreateMJEntityPermissionInput.prototype, "DeleteRLSFilterID", void 0);
65374
+ __decorate([
65375
+ Field({ nullable: true }),
65376
+ __metadata("design:type", String)
65377
+ ], CreateMJEntityPermissionInput.prototype, "Type", void 0);
65120
65378
  __decorate([
65121
65379
  Field(() => RestoreContextInput, { nullable: true }),
65122
65380
  __metadata("design:type", RestoreContextInput)
@@ -65174,6 +65432,10 @@ __decorate([
65174
65432
  Field({ nullable: true }),
65175
65433
  __metadata("design:type", String)
65176
65434
  ], UpdateMJEntityPermissionInput.prototype, "DeleteRLSFilterID", void 0);
65435
+ __decorate([
65436
+ Field({ nullable: true }),
65437
+ __metadata("design:type", String)
65438
+ ], UpdateMJEntityPermissionInput.prototype, "Type", void 0);
65177
65439
  __decorate([
65178
65440
  Field(() => [KeyValuePairInput], { nullable: true }),
65179
65441
  __metadata("design:type", Array)
@@ -77494,12 +77756,12 @@ __decorate([
77494
77756
  __metadata("design:type", String)
77495
77757
  ], MJMCPToolFavorite_.prototype, "ID", void 0);
77496
77758
  __decorate([
77497
- Field(),
77759
+ Field({ description: `The user who starred this tool. Favorites are per-user; multiple users can favorite the same tool independently. References the MJ User table.` }),
77498
77760
  MaxLength(36),
77499
77761
  __metadata("design:type", String)
77500
77762
  ], MJMCPToolFavorite_.prototype, "UserID", void 0);
77501
77763
  __decorate([
77502
- Field(),
77764
+ Field({ description: `The MCP Server Tool that has been favorited. Combined with UserID this forms a unique constraint so a user cannot favorite the same tool twice.` }),
77503
77765
  MaxLength(36),
77504
77766
  __metadata("design:type", String)
77505
77767
  ], MJMCPToolFavorite_.prototype, "MCPServerToolID", void 0);
@@ -77522,7 +77784,7 @@ __decorate([
77522
77784
  __metadata("design:type", String)
77523
77785
  ], MJMCPToolFavorite_.prototype, "MCPServerTool", void 0);
77524
77786
  MJMCPToolFavorite_ = __decorate([
77525
- ObjectType({ description: `Per-user favorite marker for an MCP Server Tool. Lets users star tools for quick access in the MCP Dashboard and Test dialog.` })
77787
+ ObjectType({ description: `Per-user favorite marker for an MCP Server Tool. Each row indicates the user has starred the referenced tool for quick access in the MCP Dashboard Tools tab and in the Test Tool dialog picker. Combined with UserID forms a unique pair so a user cannot favorite the same tool twice.` })
77526
77788
  ], MJMCPToolFavorite_);
77527
77789
  export { MJMCPToolFavorite_ };
77528
77790
  //****************************************************************************
@@ -77542,6 +77804,10 @@ __decorate([
77542
77804
  Field({ nullable: true }),
77543
77805
  __metadata("design:type", String)
77544
77806
  ], CreateMJMCPToolFavoriteInput.prototype, "MCPServerToolID", void 0);
77807
+ __decorate([
77808
+ Field(() => RestoreContextInput, { nullable: true }),
77809
+ __metadata("design:type", RestoreContextInput)
77810
+ ], CreateMJMCPToolFavoriteInput.prototype, "RestoreContext___", void 0);
77545
77811
  CreateMJMCPToolFavoriteInput = __decorate([
77546
77812
  InputType()
77547
77813
  ], CreateMJMCPToolFavoriteInput);
@@ -77567,6 +77833,10 @@ __decorate([
77567
77833
  Field(() => [KeyValuePairInput], { nullable: true }),
77568
77834
  __metadata("design:type", Array)
77569
77835
  ], UpdateMJMCPToolFavoriteInput.prototype, "OldValues___", void 0);
77836
+ __decorate([
77837
+ Field(() => RestoreContextInput, { nullable: true }),
77838
+ __metadata("design:type", RestoreContextInput)
77839
+ ], UpdateMJMCPToolFavoriteInput.prototype, "RestoreContext___", void 0);
77570
77840
  UpdateMJMCPToolFavoriteInput = __decorate([
77571
77841
  InputType()
77572
77842
  ], UpdateMJMCPToolFavoriteInput);
@@ -81101,6 +81371,344 @@ MJOutputTriggerTypeResolver = __decorate([
81101
81371
  ], MJOutputTriggerTypeResolver);
81102
81372
  export { MJOutputTriggerTypeResolver };
81103
81373
  //****************************************************************************
81374
+ // ENTITY CLASS for MJ: Permission Domains
81375
+ //****************************************************************************
81376
+ let MJPermissionDomain_ = class MJPermissionDomain_ {
81377
+ };
81378
+ __decorate([
81379
+ Field(),
81380
+ MaxLength(36),
81381
+ __metadata("design:type", String)
81382
+ ], MJPermissionDomain_.prototype, "ID", void 0);
81383
+ __decorate([
81384
+ Field({ description: `Human-readable unique name for the permission domain (e.g., "Entity Permissions", "Dashboard Permissions"). Used in admin UI and as the domain identifier in PermissionEngine API calls.` }),
81385
+ MaxLength(200),
81386
+ __metadata("design:type", String)
81387
+ ], MJPermissionDomain_.prototype, "Name", void 0);
81388
+ __decorate([
81389
+ Field({ nullable: true, description: `Detailed description of what this permission domain covers and how permissions are enforced.` }),
81390
+ __metadata("design:type", String)
81391
+ ], MJPermissionDomain_.prototype, "Description", void 0);
81392
+ __decorate([
81393
+ Field({ description: `ClassFactory key used to instantiate this provider. Must match the key passed to @RegisterClass(PermissionProviderBase, 'ClassName'). Convention: prefix with MJ for built-in providers (e.g., MJEntityPermissionProvider).` }),
81394
+ MaxLength(500),
81395
+ __metadata("design:type", String)
81396
+ ], MJPermissionDomain_.prototype, "ProviderClassName", void 0);
81397
+ __decorate([
81398
+ Field({ description: `Comma-delimited list of grantee types this provider supports. Valid tokens: User, Role, Everyone, Public. Example: "User,Role".` }),
81399
+ MaxLength(200),
81400
+ __metadata("design:type", String)
81401
+ ], MJPermissionDomain_.prototype, "SupportedGranteeTypes", void 0);
81402
+ __decorate([
81403
+ Field({ description: `Comma-delimited list of permission actions this provider can evaluate. Valid tokens: Read, Create, Update, Delete, Share, Execute, Admin. Example: "Read,Create,Update,Delete".` }),
81404
+ MaxLength(500),
81405
+ __metadata("design:type", String)
81406
+ ], MJPermissionDomain_.prototype, "SupportedActions", void 0);
81407
+ __decorate([
81408
+ Field(() => Boolean, { description: `When true, this provider supports explicit Deny records that override Allow grants at the same scope.` }),
81409
+ __metadata("design:type", Boolean)
81410
+ ], MJPermissionDomain_.prototype, "SupportsDeny", void 0);
81411
+ __decorate([
81412
+ Field(() => Boolean, { description: `When true, this provider supports time-bound permissions with an expiration timestamp.` }),
81413
+ __metadata("design:type", Boolean)
81414
+ ], MJPermissionDomain_.prototype, "SupportsExpiration", void 0);
81415
+ __decorate([
81416
+ Field(() => Boolean, { description: `When true, this provider resolves permissions hierarchically (e.g., category-level grants cascade to items within the category).` }),
81417
+ __metadata("design:type", Boolean)
81418
+ ], MJPermissionDomain_.prototype, "SupportsHierarchyInheritance", void 0);
81419
+ __decorate([
81420
+ Field(() => Boolean, { description: `When false, the PermissionEngine skips loading this provider at startup. Use to temporarily disable a provider without removing its record.` }),
81421
+ __metadata("design:type", Boolean)
81422
+ ], MJPermissionDomain_.prototype, "IsActive", void 0);
81423
+ __decorate([
81424
+ Field(() => Int, { description: `Sort order for displaying domains in the Sharing Center admin UI. Lower numbers appear first.` }),
81425
+ __metadata("design:type", Number)
81426
+ ], MJPermissionDomain_.prototype, "DisplayOrder", void 0);
81427
+ __decorate([
81428
+ Field({ nullable: true, description: `Optional Font Awesome icon class for display in admin UI (e.g., "fa-solid fa-shield").` }),
81429
+ MaxLength(100),
81430
+ __metadata("design:type", String)
81431
+ ], MJPermissionDomain_.prototype, "Icon", void 0);
81432
+ __decorate([
81433
+ Field(),
81434
+ __metadata("design:type", Date)
81435
+ ], MJPermissionDomain_.prototype, "_mj__CreatedAt", void 0);
81436
+ __decorate([
81437
+ Field(),
81438
+ __metadata("design:type", Date)
81439
+ ], MJPermissionDomain_.prototype, "_mj__UpdatedAt", void 0);
81440
+ MJPermissionDomain_ = __decorate([
81441
+ ObjectType({ description: `Catalog of registered permission subsystems. Each row describes one permission provider; the PermissionEngine uses ProviderClassName as the ClassFactory key to instantiate providers at startup. Enables unified permission queries across all subsystems.` })
81442
+ ], MJPermissionDomain_);
81443
+ export { MJPermissionDomain_ };
81444
+ //****************************************************************************
81445
+ // INPUT TYPE for MJ: Permission Domains
81446
+ //****************************************************************************
81447
+ let CreateMJPermissionDomainInput = class CreateMJPermissionDomainInput {
81448
+ };
81449
+ __decorate([
81450
+ Field({ nullable: true }),
81451
+ __metadata("design:type", String)
81452
+ ], CreateMJPermissionDomainInput.prototype, "ID", void 0);
81453
+ __decorate([
81454
+ Field({ nullable: true }),
81455
+ __metadata("design:type", String)
81456
+ ], CreateMJPermissionDomainInput.prototype, "Name", void 0);
81457
+ __decorate([
81458
+ Field({ nullable: true }),
81459
+ __metadata("design:type", String)
81460
+ ], CreateMJPermissionDomainInput.prototype, "Description", void 0);
81461
+ __decorate([
81462
+ Field({ nullable: true }),
81463
+ __metadata("design:type", String)
81464
+ ], CreateMJPermissionDomainInput.prototype, "ProviderClassName", void 0);
81465
+ __decorate([
81466
+ Field({ nullable: true }),
81467
+ __metadata("design:type", String)
81468
+ ], CreateMJPermissionDomainInput.prototype, "SupportedGranteeTypes", void 0);
81469
+ __decorate([
81470
+ Field({ nullable: true }),
81471
+ __metadata("design:type", String)
81472
+ ], CreateMJPermissionDomainInput.prototype, "SupportedActions", void 0);
81473
+ __decorate([
81474
+ Field(() => Boolean, { nullable: true }),
81475
+ __metadata("design:type", Boolean)
81476
+ ], CreateMJPermissionDomainInput.prototype, "SupportsDeny", void 0);
81477
+ __decorate([
81478
+ Field(() => Boolean, { nullable: true }),
81479
+ __metadata("design:type", Boolean)
81480
+ ], CreateMJPermissionDomainInput.prototype, "SupportsExpiration", void 0);
81481
+ __decorate([
81482
+ Field(() => Boolean, { nullable: true }),
81483
+ __metadata("design:type", Boolean)
81484
+ ], CreateMJPermissionDomainInput.prototype, "SupportsHierarchyInheritance", void 0);
81485
+ __decorate([
81486
+ Field(() => Boolean, { nullable: true }),
81487
+ __metadata("design:type", Boolean)
81488
+ ], CreateMJPermissionDomainInput.prototype, "IsActive", void 0);
81489
+ __decorate([
81490
+ Field(() => Int, { nullable: true }),
81491
+ __metadata("design:type", Number)
81492
+ ], CreateMJPermissionDomainInput.prototype, "DisplayOrder", void 0);
81493
+ __decorate([
81494
+ Field({ nullable: true }),
81495
+ __metadata("design:type", String)
81496
+ ], CreateMJPermissionDomainInput.prototype, "Icon", void 0);
81497
+ __decorate([
81498
+ Field(() => RestoreContextInput, { nullable: true }),
81499
+ __metadata("design:type", RestoreContextInput)
81500
+ ], CreateMJPermissionDomainInput.prototype, "RestoreContext___", void 0);
81501
+ CreateMJPermissionDomainInput = __decorate([
81502
+ InputType()
81503
+ ], CreateMJPermissionDomainInput);
81504
+ export { CreateMJPermissionDomainInput };
81505
+ //****************************************************************************
81506
+ // INPUT TYPE for MJ: Permission Domains
81507
+ //****************************************************************************
81508
+ let UpdateMJPermissionDomainInput = class UpdateMJPermissionDomainInput {
81509
+ };
81510
+ __decorate([
81511
+ Field(),
81512
+ __metadata("design:type", String)
81513
+ ], UpdateMJPermissionDomainInput.prototype, "ID", void 0);
81514
+ __decorate([
81515
+ Field({ nullable: true }),
81516
+ __metadata("design:type", String)
81517
+ ], UpdateMJPermissionDomainInput.prototype, "Name", void 0);
81518
+ __decorate([
81519
+ Field({ nullable: true }),
81520
+ __metadata("design:type", String)
81521
+ ], UpdateMJPermissionDomainInput.prototype, "Description", void 0);
81522
+ __decorate([
81523
+ Field({ nullable: true }),
81524
+ __metadata("design:type", String)
81525
+ ], UpdateMJPermissionDomainInput.prototype, "ProviderClassName", void 0);
81526
+ __decorate([
81527
+ Field({ nullable: true }),
81528
+ __metadata("design:type", String)
81529
+ ], UpdateMJPermissionDomainInput.prototype, "SupportedGranteeTypes", void 0);
81530
+ __decorate([
81531
+ Field({ nullable: true }),
81532
+ __metadata("design:type", String)
81533
+ ], UpdateMJPermissionDomainInput.prototype, "SupportedActions", void 0);
81534
+ __decorate([
81535
+ Field(() => Boolean, { nullable: true }),
81536
+ __metadata("design:type", Boolean)
81537
+ ], UpdateMJPermissionDomainInput.prototype, "SupportsDeny", void 0);
81538
+ __decorate([
81539
+ Field(() => Boolean, { nullable: true }),
81540
+ __metadata("design:type", Boolean)
81541
+ ], UpdateMJPermissionDomainInput.prototype, "SupportsExpiration", void 0);
81542
+ __decorate([
81543
+ Field(() => Boolean, { nullable: true }),
81544
+ __metadata("design:type", Boolean)
81545
+ ], UpdateMJPermissionDomainInput.prototype, "SupportsHierarchyInheritance", void 0);
81546
+ __decorate([
81547
+ Field(() => Boolean, { nullable: true }),
81548
+ __metadata("design:type", Boolean)
81549
+ ], UpdateMJPermissionDomainInput.prototype, "IsActive", void 0);
81550
+ __decorate([
81551
+ Field(() => Int, { nullable: true }),
81552
+ __metadata("design:type", Number)
81553
+ ], UpdateMJPermissionDomainInput.prototype, "DisplayOrder", void 0);
81554
+ __decorate([
81555
+ Field({ nullable: true }),
81556
+ __metadata("design:type", String)
81557
+ ], UpdateMJPermissionDomainInput.prototype, "Icon", void 0);
81558
+ __decorate([
81559
+ Field(() => [KeyValuePairInput], { nullable: true }),
81560
+ __metadata("design:type", Array)
81561
+ ], UpdateMJPermissionDomainInput.prototype, "OldValues___", void 0);
81562
+ __decorate([
81563
+ Field(() => RestoreContextInput, { nullable: true }),
81564
+ __metadata("design:type", RestoreContextInput)
81565
+ ], UpdateMJPermissionDomainInput.prototype, "RestoreContext___", void 0);
81566
+ UpdateMJPermissionDomainInput = __decorate([
81567
+ InputType()
81568
+ ], UpdateMJPermissionDomainInput);
81569
+ export { UpdateMJPermissionDomainInput };
81570
+ //****************************************************************************
81571
+ // RESOLVER for MJ: Permission Domains
81572
+ //****************************************************************************
81573
+ let RunMJPermissionDomainViewResult = class RunMJPermissionDomainViewResult {
81574
+ };
81575
+ __decorate([
81576
+ Field(() => [MJPermissionDomain_]),
81577
+ __metadata("design:type", Array)
81578
+ ], RunMJPermissionDomainViewResult.prototype, "Results", void 0);
81579
+ __decorate([
81580
+ Field(() => String, { nullable: true }),
81581
+ __metadata("design:type", String)
81582
+ ], RunMJPermissionDomainViewResult.prototype, "UserViewRunID", void 0);
81583
+ __decorate([
81584
+ Field(() => Int, { nullable: true }),
81585
+ __metadata("design:type", Number)
81586
+ ], RunMJPermissionDomainViewResult.prototype, "RowCount", void 0);
81587
+ __decorate([
81588
+ Field(() => Int, { nullable: true }),
81589
+ __metadata("design:type", Number)
81590
+ ], RunMJPermissionDomainViewResult.prototype, "TotalRowCount", void 0);
81591
+ __decorate([
81592
+ Field(() => Int, { nullable: true }),
81593
+ __metadata("design:type", Number)
81594
+ ], RunMJPermissionDomainViewResult.prototype, "ExecutionTime", void 0);
81595
+ __decorate([
81596
+ Field({ nullable: true }),
81597
+ __metadata("design:type", String)
81598
+ ], RunMJPermissionDomainViewResult.prototype, "ErrorMessage", void 0);
81599
+ __decorate([
81600
+ Field(() => Boolean, { nullable: false }),
81601
+ __metadata("design:type", Boolean)
81602
+ ], RunMJPermissionDomainViewResult.prototype, "Success", void 0);
81603
+ RunMJPermissionDomainViewResult = __decorate([
81604
+ ObjectType()
81605
+ ], RunMJPermissionDomainViewResult);
81606
+ export { RunMJPermissionDomainViewResult };
81607
+ let MJPermissionDomainResolver = class MJPermissionDomainResolver extends ResolverBase {
81608
+ async RunMJPermissionDomainViewByID(input, { providers, userPayload }, pubSub) {
81609
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
81610
+ return super.RunViewByIDGeneric(input, provider, userPayload, pubSub);
81611
+ }
81612
+ async RunMJPermissionDomainViewByName(input, { providers, userPayload }, pubSub) {
81613
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
81614
+ return super.RunViewByNameGeneric(input, provider, userPayload, pubSub);
81615
+ }
81616
+ async RunMJPermissionDomainDynamicView(input, { providers, userPayload }, pubSub) {
81617
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
81618
+ input.EntityName = 'MJ: Permission Domains';
81619
+ return super.RunDynamicViewGeneric(input, provider, userPayload, pubSub);
81620
+ }
81621
+ async MJPermissionDomain(ID, { userPayload, providers }, pubSub) {
81622
+ this.CheckUserReadPermissions('MJ: Permission Domains', userPayload);
81623
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
81624
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwPermissionDomains')} WHERE ${provider.QuoteIdentifier('ID')}='${ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Permission Domains', userPayload, EntityPermissionType.Read, 'AND');
81625
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
81626
+ const result = await this.MapFieldNamesToCodeNames('MJ: Permission Domains', rows && rows.length > 0 ? rows[0] : null, this.GetUserFromPayload(userPayload));
81627
+ return result;
81628
+ }
81629
+ async CreateMJPermissionDomain(input, { providers, userPayload }, pubSub) {
81630
+ const provider = GetReadWriteProvider(providers);
81631
+ return this.CreateRecord('MJ: Permission Domains', input, provider, userPayload, pubSub);
81632
+ }
81633
+ async UpdateMJPermissionDomain(input, { providers, userPayload }, pubSub) {
81634
+ const provider = GetReadWriteProvider(providers);
81635
+ return this.UpdateRecord('MJ: Permission Domains', input, provider, userPayload, pubSub);
81636
+ }
81637
+ async DeleteMJPermissionDomain(ID, options, { providers, userPayload }, pubSub) {
81638
+ const provider = GetReadWriteProvider(providers);
81639
+ const key = new CompositeKey([{ FieldName: 'ID', Value: ID }]);
81640
+ return this.DeleteRecord('MJ: Permission Domains', key, options, provider, userPayload, pubSub);
81641
+ }
81642
+ };
81643
+ __decorate([
81644
+ Query(() => RunMJPermissionDomainViewResult),
81645
+ __param(0, Arg('input', () => RunViewByIDInput)),
81646
+ __param(1, Ctx()),
81647
+ __param(2, PubSub()),
81648
+ __metadata("design:type", Function),
81649
+ __metadata("design:paramtypes", [RunViewByIDInput, Object, PubSubEngine]),
81650
+ __metadata("design:returntype", Promise)
81651
+ ], MJPermissionDomainResolver.prototype, "RunMJPermissionDomainViewByID", null);
81652
+ __decorate([
81653
+ Query(() => RunMJPermissionDomainViewResult),
81654
+ __param(0, Arg('input', () => RunViewByNameInput)),
81655
+ __param(1, Ctx()),
81656
+ __param(2, PubSub()),
81657
+ __metadata("design:type", Function),
81658
+ __metadata("design:paramtypes", [RunViewByNameInput, Object, PubSubEngine]),
81659
+ __metadata("design:returntype", Promise)
81660
+ ], MJPermissionDomainResolver.prototype, "RunMJPermissionDomainViewByName", null);
81661
+ __decorate([
81662
+ Query(() => RunMJPermissionDomainViewResult),
81663
+ __param(0, Arg('input', () => RunDynamicViewInput)),
81664
+ __param(1, Ctx()),
81665
+ __param(2, PubSub()),
81666
+ __metadata("design:type", Function),
81667
+ __metadata("design:paramtypes", [RunDynamicViewInput, Object, PubSubEngine]),
81668
+ __metadata("design:returntype", Promise)
81669
+ ], MJPermissionDomainResolver.prototype, "RunMJPermissionDomainDynamicView", null);
81670
+ __decorate([
81671
+ Query(() => MJPermissionDomain_, { nullable: true }),
81672
+ __param(0, Arg('ID', () => String)),
81673
+ __param(1, Ctx()),
81674
+ __param(2, PubSub()),
81675
+ __metadata("design:type", Function),
81676
+ __metadata("design:paramtypes", [String, Object, PubSubEngine]),
81677
+ __metadata("design:returntype", Promise)
81678
+ ], MJPermissionDomainResolver.prototype, "MJPermissionDomain", null);
81679
+ __decorate([
81680
+ Mutation(() => MJPermissionDomain_),
81681
+ __param(0, Arg('input', () => CreateMJPermissionDomainInput)),
81682
+ __param(1, Ctx()),
81683
+ __param(2, PubSub()),
81684
+ __metadata("design:type", Function),
81685
+ __metadata("design:paramtypes", [CreateMJPermissionDomainInput, Object, PubSubEngine]),
81686
+ __metadata("design:returntype", Promise)
81687
+ ], MJPermissionDomainResolver.prototype, "CreateMJPermissionDomain", null);
81688
+ __decorate([
81689
+ Mutation(() => MJPermissionDomain_),
81690
+ __param(0, Arg('input', () => UpdateMJPermissionDomainInput)),
81691
+ __param(1, Ctx()),
81692
+ __param(2, PubSub()),
81693
+ __metadata("design:type", Function),
81694
+ __metadata("design:paramtypes", [UpdateMJPermissionDomainInput, Object, PubSubEngine]),
81695
+ __metadata("design:returntype", Promise)
81696
+ ], MJPermissionDomainResolver.prototype, "UpdateMJPermissionDomain", null);
81697
+ __decorate([
81698
+ Mutation(() => MJPermissionDomain_),
81699
+ __param(0, Arg('ID', () => String)),
81700
+ __param(1, Arg('options___', () => DeleteOptionsInput)),
81701
+ __param(2, Ctx()),
81702
+ __param(3, PubSub()),
81703
+ __metadata("design:type", Function),
81704
+ __metadata("design:paramtypes", [String, DeleteOptionsInput, Object, PubSubEngine]),
81705
+ __metadata("design:returntype", Promise)
81706
+ ], MJPermissionDomainResolver.prototype, "DeleteMJPermissionDomain", null);
81707
+ MJPermissionDomainResolver = __decorate([
81708
+ Resolver(MJPermissionDomain_)
81709
+ ], MJPermissionDomainResolver);
81710
+ export { MJPermissionDomainResolver };
81711
+ //****************************************************************************
81104
81712
  // ENTITY CLASS for MJ: Projects
81105
81713
  //****************************************************************************
81106
81714
  let MJProject_ = class MJProject_ {
@@ -90681,6 +91289,11 @@ __decorate([
90681
91289
  MaxLength(20),
90682
91290
  __metadata("design:type", String)
90683
91291
  ], MJResourcePermission_.prototype, "Status", void 0);
91292
+ __decorate([
91293
+ Field({ nullable: true, description: `The user who granted this permission. NULL when the share pre-dates this column or when the grantor is unknown (e.g., a system-seeded permission).` }),
91294
+ MaxLength(36),
91295
+ __metadata("design:type", String)
91296
+ ], MJResourcePermission_.prototype, "SharedByUserID", void 0);
90684
91297
  __decorate([
90685
91298
  Field(),
90686
91299
  MaxLength(255),
@@ -90696,6 +91309,11 @@ __decorate([
90696
91309
  MaxLength(100),
90697
91310
  __metadata("design:type", String)
90698
91311
  ], MJResourcePermission_.prototype, "User", void 0);
91312
+ __decorate([
91313
+ Field({ nullable: true }),
91314
+ MaxLength(100),
91315
+ __metadata("design:type", String)
91316
+ ], MJResourcePermission_.prototype, "SharedByUser", void 0);
90699
91317
  MJResourcePermission_ = __decorate([
90700
91318
  ObjectType({ description: `Table for managing sharing of resources to users or roles with time constraints and permission levels` })
90701
91319
  ], MJResourcePermission_);
@@ -90745,6 +91363,10 @@ __decorate([
90745
91363
  Field({ nullable: true }),
90746
91364
  __metadata("design:type", String)
90747
91365
  ], CreateMJResourcePermissionInput.prototype, "Status", void 0);
91366
+ __decorate([
91367
+ Field({ nullable: true }),
91368
+ __metadata("design:type", String)
91369
+ ], CreateMJResourcePermissionInput.prototype, "SharedByUserID", void 0);
90748
91370
  __decorate([
90749
91371
  Field(() => RestoreContextInput, { nullable: true }),
90750
91372
  __metadata("design:type", RestoreContextInput)
@@ -90798,6 +91420,10 @@ __decorate([
90798
91420
  Field({ nullable: true }),
90799
91421
  __metadata("design:type", String)
90800
91422
  ], UpdateMJResourcePermissionInput.prototype, "Status", void 0);
91423
+ __decorate([
91424
+ Field({ nullable: true }),
91425
+ __metadata("design:type", String)
91426
+ ], UpdateMJResourcePermissionInput.prototype, "SharedByUserID", void 0);
90801
91427
  __decorate([
90802
91428
  Field(() => [KeyValuePairInput], { nullable: true }),
90803
91429
  __metadata("design:type", Array)
@@ -96565,14 +97191,14 @@ __decorate([
96565
97191
  Field(() => [MJTaggedItem_]),
96566
97192
  __metadata("design:type", Array)
96567
97193
  ], MJTag_.prototype, "MJTaggedItems_TagIDArray", void 0);
96568
- __decorate([
96569
- Field(() => [MJContentItemTag_]),
96570
- __metadata("design:type", Array)
96571
- ], MJTag_.prototype, "MJContentItemTags_TagIDArray", void 0);
96572
97194
  __decorate([
96573
97195
  Field(() => [MJTagCoOccurrence_]),
96574
97196
  __metadata("design:type", Array)
96575
97197
  ], MJTag_.prototype, "MJTagCoOccurrences_TagBIDArray", void 0);
97198
+ __decorate([
97199
+ Field(() => [MJContentItemTag_]),
97200
+ __metadata("design:type", Array)
97201
+ ], MJTag_.prototype, "MJContentItemTags_TagIDArray", void 0);
96576
97202
  __decorate([
96577
97203
  Field(() => [MJTagAuditLog_]),
96578
97204
  __metadata("design:type", Array)
@@ -96754,14 +97380,6 @@ let MJTagResolver = class MJTagResolver extends ResolverBase {
96754
97380
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Tagged Items', rows, this.GetUserFromPayload(userPayload));
96755
97381
  return result;
96756
97382
  }
96757
- async MJContentItemTags_TagIDArray(mjtag_, { userPayload, providers }, pubSub) {
96758
- this.CheckUserReadPermissions('MJ: Content Item Tags', userPayload);
96759
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
96760
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentItemTags')} WHERE ${provider.QuoteIdentifier('TagID')}='${mjtag_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Item Tags', userPayload, EntityPermissionType.Read, 'AND');
96761
- const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
96762
- const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Content Item Tags', rows, this.GetUserFromPayload(userPayload));
96763
- return result;
96764
- }
96765
97383
  async MJTagCoOccurrences_TagBIDArray(mjtag_, { userPayload, providers }, pubSub) {
96766
97384
  this.CheckUserReadPermissions('MJ: Tag Co Occurrences', userPayload);
96767
97385
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -96770,6 +97388,14 @@ let MJTagResolver = class MJTagResolver extends ResolverBase {
96770
97388
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Tag Co Occurrences', rows, this.GetUserFromPayload(userPayload));
96771
97389
  return result;
96772
97390
  }
97391
+ async MJContentItemTags_TagIDArray(mjtag_, { userPayload, providers }, pubSub) {
97392
+ this.CheckUserReadPermissions('MJ: Content Item Tags', userPayload);
97393
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
97394
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentItemTags')} WHERE ${provider.QuoteIdentifier('TagID')}='${mjtag_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Item Tags', userPayload, EntityPermissionType.Read, 'AND');
97395
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
97396
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Content Item Tags', rows, this.GetUserFromPayload(userPayload));
97397
+ return result;
97398
+ }
96773
97399
  async MJTagAuditLogs_RelatedTagIDArray(mjtag_, { userPayload, providers }, pubSub) {
96774
97400
  this.CheckUserReadPermissions('MJ: Tag Audit Logs', userPayload);
96775
97401
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -96871,23 +97497,23 @@ __decorate([
96871
97497
  __metadata("design:returntype", Promise)
96872
97498
  ], MJTagResolver.prototype, "MJTaggedItems_TagIDArray", null);
96873
97499
  __decorate([
96874
- FieldResolver(() => [MJContentItemTag_]),
97500
+ FieldResolver(() => [MJTagCoOccurrence_]),
96875
97501
  __param(0, Root()),
96876
97502
  __param(1, Ctx()),
96877
97503
  __param(2, PubSub()),
96878
97504
  __metadata("design:type", Function),
96879
97505
  __metadata("design:paramtypes", [MJTag_, Object, PubSubEngine]),
96880
97506
  __metadata("design:returntype", Promise)
96881
- ], MJTagResolver.prototype, "MJContentItemTags_TagIDArray", null);
97507
+ ], MJTagResolver.prototype, "MJTagCoOccurrences_TagBIDArray", null);
96882
97508
  __decorate([
96883
- FieldResolver(() => [MJTagCoOccurrence_]),
97509
+ FieldResolver(() => [MJContentItemTag_]),
96884
97510
  __param(0, Root()),
96885
97511
  __param(1, Ctx()),
96886
97512
  __param(2, PubSub()),
96887
97513
  __metadata("design:type", Function),
96888
97514
  __metadata("design:paramtypes", [MJTag_, Object, PubSubEngine]),
96889
97515
  __metadata("design:returntype", Promise)
96890
- ], MJTagResolver.prototype, "MJTagCoOccurrences_TagBIDArray", null);
97516
+ ], MJTagResolver.prototype, "MJContentItemTags_TagIDArray", null);
96891
97517
  __decorate([
96892
97518
  FieldResolver(() => [MJTagAuditLog_]),
96893
97519
  __param(0, Root()),
@@ -107796,22 +108422,18 @@ __decorate([
107796
108422
  Field(() => [MJOAuthAuthorizationState_]),
107797
108423
  __metadata("design:type", Array)
107798
108424
  ], MJUser_.prototype, "MJOAuthAuthorizationStates_UserIDArray", void 0);
107799
- __decorate([
107800
- Field(() => [MJOpenAppInstallHistory_]),
107801
- __metadata("design:type", Array)
107802
- ], MJUser_.prototype, "MJOpenAppInstallHistories_ExecutedByUserIDArray", void 0);
107803
108425
  __decorate([
107804
108426
  Field(() => [MJOpenApp_]),
107805
108427
  __metadata("design:type", Array)
107806
108428
  ], MJUser_.prototype, "MJOpenApps_InstalledByUserIDArray", void 0);
107807
108429
  __decorate([
107808
- Field(() => [MJContentItemDuplicate_]),
108430
+ Field(() => [MJOpenAppInstallHistory_]),
107809
108431
  __metadata("design:type", Array)
107810
- ], MJUser_.prototype, "MJContentItemDuplicates_ResolvedByUserIDArray", void 0);
108432
+ ], MJUser_.prototype, "MJOpenAppInstallHistories_ExecutedByUserIDArray", void 0);
107811
108433
  __decorate([
107812
- Field(() => [MJTagAuditLog_]),
108434
+ Field(() => [MJContentItemDuplicate_]),
107813
108435
  __metadata("design:type", Array)
107814
- ], MJUser_.prototype, "MJTagAuditLogs_PerformedByUserIDArray", void 0);
108436
+ ], MJUser_.prototype, "MJContentItemDuplicates_ResolvedByUserIDArray", void 0);
107815
108437
  __decorate([
107816
108438
  Field(() => [MJContentProcessRun_]),
107817
108439
  __metadata("design:type", Array)
@@ -107821,13 +108443,21 @@ __decorate([
107821
108443
  __metadata("design:type", Array)
107822
108444
  ], MJUser_.prototype, "MJKnowledgeHubSavedSearches_UserIDArray", void 0);
107823
108445
  __decorate([
107824
- Field(() => [MJMCPToolFavorite_]),
108446
+ Field(() => [MJTagAuditLog_]),
107825
108447
  __metadata("design:type", Array)
107826
- ], MJUser_.prototype, "MJMCPToolFavorites_UserIDArray", void 0);
108448
+ ], MJUser_.prototype, "MJTagAuditLogs_PerformedByUserIDArray", void 0);
107827
108449
  __decorate([
107828
108450
  Field(() => [MJArchiveConfiguration_]),
107829
108451
  __metadata("design:type", Array)
107830
108452
  ], MJUser_.prototype, "MJArchiveConfigurations_CreatedByUserIDArray", void 0);
108453
+ __decorate([
108454
+ Field(() => [MJMCPToolFavorite_]),
108455
+ __metadata("design:type", Array)
108456
+ ], MJUser_.prototype, "MJMCPToolFavorites_UserIDArray", void 0);
108457
+ __decorate([
108458
+ Field(() => [MJResourcePermission_]),
108459
+ __metadata("design:type", Array)
108460
+ ], MJUser_.prototype, "MJResourcePermissions_SharedByUserIDArray", void 0);
107831
108461
  __decorate([
107832
108462
  Field(() => [MJResourcePermission_]),
107833
108463
  __metadata("design:type", Array)
@@ -108605,14 +109235,6 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
108605
109235
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: O Auth Authorization States', rows, this.GetUserFromPayload(userPayload));
108606
109236
  return result;
108607
109237
  }
108608
- async MJOpenAppInstallHistories_ExecutedByUserIDArray(mjuser_, { userPayload, providers }, pubSub) {
108609
- this.CheckUserReadPermissions('MJ: Open App Install Histories', userPayload);
108610
- const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
108611
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOpenAppInstallHistories')} WHERE ${provider.QuoteIdentifier('ExecutedByUserID')}='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Install Histories', userPayload, EntityPermissionType.Read, 'AND');
108612
- const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
108613
- const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Open App Install Histories', rows, this.GetUserFromPayload(userPayload));
108614
- return result;
108615
- }
108616
109238
  async MJOpenApps_InstalledByUserIDArray(mjuser_, { userPayload, providers }, pubSub) {
108617
109239
  this.CheckUserReadPermissions('MJ: Open Apps', userPayload);
108618
109240
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -108621,20 +109243,20 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
108621
109243
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Open Apps', rows, this.GetUserFromPayload(userPayload));
108622
109244
  return result;
108623
109245
  }
108624
- async MJContentItemDuplicates_ResolvedByUserIDArray(mjuser_, { userPayload, providers }, pubSub) {
108625
- this.CheckUserReadPermissions('MJ: Content Item Duplicates', userPayload);
109246
+ async MJOpenAppInstallHistories_ExecutedByUserIDArray(mjuser_, { userPayload, providers }, pubSub) {
109247
+ this.CheckUserReadPermissions('MJ: Open App Install Histories', userPayload);
108626
109248
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
108627
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentItemDuplicates')} WHERE ${provider.QuoteIdentifier('ResolvedByUserID')}='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Item Duplicates', userPayload, EntityPermissionType.Read, 'AND');
109249
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwOpenAppInstallHistories')} WHERE ${provider.QuoteIdentifier('ExecutedByUserID')}='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Open App Install Histories', userPayload, EntityPermissionType.Read, 'AND');
108628
109250
  const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
108629
- const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Content Item Duplicates', rows, this.GetUserFromPayload(userPayload));
109251
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Open App Install Histories', rows, this.GetUserFromPayload(userPayload));
108630
109252
  return result;
108631
109253
  }
108632
- async MJTagAuditLogs_PerformedByUserIDArray(mjuser_, { userPayload, providers }, pubSub) {
108633
- this.CheckUserReadPermissions('MJ: Tag Audit Logs', userPayload);
109254
+ async MJContentItemDuplicates_ResolvedByUserIDArray(mjuser_, { userPayload, providers }, pubSub) {
109255
+ this.CheckUserReadPermissions('MJ: Content Item Duplicates', userPayload);
108634
109256
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
108635
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTagAuditLogs')} WHERE ${provider.QuoteIdentifier('PerformedByUserID')}='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tag Audit Logs', userPayload, EntityPermissionType.Read, 'AND');
109257
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwContentItemDuplicates')} WHERE ${provider.QuoteIdentifier('ResolvedByUserID')}='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Content Item Duplicates', userPayload, EntityPermissionType.Read, 'AND');
108636
109258
  const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
108637
- const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Tag Audit Logs', rows, this.GetUserFromPayload(userPayload));
109259
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Content Item Duplicates', rows, this.GetUserFromPayload(userPayload));
108638
109260
  return result;
108639
109261
  }
108640
109262
  async MJContentProcessRuns_StartedByUserIDArray(mjuser_, { userPayload, providers }, pubSub) {
@@ -108653,12 +109275,12 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
108653
109275
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Knowledge Hub Saved Searches', rows, this.GetUserFromPayload(userPayload));
108654
109276
  return result;
108655
109277
  }
108656
- async MJMCPToolFavorites_UserIDArray(mjuser_, { userPayload, providers }, pubSub) {
108657
- this.CheckUserReadPermissions('MJ: MCP Tool Favorites', userPayload);
109278
+ async MJTagAuditLogs_PerformedByUserIDArray(mjuser_, { userPayload, providers }, pubSub) {
109279
+ this.CheckUserReadPermissions('MJ: Tag Audit Logs', userPayload);
108658
109280
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
108659
- const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPToolFavorites')} WHERE ${provider.QuoteIdentifier('UserID')}='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Tool Favorites', userPayload, EntityPermissionType.Read, 'AND');
109281
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwTagAuditLogs')} WHERE ${provider.QuoteIdentifier('PerformedByUserID')}='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Tag Audit Logs', userPayload, EntityPermissionType.Read, 'AND');
108660
109282
  const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
108661
- const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Tool Favorites', rows, this.GetUserFromPayload(userPayload));
109283
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Tag Audit Logs', rows, this.GetUserFromPayload(userPayload));
108662
109284
  return result;
108663
109285
  }
108664
109286
  async MJArchiveConfigurations_CreatedByUserIDArray(mjuser_, { userPayload, providers }, pubSub) {
@@ -108669,6 +109291,22 @@ let MJUserResolverBase = class MJUserResolverBase extends ResolverBase {
108669
109291
  const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Archive Configurations', rows, this.GetUserFromPayload(userPayload));
108670
109292
  return result;
108671
109293
  }
109294
+ async MJMCPToolFavorites_UserIDArray(mjuser_, { userPayload, providers }, pubSub) {
109295
+ this.CheckUserReadPermissions('MJ: MCP Tool Favorites', userPayload);
109296
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
109297
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwMCPToolFavorites')} WHERE ${provider.QuoteIdentifier('UserID')}='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: MCP Tool Favorites', userPayload, EntityPermissionType.Read, 'AND');
109298
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
109299
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: MCP Tool Favorites', rows, this.GetUserFromPayload(userPayload));
109300
+ return result;
109301
+ }
109302
+ async MJResourcePermissions_SharedByUserIDArray(mjuser_, { userPayload, providers }, pubSub) {
109303
+ this.CheckUserReadPermissions('MJ: Resource Permissions', userPayload);
109304
+ const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
109305
+ const sSQL = `SELECT * FROM ${provider.QuoteSchemaAndView(Metadata.Provider.ConfigData.MJCoreSchemaName, 'vwResourcePermissions')} WHERE ${provider.QuoteIdentifier('SharedByUserID')}='${mjuser_.ID}' ` + this.getRowLevelSecurityWhereClause(provider, 'MJ: Resource Permissions', userPayload, EntityPermissionType.Read, 'AND');
109306
+ const rows = await provider.ExecuteSQL(sSQL, undefined, undefined, this.GetUserFromPayload(userPayload));
109307
+ const result = await this.ArrayMapFieldNamesToCodeNames('MJ: Resource Permissions', rows, this.GetUserFromPayload(userPayload));
109308
+ return result;
109309
+ }
108672
109310
  async MJResourcePermissions_UserIDArray(mjuser_, { userPayload, providers }, pubSub) {
108673
109311
  this.CheckUserReadPermissions('MJ: Resource Permissions', userPayload);
108674
109312
  const provider = GetReadOnlyProvider(providers, { allowFallbackToReadWrite: true });
@@ -109450,23 +110088,23 @@ __decorate([
109450
110088
  __metadata("design:returntype", Promise)
109451
110089
  ], MJUserResolverBase.prototype, "MJOAuthAuthorizationStates_UserIDArray", null);
109452
110090
  __decorate([
109453
- FieldResolver(() => [MJOpenAppInstallHistory_]),
110091
+ FieldResolver(() => [MJOpenApp_]),
109454
110092
  __param(0, Root()),
109455
110093
  __param(1, Ctx()),
109456
110094
  __param(2, PubSub()),
109457
110095
  __metadata("design:type", Function),
109458
110096
  __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
109459
110097
  __metadata("design:returntype", Promise)
109460
- ], MJUserResolverBase.prototype, "MJOpenAppInstallHistories_ExecutedByUserIDArray", null);
110098
+ ], MJUserResolverBase.prototype, "MJOpenApps_InstalledByUserIDArray", null);
109461
110099
  __decorate([
109462
- FieldResolver(() => [MJOpenApp_]),
110100
+ FieldResolver(() => [MJOpenAppInstallHistory_]),
109463
110101
  __param(0, Root()),
109464
110102
  __param(1, Ctx()),
109465
110103
  __param(2, PubSub()),
109466
110104
  __metadata("design:type", Function),
109467
110105
  __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
109468
110106
  __metadata("design:returntype", Promise)
109469
- ], MJUserResolverBase.prototype, "MJOpenApps_InstalledByUserIDArray", null);
110107
+ ], MJUserResolverBase.prototype, "MJOpenAppInstallHistories_ExecutedByUserIDArray", null);
109470
110108
  __decorate([
109471
110109
  FieldResolver(() => [MJContentItemDuplicate_]),
109472
110110
  __param(0, Root()),
@@ -109477,32 +110115,41 @@ __decorate([
109477
110115
  __metadata("design:returntype", Promise)
109478
110116
  ], MJUserResolverBase.prototype, "MJContentItemDuplicates_ResolvedByUserIDArray", null);
109479
110117
  __decorate([
109480
- FieldResolver(() => [MJTagAuditLog_]),
110118
+ FieldResolver(() => [MJContentProcessRun_]),
109481
110119
  __param(0, Root()),
109482
110120
  __param(1, Ctx()),
109483
110121
  __param(2, PubSub()),
109484
110122
  __metadata("design:type", Function),
109485
110123
  __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
109486
110124
  __metadata("design:returntype", Promise)
109487
- ], MJUserResolverBase.prototype, "MJTagAuditLogs_PerformedByUserIDArray", null);
110125
+ ], MJUserResolverBase.prototype, "MJContentProcessRuns_StartedByUserIDArray", null);
109488
110126
  __decorate([
109489
- FieldResolver(() => [MJContentProcessRun_]),
110127
+ FieldResolver(() => [MJKnowledgeHubSavedSearch_]),
109490
110128
  __param(0, Root()),
109491
110129
  __param(1, Ctx()),
109492
110130
  __param(2, PubSub()),
109493
110131
  __metadata("design:type", Function),
109494
110132
  __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
109495
110133
  __metadata("design:returntype", Promise)
109496
- ], MJUserResolverBase.prototype, "MJContentProcessRuns_StartedByUserIDArray", null);
110134
+ ], MJUserResolverBase.prototype, "MJKnowledgeHubSavedSearches_UserIDArray", null);
109497
110135
  __decorate([
109498
- FieldResolver(() => [MJKnowledgeHubSavedSearch_]),
110136
+ FieldResolver(() => [MJTagAuditLog_]),
109499
110137
  __param(0, Root()),
109500
110138
  __param(1, Ctx()),
109501
110139
  __param(2, PubSub()),
109502
110140
  __metadata("design:type", Function),
109503
110141
  __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
109504
110142
  __metadata("design:returntype", Promise)
109505
- ], MJUserResolverBase.prototype, "MJKnowledgeHubSavedSearches_UserIDArray", null);
110143
+ ], MJUserResolverBase.prototype, "MJTagAuditLogs_PerformedByUserIDArray", null);
110144
+ __decorate([
110145
+ FieldResolver(() => [MJArchiveConfiguration_]),
110146
+ __param(0, Root()),
110147
+ __param(1, Ctx()),
110148
+ __param(2, PubSub()),
110149
+ __metadata("design:type", Function),
110150
+ __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
110151
+ __metadata("design:returntype", Promise)
110152
+ ], MJUserResolverBase.prototype, "MJArchiveConfigurations_CreatedByUserIDArray", null);
109506
110153
  __decorate([
109507
110154
  FieldResolver(() => [MJMCPToolFavorite_]),
109508
110155
  __param(0, Root()),
@@ -109513,14 +110160,14 @@ __decorate([
109513
110160
  __metadata("design:returntype", Promise)
109514
110161
  ], MJUserResolverBase.prototype, "MJMCPToolFavorites_UserIDArray", null);
109515
110162
  __decorate([
109516
- FieldResolver(() => [MJArchiveConfiguration_]),
110163
+ FieldResolver(() => [MJResourcePermission_]),
109517
110164
  __param(0, Root()),
109518
110165
  __param(1, Ctx()),
109519
110166
  __param(2, PubSub()),
109520
110167
  __metadata("design:type", Function),
109521
110168
  __metadata("design:paramtypes", [MJUser_, Object, PubSubEngine]),
109522
110169
  __metadata("design:returntype", Promise)
109523
- ], MJUserResolverBase.prototype, "MJArchiveConfigurations_CreatedByUserIDArray", null);
110170
+ ], MJUserResolverBase.prototype, "MJResourcePermissions_SharedByUserIDArray", null);
109524
110171
  __decorate([
109525
110172
  FieldResolver(() => [MJResourcePermission_]),
109526
110173
  __param(0, Root()),