@inkeep/agents-core 0.0.0-dev-20260319002638 → 0.0.0-dev-20260319030409

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.
@@ -4,7 +4,7 @@ import * as zod0 from "zod";
4
4
  import * as better_auth0 from "better-auth";
5
5
  import { BetterAuthAdvancedOptions } from "better-auth";
6
6
  import * as _better_auth_sso0 from "@better-auth/sso";
7
- import * as better_auth_plugins0 from "better-auth/plugins";
7
+ import * as better_auth_plugins20 from "better-auth/plugins";
8
8
  import { GoogleOptions } from "better-auth/social-providers";
9
9
 
10
10
  //#region src/auth/auth.d.ts
@@ -277,7 +277,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
277
277
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
278
278
  }[];
279
279
  };
280
- options: better_auth_plugins0.BearerOptions | undefined;
280
+ options: better_auth_plugins20.BearerOptions | undefined;
281
281
  }, {
282
282
  id: "sso";
283
283
  endpoints: {
@@ -1268,30 +1268,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1268
1268
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
1269
1269
  }[];
1270
1270
  };
1271
- }, better_auth_plugins0.DefaultOrganizationPlugin<{
1271
+ }, better_auth_plugins20.DefaultOrganizationPlugin<{
1272
1272
  allowUserToCreateOrganization: true;
1273
- ac: better_auth_plugins0.AccessControl;
1273
+ ac: better_auth_plugins20.AccessControl;
1274
1274
  roles: {
1275
1275
  member: {
1276
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1277
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1276
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1277
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1278
1278
  connector: "OR" | "AND";
1279
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1280
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1279
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1280
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1281
1281
  };
1282
1282
  admin: {
1283
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1284
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1283
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1284
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1285
1285
  connector: "OR" | "AND";
1286
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1287
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1286
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1287
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1288
1288
  };
1289
1289
  owner: {
1290
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1291
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1290
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
1291
+ actions: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>[key];
1292
1292
  connector: "OR" | "AND";
1293
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1294
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1293
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
1294
+ statements: better_auth_plugins20.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins20.Statements>;
1295
1295
  };
1296
1296
  };
1297
1297
  creatorRole: "admin";
@@ -1302,9 +1302,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1302
1302
  id: string;
1303
1303
  role: string;
1304
1304
  email: string;
1305
- organization: better_auth_plugins0.Organization;
1306
- invitation: better_auth_plugins0.Invitation;
1307
- inviter: better_auth_plugins0.Member & {
1305
+ organization: better_auth_plugins20.Organization;
1306
+ invitation: better_auth_plugins20.Invitation;
1307
+ inviter: better_auth_plugins20.Member & {
1308
1308
  user: better_auth0.User;
1309
1309
  };
1310
1310
  }): Promise<void>;
@@ -1339,28 +1339,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1339
1339
  user,
1340
1340
  organization: org
1341
1341
  }: {
1342
- invitation: better_auth_plugins0.Invitation & Record<string, any>;
1343
- member: better_auth_plugins0.Member & Record<string, any>;
1342
+ invitation: better_auth_plugins20.Invitation & Record<string, any>;
1343
+ member: better_auth_plugins20.Member & Record<string, any>;
1344
1344
  user: better_auth0.User & Record<string, any>;
1345
- organization: better_auth_plugins0.Organization & Record<string, any>;
1345
+ organization: better_auth_plugins20.Organization & Record<string, any>;
1346
1346
  }) => Promise<void>;
1347
1347
  beforeUpdateMemberRole: ({
1348
1348
  member,
1349
1349
  organization: org,
1350
1350
  newRole
1351
1351
  }: {
1352
- member: better_auth_plugins0.Member & Record<string, any>;
1352
+ member: better_auth_plugins20.Member & Record<string, any>;
1353
1353
  newRole: string;
1354
1354
  user: better_auth0.User & Record<string, any>;
1355
- organization: better_auth_plugins0.Organization & Record<string, any>;
1355
+ organization: better_auth_plugins20.Organization & Record<string, any>;
1356
1356
  }) => Promise<void>;
1357
1357
  beforeRemoveMember: ({
1358
1358
  member,
1359
1359
  organization: org
1360
1360
  }: {
1361
- member: better_auth_plugins0.Member & Record<string, any>;
1361
+ member: better_auth_plugins20.Member & Record<string, any>;
1362
1362
  user: better_auth0.User & Record<string, any>;
1363
- organization: better_auth_plugins0.Organization & Record<string, any>;
1363
+ organization: better_auth_plugins20.Organization & Record<string, any>;
1364
1364
  }) => Promise<void>;
1365
1365
  };
