@qaecy/cue-sdk 0.0.8 → 0.0.10
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/{cue-BIvMahsX.js → cue-CE1bYaia.js} +280 -234
- package/index.d.ts +0 -1
- package/index.js +9 -11
- package/lib/auth.d.ts +11 -0
- package/lib/profile.d.ts +9 -2
- package/lib/sync.d.ts +1 -0
- package/node.d.ts +1 -1
- package/node.js +2 -2
- package/package.json +1 -1
- package/variables.d.ts +2 -0
package/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export { Cue } from './lib/cue';
|
|
2
2
|
export { CueAuth } from './lib/auth';
|
|
3
3
|
export { CueApi } from './lib/api';
|
|
4
|
-
export { CueSyncApi, configureScanWasm } from './lib/sync';
|
|
5
4
|
export { CueProjectSchema } from './lib/schema';
|
|
6
5
|
export { CueProjectEntities } from './lib/entities';
|
|
7
6
|
export { CueProjectDocuments } from './lib/documents';
|
package/index.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import { C as s, a as u, b as C, c, d as i, e as
|
|
1
|
+
import { C as s, a as u, b as C, c as t, d as i, e as c, f as o, g as r, h as l, i as P, j, k as h, R, l as m, s as E } from "./cue-CE1bYaia.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Cue,
|
|
4
4
|
u as CueApi,
|
|
5
5
|
C as CueAuth,
|
|
6
|
-
|
|
6
|
+
t as CueCache,
|
|
7
7
|
i as CuePrivileges,
|
|
8
|
-
|
|
8
|
+
c as CueProfile,
|
|
9
9
|
o as CueProjectDocuments,
|
|
10
10
|
r as CueProjectEntities,
|
|
11
11
|
l as CueProjectSchema,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
S as cueComputed,
|
|
19
|
-
f as staleWhileRevalidate
|
|
12
|
+
P as CueProjectView,
|
|
13
|
+
j as CueProjects,
|
|
14
|
+
h as CueSignal,
|
|
15
|
+
R as REQUIRED_ROLES,
|
|
16
|
+
m as cueComputed,
|
|
17
|
+
E as staleWhileRevalidate
|
|
20
18
|
};
|
package/lib/auth.d.ts
CHANGED
|
@@ -49,6 +49,17 @@ export declare class CueAuth {
|
|
|
49
49
|
signInWithApiKey(cueApiKey: string, projectId?: string): Promise<User>;
|
|
50
50
|
/** Sign out the current user */
|
|
51
51
|
signOut(): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Register a new user by name and email.
|
|
54
|
+
* The backend validates that the email domain belongs to an existing organisation,
|
|
55
|
+
* creates the Firebase Auth account, assigns org membership, and dispatches a
|
|
56
|
+
* "set your password" email to the address provided.
|
|
57
|
+
* Returns the new user's UID and the organisation name on success.
|
|
58
|
+
*/
|
|
59
|
+
signUp(name: string, email: string): Promise<{
|
|
60
|
+
uid: string;
|
|
61
|
+
orgName: string;
|
|
62
|
+
}>;
|
|
52
63
|
/** Currently signed-in user, or null if not authenticated */
|
|
53
64
|
get currentUser(): User | null;
|
|
54
65
|
/** Subscribe to authentication state changes. Returns an unsubscribe function. */
|
package/lib/profile.d.ts
CHANGED
|
@@ -48,6 +48,13 @@ export declare class CueProfile {
|
|
|
48
48
|
name: string;
|
|
49
49
|
email: string;
|
|
50
50
|
}>>;
|
|
51
|
-
/** Record that the current user has accepted the terms of service. */
|
|
52
|
-
acceptTerms(): Promise<void>;
|
|
51
|
+
/** Record that the current user has accepted the terms of service. Sets a `terms` custom claim on the token. */
|
|
52
|
+
acceptTerms(version: string): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Returns the terms version the current user has accepted (e.g. `"v1"`),
|
|
55
|
+
* or `null` if they have not accepted any version yet.
|
|
56
|
+
* Reads from the cached ID token — call after `acceptTerms()` with a
|
|
57
|
+
* force-refreshed token to see the updated value.
|
|
58
|
+
*/
|
|
59
|
+
latestTermsAccepted(): Promise<string | null>;
|
|
53
60
|
}
|
package/lib/sync.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export declare class CueSyncApi {
|
|
|
118
118
|
signal?: AbortSignal;
|
|
119
119
|
onProgress?: (percent: number) => void;
|
|
120
120
|
}): Promise<void>;
|
|
121
|
+
getTierNames(): Promise<Record<string, string>>;
|
|
121
122
|
private _fetchTierNames;
|
|
122
123
|
private _fetchUnitCreditMap;
|
|
123
124
|
private _logProgress;
|
package/node.d.ts
CHANGED
package/node.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as _, B as E,
|
|
2
|
-
import { b as y, c as I, d as L, e as O, f as x, g as D, h as H, i as N, j as W, k as v, R as k,
|
|
1
|
+
import { C as _, B as E, m as l, n as S, o as m, p as P, q as d, r as U, t as B, a as R } from "./cue-CE1bYaia.js";
|
|
2
|
+
import { b as y, c as I, d as L, e as O, f as x, g as D, h as H, i as N, j as W, k as v, R as k, u as q, l as G, s as Q } from "./cue-CE1bYaia.js";
|
|
3
3
|
import { getStorage as s, connectStorageEmulator as o } from "firebase/storage";
|
|
4
4
|
import "firebase/firestore";
|
|
5
5
|
class w extends _ {
|
package/package.json
CHANGED
package/variables.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export declare const BUCKET_PERSISTENCE = "db_persistence_eu_west6";
|
|
|
23
23
|
export declare const ENDPOINT_CONSUMPTION = "/data-views/admin/consumption";
|
|
24
24
|
export declare const ENDPOINT_PROFILE_ORGANIZATIONS = "/data-views/admin/profile/organizations";
|
|
25
25
|
export declare const ENDPOINT_PROFILE_API_KEYS = "/data-views/admin/profile/api-keys";
|
|
26
|
+
export declare const ENDPOINT_COMMANDS_PROFILE_API_KEYS = "/commands/admin/profile/api-keys";
|
|
27
|
+
export declare const ENDPOINT_COMMANDS_PROFILE_TERMS = "/commands/admin/profile/terms";
|
|
26
28
|
export declare const ENDPOINT_ORG_MEMBERS: (orgId: string) => string;
|
|
27
29
|
export declare const ENDPOINT_CREATE_PROJECT = "/commands/admin/project";
|
|
28
30
|
export declare const ENDPOINT_SEARCH = "/assistant/search";
|