@voyantjs/auth-react 0.4.0 → 0.4.2
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/dist/schemas.d.ts +10 -0
- package/dist/schemas.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/schemas.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const workspaceOrganizationSchema: z.ZodObject<{
|
|
|
12
12
|
slug: z.ZodString;
|
|
13
13
|
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
}, z.core.$strip>;
|
|
15
|
+
export type WorkspaceOrganization = z.infer<typeof workspaceOrganizationSchema>;
|
|
15
16
|
export declare const currentWorkspaceSchema: z.ZodObject<{
|
|
16
17
|
organizations: z.ZodArray<z.ZodObject<{
|
|
17
18
|
id: z.ZodString;
|
|
@@ -26,6 +27,7 @@ export declare const currentWorkspaceSchema: z.ZodObject<{
|
|
|
26
27
|
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
28
|
}, z.core.$strip>>;
|
|
28
29
|
}, z.core.$strip>;
|
|
30
|
+
export type CurrentWorkspace = z.infer<typeof currentWorkspaceSchema>;
|
|
29
31
|
export declare const currentUserSchema: z.ZodObject<{
|
|
30
32
|
id: z.ZodString;
|
|
31
33
|
email: z.ZodString;
|
|
@@ -37,17 +39,20 @@ export declare const currentUserSchema: z.ZodObject<{
|
|
|
37
39
|
profilePictureUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
40
|
activeOrganizationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
41
|
}, z.core.$strip>;
|
|
42
|
+
export type CurrentUser = z.infer<typeof currentUserSchema>;
|
|
40
43
|
export declare const authStatusSchema: z.ZodObject<{
|
|
41
44
|
userExists: z.ZodBoolean;
|
|
42
45
|
authenticated: z.ZodBoolean;
|
|
43
46
|
reason: z.ZodOptional<z.ZodString>;
|
|
44
47
|
}, z.core.$strip>;
|
|
48
|
+
export type AuthStatus = z.infer<typeof authStatusSchema>;
|
|
45
49
|
export declare const organizationMemberUserSchema: z.ZodObject<{
|
|
46
50
|
id: z.ZodString;
|
|
47
51
|
email: z.ZodString;
|
|
48
52
|
name: z.ZodString;
|
|
49
53
|
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
54
|
}, z.core.$strip>;
|
|
55
|
+
export type OrganizationMemberUser = z.infer<typeof organizationMemberUserSchema>;
|
|
51
56
|
export declare const organizationMemberSchema: z.ZodObject<{
|
|
52
57
|
id: z.ZodString;
|
|
53
58
|
organizationId: z.ZodString;
|
|
@@ -62,6 +67,7 @@ export declare const organizationMemberSchema: z.ZodObject<{
|
|
|
62
67
|
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
68
|
}, z.core.$strip>;
|
|
64
69
|
}, z.core.$strip>;
|
|
70
|
+
export type OrganizationMember = z.infer<typeof organizationMemberSchema>;
|
|
65
71
|
export declare const organizationMembersListSchema: z.ZodObject<{
|
|
66
72
|
members: z.ZodArray<z.ZodObject<{
|
|
67
73
|
id: z.ZodString;
|
|
@@ -79,6 +85,7 @@ export declare const organizationMembersListSchema: z.ZodObject<{
|
|
|
79
85
|
}, z.core.$strip>>;
|
|
80
86
|
total: z.ZodNumber;
|
|
81
87
|
}, z.core.$strip>;
|
|
88
|
+
export type OrganizationMembersList = z.infer<typeof organizationMembersListSchema>;
|
|
82
89
|
export declare const organizationRemoveMemberSchema: z.ZodObject<{
|
|
83
90
|
member: z.ZodObject<{
|
|
84
91
|
id: z.ZodString;
|
|
@@ -95,6 +102,7 @@ export declare const organizationRemoveMemberSchema: z.ZodObject<{
|
|
|
95
102
|
}, z.core.$strip>;
|
|
96
103
|
}, z.core.$strip>;
|
|
97
104
|
}, z.core.$strip>;
|
|
105
|
+
export type OrganizationRemoveMemberResult = z.infer<typeof organizationRemoveMemberSchema>;
|
|
98
106
|
export declare const organizationInvitationSchema: z.ZodObject<{
|
|
99
107
|
id: z.ZodString;
|
|
100
108
|
organizationId: z.ZodString;
|
|
@@ -111,6 +119,7 @@ export declare const organizationInvitationSchema: z.ZodObject<{
|
|
|
111
119
|
createdAt: z.ZodString;
|
|
112
120
|
teamId: z.ZodOptional<z.ZodString>;
|
|
113
121
|
}, z.core.$strip>;
|
|
122
|
+
export type OrganizationInvitation = z.infer<typeof organizationInvitationSchema>;
|
|
114
123
|
export declare const organizationInvitationsListSchema: z.ZodArray<z.ZodObject<{
|
|
115
124
|
id: z.ZodString;
|
|
116
125
|
organizationId: z.ZodString;
|
|
@@ -127,4 +136,5 @@ export declare const organizationInvitationsListSchema: z.ZodArray<z.ZodObject<{
|
|
|
127
136
|
createdAt: z.ZodString;
|
|
128
137
|
teamId: z.ZodOptional<z.ZodString>;
|
|
129
138
|
}, z.core.$strip>>;
|
|
139
|
+
export type OrganizationInvitationsList = z.infer<typeof organizationInvitationsListSchema>;
|
|
130
140
|
//# sourceMappingURL=schemas.d.ts.map
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,sBAAsB,6DAA6C,CAAA;AAEhF,eAAO,MAAM,kCAAkC;;;;;EAK7C,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;iBAKtC,CAAA;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,sBAAsB,6DAA6C,CAAA;AAEhF,eAAO,MAAM,kCAAkC;;;;;EAK7C,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;iBAKtC,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAA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AA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/auth-react",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react": "^19.0.0",
|
|
36
36
|
"react-dom": "^19.0.0",
|
|
37
37
|
"zod": "^4.0.0",
|
|
38
|
-
"@voyantjs/auth": "0.4.
|
|
38
|
+
"@voyantjs/auth": "0.4.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"typescript": "^6.0.2",
|
|
47
47
|
"vitest": "^4.1.2",
|
|
48
48
|
"zod": "^4.3.6",
|
|
49
|
-
"@voyantjs/auth": "0.4.
|
|
50
|
-
"@voyantjs/react": "0.4.
|
|
49
|
+
"@voyantjs/auth": "0.4.2",
|
|
50
|
+
"@voyantjs/react": "0.4.2",
|
|
51
51
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@voyantjs/react": "0.4.
|
|
54
|
+
"@voyantjs/react": "0.4.2"
|
|
55
55
|
},
|
|
56
56
|
"files": [
|
|
57
57
|
"dist"
|