@jive-sh/server-client 0.8.0 → 0.9.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 +44 -3
- package/_generated/dataModel.d.ts +25 -0
- package/index.js +1 -1
- package/package.json +1 -1
package/_generated/api.d.ts
CHANGED
|
@@ -32,6 +32,26 @@ export declare const api: {
|
|
|
32
32
|
}
|
|
33
33
|
>;
|
|
34
34
|
};
|
|
35
|
+
approvalDevices: {
|
|
36
|
+
disable: FunctionReference<
|
|
37
|
+
"mutation",
|
|
38
|
+
"public",
|
|
39
|
+
{ expoPushToken: string; sessionToken: string },
|
|
40
|
+
null
|
|
41
|
+
>;
|
|
42
|
+
enable: FunctionReference<
|
|
43
|
+
"mutation",
|
|
44
|
+
"public",
|
|
45
|
+
{ expoPushToken: string; label: string; sessionToken: string },
|
|
46
|
+
null
|
|
47
|
+
>;
|
|
48
|
+
list: FunctionReference<
|
|
49
|
+
"query",
|
|
50
|
+
"public",
|
|
51
|
+
{ sessionToken: string },
|
|
52
|
+
null | Array<{ createdAt: number; expoPushToken: string; label: string }>
|
|
53
|
+
>;
|
|
54
|
+
};
|
|
35
55
|
auth: {
|
|
36
56
|
register: FunctionReference<
|
|
37
57
|
"action",
|
|
@@ -167,8 +187,9 @@ export declare const api: {
|
|
|
167
187
|
open: FunctionReference<
|
|
168
188
|
"action",
|
|
169
189
|
"public",
|
|
170
|
-
{},
|
|
190
|
+
{ previousSessionToken?: string },
|
|
171
191
|
{
|
|
192
|
+
approvalDevices: number;
|
|
172
193
|
claimSecret: string;
|
|
173
194
|
expiresAt: number;
|
|
174
195
|
loginUrl: string;
|
|
@@ -207,6 +228,26 @@ export declare const api: {
|
|
|
207
228
|
* ```
|
|
208
229
|
*/
|
|
209
230
|
export declare const internal: {
|
|
231
|
+
approvalDevices: {
|
|
232
|
+
forgetUnregistered: FunctionReference<
|
|
233
|
+
"mutation",
|
|
234
|
+
"internal",
|
|
235
|
+
{ expoPushTokens: Array<string> },
|
|
236
|
+
null
|
|
237
|
+
>;
|
|
238
|
+
pushSignInRequest: FunctionReference<
|
|
239
|
+
"action",
|
|
240
|
+
"internal",
|
|
241
|
+
{ accountId: Id<"accounts">; expiresAt: number; requestId: string },
|
|
242
|
+
null
|
|
243
|
+
>;
|
|
244
|
+
pushTargets: FunctionReference<
|
|
245
|
+
"query",
|
|
246
|
+
"internal",
|
|
247
|
+
{ accountId: Id<"accounts"> },
|
|
248
|
+
{ expoPushTokens: Array<string>; username: string }
|
|
249
|
+
>;
|
|
250
|
+
};
|
|
210
251
|
auth: {
|
|
211
252
|
createAccount: FunctionReference<
|
|
212
253
|
"mutation",
|
|
@@ -401,8 +442,8 @@ export declare const internal: {
|
|
|
401
442
|
store: FunctionReference<
|
|
402
443
|
"mutation",
|
|
403
444
|
"internal",
|
|
404
|
-
{ claimSecretHash: string },
|
|
405
|
-
{ expiresAt: number; requestId: string }
|
|
445
|
+
{ claimSecretHash: string; previousSessionTokenHash?: string },
|
|
446
|
+
{ approvalDevices: number; expiresAt: number; requestId: string }
|
|
406
447
|
>;
|
|
407
448
|
};
|
|
408
449
|
ssh: {
|
|
@@ -45,6 +45,31 @@ export type DataModel = {
|
|
|
45
45
|
searchIndexes: {};
|
|
46
46
|
vectorIndexes: {};
|
|
47
47
|
};
|
|
48
|
+
approvalDevices: {
|
|
49
|
+
document: {
|
|
50
|
+
accountId: Id<"accounts">;
|
|
51
|
+
createdAt: number;
|
|
52
|
+
expoPushToken: string;
|
|
53
|
+
label: string;
|
|
54
|
+
_id: Id<"approvalDevices">;
|
|
55
|
+
_creationTime: number;
|
|
56
|
+
};
|
|
57
|
+
fieldPaths:
|
|
58
|
+
| "_creationTime"
|
|
59
|
+
| "_id"
|
|
60
|
+
| "accountId"
|
|
61
|
+
| "createdAt"
|
|
62
|
+
| "expoPushToken"
|
|
63
|
+
| "label";
|
|
64
|
+
indexes: {
|
|
65
|
+
by_id: ["_id"];
|
|
66
|
+
by_creation_time: ["_creationTime"];
|
|
67
|
+
by_account: ["accountId", "_creationTime"];
|
|
68
|
+
by_expo_push_token: ["expoPushToken", "_creationTime"];
|
|
69
|
+
};
|
|
70
|
+
searchIndexes: {};
|
|
71
|
+
vectorIndexes: {};
|
|
72
|
+
};
|
|
48
73
|
codeRepositories: {
|
|
49
74
|
document: {
|
|
50
75
|
name: 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":"fecd2fdf50649a28fd8e087c32ab3a23119ce555","version":"0.9.0"};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jive-sh/server-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.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",
|