@jive-sh/server-client 0.9.0 → 0.10.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/_generated/api.d.ts +39 -3
- package/_generated/dataModel.d.ts +3 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/_generated/api.d.ts
CHANGED
|
@@ -53,6 +53,18 @@ export declare const api: {
|
|
|
53
53
|
>;
|
|
54
54
|
};
|
|
55
55
|
auth: {
|
|
56
|
+
addPasskey: FunctionReference<
|
|
57
|
+
"action",
|
|
58
|
+
"public",
|
|
59
|
+
{ challenge: string; response: any; sessionToken: string },
|
|
60
|
+
null
|
|
61
|
+
>;
|
|
62
|
+
addPasskeyOptions: FunctionReference<
|
|
63
|
+
"action",
|
|
64
|
+
"public",
|
|
65
|
+
{ sessionToken: string },
|
|
66
|
+
{ options: any }
|
|
67
|
+
>;
|
|
56
68
|
register: FunctionReference<
|
|
57
69
|
"action",
|
|
58
70
|
"public",
|
|
@@ -249,6 +261,23 @@ export declare const internal: {
|
|
|
249
261
|
>;
|
|
250
262
|
};
|
|
251
263
|
auth: {
|
|
264
|
+
accountOfSession: FunctionReference<
|
|
265
|
+
"query",
|
|
266
|
+
"internal",
|
|
267
|
+
{ sessionToken: string },
|
|
268
|
+
null | {
|
|
269
|
+
accountId: Id<"accounts">;
|
|
270
|
+
credentialIds: Array<string>;
|
|
271
|
+
username: string;
|
|
272
|
+
webAuthnUserId: string;
|
|
273
|
+
}
|
|
274
|
+
>;
|
|
275
|
+
attachPasskey: FunctionReference<
|
|
276
|
+
"mutation",
|
|
277
|
+
"internal",
|
|
278
|
+
{ accountId: Id<"accounts">; credentialId: string; publicKey: string },
|
|
279
|
+
null
|
|
280
|
+
>;
|
|
252
281
|
createAccount: FunctionReference<
|
|
253
282
|
"mutation",
|
|
254
283
|
"internal",
|
|
@@ -291,15 +320,22 @@ export declare const internal: {
|
|
|
291
320
|
spendChallenge: FunctionReference<
|
|
292
321
|
"mutation",
|
|
293
322
|
"internal",
|
|
294
|
-
{
|
|
295
|
-
|
|
323
|
+
{
|
|
324
|
+
challengeHash: string;
|
|
325
|
+
purpose: "registration" | "signIn" | "addPasskey";
|
|
326
|
+
},
|
|
327
|
+
null | {
|
|
328
|
+
accountId?: Id<"accounts">;
|
|
329
|
+
registration?: { username: string; webAuthnUserId: string };
|
|
330
|
+
}
|
|
296
331
|
>;
|
|
297
332
|
storeChallenge: FunctionReference<
|
|
298
333
|
"mutation",
|
|
299
334
|
"internal",
|
|
300
335
|
{
|
|
336
|
+
accountId?: Id<"accounts">;
|
|
301
337
|
challengeHash: string;
|
|
302
|
-
purpose: "registration" | "signIn";
|
|
338
|
+
purpose: "registration" | "signIn" | "addPasskey";
|
|
303
339
|
registration?: { username: string; webAuthnUserId: string };
|
|
304
340
|
},
|
|
305
341
|
null
|
|
@@ -288,9 +288,10 @@ export type DataModel = {
|
|
|
288
288
|
};
|
|
289
289
|
webAuthnChallenges: {
|
|
290
290
|
document: {
|
|
291
|
+
accountId?: Id<"accounts">;
|
|
291
292
|
challengeHash: string;
|
|
292
293
|
expiresAt: number;
|
|
293
|
-
purpose: "registration" | "signIn";
|
|
294
|
+
purpose: "registration" | "signIn" | "addPasskey";
|
|
294
295
|
registration?: { username: string; webAuthnUserId: string };
|
|
295
296
|
_id: Id<"webAuthnChallenges">;
|
|
296
297
|
_creationTime: number;
|
|
@@ -298,6 +299,7 @@ export type DataModel = {
|
|
|
298
299
|
fieldPaths:
|
|
299
300
|
| "_creationTime"
|
|
300
301
|
| "_id"
|
|
302
|
+
| "accountId"
|
|
301
303
|
| "challengeHash"
|
|
302
304
|
| "expiresAt"
|
|
303
305
|
| "purpose"
|
package/index.js
CHANGED
|
@@ -4,4 +4,4 @@ export const convexUrl = "https://adventurous-viper-740.convex.cloud";
|
|
|
4
4
|
/** Where this environment's HTTP actions are served. */
|
|
5
5
|
export const convexSiteUrl = "https://adventurous-viper-740.convex.site";
|
|
6
6
|
/** Which deploy these functions came from. */
|
|
7
|
-
export const deployment = {"environment":"latest","sourceCommitSha":"
|
|
7
|
+
export const deployment = {"environment":"latest","sourceCommitSha":"fe34f975cbd4644aa737587c0a16e6fa50f95d63","version":"0.10.0"};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jive-sh/server-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Jive's central server: the Convex backend that holds accounts, passkeys and sessions, organizations, code repositories, connections and packages; people sign in with jive.sh passkeys, programs through sign-in requests, and pipelines provision packages with their GitHub Actions ID token.",
|
|
6
6
|
"type": "module",
|