@byok-sdk/cloud-dataplane 0.17.0 → 0.19.0
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.
package/dist/runtime.js
CHANGED
|
@@ -1494,6 +1494,15 @@ var PostgresTaskAttemptStore = class {
|
|
|
1494
1494
|
client.release();
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
|
+
async readTaskAgentMessage(tenant, input) {
|
|
1498
|
+
const result = await this.#pool.query(
|
|
1499
|
+
`SELECT ${AGENT_MESSAGE_ADMISSION_SELECT_COLUMNS}
|
|
1500
|
+
FROM agent_message_admission
|
|
1501
|
+
WHERE tenant_id = $1 AND device_id = $2 AND task_id = $3`,
|
|
1502
|
+
[tenant, input.deviceId, input.taskId]
|
|
1503
|
+
);
|
|
1504
|
+
return result.rows[0] === void 0 ? void 0 : admissionRowToRecord(result.rows[0]);
|
|
1505
|
+
}
|
|
1497
1506
|
async readAgentMessage(tenant, input) {
|
|
1498
1507
|
const result = await this.#pool.query(
|
|
1499
1508
|
`SELECT ${AGENT_MESSAGE_ADMISSION_SELECT_COLUMNS}
|
|
@@ -2781,10 +2790,10 @@ var PostgresDeviceAssertionReplayAuthority = class {
|
|
|
2781
2790
|
}
|
|
2782
2791
|
const result = await this.#pool.query(
|
|
2783
2792
|
`INSERT INTO device_assertion_replay (
|
|
2784
|
-
tenant_id, issuer, product_id, device_id, audience, jti, expires_at
|
|
2793
|
+
tenant_id, issuer, product_id, device_id, audience, schema, jti, expires_at
|
|
2785
2794
|
)
|
|
2786
|
-
VALUES ($1, $2, $3, $4, $5, $6, $7)
|
|
2787
|
-
ON CONFLICT (tenant_id, issuer, product_id, device_id, audience, jti) DO NOTHING
|
|
2795
|
+
VALUES ($1, $2, $3, $4, $5, $6, $7, $8)
|
|
2796
|
+
ON CONFLICT (tenant_id, issuer, product_id, device_id, audience, schema, jti) DO NOTHING
|
|
2788
2797
|
RETURNING jti`,
|
|
2789
2798
|
[
|
|
2790
2799
|
input.tenantId,
|
|
@@ -2792,6 +2801,7 @@ var PostgresDeviceAssertionReplayAuthority = class {
|
|
|
2792
2801
|
input.productId,
|
|
2793
2802
|
input.deviceId,
|
|
2794
2803
|
input.audience,
|
|
2804
|
+
input.schema,
|
|
2795
2805
|
input.jti,
|
|
2796
2806
|
input.expiresAt
|
|
2797
2807
|
]
|