1366
1366
  }>, {
@@ -1701,8 +1701,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1701
1701
  readonly AUTHENTICATION_REQUIRED: "Authentication required";
1702
1702
  };
1703
1703
  options: Partial<{
1704
- expiresIn: better_auth_plugins0.TimeString;
1705
- interval: better_auth_plugins0.TimeString;
1704
+ expiresIn: better_auth_plugins20.TimeString;
1705
+ interval: better_auth_plugins20.TimeString;
1706
1706
  deviceCodeLength: number;
1707
1707
  userCodeLength: number;
1708
1708
  schema: {
@@ -0,0 +1,7 @@
1
+ //#region src/auth/cookie-names.d.ts
2
+ declare const AUTH_COOKIE_PREFIX = "better-auth";
3
+ declare const SESSION_COOKIE_NAME = "better-auth.session_token";
4
+ declare function isAuthCookie(cookieName: string): boolean;
5
+ declare function isSessionCookie(cookieName: string): boolean;
6
+ //#endregion
7
+ export { AUTH_COOKIE_PREFIX, SESSION_COOKIE_NAME, isAuthCookie, isSessionCookie };
@@ -0,0 +1,13 @@
1
+ //#region src/auth/cookie-names.ts
2
+ const AUTH_COOKIE_PREFIX = "better-auth";
3
+ const SECURE_PREFIX = "__Secure-";
4
+ const SESSION_COOKIE_NAME = `${AUTH_COOKIE_PREFIX}.session_token`;
5
+ function isAuthCookie(cookieName) {
6
+ return cookieName.startsWith(AUTH_COOKIE_PREFIX) || cookieName.startsWith(`${SECURE_PREFIX}${AUTH_COOKIE_PREFIX}`);
7
+ }
8
+ function isSessionCookie(cookieName) {
9
+ return cookieName === SESSION_COOKIE_NAME || cookieName === `${SECURE_PREFIX}${SESSION_COOKIE_NAME}`;
10
+ }
11
+
12
+ //#endregion
13
+ export { AUTH_COOKIE_PREFIX, SESSION_COOKIE_NAME, isAuthCookie, isSessionCookie };
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins35 from "better-auth/plugins";
1
+ import * as better_auth_plugins0 from "better-auth/plugins";
2
2
  import { AccessControl } from "better-auth/plugins/access";
3
3
  import { organizationClient } from "better-auth/client/plugins";
4
4
 
5
5
  //#region src/auth/permissions.d.ts
6
6
  declare const ac: AccessControl;
7
7
  declare const memberRole: {
8
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
9
- actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
12
- statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
16
- actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
19
- statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key] | {
23
- actions: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
+ actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>[key];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins35.AuthorizeResponse;
26
- statements: better_auth_plugins35.Subset<"project" | "organization" | "member" | "invitation" | "ac" | "team", better_auth_plugins35.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
+ statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins0.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -10,25 +10,25 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
10
10
  id: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- createdAt: string;
14
- updatedAt: string;
15
13
  tenantId: string;
16
14
  projectId: string;
15
+ agentId: string;
16
+ createdAt: string;
17
+ updatedAt: string;
17
18
  headersSchema: unknown;
18
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
- agentId: string;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
23
23
  }) => Promise<{
24
24
  id: string;
25
- createdAt: string;
26
- updatedAt: string;
27
25
  tenantId: string;
28
26
  projectId: string;
27
+ agentId: string;
28
+ createdAt: string;
29
+ updatedAt: string;
29
30
  headersSchema: unknown;
30
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
- agentId: string;
32
32
  }[]>;
33
33
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
34
34
  scopes: AgentScopeConfig;
@@ -44,13 +44,13 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
44
44
  }>;
45
45
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
46
46
  id: string;
47
- createdAt: string;
48
- updatedAt: string;
49
47
  tenantId: string;
50
48
  projectId: string;
49
+ agentId: string;
50
+ createdAt: string;
51
+ updatedAt: string;
51
52
  headersSchema: unknown;
52
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
- agentId: string;
54
54
  }>;
55
55
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
@@ -84,13 +84,13 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
84
84
  data: ContextConfigInsert;
85
85
  }) => Promise<{
86
86
  id: string;
87
- createdAt: string;
88
- updatedAt: string;
89
87
  tenantId: string;
90
88
  projectId: string;
89
+ agentId: string;
90
+ createdAt: string;
91
+ updatedAt: string;
91
92
  headersSchema: unknown;
92
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
- agentId: string;
94
94
  }>;
95
95
  //#endregion
96
96
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -15,11 +15,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
15
15
  agentId: string;
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
- expiresAt: string | null;
19
- lastUsedAt: string | null;
20
18
  publicId: string;
21
19
  keyHash: string;
