@inkeep/agents-core 0.68.1 → 0.68.2

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.
Files changed (47) hide show
  1. package/dist/auth/auth-schema.d.ts +163 -163
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.js +14 -0
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +2 -2
  6. package/dist/client-exports.js +2 -2
  7. package/dist/data-access/index.d.ts +2 -1
  8. package/dist/data-access/index.js +2 -1
  9. package/dist/data-access/manage/agents.d.ts +20 -20
  10. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  11. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  12. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  13. package/dist/data-access/manage/functionTools.d.ts +6 -6
  14. package/dist/data-access/manage/skills.d.ts +10 -10
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  16. package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  18. package/dist/data-access/manage/subAgents.d.ts +12 -12
  19. package/dist/data-access/manage/tools.d.ts +18 -18
  20. package/dist/data-access/manage/triggers.d.ts +4 -4
  21. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  22. package/dist/data-access/runtime/apps.d.ts +24 -9
  23. package/dist/data-access/runtime/conversations.d.ts +24 -24
  24. package/dist/data-access/runtime/feedback.d.ts +4 -4
  25. package/dist/data-access/runtime/invitationProjectAssignments.d.ts +16 -0
  26. package/dist/data-access/runtime/invitationProjectAssignments.js +25 -0
  27. package/dist/data-access/runtime/messages.d.ts +12 -12
  28. package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
  29. package/dist/data-access/runtime/tasks.d.ts +6 -6
  30. package/dist/db/manage/manage-schema.d.ts +4 -4
  31. package/dist/db/runtime/runtime-schema.d.ts +114 -12
  32. package/dist/db/runtime/runtime-schema.js +13 -1
  33. package/dist/index.d.ts +5 -4
  34. package/dist/index.js +4 -3
  35. package/dist/types/index.d.ts +2 -2
  36. package/dist/types/utility.d.ts +5 -4
  37. package/dist/utils/error.d.ts +51 -51
  38. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  39. package/dist/validation/index.d.ts +2 -2
  40. package/dist/validation/index.js +2 -2
  41. package/dist/validation/schemas/skills.d.ts +44 -44
  42. package/dist/validation/schemas.d.ts +2099 -2001
  43. package/dist/validation/schemas.js +20 -4
  44. package/drizzle/runtime/0037_mysterious_gargoyle.sql +10 -0
  45. package/drizzle/runtime/meta/0037_snapshot.json +5990 -0
  46. package/drizzle/runtime/meta/_journal.json +7 -0
  47. package/package.json +1 -1
@@ -7,7 +7,7 @@ import * as drizzle_orm_pg_core1918 from "drizzle-orm/pg-core";
7
7
 
8
8
  //#region src/db/runtime/runtime-schema.d.ts
9
9
  declare namespace runtime_schema_d_exports {
10
- export { GenerationType, USAGE_GENERATION_TYPES, account, apiKeys, apps, contextCache, conversations, conversationsRelations, datasetRun, datasetRunConversationRelations, deviceCode, evaluationResult, evaluationRun, feedback, feedbackRelations, invitation, jwks, ledgerArtifacts, ledgerArtifactsRelations, member, messages, messagesRelations, oauthAccessToken, oauthClient, oauthConsent, oauthRefreshToken, orgEntitlement, organization, projectMetadata, scheduledTriggerInvocations, scheduledTriggerUsers, scheduledTriggers, schedulerState, session, ssoProvider, streamChunks, taskRelations, taskRelationsRelations, tasks, tasksRelations, triggerInvocations, user, userProfile, userProfileRelations, verification, workAppGitHubInstallations, workAppGitHubInstallationsRelations, workAppGitHubMcpToolAccessMode, workAppGitHubMcpToolRepositoryAccess, workAppGitHubMcpToolRepositoryAccessRelations, workAppGitHubProjectAccessMode, workAppGitHubProjectRepositoryAccess, workAppGitHubProjectRepositoryAccessRelations, workAppGitHubRepositories, workAppGitHubRepositoriesRelations, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig, workAppSlackUserMappings, workAppSlackWorkspaces, workflowExecutions };
10
+ export { GenerationType, USAGE_GENERATION_TYPES, account, apiKeys, apps, contextCache, conversations, conversationsRelations, datasetRun, datasetRunConversationRelations, deviceCode, evaluationResult, evaluationRun, feedback, feedbackRelations, invitation, invitationProjectAssignment, jwks, ledgerArtifacts, ledgerArtifactsRelations, member, messages, messagesRelations, oauthAccessToken, oauthClient, oauthConsent, oauthRefreshToken, orgEntitlement, organization, projectMetadata, scheduledTriggerInvocations, scheduledTriggerUsers, scheduledTriggers, schedulerState, session, ssoProvider, streamChunks, taskRelations, taskRelationsRelations, tasks, tasksRelations, triggerInvocations, user, userProfile, userProfileRelations, verification, workAppGitHubInstallations, workAppGitHubInstallationsRelations, workAppGitHubMcpToolAccessMode, workAppGitHubMcpToolRepositoryAccess, workAppGitHubMcpToolRepositoryAccessRelations, workAppGitHubProjectAccessMode, workAppGitHubProjectRepositoryAccess, workAppGitHubProjectRepositoryAccessRelations, workAppGitHubRepositories, workAppGitHubRepositoriesRelations, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig, workAppSlackUserMappings, workAppSlackWorkspaces, workflowExecutions };
11
11
  }
