@inkeep/agents-core 0.0.0-dev-20260123083643 → 0.0.0-dev-20260123091222

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.
@@ -135,26 +135,35 @@ const triggers = pgTable("triggers", {
135
135
  outputTransform: jsonb("output_transform").$type(),
136
136
  messageTemplate: text("message_template"),
137
137
  authentication: jsonb("authentication").$type(),
138
- signingSecret: text("signing_secret"),
138
+ signingSecretCredentialReferenceId: varchar("signing_secret_credential_reference_id", { length: 256 }),
139
+ signatureVerification: jsonb("signature_verification").$type().default(null),
139
140
  ...timestamps
140
- }, (table) => [primaryKey({ columns: [
141
- table.tenantId,
142
- table.projectId,
143
- table.agentId,
144
- table.id
145
- ] }), foreignKey({
146
- columns: [
141
+ }, (table) => [
142
+ primaryKey({ columns: [
147
143
  table.tenantId,
148
144
  table.projectId,
149
- table.agentId
150
- ],
151
- foreignColumns: [
152
- agents.tenantId,
153
- agents.projectId,
154
- agents.id
155
- ],
156
- name: "triggers_agent_fk"
157
- }).onDelete("cascade")]);
145
+ table.agentId,
146
+ table.id
147
+ ] }),
148
+ foreignKey({
149
+ columns: [
150
+ table.tenantId,
151
+ table.projectId,
152
+ table.agentId
153
+ ],
154
+ foreignColumns: [
155
+ agents.tenantId,
156
+ agents.projectId,
157
+ agents.id
158
+ ],
159
+ name: "triggers_agent_fk"
160
+ }).onDelete("cascade"),
161
+ foreignKey({
162
+ columns: [table.signingSecretCredentialReferenceId],
163
+ foreignColumns: [credentialReferences.id],
164
+ name: "triggers_credential_reference_fk"
165
+ }).onDelete("set null")
166
+ ]);
158
167
  const subAgents = pgTable("sub_agents", {
159
168
  ...agentScoped,
160
169
  ...uiProperties,