@spendgraph/sdk 0.5.0 → 0.5.1
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.
|
@@ -33,9 +33,23 @@ export declare class Projects {
|
|
|
33
33
|
removeMember(projectId: string, userId: string): Promise<{
|
|
34
34
|
ok: boolean;
|
|
35
35
|
}>;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Invites by GitHub login, or mints a shareable link when none is given.
|
|
38
|
+
*
|
|
39
|
+
* Typed rather than `Record<string, unknown>`: the route reads `githubLogin`
|
|
40
|
+
* and nothing else, so an untyped body let a caller send `email`, have it
|
|
41
|
+
* silently dropped, and get a link invite it never asked for under a 200.
|
|
42
|
+
*/
|
|
43
|
+
invite(projectId: string, body: {
|
|
44
|
+
githubLogin?: string;
|
|
45
|
+
role?: "owner" | "member";
|
|
46
|
+
}): Promise<{
|
|
47
|
+
added: boolean;
|
|
48
|
+
githubLogin: string | null;
|
|
49
|
+
role: "owner" | "member";
|
|
50
|
+
expiresAt?: string;
|
|
51
|
+
/** Present only for a link invite, and only this once. */
|
|
52
|
+
token?: string | null;
|
|
39
53
|
}>;
|
|
40
54
|
revokeInvite(projectId: string, inviteId: string): Promise<{
|
|
41
55
|
ok: boolean;
|