22
20
  keyPrefix: string;
21
+ lastUsedAt: string | null;
22
+ expiresAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
@@ -29,11 +29,11 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
29
29
  agentId: string;
30
30
  createdAt: string;
31
31
  updatedAt: string;
32
- expiresAt: string | null;
33
- lastUsedAt: string | null;
34
32
  publicId: string;
35
33
  keyHash: string;
36
34
  keyPrefix: string;
35
+ lastUsedAt: string | null;
36
+ expiresAt: string | null;
37
37
  } | undefined>;
38
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
@@ -46,11 +46,11 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
46
46
  agentId: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- expiresAt: string | null;
50
- lastUsedAt: string | null;
51
49
  publicId: string;
52
50
  keyHash: string;
53
51
  keyPrefix: string;
52
+ lastUsedAt: string | null;
53
+ expiresAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -73,11 +73,11 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
73
73
  agentId: string;
74
74
  createdAt: string;
75
75
  updatedAt: string;
76
- expiresAt: string | null;
77
- lastUsedAt: string | null;
78
76
  publicId: string;
79
77
  keyHash: string;
80
78
  keyPrefix: string;
79
+ lastUsedAt: string | null;
80
+ expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -23,9 +23,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
23
23
  type: "api";
24
24
  api: Record<string, never>;
25
25
  };
26
- defaultAgentId: string | null;
27
- defaultProjectId: string | null;
28
26
  lastUsedAt: string | null;
27
+ defaultProjectId: string | null;
28
+ defaultAgentId: string | null;
29
29
  } | undefined>;
30
30
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
31
31
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -70,9 +70,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
70
70
  type: "api";
71
71
  api: Record<string, never>;
72
72
  };
73
- defaultAgentId: string | null;
74
- defaultProjectId: string | null;
75
73
  lastUsedAt: string | null;
74
+ defaultProjectId: string | null;
75
+ defaultAgentId: string | null;
76
76
  }>;
77
77
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
78
78
  scopes: TenantScopeConfig;
@@ -24,12 +24,12 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
26
  metadata: ConversationMetadata | null;
27
+ userId: string | null;
27
28
  ref: {
28
- type: "commit" | "tag" | "branch";
29
+ type: "tag" | "commit" | "branch";
29
30
  name: string;
30
31
  hash: string;
31
32
  } | null;
32
- userId: string | null;
33
33
  activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  }>;
@@ -44,7 +44,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
44
44
  agentId: string | null;
45
45
  activeSubAgentId: string;
46
46
  ref: {
47
- type: "commit" | "tag" | "branch";
47
+ type: "tag" | "commit" | "branch";
48
48
  name: string;
49
49
  hash: string;
50
50
  } | null;
@@ -70,7 +70,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
70
70
  agentId: string | null;
71
71
  activeSubAgentId: string;
72
72
  ref: {
73
- type: "commit" | "tag" | "branch";
73
+ type: "tag" | "commit" | "branch";
74
74
  name: string;
75
75
  hash: string;
76
76
  } | null;
@@ -93,12 +93,12 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
93
93
  createdAt: string;
94
94
  updatedAt: string;
95
95
  metadata: ConversationMetadata | null;
96
+ userId: string | null;
96
97
  ref: {
97
- type: "commit" | "tag" | "branch";
98
+ type: "tag" | "commit" | "branch";
98
99
  name: string;
99
100
  hash: string;
100
101
  } | null;
101
- userId: string | null;
102
102
  activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
104
104
  } | undefined>;
@@ -108,7 +108,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
108
108
  tenantId: string;
109
109
  id: string;
110
110
  ref: {
111
- type: "commit" | "tag" | "branch";
111
+ type: "tag" | "commit" | "branch";
112
112
  name: string;
113
113
  hash: string;
114
114
  };
@@ -129,12 +129,12 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
129
129
  createdAt: string;
130
130
  updatedAt: string;
131
131
  metadata: ConversationMetadata | null;
132
+ userId: string | null;
132
133
  ref: {
133
- type: "commit" | "tag" | "branch";
134
+ type: "tag" | "commit" | "branch";
134
135
  name: string;
135
136
  hash: string;
136
137
  } | null;
137
- userId: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -161,12 +161,12 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
161
161
  createdAt: string;
162
162
  updatedAt: string;
163
163
  metadata: ConversationMetadata | null;
164
+ userId: string | null;
164
165
  ref: {
165
- type: "commit" | "tag" | "branch";
166
+ type: "tag" | "commit" | "branch";
166
167
  name: string;
167
168
  hash: string;
168
169
  } | null;
169
- userId: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
@@ -17,17 +17,17 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
17
17
  updatedAt: string;
