@jive-sh/server-client 0.3.0 → 0.4.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 +49 -0
- package/_generated/dataModel.d.ts +26 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/_generated/api.d.ts
CHANGED
|
@@ -107,6 +107,26 @@ export declare const api: {
|
|
|
107
107
|
}
|
|
108
108
|
>;
|
|
109
109
|
};
|
|
110
|
+
ssh: {
|
|
111
|
+
createKey: FunctionReference<
|
|
112
|
+
"action",
|
|
113
|
+
"public",
|
|
114
|
+
{ sessionToken: string },
|
|
115
|
+
{ publicKey: string }
|
|
116
|
+
>;
|
|
117
|
+
publicKey: FunctionReference<
|
|
118
|
+
"query",
|
|
119
|
+
"public",
|
|
120
|
+
{ sessionToken: string },
|
|
121
|
+
null | { publicKey: string }
|
|
122
|
+
>;
|
|
123
|
+
sign: FunctionReference<
|
|
124
|
+
"action",
|
|
125
|
+
"public",
|
|
126
|
+
{ data: ArrayBuffer; sessionToken: string },
|
|
127
|
+
{ signature: ArrayBuffer }
|
|
128
|
+
>;
|
|
129
|
+
};
|
|
110
130
|
};
|
|
111
131
|
|
|
112
132
|
/**
|
|
@@ -308,6 +328,35 @@ export declare const internal: {
|
|
|
308
328
|
{ expiresAt: number; requestId: string }
|
|
309
329
|
>;
|
|
310
330
|
};
|
|
331
|
+
ssh: {
|
|
332
|
+
caller: FunctionReference<
|
|
333
|
+
"query",
|
|
334
|
+
"internal",
|
|
335
|
+
{ sessionToken: string },
|
|
336
|
+
null | {
|
|
337
|
+
accountId: Id<"accounts">;
|
|
338
|
+
publicKey: null | string;
|
|
339
|
+
username: string;
|
|
340
|
+
}
|
|
341
|
+
>;
|
|
342
|
+
sealedKey: FunctionReference<
|
|
343
|
+
"query",
|
|
344
|
+
"internal",
|
|
345
|
+
{ sessionToken: string },
|
|
346
|
+
null | { sealed: null | { keyVersion: number; sealedPrivateKey: string } }
|
|
347
|
+
>;
|
|
348
|
+
storeKey: FunctionReference<
|
|
349
|
+
"mutation",
|
|
350
|
+
"internal",
|
|
351
|
+
{
|
|
352
|
+
accountId: Id<"accounts">;
|
|
353
|
+
keyVersion: number;
|
|
354
|
+
publicKey: string;
|
|
355
|
+
sealedPrivateKey: string;
|
|
356
|
+
},
|
|
357
|
+
string
|
|
358
|
+
>;
|
|
359
|
+
};
|
|
311
360
|
};
|
|
312
361
|
|
|
313
362
|
export declare const components: {
|
|
@@ -265,6 +265,32 @@ export type DataModel = {
|
|
|
265
265
|
searchIndexes: {};
|
|
266
266
|
vectorIndexes: {};
|
|
267
267
|
};
|
|
268
|
+
sshKeys: {
|
|
269
|
+
document: {
|
|
270
|
+
accountId: Id<"accounts">;
|
|
271
|
+
createdAt: number;
|
|
272
|
+
keyVersion: number;
|
|
273
|
+
publicKey: string;
|
|
274
|
+
sealedPrivateKey: string;
|
|
275
|
+
_id: Id<"sshKeys">;
|
|
276
|
+
_creationTime: number;
|
|
277
|
+
};
|
|
278
|
+
fieldPaths:
|
|
279
|
+
| "_creationTime"
|
|
280
|
+
| "_id"
|
|
281
|
+
| "accountId"
|
|
282
|
+
| "createdAt"
|
|
283
|
+
| "keyVersion"
|
|
284
|
+
| "publicKey"
|
|
285
|
+
| "sealedPrivateKey";
|
|
286
|
+
indexes: {
|
|
287
|
+
by_id: ["_id"];
|
|
288
|
+
by_creation_time: ["_creationTime"];
|
|
289
|
+
by_account: ["accountId", "_creationTime"];
|
|
290
|
+
};
|
|
291
|
+
searchIndexes: {};
|
|
292
|
+
vectorIndexes: {};
|
|
293
|
+
};
|
|
268
294
|
webAuthnChallenges: {
|
|
269
295
|
document: {
|
|
270
296
|
challengeHash: string;
|
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":"52617a321d77c406e238e6066b8794b4150a193b","version":"0.4.0"};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jive-sh/server-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.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",
|