@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/outbox.js CHANGED
@@ -1940,6 +1940,40 @@ defineTable({
1940
1940
  { kind: "index", name: "by_tier_window_end", columns: ["tier", "windowEndMs"] }
1941
1941
  ]
1942
1942
  });
1943
+ defineTable({
1944
+ name: "oauthDeviceCodes",
1945
+ component: "mc",
1946
+ category: "identity",
1947
+ shape: z.object({
1948
+ "deviceCodeHash": z.string(),
1949
+ "userCode": z.string(),
1950
+ "clientId": z.string(),
1951
+ "scope": z.string(),
1952
+ "status": z.enum(["pending", "approved", "denied", "expired", "consumed"]),
1953
+ "expiresAt": z.number(),
1954
+ "intervalSeconds": z.number(),
1955
+ "lastPolledAt": z.number().optional(),
1956
+ "slowDownCount": z.number().optional(),
1957
+ "clerkUserId": z.string().optional(),
1958
+ "tenantId": idOf("tenants").optional(),
1959
+ "workspaceId": z.string().optional(),
1960
+ "principalId": z.string().optional(),
1961
+ "role": z.string().optional(),
1962
+ "scopes": z.array(z.string()).optional(),
1963
+ "sessionId": z.string().optional(),
1964
+ "approvedAt": z.number().optional(),
1965
+ "deniedAt": z.number().optional(),
1966
+ "consumedAt": z.number().optional(),
1967
+ "createdAt": z.number(),
1968
+ "updatedAt": z.number()
1969
+ }),
1970
+ indices: [
1971
+ { kind: "index", name: "by_deviceCodeHash", columns: ["deviceCodeHash"] },
1972
+ { kind: "index", name: "by_userCode", columns: ["userCode"] },
1973
+ { kind: "index", name: "by_status_expiresAt", columns: ["status", "expiresAt"] },
1974
+ { kind: "index", name: "by_sessionId", columns: ["sessionId"] }
1975
+ ]
1976
+ });
1943
1977
  defineTable({
1944
1978
  name: "servicePrincipalKeys",
1945
1979
  component: "mc",