18
18
  metadata: MessageMetadata | null;
19
19
  content: MessageContent;
20
- conversationId: string;
21
20
  fromSubAgentId: string | null;
22
21
  toSubAgentId: string | null;
23
22
  fromExternalAgentId: string | null;
24
23
  toExternalAgentId: string | null;
25
24
  taskId: string | null;
26
25
  a2aTaskId: string | null;
26
+ conversationId: string;
27
27
  role: string;
28
- visibility: string;
29
28
  fromTeamAgentId: string | null;
30
29
  toTeamAgentId: string | null;
30
+ visibility: string;
31
31
  messageType: string;
32
32
  parentMessageId: string | null;
33
33
  a2aSessionId: string | null;
@@ -151,17 +151,17 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
151
151
  updatedAt: string;
152
152
  metadata: MessageMetadata | null;
153
153
  content: MessageContent;
154
- conversationId: string;
155
154
  fromSubAgentId: string | null;
156
155
  toSubAgentId: string | null;
157
156
  fromExternalAgentId: string | null;
158
157
  toExternalAgentId: string | null;
159
158
  taskId: string | null;
160
159
  a2aTaskId: string | null;
160
+ conversationId: string;
161
161
  role: string;
162
- visibility: string;
163
162
  fromTeamAgentId: string | null;
164
163
  toTeamAgentId: string | null;
164
+ visibility: string;
165
165
  messageType: string;
166
166
  parentMessageId: string | null;
167
167
  a2aSessionId: string | null;
@@ -204,17 +204,17 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
204
204
  updatedAt: string;
205
205
  metadata: MessageMetadata | null;
206
206
  content: MessageContent;
207
- conversationId: string;
208
207
  fromSubAgentId: string | null;
209
208
  toSubAgentId: string | null;
210
209
  fromExternalAgentId: string | null;
211
210
  toExternalAgentId: string | null;
212
211
  taskId: string | null;
213
212
  a2aTaskId: string | null;
213
+ conversationId: string;
214
214
  role: string;
215
- visibility: string;
216
215
  fromTeamAgentId: string | null;
217
216
  toTeamAgentId: string | null;
217
+ visibility: string;
218
218
  messageType: string;
219
219
  parentMessageId: string | null;
220
220
  a2aSessionId: string | null;
@@ -35,11 +35,11 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
35
35
  data: {
36
36
  scheduledTriggerId: string;
37
37
  ref: {
38
- type: "commit" | "tag" | "branch";
38
+ type: "tag" | "commit" | "branch";
39
39
  name: string;
40
40
  hash: string;
41
41
  } | null;
42
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
42
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
43
43
  scheduledFor: string;
44
44
  startedAt: string | null;
45
45
  completedAt: string | null;
@@ -180,11 +180,11 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
180
180
  data: {
181
181
  scheduledTriggerId: string;
182
182
  ref: {
183
- type: "commit" | "tag" | "branch";
183
+ type: "tag" | "commit" | "branch";
184
184
  name: string;
185
185
  hash: string;
186
186
  } | null;
187
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
187
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
188
188
  scheduledFor: string;
189
189
  startedAt: string | null;
190
190
  completedAt: string | null;
@@ -219,11 +219,11 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
219
219
  data: {
220
220
  scheduledTriggerId: string;
221
221
  ref: {
222
- type: "commit" | "tag" | "branch";
222
+ type: "tag" | "commit" | "branch";
223
223
  name: string;
224
224
  hash: string;
225
225
  } | null;
226
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
226
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
227
227
  scheduledFor: string;
228
228
  startedAt: string | null;
229
229
  completedAt: string | null;
@@ -14,13 +14,13 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
16
  metadata: TaskMetadataConfig | null;
17
+ subAgentId: string;
18
+ status: string;
17
19
  ref: {
18
- type: "commit" | "tag" | "branch";
20
+ type: "tag" | "commit" | "branch";
19
21
  name: string;
20
22
  hash: string;
21
23
  } | null;
22
- status: string;
23
- subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
@@ -39,7 +39,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
39
39
  updatedAt: string;
40
40
  contextId: string;
41
41
  ref: {
42
- type: "commit" | "tag" | "branch";
42
+ type: "tag" | "commit" | "branch";
43
43
  name: string;
44
44
  hash: string;
45
45
  } | null;
@@ -29,7 +29,7 @@ declare const listTriggerInvocationsPaginated: (db: AgentsRunDatabaseClient) =>
29
29
  triggerId: string;
30
30
  conversationId: string | null;
31
31
  ref: {
32
- type: "commit" | "tag" | "branch";
32
+ type: "tag" | "commit" | "branch";
33
33
  name: string;
34
34
  hash: string;
35
35
  } | null;