12
12
  /**
13
13
  * Runtime projects table - source of truth for which projects exist in a tenant.
@@ -1358,7 +1358,7 @@ declare const apps: drizzle_orm_pg_core1918.PgTableWithColumns<{
1358
1358
  publicKeys: {
1359
1359
  kid: string;
1360
1360
  publicKey: string;
1361
- algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
1361
+ algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
1362
1362
  addedAt: string;
1363
1363
  }[];
1364
1364
  allowAnonymous: boolean;
@@ -1367,6 +1367,11 @@ declare const apps: drizzle_orm_pg_core1918.PgTableWithColumns<{
1367
1367
  } | {
1368
1368
  type: "api";
1369
1369
  api: Record<string, never>;
1370
+ } | {
1371
+ type: "support_copilot";
1372
+ supportCopilot: {
1373
+ credentialReferenceIds: string[];
1374
+ };
1370
1375
  };
1371
1376
  driverParam: unknown;
1372
1377
  notNull: true;
@@ -1386,7 +1391,7 @@ declare const apps: drizzle_orm_pg_core1918.PgTableWithColumns<{
1386
1391
  publicKeys: {
1387
1392
  kid: string;
1388
1393
  publicKey: string;
1389
- algorithm: "EdDSA" | "ES256" | "ES512" | "RS256" | "RS384" | "RS512" | "ES384";
1394
+ algorithm: "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "EdDSA";
1390
1395
  addedAt: string;
1391
1396
  }[];
1392
1397
  allowAnonymous: boolean;
@@ -1395,6 +1400,11 @@ declare const apps: drizzle_orm_pg_core1918.PgTableWithColumns<{
1395
1400
  } | {
1396
1401
  type: "api";
1397
1402
  api: Record<string, never>;
1403
+ } | {
1404
+ type: "support_copilot";
1405
+ supportCopilot: {
1406
+ credentialReferenceIds: string[];
1407
+ };
1398
1408
  };
1399
1409
  }>;
1400
1410
  lastUsedAt: drizzle_orm_pg_core1918.PgColumn<{
@@ -5640,7 +5650,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core1918.PgTableWithCol
5640
5650
  tableName: "work_app_github_installations";
5641
5651
  dataType: "string";
5642
5652
  columnType: "PgVarchar";
5643
- data: "User" | "Organization";
5653
+ data: "Organization" | "User";
5644
5654
  driverParam: string;
5645
5655
  notNull: true;
5646
5656
  hasDefault: false;
@@ -5653,7 +5663,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core1918.PgTableWithCol
5653
5663
  generated: undefined;
5654
5664
  }, {}, {
5655
5665
  length: 20;
5656
- $type: "User" | "Organization";
5666
+ $type: "Organization" | "User";
5657
5667
  }>;
5658
5668
  status: drizzle_orm_pg_core1918.PgColumn<{
5659
5669
  name: "status";
@@ -6227,7 +6237,7 @@ declare const workAppGitHubProjectAccessMode: drizzle_orm_pg_core1918.PgTableWit
6227
6237
  tableName: "work_app_github_project_access_mode";
6228
6238
  dataType: "string";
6229
6239
  columnType: "PgVarchar";
6230
- data: "selected" | "all";
6240
+ data: "all" | "selected";
6231
6241
  driverParam: string;
6232
6242
  notNull: true;
6233
6243
  hasDefault: false;
@@ -6240,7 +6250,7 @@ declare const workAppGitHubProjectAccessMode: drizzle_orm_pg_core1918.PgTableWit
6240
6250
  generated: undefined;
6241
6251
  }, {}, {
6242
6252
  length: 20;
6243
- $type: "selected" | "all";
6253
+ $type: "all" | "selected";
6244
6254
  }>;
6245
6255
  };
6246
6256
  dialect: "pg";
@@ -6351,7 +6361,7 @@ declare const workAppGitHubMcpToolAccessMode: drizzle_orm_pg_core1918.PgTableWit
6351
6361
  tableName: "work_app_github_mcp_tool_access_mode";
6352
6362
  dataType: "string";
6353
6363
  columnType: "PgVarchar";
6354
- data: "selected" | "all";
6364
+ data: "all" | "selected";
6355
6365
  driverParam: string;
6356
6366
  notNull: true;
6357
6367
  hasDefault: false;
@@ -6364,7 +6374,7 @@ declare const workAppGitHubMcpToolAccessMode: drizzle_orm_pg_core1918.PgTableWit
6364
6374
  generated: undefined;
6365
6375
  }, {}, {
6366
6376
  length: 20;
6367
- $type: "selected" | "all";
6377
+ $type: "all" | "selected";
6368
6378
  }>;
6369
6379
  };
6370
6380
  dialect: "pg";
@@ -6483,7 +6493,7 @@ declare const workAppSlackMcpToolAccessConfig: drizzle_orm_pg_core1918.PgTableWi
6483
6493
  tableName: "work_app_slack_mcp_tool_access_config";
6484
6494
  dataType: "string";
6485
6495
  columnType: "PgVarchar";
6486
- data: "selected" | "all";
6496
+ data: "all" | "selected";
6487
6497
  driverParam: string;
6488
6498
  notNull: true;
6489
6499
  hasDefault: false;
@@ -6496,7 +6506,7 @@ declare const workAppSlackMcpToolAccessConfig: drizzle_orm_pg_core1918.PgTableWi
6496
6506
  generated: undefined;
6497
6507
  }, {}, {
6498
6508
  length: 20;
6499
- $type: "selected" | "all";
6509
+ $type: "all" | "selected";
6500
6510
  }>;
6501
6511
  dmEnabled: drizzle_orm_pg_core1918.PgColumn<{
6502
6512
  name: "dm_enabled";
@@ -6537,6 +6547,98 @@ declare const workAppSlackMcpToolAccessConfig: drizzle_orm_pg_core1918.PgTableWi
6537
6547
  };
6538
6548
  dialect: "pg";
6539
6549
  }>;
6550
+ declare const invitationProjectAssignment: drizzle_orm_pg_core1918.PgTableWithColumns<{
6551
+ name: "invitation_project_assignment";
6552
+ schema: undefined;
6553
+ columns: {
6554
+ id: drizzle_orm_pg_core1918.PgColumn<{
6555
+ name: "id";
6556
+ tableName: "invitation_project_assignment";
6557
+ dataType: "string";
6558
+ columnType: "PgText";
6559
+ data: string;
6560
+ driverParam: string;
6561
+ notNull: true;
6562
+ hasDefault: false;
6563
+ isPrimaryKey: true;
6564
+ isAutoincrement: false;
6565
+ hasRuntimeDefault: false;
6566
+ enumValues: [string, ...string[]];
6567
+ baseColumn: never;
6568
+ identity: undefined;
6569
+ generated: undefined;
6570
+ }, {}, {}>;
6571
+ invitationId: drizzle_orm_pg_core1918.PgColumn<{
6572
+ name: "invitation_id";
6573
+ tableName: "invitation_project_assignment";
6574
+ dataType: "string";
6575
+ columnType: "PgText";
6576
+ data: string;
6577
+ driverParam: string;
6578
+ notNull: true;
6579
+ hasDefault: false;
6580
+ isPrimaryKey: false;
6581
+ isAutoincrement: false;
6582
+ hasRuntimeDefault: false;
6583
+ enumValues: [string, ...string[]];
6584
+ baseColumn: never;
6585
+ identity: undefined;
6586
+ generated: undefined;
6587
+ }, {}, {}>;
6588
+ projectId: drizzle_orm_pg_core1918.PgColumn<{
6589
+ name: "project_id";
6590
+ tableName: "invitation_project_assignment";
6591
+ dataType: "string";
6592
+ columnType: "PgText";
6593
+ data: string;
6594
+ driverParam: string;
6595
+ notNull: true;
6596
+ hasDefault: false;
6597
+ isPrimaryKey: false;
6598
+ isAutoincrement: false;
6599
+ hasRuntimeDefault: false;
6600
+ enumValues: [string, ...string[]];
6601
+ baseColumn: never;
6602
+ identity: undefined;
6603
+ generated: undefined;
6604
+ }, {}, {}>;
6605
+ projectRole: drizzle_orm_pg_core1918.PgColumn<{
6606
+ name: "project_role";
6607
+ tableName: "invitation_project_assignment";
6608
+ dataType: "string";
6609
+ columnType: "PgText";
6610
+ data: string;
6611
+ driverParam: string;
6612
+ notNull: true;
6613
+ hasDefault: true;
6614
+ isPrimaryKey: false;
6615
+ isAutoincrement: false;
6616
+ hasRuntimeDefault: false;
6617
+ enumValues: [string, ...string[]];
6618
+ baseColumn: never;
6619
+ identity: undefined;
6620
+ generated: undefined;
6621
+ }, {}, {}>;
6622
+ createdAt: drizzle_orm_pg_core1918.PgColumn<{
6623
+ name: "created_at";
6624
+ tableName: "invitation_project_assignment";
6625
+ dataType: "date";
6626
+ columnType: "PgTimestamp";
6627
+ data: Date;
6628
+ driverParam: string;
6629
+ notNull: true;
6630
+ hasDefault: true;
6631
+ isPrimaryKey: false;
6632
+ isAutoincrement: false;
6633
+ hasRuntimeDefault: false;
6634
+ enumValues: undefined;
6635
+ baseColumn: never;
6636
+ identity: undefined;
6637
+ generated: undefined;
6638
+ }, {}, {}>;
6639
+ };
6640
+ dialect: "pg";
6641
+ }>;
6540
6642
  declare const orgEntitlement: drizzle_orm_pg_core1918.PgTableWithColumns<{
6541
6643
  name: "org_entitlement";
6542
6644
  schema: undefined;
@@ -6651,4 +6753,4 @@ declare const orgEntitlement: drizzle_orm_pg_core1918.PgTableWithColumns<{
6651
6753
  dialect: "pg";
6652
6754
  }>;
6653
6755
  //#endregion
6654
- export { GenerationType, USAGE_GENERATION_TYPES, account, apiKeys, apps, contextCache, conversations, conversationsRelations, datasetRun, datasetRunConversationRelations, deviceCode, evaluationResult, evaluationRun, feedback, feedbackRelations, invitation, jwks, ledgerArtifacts, ledgerArtifactsRelations, member, messages, messagesRelations, oauthAccessToken, oauthClient, oauthConsent, oauthRefreshToken, orgEntitlement, organization, projectMetadata, runtime_schema_d_exports, scheduledTriggerInvocations, scheduledTriggerUsers, scheduledTriggers, schedulerState, session, ssoProvider, streamChunks, taskRelations, taskRelationsRelations, tasks, tasksRelations, triggerInvocations, user, userProfile, userProfileRelations, verification, workAppGitHubInstallations, workAppGitHubInstallationsRelations, workAppGitHubMcpToolAccessMode, workAppGitHubMcpToolRepositoryAccess, workAppGitHubMcpToolRepositoryAccessRelations, workAppGitHubProjectAccessMode, workAppGitHubProjectRepositoryAccess, workAppGitHubProjectRepositoryAccessRelations, workAppGitHubRepositories, workAppGitHubRepositoriesRelations, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig, workAppSlackUserMappings, workAppSlackWorkspaces, workflowExecutions };
6756
+ export { GenerationType, USAGE_GENERATION_TYPES, account, apiKeys, apps, contextCache, conversations, conversationsRelations, datasetRun, datasetRunConversationRelations, deviceCode, evaluationResult, evaluationRun, feedback, feedbackRelations, invitation, invitationProjectAssignment, jwks, ledgerArtifacts, ledgerArtifactsRelations, member, messages, messagesRelations, oauthAccessToken, oauthClient, oauthConsent, oauthRefreshToken, orgEntitlement, organization, projectMetadata, runtime_schema_d_exports, scheduledTriggerInvocations, scheduledTriggerUsers, scheduledTriggers, schedulerState, session, ssoProvider, streamChunks, taskRelations, taskRelationsRelations, tasks, tasksRelations, triggerInvocations, user, userProfile, userProfileRelations, verification, workAppGitHubInstallations, workAppGitHubInstallationsRelations, workAppGitHubMcpToolAccessMode, workAppGitHubMcpToolRepositoryAccess, workAppGitHubMcpToolRepositoryAccessRelations, workAppGitHubProjectAccessMode, workAppGitHubProjectRepositoryAccess, workAppGitHubProjectRepositoryAccessRelations, workAppGitHubRepositories, workAppGitHubRepositoriesRelations, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig, workAppSlackUserMappings, workAppSlackWorkspaces, workflowExecutions };
@@ -21,6 +21,7 @@ var runtime_schema_exports = /* @__PURE__ */ __exportAll({
21
21
  feedback: () => feedback,
22
22
  feedbackRelations: () => feedbackRelations,
23
23
  invitation: () => invitation,
24
+ invitationProjectAssignment: () => invitationProjectAssignment,
24
25
  jwks: () => jwks,
25
26
  ledgerArtifacts: () => ledgerArtifacts,
26
27
  ledgerArtifactsRelations: () => ledgerArtifactsRelations,
@@ -1003,6 +1004,17 @@ const workAppSlackMcpToolAccessConfig = pgTable("work_app_slack_mcp_tool_access_
1003
1004
  name: "work_app_slack_mcp_tool_access_config_tenant_fk"
1004
1005
  }).onDelete("cascade")
1005
1006
  ]);
