@meetploy/types 1.1.0 → 1.2.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/auth.d.ts +11 -0
- package/dist/auth.js +2 -0
- package/dist/auth.js.map +1 -0
- package/dist/db.d.ts +4 -1
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/auth.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface PloyAuth {
|
|
2
|
+
getUser: (token: string) => Promise<PloyUser | null>;
|
|
3
|
+
verifyToken: (token: string) => Promise<boolean>;
|
|
4
|
+
}
|
|
5
|
+
export interface PloyUser {
|
|
6
|
+
id: string;
|
|
7
|
+
email: string;
|
|
8
|
+
emailVerified: boolean;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
metadata: Record<string, unknown> | null;
|
|
11
|
+
}
|
package/dist/auth.js
ADDED
package/dist/auth.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":""}
|
package/dist/db.d.ts
CHANGED
|
@@ -13,10 +13,13 @@ export interface D1PreparedStatement {
|
|
|
13
13
|
run: <T = unknown>() => Promise<D1Result<T>>;
|
|
14
14
|
all: <T = unknown>() => Promise<D1Result<T>>;
|
|
15
15
|
first: <T = unknown>(colName?: string) => Promise<T | null>;
|
|
16
|
-
raw: <T = unknown>(
|
|
16
|
+
raw: <T = unknown>(options?: {
|
|
17
|
+
columnNames?: boolean;
|
|
18
|
+
}) => Promise<T[][]>;
|
|
17
19
|
}
|
|
18
20
|
export interface D1Database {
|
|
19
21
|
prepare: (query: string) => D1PreparedStatement;
|
|
22
|
+
dump: () => Promise<ArrayBuffer>;
|
|
20
23
|
exec: (query: string) => Promise<D1Result>;
|
|
21
24
|
batch: <T = unknown>(statements: D1PreparedStatement[]) => Promise<D1Result<T>[]>;
|
|
22
25
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export type { D1Database, D1PreparedStatement, D1Result, D1ResultMeta, } from ".
|
|
|
2
2
|
export type { QueueBinding, QueueBatchMessage, QueueMessageEvent, QueueSendOptions, QueueSendResult, QueueSendBatchResult, } from "./queue.js";
|
|
3
3
|
export type { WorkflowBinding, WorkflowContext, WorkflowExecution, WorkflowExecutionStatus, WorkflowHandler, WorkflowStep, WorkflowStepOptions, WorkflowTriggerResult, } from "./workflow.js";
|
|
4
4
|
export type { ExecutionContext, FetchHandler, MessageHandler, Ploy, WorkflowHandlers, } from "./ploy.js";
|
|
5
|
+
export type { PloyAuth, PloyUser } from "./auth.js";
|