@jive-sh/server-client 0.3.0 → 0.5.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 +94 -7
- package/_generated/dataModel.d.ts +58 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/_generated/api.d.ts
CHANGED
|
@@ -65,12 +65,21 @@ export declare const api: {
|
|
|
65
65
|
provision: FunctionReference<
|
|
66
66
|
"action",
|
|
67
67
|
"public",
|
|
68
|
-
{ packageName: string; registry: "npm" },
|
|
68
|
+
{ packageName: string; registry: "npm"; sessionToken: string },
|
|
69
69
|
| { status: "ready" }
|
|
70
70
|
| { status: "inProgress" }
|
|
71
71
|
| { reason: string; status: "refused" }
|
|
72
72
|
>;
|
|
73
73
|
};
|
|
74
|
+
pipelineSessions: {
|
|
75
|
+
signIn: FunctionReference<
|
|
76
|
+
"action",
|
|
77
|
+
"public",
|
|
78
|
+
{},
|
|
79
|
+
| { expiresAt: number; sessionToken: string; status: "signedIn" }
|
|
80
|
+
| { reason: string; status: "refused" }
|
|
81
|
+
>;
|
|
82
|
+
};
|
|
74
83
|
sessions: {
|
|
75
84
|
signOut: FunctionReference<
|
|
76
85
|
"mutation",
|
|
@@ -107,6 +116,26 @@ export declare const api: {
|
|
|
107
116
|
}
|
|
108
117
|
>;
|
|
109
118
|
};
|
|
119
|
+
ssh: {
|
|
120
|
+
createKey: FunctionReference<
|
|
121
|
+
"action",
|
|
122
|
+
"public",
|
|
123
|
+
{ sessionToken: string },
|
|
124
|
+
{ publicKey: string }
|
|
125
|
+
>;
|
|
126
|
+
publicKey: FunctionReference<
|
|
127
|
+
"query",
|
|
128
|
+
"public",
|
|
129
|
+
{ sessionToken: string },
|
|
130
|
+
null | { publicKey: string }
|
|
131
|
+
>;
|
|
132
|
+
sign: FunctionReference<
|
|
133
|
+
"action",
|
|
134
|
+
"public",
|
|
135
|
+
{ data: ArrayBuffer; sessionToken: string },
|
|
136
|
+
{ signature: ArrayBuffer }
|
|
137
|
+
>;
|
|
138
|
+
};
|
|
110
139
|
};
|
|
111
140
|
|
|
112
141
|
/**
|
|
@@ -224,12 +253,6 @@ export declare const internal: {
|
|
|
224
253
|
{ holder: string; packageName: string },
|
|
225
254
|
null | string
|
|
226
255
|
>;
|
|
227
|
-
codeRepositoryByGithubIds: FunctionReference<
|
|
228
|
-
"query",
|
|
229
|
-
"internal",
|
|
230
|
-
{ repositoryId: string; repositoryOwnerId: string },
|
|
231
|
-
null | { id: string; organizationId: string }
|
|
232
|
-
>;
|
|
233
256
|
packageByName: FunctionReference<
|
|
234
257
|
"query",
|
|
235
258
|
"internal",
|
|
@@ -256,6 +279,41 @@ export declare const internal: {
|
|
|
256
279
|
null
|
|
257
280
|
>;
|
|
258
281
|
};
|
|
282
|
+
pipelineSessions: {
|
|
283
|
+
deleteSession: FunctionReference<
|
|
284
|
+
"mutation",
|
|
285
|
+
"internal",
|
|
286
|
+
{ id: Id<"pipelineSessions"> },
|
|
287
|
+
null
|
|
288
|
+
>;
|
|
289
|
+
open: FunctionReference<
|
|
290
|
+
"mutation",
|
|
291
|
+
"internal",
|
|
292
|
+
{
|
|
293
|
+
caller: {
|
|
294
|
+
environment: string;
|
|
295
|
+
repository: { name: string; owner: string };
|
|
296
|
+
repositoryId: string;
|
|
297
|
+
repositoryOwnerId: string;
|
|
298
|
+
workflowFile: string;
|
|
299
|
+
};
|
|
300
|
+
tokenHash: string;
|
|
301
|
+
},
|
|
302
|
+
null | { expiresAt: number }
|
|
303
|
+
>;
|
|
304
|
+
pipeline: FunctionReference<
|
|
305
|
+
"query",
|
|
306
|
+
"internal",
|
|
307
|
+
{ sessionToken: string },
|
|
308
|
+
null | {
|
|
309
|
+
codeRepositoryId: Id<"codeRepositories">;
|
|
310
|
+
environment: string;
|
|
311
|
+
organizationId: Id<"organizations">;
|
|
312
|
+
repository: { name: string; owner: string };
|
|
313
|
+
workflowFile: string;
|
|
314
|
+
}
|
|
315
|
+
>;
|
|
316
|
+
};
|
|
259
317
|
seed: {
|
|
260
318
|
accountWithPasskey: FunctionReference<
|
|
261
319
|
"mutation",
|
|
@@ -308,6 +366,35 @@ export declare const internal: {
|
|
|
308
366
|
{ expiresAt: number; requestId: string }
|
|
309
367
|
>;
|
|
310
368
|
};
|
|
369
|
+
ssh: {
|
|
370
|
+
caller: FunctionReference<
|
|
371
|
+
"query",
|
|
372
|
+
"internal",
|
|
373
|
+
{ sessionToken: string },
|
|
374
|
+
null | {
|
|
375
|
+
accountId: Id<"accounts">;
|
|
376
|
+
publicKey: null | string;
|
|
377
|
+
username: string;
|
|
378
|
+
}
|
|
379
|
+
>;
|
|
380
|
+
sealedKey: FunctionReference<
|
|
381
|
+
"query",
|
|
382
|
+
"internal",
|
|
383
|
+
{ sessionToken: string },
|
|
384
|
+
null | { sealed: null | { keyVersion: number; sealedPrivateKey: string } }
|
|
385
|
+
>;
|
|
386
|
+
storeKey: FunctionReference<
|
|
387
|
+
"mutation",
|
|
388
|
+
"internal",
|
|
389
|
+
{
|
|
390
|
+
accountId: Id<"accounts">;
|
|
391
|
+
keyVersion: number;
|
|
392
|
+
publicKey: string;
|
|
393
|
+
sealedPrivateKey: string;
|
|
394
|
+
},
|
|
395
|
+
string
|
|
396
|
+
>;
|
|
397
|
+
};
|
|
311
398
|
};
|
|
312
399
|
|
|
313
400
|
export declare const components: {
|
|
@@ -187,6 +187,38 @@ export type DataModel = {
|
|
|
187
187
|
searchIndexes: {};
|
|
188
188
|
vectorIndexes: {};
|
|
189
189
|
};
|
|
190
|
+
pipelineSessions: {
|
|
191
|
+
document: {
|
|
192
|
+
codeRepositoryId: Id<"codeRepositories">;
|
|
193
|
+
createdAt: number;
|
|
194
|
+
environment: string;
|
|
195
|
+
expiresAt: number;
|
|
196
|
+
repository: { name: string; owner: string };
|
|
197
|
+
tokenHash: string;
|
|
198
|
+
workflowFile: string;
|
|
199
|
+
_id: Id<"pipelineSessions">;
|
|
200
|
+
_creationTime: number;
|
|
201
|
+
};
|
|
202
|
+
fieldPaths:
|
|
203
|
+
| "_creationTime"
|
|
204
|
+
| "_id"
|
|
205
|
+
| "codeRepositoryId"
|
|
206
|
+
| "createdAt"
|
|
207
|
+
| "environment"
|
|
208
|
+
| "expiresAt"
|
|
209
|
+
| "repository"
|
|
210
|
+
| "repository.name"
|
|
211
|
+
| "repository.owner"
|
|
212
|
+
| "tokenHash"
|
|
213
|
+
| "workflowFile";
|
|
214
|
+
indexes: {
|
|
215
|
+
by_id: ["_id"];
|
|
216
|
+
by_creation_time: ["_creationTime"];
|
|
217
|
+
by_token_hash: ["tokenHash", "_creationTime"];
|
|
218
|
+
};
|
|
219
|
+
searchIndexes: {};
|
|
220
|
+
vectorIndexes: {};
|
|
221
|
+
};
|
|
190
222
|
provisioningClaims: {
|
|
191
223
|
document: {
|
|
192
224
|
expiresAt: number;
|
|
@@ -265,6 +297,32 @@ export type DataModel = {
|
|
|
265
297
|
searchIndexes: {};
|
|
266
298
|
vectorIndexes: {};
|
|
267
299
|
};
|
|
300
|
+
sshKeys: {
|
|
301
|
+
document: {
|
|
302
|
+
accountId: Id<"accounts">;
|
|
303
|
+
createdAt: number;
|
|
304
|
+
keyVersion: number;
|
|
305
|
+
publicKey: string;
|
|
306
|
+
sealedPrivateKey: string;
|
|
307
|
+
_id: Id<"sshKeys">;
|
|
308
|
+
_creationTime: number;
|
|
309
|
+
};
|
|
310
|
+
fieldPaths:
|
|
311
|
+
| "_creationTime"
|
|
312
|
+
| "_id"
|
|
313
|
+
| "accountId"
|
|
314
|
+
| "createdAt"
|
|
315
|
+
| "keyVersion"
|
|
316
|
+
| "publicKey"
|
|
317
|
+
| "sealedPrivateKey";
|
|
318
|
+
indexes: {
|
|
319
|
+
by_id: ["_id"];
|
|
320
|
+
by_creation_time: ["_creationTime"];
|
|
321
|
+
by_account: ["accountId", "_creationTime"];
|
|
322
|
+
};
|
|
323
|
+
searchIndexes: {};
|
|
324
|
+
vectorIndexes: {};
|
|
325
|
+
};
|
|
268
326
|
webAuthnChallenges: {
|
|
269
327
|
document: {
|
|
270
328
|
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":"682470336bc8f72ebcc191dd51dae22b02e91e65","version":"0.5.0"};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jive-sh/server-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.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",
|