@jive-sh/server-client 0.10.1 → 0.11.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.
@@ -210,17 +210,11 @@ export declare const api: {
210
210
  >;
211
211
  };
212
212
  ssh: {
213
- createKey: FunctionReference<
214
- "action",
215
- "public",
216
- { sessionToken: string },
217
- { publicKey: string }
218
- >;
219
213
  publicKey: FunctionReference<
220
214
  "query",
221
215
  "public",
222
216
  { sessionToken: string },
223
- null | { publicKey: string }
217
+ { publicKey: string }
224
218
  >;
225
219
  sign: FunctionReference<
226
220
  "action",
@@ -289,7 +283,7 @@ export declare const internal: {
289
283
  username: string;
290
284
  webAuthnUserId: string;
291
285
  },
292
- { expiresAt: number }
286
+ { accountId: Id<"accounts">; expiresAt: number }
293
287
  >;
294
288
  deleteChallenge: FunctionReference<
295
289
  "mutation",
@@ -483,45 +477,28 @@ export declare const internal: {
483
477
  >;
484
478
  };
485
479
  ssh: {
486
- caller: FunctionReference<
480
+ accounts: FunctionReference<
487
481
  "query",
488
482
  "internal",
489
- { sessionToken: string },
490
- null | { accountId: Id<"accounts">; username: string }
483
+ {},
484
+ Array<{ accountId: Id<"accounts">; username: string }>
491
485
  >;
492
- insertLegacy: FunctionReference<
493
- "mutation",
486
+ afterDeploy: FunctionReference<
487
+ "action",
494
488
  "internal",
495
- {
496
- accountId: Id<"accounts">;
497
- createdAt: number;
498
- keyVersion: number;
499
- publicKey: string;
500
- sealedPrivateKey: string;
501
- },
502
- null
489
+ { environment: string; sourceCommitSha: string },
490
+ { accounts: number; created: number }
503
491
  >;
504
- legacyKey: FunctionReference<
492
+ caller: FunctionReference<
505
493
  "query",
506
494
  "internal",
507
- { accountId: Id<"accounts"> },
508
- null | {
509
- createdAt: number;
510
- keyVersion: number;
511
- publicKey: string;
512
- sealedPrivateKey: string;
513
- }
514
- >;
515
- migrateToAccountKeys: FunctionReference<
516
- "mutation",
517
- "internal",
518
- { environment: string; sourceCommitSha: string },
519
- { alreadyPresent: number; copied: number }
495
+ { sessionToken: string },
496
+ null | { accountId: Id<"accounts">; username: string }
520
497
  >;
521
- removeLegacy: FunctionReference<
522
- "mutation",
498
+ ensureKey: FunctionReference<
499
+ "action",
523
500
  "internal",
524
- { accountId: Id<"accounts"> },
501
+ { accountId: Id<"accounts">; username: string },
525
502
  null
526
503
  >;
527
504
  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":"371b2dadf7ba5898fe86bb914c490075f4589bd3","version":"0.11.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.11.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",