@jive-sh/server-client 0.7.1 → 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.
@@ -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",
@@ -162,15 +182,15 @@ export declare const api: {
162
182
  "query",
163
183
  "public",
164
184
  { requestId: string },
165
- null | { confirmationCode: string; status: "pending" | "approved" }
185
+ null | { status: "pending" | "approved" }
166
186
  >;
167
187
  open: FunctionReference<
168
188
  "action",
169
189
  "public",
170
- {},
190
+ { previousSessionToken?: string },
171
191
  {
192
+ approvalDevices: number;
172
193
  claimSecret: string;
173
- confirmationCode: string;
174
194
  expiresAt: number;
175
195
  loginUrl: string;
176
196
  requestId: string;
@@ -208,6 +228,26 @@ export declare const api: {
208
228
  * ```
209
229
  */
210
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
+ };
211
251
  auth: {
212
252
  createAccount: FunctionReference<
213
253
  "mutation",
@@ -402,8 +442,8 @@ export declare const internal: {
402
442
  store: FunctionReference<
403
443
  "mutation",
404
444
  "internal",
405
- { claimSecretHash: string; confirmationCode: string },
406
- { expiresAt: number; requestId: string }
445
+ { claimSecretHash: string; previousSessionTokenHash?: string },
446
+ { approvalDevices: number; expiresAt: number; requestId: string }
407
447
  >;
408
448
  };
409
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;
@@ -215,7 +240,7 @@ export type DataModel = {
215
240
  approvedAccountId?: Id<"accounts">;
216
241
  claimSecretHash: string;
217
242
  claimedAt?: number;
218
- confirmationCode: string;
243
+ confirmationCode?: string;
219
244
  expiresAt: number;
220
245
  _id: Id<"signInRequests">;
221
246
  _creationTime: number;
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":"37035886d8065a5d97ed6774ec6e0dce8a9a0e61","version":"0.7.1"};
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.7.1",
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",