1007
+ const invitationProjectAssignment = pgTable("invitation_project_assignment", {
1008
+ id: text("id").primaryKey(),
1009
+ invitationId: text("invitation_id").notNull(),
1010
+ projectId: text("project_id").notNull(),
1011
+ projectRole: text("project_role").notNull().default("project_member"),
1012
+ createdAt: timestamp("created_at").notNull().defaultNow()
1013
+ }, (table) => [index("invitation_project_assignment_invitation_idx").on(table.invitationId), foreignKey({
1014
+ columns: [table.invitationId],
1015
+ foreignColumns: [invitation.id],
1016
+ name: "invitation_project_assignment_invitation_fk"
1017
+ }).onDelete("cascade")]);
1006
1018
  const orgEntitlement = pgTable("org_entitlement", {
1007
1019
  id: varchar("id", { length: 256 }).primaryKey(),
1008
1020
  organizationId: varchar("organization_id", { length: 256 }).notNull(),
@@ -1021,4 +1033,4 @@ const orgEntitlement = pgTable("org_entitlement", {
1021
1033
  ]);
1022
1034
 
1023
1035
  //#endregion
1024
- export { USAGE_GENERATION_TYPES, account, apiKeys, apps, contextCache, conversations, conversationsRelations, datasetRun, datasetRunConversationRelations, deviceCode, evaluationResult, evaluationRun, feedback, feedbackRelations, invitation, jwks, ledgerArtifacts, ledgerArtifactsRelations, member, messages, messagesRelations, oauthAccessToken, oauthClient, oauthConsent, oauthRefreshToken, orgEntitlement, organization, projectMetadata, runtime_schema_exports, scheduledTriggerInvocations, scheduledTriggerUsers, scheduledTriggers, schedulerState, session, ssoProvider, streamChunks, taskRelations, taskRelationsRelations, tasks, tasksRelations, triggerInvocations, user, userProfile, userProfileRelations, verification, workAppGitHubInstallations, workAppGitHubInstallationsRelations, workAppGitHubMcpToolAccessMode, workAppGitHubMcpToolRepositoryAccess, workAppGitHubMcpToolRepositoryAccessRelations, workAppGitHubProjectAccessMode, workAppGitHubProjectRepositoryAccess, workAppGitHubProjectRepositoryAccessRelations, workAppGitHubRepositories, workAppGitHubRepositoriesRelations, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig, workAppSlackUserMappings, workAppSlackWorkspaces, workflowExecutions };
1036
+ export { USAGE_GENERATION_TYPES, account, apiKeys, apps, contextCache, conversations, conversationsRelations, datasetRun, datasetRunConversationRelations, deviceCode, evaluationResult, evaluationRun, feedback, feedbackRelations, invitation, invitationProjectAssignment, jwks, ledgerArtifacts, ledgerArtifactsRelations, member, messages, messagesRelations, oauthAccessToken, oauthClient, oauthConsent, oauthRefreshToken, orgEntitlement, organization, projectMetadata, runtime_schema_exports, scheduledTriggerInvocations, scheduledTriggerUsers, scheduledTriggers, schedulerState, session, ssoProvider, streamChunks, taskRelations, taskRelationsRelations, tasks, tasksRelations, triggerInvocations, user, userProfile, userProfileRelations, verification, workAppGitHubInstallations, workAppGitHubInstallationsRelations, workAppGitHubMcpToolAccessMode, workAppGitHubMcpToolRepositoryAccess, workAppGitHubMcpToolRepositoryAccessRelations, workAppGitHubProjectAccessMode, workAppGitHubProjectRepositoryAccess, workAppGitHubProjectRepositoryAccessRelations, workAppGitHubRepositories, workAppGitHubRepositoriesRelations, workAppSlackChannelAgentConfigs, workAppSlackMcpToolAccessConfig, workAppSlackUserMappings, workAppSlackWorkspaces, workflowExecutions };