@jive-sh/server-client 0.10.1 → 0.12.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.
@@ -28,6 +28,7 @@ export declare const api: {
28
28
  null | {
29
29
  createdAt: number;
30
30
  passkeys: Array<{ createdAt: number; credentialId: string }>;
31
+ sessionExpiresAt: number;
31
32
  username: string;
32
33
  }
33
34
  >;
@@ -210,17 +211,11 @@ export declare const api: {
210
211
  >;
211
212
  };
212
213
  ssh: {
213
- createKey: FunctionReference<
214
- "action",
215
- "public",
216
- { sessionToken: string },
217
- { publicKey: string }
218
- >;
219
214
  publicKey: FunctionReference<
220
215
  "query",
221
216
  "public",
222
217
  { sessionToken: string },
223
- null | { publicKey: string }
218
+ { publicKey: string }
224
219
  >;
225
220
  sign: FunctionReference<
226
221
  "action",
@@ -262,7 +257,7 @@ export declare const internal: {
262
257
  };
263
258
  auth: {
264
259
  accountOfSession: FunctionReference<
265
- "query",
260
+ "mutation",
266
261
  "internal",
267
262
  { sessionToken: string },
268
263
  null | {
@@ -289,7 +284,7 @@ export declare const internal: {
289
284
  username: string;
290
285
  webAuthnUserId: string;
291
286
  },
292
- { expiresAt: number }
287
+ { accountId: Id<"accounts">; expiresAt: number }
293
288
  >;
294
289
  deleteChallenge: FunctionReference<
295
290
  "mutation",
@@ -483,45 +478,28 @@ export declare const internal: {
483
478
  >;
484
479
  };
485
480
  ssh: {
486
- caller: FunctionReference<
481
+ accounts: FunctionReference<
487
482
  "query",
488
483
  "internal",
489
- { sessionToken: string },
490
- null | { accountId: Id<"accounts">; username: string }
491
- >;
492
- insertLegacy: FunctionReference<
493
- "mutation",
494
- "internal",
495
- {
496
- accountId: Id<"accounts">;
497
- createdAt: number;
498
- keyVersion: number;
499
- publicKey: string;
500
- sealedPrivateKey: string;
501
- },
502
- null
484
+ {},
485
+ Array<{ accountId: Id<"accounts">; username: string }>
503
486
  >;
504
- legacyKey: FunctionReference<
505
- "query",
487
+ afterDeploy: FunctionReference<
488
+ "action",
506
489
  "internal",
507
- { accountId: Id<"accounts"> },
508
- null | {
509
- createdAt: number;
510
- keyVersion: number;
511
- publicKey: string;
512
- sealedPrivateKey: string;
513
- }
490
+ { environment: string; sourceCommitSha: string },
491
+ { accounts: number; created: number }
514
492
  >;
515
- migrateToAccountKeys: FunctionReference<
493
+ caller: FunctionReference<
516
494
  "mutation",
517
495
  "internal",
518
- { environment: string; sourceCommitSha: string },
519
- { alreadyPresent: number; copied: number }
496
+ { sessionToken: string },
497
+ null | { accountId: Id<"accounts">; username: string }
520
498
  >;
521
- removeLegacy: FunctionReference<
522
- "mutation",
499
+ ensureKey: FunctionReference<
500
+ "action",
523
501
  "internal",
524
- { accountId: Id<"accounts"> },
502
+ { accountId: Id<"accounts">; username: string },
525
503
  null
526
504
  >;
527
505
  sealedKey: FunctionReference<
@@ -260,32 +260,6 @@ export type DataModel = {
260
260
  searchIndexes: {};
261
261
  vectorIndexes: {};
262
262
  };
263
- sshKeys: {
264
- document: {
265
- accountId: Id<"accounts">;
266
- createdAt: number;
267
- keyVersion: number;
268
- publicKey: string;
269
- sealedPrivateKey: string;
270
- _id: Id<"sshKeys">;
271
- _creationTime: number;
272
- };
273
- fieldPaths:
274
- | "_creationTime"
275
- | "_id"
276
- | "accountId"
277
- | "createdAt"
278
- | "keyVersion"
279
- | "publicKey"
280
- | "sealedPrivateKey";
281
- indexes: {
282
- by_id: ["_id"];
283
- by_creation_time: ["_creationTime"];
284
- by_account: ["accountId", "_creationTime"];
285
- };
286
- searchIndexes: {};
287
- vectorIndexes: {};
288
- };
289
263
  webAuthnChallenges: {
290
264
  document: {
291
265
  accountId?: Id<"accounts">;
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { api } from "./_generated/api.js";
2
2
  /** The URL to pass to ConvexClient or ConvexReactClient: this environment's canonical Convex API URL. */
3
- export const convexUrl = "https://adventurous-viper-740.convex.cloud";
3
+ export const convexUrl = "https://api.jive.sh";
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":"22483bddb77fac43bfd8a798993ead4a644ad8fe","version":"0.10.1"};
7
+ export const deployment = {"environment":"latest","sourceCommitSha":"580de2c6a4b8031f05dd3e11765373c0820e390c","version":"0.12.0"};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jive-sh/server-client",
3
- "version": "0.10.1",
3
+ "version": "0.12.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",