@canton-network/core-wallet-auth 0.12.0 → 0.12.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.
@@ -4,36 +4,14 @@ declare const authorizationCodeAuthSchema: z.ZodObject<{
4
4
  audience: z.ZodString;
5
5
  scope: z.ZodString;
6
6
  clientId: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- method: "authorization_code";
9
- audience: string;
10
- scope: string;
11
- clientId: string;
12
- }, {
13
- method: "authorization_code";
14
- audience: string;
15
- scope: string;
16
- clientId: string;
17
- }>;
7
+ }, z.core.$strip>;
18
8
  declare const clientCredentialsAuthSchema: z.ZodObject<{
19
9
  method: z.ZodLiteral<"client_credentials">;
20
10
  audience: z.ZodString;
21
11
  scope: z.ZodString;
22
12
  clientId: z.ZodString;
23
13
  clientSecret: z.ZodString;
24
- }, "strip", z.ZodTypeAny, {
25
- method: "client_credentials";
26
- audience: string;
27
- scope: string;
28
- clientId: string;
29
- clientSecret: string;
30
- }, {
31
- method: "client_credentials";
32
- audience: string;
33
- scope: string;
34
- clientId: string;
35
- clientSecret: string;
36
- }>;
14
+ }, z.core.$strip>;
37
15
  declare const selfSignedAuthSchema: z.ZodObject<{
38
16
  method: z.ZodLiteral<"self_signed">;
39
17
  issuer: z.ZodString;
@@ -41,108 +19,40 @@ declare const selfSignedAuthSchema: z.ZodObject<{
41
19
  scope: z.ZodString;
42
20
  clientId: z.ZodString;
43
21
  clientSecret: z.ZodString;
44
- }, "strip", z.ZodTypeAny, {
45
- method: "self_signed";
46
- audience: string;
47
- scope: string;
48
- clientId: string;
49
- clientSecret: string;
50
- issuer: string;
51
- }, {
52
- method: "self_signed";
53
- audience: string;
54
- scope: string;
55
- clientId: string;
56
- clientSecret: string;
57
- issuer: string;
58
- }>;
59
- export declare const authSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObject<{
22
+ }, z.core.$strip>;
23
+ export declare const authSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
60
24
  method: z.ZodLiteral<"authorization_code">;
61
25
  audience: z.ZodString;
62
26
  scope: z.ZodString;
63
27
  clientId: z.ZodString;
64
- }, "strip", z.ZodTypeAny, {
65
- method: "authorization_code";
66
- audience: string;
67
- scope: string;
68
- clientId: string;
69
- }, {
70
- method: "authorization_code";
71
- audience: string;
72
- scope: string;
73
- clientId: string;
74
- }>, z.ZodObject<{
28
+ }, z.core.$strip>, z.ZodObject<{
75
29
  method: z.ZodLiteral<"client_credentials">;
76
30
  audience: z.ZodString;
77
31
  scope: z.ZodString;
78
32
  clientId: z.ZodString;
79
33
  clientSecret: z.ZodString;
80
- }, "strip", z.ZodTypeAny, {
81
- method: "client_credentials";
82
- audience: string;
83
- scope: string;
84
- clientId: string;
85
- clientSecret: string;
86
- }, {
87
- method: "client_credentials";
88
- audience: string;
89
- scope: string;
90
- clientId: string;
91
- clientSecret: string;
92
- }>, z.ZodObject<{
34
+ }, z.core.$strip>, z.ZodObject<{
93
35
  method: z.ZodLiteral<"self_signed">;
94
36
  issuer: z.ZodString;
95
37
  audience: z.ZodString;
96
38
  scope: z.ZodString;
97
39
  clientId: z.ZodString;
98
40
  clientSecret: z.ZodString;
99
- }, "strip", z.ZodTypeAny, {
100
- method: "self_signed";
101
- audience: string;
102
- scope: string;
103
- clientId: string;
104
- clientSecret: string;
105
- issuer: string;
106
- }, {
107
- method: "self_signed";
108
- audience: string;
109
- scope: string;
110
- clientId: string;
111
- clientSecret: string;
112
- issuer: string;
113
- }>]>;
41
+ }, z.core.$strip>], "method">;
114
42
  export type Auth = z.infer<typeof authSchema>;
115
43
  export type AuthorizationCodeAuth = z.infer<typeof authorizationCodeAuthSchema>;
116
44
  export type ClientCredentialsAuth = z.infer<typeof clientCredentialsAuthSchema>;
117
45
  export type SelfSignedAuth = z.infer<typeof selfSignedAuthSchema>;
118
- export declare const idpSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
46
+ export declare const idpSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
119
47
  id: z.ZodString;
120
48
  type: z.ZodLiteral<"self_signed">;
121
49
  issuer: z.ZodString;
122
- }, "strip", z.ZodTypeAny, {
123
- type: "self_signed";
124
- issuer: string;
125
- id: string;
126
- }, {
127
- type: "self_signed";
128
- issuer: string;
129
- id: string;
130
- }>, z.ZodObject<{
50
+ }, z.core.$strip>, z.ZodObject<{
131
51
  id: z.ZodString;
132
52
  type: z.ZodLiteral<"oauth">;
133
53
  issuer: z.ZodString;
134
54
  configUrl: z.ZodString;
135
- }, "strip", z.ZodTypeAny, {
136
- type: "oauth";
137
- issuer: string;
138
- id: string;
139
- configUrl: string;
140
- }, {
141
- type: "oauth";
142
- issuer: string;
143
- id: string;
144
- configUrl: string;
145
- }>]>;
55
+ }, z.core.$strip>], "type">;
146
56
  export type Idp = z.infer<typeof idpSchema>;
147
57
  export {};
148
58
  //# sourceMappingURL=schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;EAK/B,CAAA;AAEF,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;EAM/B,CAAA;AAEF,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAOxB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIrB,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAC7C,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAC/E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAC/E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYpB,CAAA;AAEF,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,QAAA,MAAM,2BAA2B;;;;;iBAK/B,CAAA;AAEF,QAAA,MAAM,2BAA2B;;;;;;iBAM/B,CAAA;AAEF,QAAA,MAAM,oBAAoB;;;;;;;iBAOxB,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;6BAIrB,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA;AAC7C,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAC/E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAC/E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,eAAO,MAAM,SAAS;;;;;;;;;2BAYpB,CAAA;AAEF,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canton-network/core-wallet-auth",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "type": "module",
5
5
  "description": "Provides authentication middleware and user management for the Wallet Gateway",
6
6
  "repository": "github:hyperledger-labs/splice-wallet-kernel",
@@ -37,10 +37,10 @@
37
37
  "typescript": "^5.8.3"
38
38
  },
39
39
  "dependencies": {
40
- "@canton-network/core-rpc-errors": "^0.8.0",
41
- "@canton-network/core-types": "^0.11.0",
40
+ "@canton-network/core-rpc-errors": "^0.8.1",
41
+ "@canton-network/core-types": "^0.11.1",
42
42
  "jose": "^5.10.0",
43
- "zod": "^3.25.64"
43
+ "zod": "^4.1.12"
44
44
  },
45
45
  "files": [
46
46
  "dist/**"