@lucern/events 0.3.0-alpha.2 → 0.3.0-alpha.3
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/index.js +34 -0
- package/dist/index.js.map +1 -1
- package/dist/outbox.js +34 -0
- package/dist/outbox.js.map +1 -1
- package/dist/types.js +34 -0
- package/dist/types.js.map +1 -1
- package/dist/webhooks.js +34 -0
- package/dist/webhooks.js.map +1 -1
- package/package.json +2 -2
package/dist/webhooks.js
CHANGED
|
@@ -1849,6 +1849,40 @@ defineTable({
|
|
|
1849
1849
|
{ kind: "index", name: "by_tier_window_end", columns: ["tier", "windowEndMs"] }
|
|
1850
1850
|
]
|
|
1851
1851
|
});
|
|
1852
|
+
defineTable({
|
|
1853
|
+
name: "oauthDeviceCodes",
|
|
1854
|
+
component: "mc",
|
|
1855
|
+
category: "identity",
|
|
1856
|
+
shape: z.object({
|
|
1857
|
+
"deviceCodeHash": z.string(),
|
|
1858
|
+
"userCode": z.string(),
|
|
1859
|
+
"clientId": z.string(),
|
|
1860
|
+
"scope": z.string(),
|
|
1861
|
+
"status": z.enum(["pending", "approved", "denied", "expired", "consumed"]),
|
|
1862
|
+
"expiresAt": z.number(),
|
|
1863
|
+
"intervalSeconds": z.number(),
|
|
1864
|
+
"lastPolledAt": z.number().optional(),
|
|
1865
|
+
"slowDownCount": z.number().optional(),
|
|
1866
|
+
"clerkUserId": z.string().optional(),
|
|
1867
|
+
"tenantId": idOf("tenants").optional(),
|
|
1868
|
+
"workspaceId": z.string().optional(),
|
|
1869
|
+
"principalId": z.string().optional(),
|
|
1870
|
+
"role": z.string().optional(),
|
|
1871
|
+
"scopes": z.array(z.string()).optional(),
|
|
1872
|
+
"sessionId": z.string().optional(),
|
|
1873
|
+
"approvedAt": z.number().optional(),
|
|
1874
|
+
"deniedAt": z.number().optional(),
|
|
1875
|
+
"consumedAt": z.number().optional(),
|
|
1876
|
+
"createdAt": z.number(),
|
|
1877
|
+
"updatedAt": z.number()
|
|
1878
|
+
}),
|
|
1879
|
+
indices: [
|
|
1880
|
+
{ kind: "index", name: "by_deviceCodeHash", columns: ["deviceCodeHash"] },
|
|
1881
|
+
{ kind: "index", name: "by_userCode", columns: ["userCode"] },
|
|
1882
|
+
{ kind: "index", name: "by_status_expiresAt", columns: ["status", "expiresAt"] },
|
|
1883
|
+
{ kind: "index", name: "by_sessionId", columns: ["sessionId"] }
|
|
1884
|
+
]
|
|
1885
|
+
});
|
|
1852
1886
|
defineTable({
|
|
1853
1887
|
name: "servicePrincipalKeys",
|
|
1854
1888
|
component: "mc",
|