@jive-sh/server-client 0.5.0 → 0.7.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 +119 -58
- package/_generated/dataModel.d.ts +7 -69
- package/index.js +1 -1
- package/package.json +1 -1
package/_generated/api.d.ts
CHANGED
|
@@ -61,6 +61,37 @@ export declare const api: {
|
|
|
61
61
|
null
|
|
62
62
|
>;
|
|
63
63
|
};
|
|
64
|
+
npmSessions: {
|
|
65
|
+
markPasskeyRegistered: FunctionReference<
|
|
66
|
+
"action",
|
|
67
|
+
"public",
|
|
68
|
+
{ repositoryName: string; repositoryOwner: string; sessionToken: string },
|
|
69
|
+
null
|
|
70
|
+
>;
|
|
71
|
+
save: FunctionReference<
|
|
72
|
+
"action",
|
|
73
|
+
"public",
|
|
74
|
+
{
|
|
75
|
+
repositoryName: string;
|
|
76
|
+
repositoryOwner: string;
|
|
77
|
+
sessionToken: string;
|
|
78
|
+
token: string;
|
|
79
|
+
},
|
|
80
|
+
null
|
|
81
|
+
>;
|
|
82
|
+
status: FunctionReference<
|
|
83
|
+
"query",
|
|
84
|
+
"public",
|
|
85
|
+
{ repositoryName: string; repositoryOwner: string; sessionToken: string },
|
|
86
|
+
{ hasToken: boolean; passkeyRegistered: boolean }
|
|
87
|
+
>;
|
|
88
|
+
token: FunctionReference<
|
|
89
|
+
"action",
|
|
90
|
+
"public",
|
|
91
|
+
{ repositoryName: string; repositoryOwner: string; sessionToken: string },
|
|
92
|
+
{ token: string }
|
|
93
|
+
>;
|
|
94
|
+
};
|
|
64
95
|
packages: {
|
|
65
96
|
provision: FunctionReference<
|
|
66
97
|
"action",
|
|
@@ -80,6 +111,17 @@ export declare const api: {
|
|
|
80
111
|
| { reason: string; status: "refused" }
|
|
81
112
|
>;
|
|
82
113
|
};
|
|
114
|
+
provision: {
|
|
115
|
+
default: FunctionReference<
|
|
116
|
+
"action",
|
|
117
|
+
"public",
|
|
118
|
+
{ instance: any; kind: string; sessionToken: string },
|
|
119
|
+
| { instance: any; instanceId: string; status: "ready" }
|
|
120
|
+
| { retryAfterSeconds: number; status: "inProgress" }
|
|
121
|
+
| { reason: string; status: "personNeeded"; url: string }
|
|
122
|
+
| { reason: string; status: "refused" }
|
|
123
|
+
>;
|
|
124
|
+
};
|
|
83
125
|
sessions: {
|
|
84
126
|
signOut: FunctionReference<
|
|
85
127
|
"mutation",
|
|
@@ -88,6 +130,25 @@ export declare const api: {
|
|
|
88
130
|
null
|
|
89
131
|
>;
|
|
90
132
|
};
|
|
133
|
+
signingPasskey: {
|
|
134
|
+
ensure: FunctionReference<
|
|
135
|
+
"action",
|
|
136
|
+
"public",
|
|
137
|
+
{ repositoryName: string; repositoryOwner: string; sessionToken: string },
|
|
138
|
+
{ credentialId: string; publicKeySpki: string }
|
|
139
|
+
>;
|
|
140
|
+
sign: FunctionReference<
|
|
141
|
+
"action",
|
|
142
|
+
"public",
|
|
143
|
+
{
|
|
144
|
+
challenge: string;
|
|
145
|
+
repositoryName: string;
|
|
146
|
+
repositoryOwner: string;
|
|
147
|
+
sessionToken: string;
|
|
148
|
+
},
|
|
149
|
+
{ signature: string }
|
|
150
|
+
>;
|
|
151
|
+
};
|
|
91
152
|
signInRequests: {
|
|
92
153
|
claim: FunctionReference<
|
|
93
154
|
"action",
|
|
@@ -223,22 +284,6 @@ export declare const internal: {
|
|
|
223
284
|
{ requestHash: string },
|
|
224
285
|
null | Id<"organizations">
|
|
225
286
|
>;
|
|
226
|
-
replaceNpmConnection: FunctionReference<
|
|
227
|
-
"mutation",
|
|
228
|
-
"internal",
|
|
229
|
-
{
|
|
230
|
-
keyVersion: number;
|
|
231
|
-
organizationId: Id<"organizations">;
|
|
232
|
-
sealedCredential: string;
|
|
233
|
-
},
|
|
234
|
-
null
|
|
235
|
-
>;
|
|
236
|
-
sealedNpmConnection: FunctionReference<
|
|
237
|
-
"query",
|
|
238
|
-
"internal",
|
|
239
|
-
{ organizationId: Id<"organizations"> },
|
|
240
|
-
null | { keyVersion: number; sealedCredential: string }
|
|
241
|
-
>;
|
|
242
287
|
storeNpmConnectionRequest: FunctionReference<
|
|
243
288
|
"mutation",
|
|
244
289
|
"internal",
|
|
@@ -246,37 +291,12 @@ export declare const internal: {
|
|
|
246
291
|
null
|
|
247
292
|
>;
|
|
248
293
|
};
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
"mutation",
|
|
252
|
-
"internal",
|
|
253
|
-
{ holder: string; packageName: string },
|
|
254
|
-
null | string
|
|
255
|
-
>;
|
|
256
|
-
packageByName: FunctionReference<
|
|
294
|
+
npmSessions: {
|
|
295
|
+
organizationForRepository: FunctionReference<
|
|
257
296
|
"query",
|
|
258
297
|
"internal",
|
|
259
|
-
{
|
|
260
|
-
null |
|
|
261
|
-
codeRepositoryId: string;
|
|
262
|
-
trustedPublishers: Array<{ environment: string; registeredAt: number }>;
|
|
263
|
-
}
|
|
264
|
-
>;
|
|
265
|
-
recordProvisioned: FunctionReference<
|
|
266
|
-
"mutation",
|
|
267
|
-
"internal",
|
|
268
|
-
{
|
|
269
|
-
codeRepositoryId: Id<"codeRepositories">;
|
|
270
|
-
packageName: string;
|
|
271
|
-
registeredPublisherFor?: string;
|
|
272
|
-
},
|
|
273
|
-
null
|
|
274
|
-
>;
|
|
275
|
-
release: FunctionReference<
|
|
276
|
-
"mutation",
|
|
277
|
-
"internal",
|
|
278
|
-
{ holder: string; packageName: string },
|
|
279
|
-
null
|
|
298
|
+
{ repositoryName: string; repositoryOwner: string; sessionToken: string },
|
|
299
|
+
null | string
|
|
280
300
|
>;
|
|
281
301
|
};
|
|
282
302
|
pipelineSessions: {
|
|
@@ -314,6 +334,20 @@ export declare const internal: {
|
|
|
314
334
|
}
|
|
315
335
|
>;
|
|
316
336
|
};
|
|
337
|
+
provision: {
|
|
338
|
+
configuredImplementation: FunctionReference<
|
|
339
|
+
"query",
|
|
340
|
+
"internal",
|
|
341
|
+
{ kind: string; organizationId: Id<"organizations"> },
|
|
342
|
+
{ implementation: null | string; organizationName: string }
|
|
343
|
+
>;
|
|
344
|
+
isPersonSession: FunctionReference<
|
|
345
|
+
"query",
|
|
346
|
+
"internal",
|
|
347
|
+
{ sessionToken: string },
|
|
348
|
+
boolean
|
|
349
|
+
>;
|
|
350
|
+
};
|
|
317
351
|
seed: {
|
|
318
352
|
accountWithPasskey: FunctionReference<
|
|
319
353
|
"mutation",
|
|
@@ -343,6 +377,12 @@ export declare const internal: {
|
|
|
343
377
|
organizationId: Id<"organizations">;
|
|
344
378
|
}
|
|
345
379
|
>;
|
|
380
|
+
resourceImplementation: FunctionReference<
|
|
381
|
+
"mutation",
|
|
382
|
+
"internal",
|
|
383
|
+
{ implementation: string; kind: string; organizationName: string },
|
|
384
|
+
null
|
|
385
|
+
>;
|
|
346
386
|
};
|
|
347
387
|
signInRequests: {
|
|
348
388
|
claimWithToken: FunctionReference<
|
|
@@ -371,32 +411,53 @@ export declare const internal: {
|
|
|
371
411
|
"query",
|
|
372
412
|
"internal",
|
|
373
413
|
{ sessionToken: string },
|
|
374
|
-
null | {
|
|
375
|
-
accountId: Id<"accounts">;
|
|
376
|
-
publicKey: null | string;
|
|
377
|
-
username: string;
|
|
378
|
-
}
|
|
414
|
+
null | { accountId: Id<"accounts">; username: string }
|
|
379
415
|
>;
|
|
380
|
-
|
|
381
|
-
"query",
|
|
382
|
-
"internal",
|
|
383
|
-
{ sessionToken: string },
|
|
384
|
-
null | { sealed: null | { keyVersion: number; sealedPrivateKey: string } }
|
|
385
|
-
>;
|
|
386
|
-
storeKey: FunctionReference<
|
|
416
|
+
insertLegacy: FunctionReference<
|
|
387
417
|
"mutation",
|
|
388
418
|
"internal",
|
|
389
419
|
{
|
|
390
420
|
accountId: Id<"accounts">;
|
|
421
|
+
createdAt: number;
|
|
391
422
|
keyVersion: number;
|
|
392
423
|
publicKey: string;
|
|
393
424
|
sealedPrivateKey: string;
|
|
394
425
|
},
|
|
395
|
-
|
|
426
|
+
null
|
|
427
|
+
>;
|
|
428
|
+
legacyKey: FunctionReference<
|
|
429
|
+
"query",
|
|
430
|
+
"internal",
|
|
431
|
+
{ accountId: Id<"accounts"> },
|
|
432
|
+
null | {
|
|
433
|
+
createdAt: number;
|
|
434
|
+
keyVersion: number;
|
|
435
|
+
publicKey: string;
|
|
436
|
+
sealedPrivateKey: string;
|
|
437
|
+
}
|
|
438
|
+
>;
|
|
439
|
+
migrateToAccountKeys: FunctionReference<
|
|
440
|
+
"mutation",
|
|
441
|
+
"internal",
|
|
442
|
+
{ environment: string; sourceCommitSha: string },
|
|
443
|
+
{ alreadyPresent: number; copied: number }
|
|
444
|
+
>;
|
|
445
|
+
removeLegacy: FunctionReference<
|
|
446
|
+
"mutation",
|
|
447
|
+
"internal",
|
|
448
|
+
{ accountId: Id<"accounts"> },
|
|
449
|
+
null
|
|
450
|
+
>;
|
|
451
|
+
sealedKey: FunctionReference<
|
|
452
|
+
"query",
|
|
453
|
+
"internal",
|
|
454
|
+
{ sessionToken: string },
|
|
455
|
+
null | { sealed: null | { keyVersion: number; sealedPrivateKey: string } }
|
|
396
456
|
>;
|
|
397
457
|
};
|
|
398
458
|
};
|
|
399
459
|
|
|
400
460
|
export declare const components: {
|
|
401
461
|
packageRegistryNpm: import("jive-resource-connector-package-registry-npm/_generated/component.js").ComponentApi<"packageRegistryNpm">;
|
|
462
|
+
accountKeys: import("../components/accountKeys/_generated/component.js").ComponentApi<"accountKeys">;
|
|
402
463
|
};
|
|
@@ -95,36 +95,6 @@ export type DataModel = {
|
|
|
95
95
|
searchIndexes: {};
|
|
96
96
|
vectorIndexes: {};
|
|
97
97
|
};
|
|
98
|
-
connections: {
|
|
99
|
-
document: {
|
|
100
|
-
connector: "npm";
|
|
101
|
-
createdAt: number;
|
|
102
|
-
keyVersion: number;
|
|
103
|
-
organizationId: Id<"organizations">;
|
|
104
|
-
sealedCredential: string;
|
|
105
|
-
_id: Id<"connections">;
|
|
106
|
-
_creationTime: number;
|
|
107
|
-
};
|
|
108
|
-
fieldPaths:
|
|
109
|
-
| "_creationTime"
|
|
110
|
-
| "_id"
|
|
111
|
-
| "connector"
|
|
112
|
-
| "createdAt"
|
|
113
|
-
| "keyVersion"
|
|
114
|
-
| "organizationId"
|
|
115
|
-
| "sealedCredential";
|
|
116
|
-
indexes: {
|
|
117
|
-
by_id: ["_id"];
|
|
118
|
-
by_creation_time: ["_creationTime"];
|
|
119
|
-
by_organization_and_connector: [
|
|
120
|
-
"organizationId",
|
|
121
|
-
"connector",
|
|
122
|
-
"_creationTime",
|
|
123
|
-
];
|
|
124
|
-
};
|
|
125
|
-
searchIndexes: {};
|
|
126
|
-
vectorIndexes: {};
|
|
127
|
-
};
|
|
128
98
|
organizations: {
|
|
129
99
|
document: { name: string; _id: Id<"organizations">; _creationTime: number };
|
|
130
100
|
fieldPaths: "_creationTime" | "_id" | "name";
|
|
@@ -136,32 +106,6 @@ export type DataModel = {
|
|
|
136
106
|
searchIndexes: {};
|
|
137
107
|
vectorIndexes: {};
|
|
138
108
|
};
|
|
139
|
-
packages: {
|
|
140
|
-
document: {
|
|
141
|
-
codeRepositoryId: Id<"codeRepositories">;
|
|
142
|
-
lastProvisionedAt: number;
|
|
143
|
-
name: string;
|
|
144
|
-
registry: "npm";
|
|
145
|
-
trustedPublishers: Array<{ environment: string; registeredAt: number }>;
|
|
146
|
-
_id: Id<"packages">;
|
|
147
|
-
_creationTime: number;
|
|
148
|
-
};
|
|
149
|
-
fieldPaths:
|
|
150
|
-
| "_creationTime"
|
|
151
|
-
| "_id"
|
|
152
|
-
| "codeRepositoryId"
|
|
153
|
-
| "lastProvisionedAt"
|
|
154
|
-
| "name"
|
|
155
|
-
| "registry"
|
|
156
|
-
| "trustedPublishers";
|
|
157
|
-
indexes: {
|
|
158
|
-
by_id: ["_id"];
|
|
159
|
-
by_creation_time: ["_creationTime"];
|
|
160
|
-
by_registry_and_name: ["registry", "name", "_creationTime"];
|
|
161
|
-
};
|
|
162
|
-
searchIndexes: {};
|
|
163
|
-
vectorIndexes: {};
|
|
164
|
-
};
|
|
165
109
|
passkeys: {
|
|
166
110
|
document: {
|
|
167
111
|
accountId: Id<"accounts">;
|
|
@@ -219,26 +163,20 @@ export type DataModel = {
|
|
|
219
163
|
searchIndexes: {};
|
|
220
164
|
vectorIndexes: {};
|
|
221
165
|
};
|
|
222
|
-
|
|
166
|
+
resourceImplementations: {
|
|
223
167
|
document: {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
_id: Id<"provisioningClaims">;
|
|
168
|
+
implementation: string;
|
|
169
|
+
kind: string;
|
|
170
|
+
organizationId: Id<"organizations">;
|
|
171
|
+
_id: Id<"resourceImplementations">;
|
|
229
172
|
_creationTime: number;
|
|
230
173
|
};
|
|
231
174
|
fieldPaths:
|
|
232
|
-
| "
|
|
233
|
-
| "_id"
|
|
234
|
-
| "expiresAt"
|
|
235
|
-
| "holder"
|
|
236
|
-
| "packageName"
|
|
237
|
-
| "registry";
|
|
175
|
+
"_creationTime" | "_id" | "implementation" | "kind" | "organizationId";
|
|
238
176
|
indexes: {
|
|
239
177
|
by_id: ["_id"];
|
|
240
178
|
by_creation_time: ["_creationTime"];
|
|
241
|
-
|
|
179
|
+
by_organization_and_kind: ["organizationId", "kind", "_creationTime"];
|
|
242
180
|
};
|
|
243
181
|
searchIndexes: {};
|
|
244
182
|
vectorIndexes: {};
|
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":"0ffba920f484301400d600bf1ba77dadc9a3e9d0","version":"0.7.0"};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jive-sh/server-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.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",
|