@krak-stack/auth 0.1.54 → 0.1.56

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.
@@ -61,7 +61,7 @@ export declare const ServerOrganizationsApiGroup: HttpApiGroup.HttpApiGroup<"org
61
61
  readonly name: import("effect/Schema").String;
62
62
  readonly slug: import("effect/Schema").String;
63
63
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
64
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
64
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
65
65
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
66
66
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
67
67
  readonly name: import("effect/Schema").String;
@@ -70,7 +70,48 @@ export declare const ServerOrganizationsApiGroup: HttpApiGroup.HttpApiGroup<"org
70
70
  readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
71
71
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
72
72
  }>>;
73
- }>>;
73
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
74
+ readonly email: import("effect/Schema").NonEmptyString;
75
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
76
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
77
+ readonly label: import("effect/Schema").NonEmptyString;
78
+ }>>;
79
+ }>>>;
80
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
81
+ readonly number: import("effect/Schema").NonEmptyString;
82
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
83
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
84
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
85
+ readonly label: import("effect/Schema").NonEmptyString;
86
+ }>>;
87
+ }>>>;
88
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
89
+ readonly url: import("effect/Schema").NonEmptyString;
90
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
91
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
92
+ readonly label: import("effect/Schema").NonEmptyString;
93
+ }>>;
94
+ }>>>;
95
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
96
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
97
+ readonly url: import("effect/Schema").NonEmptyString;
98
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
99
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
100
+ readonly label: import("effect/Schema").NonEmptyString;
101
+ }>>;
102
+ }>>>;
103
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
104
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
105
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
106
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
107
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
108
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
109
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
110
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
111
+ readonly label: import("effect/Schema").NonEmptyString;
112
+ }>>;
113
+ }>>>;
114
+ }>, import("effect/Schema").Unknown, never, never>>;
74
115
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
75
116
  readonly createdAt: import("effect/Schema").Date;
76
117
  }>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getOrganizationChildren", "GET", "/organizations/:organizationId/children", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
@@ -80,7 +121,7 @@ export declare const ServerOrganizationsApiGroup: HttpApiGroup.HttpApiGroup<"org
80
121
  readonly name: import("effect/Schema").String;
81
122
  readonly slug: import("effect/Schema").String;
82
123
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
83
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
124
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
84
125
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
85
126
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
86
127
  readonly name: import("effect/Schema").String;
@@ -89,7 +130,48 @@ export declare const ServerOrganizationsApiGroup: HttpApiGroup.HttpApiGroup<"org
89
130
  readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
90
131
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
91
132
  }>>;
92
- }>>;
133
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
134
+ readonly email: import("effect/Schema").NonEmptyString;
135
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
136
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
137
+ readonly label: import("effect/Schema").NonEmptyString;
138
+ }>>;
139
+ }>>>;
140
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
141
+ readonly number: import("effect/Schema").NonEmptyString;
142
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
143
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
144
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
145
+ readonly label: import("effect/Schema").NonEmptyString;
146
+ }>>;
147
+ }>>>;
148
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
149
+ readonly url: import("effect/Schema").NonEmptyString;
150
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
151
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
152
+ readonly label: import("effect/Schema").NonEmptyString;
153
+ }>>;
154
+ }>>>;
155
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
156
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
157
+ readonly url: import("effect/Schema").NonEmptyString;
158
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
159
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
160
+ readonly label: import("effect/Schema").NonEmptyString;
161
+ }>>;
162
+ }>>>;
163
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
164
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
165
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
166
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
167
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
168
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
169
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
170
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
171
+ readonly label: import("effect/Schema").NonEmptyString;
172
+ }>>;
173
+ }>>>;
174
+ }>, import("effect/Schema").Unknown, never, never>>;
93
175
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
94
176
  readonly createdAt: import("effect/Schema").Date;
95
177
  }>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listOrganizationMembers", "GET", "/organizations/:organizationId/members", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
@@ -121,7 +203,7 @@ export declare const ServerOrganizationsApiGroup: HttpApiGroup.HttpApiGroup<"org
121
203
  readonly name: import("effect/Schema").String;
122
204
  readonly slug: import("effect/Schema").String;
123
205
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
124
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
206
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
125
207
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
126
208
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
127
209
  readonly name: import("effect/Schema").String;
@@ -130,7 +212,48 @@ export declare const ServerOrganizationsApiGroup: HttpApiGroup.HttpApiGroup<"org
130
212
  readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
131
213
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
132
214
  }>>;
133
- }>>;
215
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
216
+ readonly email: import("effect/Schema").NonEmptyString;
217
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
218
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
219
+ readonly label: import("effect/Schema").NonEmptyString;
220
+ }>>;
221
+ }>>>;
222
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
223
+ readonly number: import("effect/Schema").NonEmptyString;
224
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
225
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
226
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
227
+ readonly label: import("effect/Schema").NonEmptyString;
228
+ }>>;
229
+ }>>>;
230
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
231
+ readonly url: import("effect/Schema").NonEmptyString;
232
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
233
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
234
+ readonly label: import("effect/Schema").NonEmptyString;
235
+ }>>;
236
+ }>>>;
237
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
238
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
239
+ readonly url: import("effect/Schema").NonEmptyString;
240
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
241
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
242
+ readonly label: import("effect/Schema").NonEmptyString;
243
+ }>>;
244
+ }>>>;
245
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
246
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
247
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
248
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
249
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
250
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
251
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
252
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
253
+ readonly label: import("effect/Schema").NonEmptyString;
254
+ }>>;
255
+ }>>>;
256
+ }>, import("effect/Schema").Unknown, never, never>>;
134
257
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
135
258
  readonly createdAt: import("effect/Schema").Date;
136
259
  }>>;
@@ -43,7 +43,7 @@ export declare const ServerOrganizationsResponse: Schema.Struct<{
43
43
  readonly name: Schema.String;
44
44
  readonly slug: Schema.String;
45
45
  readonly logo: Schema.NullOr<Schema.String>;
46
- readonly metadata: Schema.NullOr<Schema.Struct<{
46
+ readonly metadata: Schema.NullOr<Schema.decodeTo<Schema.Struct<{
47
47
  readonly translations: Schema.$Array<Schema.Struct<{
48
48
  readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
49
49
  readonly name: Schema.String;
@@ -52,7 +52,48 @@ export declare const ServerOrganizationsResponse: Schema.Struct<{
52
52
  readonly contactEmail: Schema.optional<Schema.NullOr<Schema.String>>;
53
53
  readonly location: Schema.optional<Schema.NullOr<Schema.String>>;
54
54
  }>>;
55
- }>>;
55
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
56
+ readonly email: Schema.NonEmptyString;
57
+ readonly translations: Schema.$Array<Schema.Struct<{
58
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
59
+ readonly label: Schema.NonEmptyString;
60
+ }>>;
61
+ }>>>;
62
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
63
+ readonly number: Schema.NonEmptyString;
64
+ readonly extension: Schema.optional<Schema.String>;
65
+ readonly translations: Schema.$Array<Schema.Struct<{
66
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
67
+ readonly label: Schema.NonEmptyString;
68
+ }>>;
69
+ }>>>;
70
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
71
+ readonly url: Schema.NonEmptyString;
72
+ readonly translations: Schema.$Array<Schema.Struct<{
73
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
74
+ readonly label: Schema.NonEmptyString;
75
+ }>>;
76
+ }>>>;
77
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
78
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
79
+ readonly url: Schema.NonEmptyString;
80
+ readonly translations: Schema.$Array<Schema.Struct<{
81
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
82
+ readonly label: Schema.NonEmptyString;
83
+ }>>;
84
+ }>>>;
85
+ readonly addresses: Schema.optional<Schema.$Array<Schema.Struct<{
86
+ readonly streetAddress: Schema.optional<Schema.String>;
87
+ readonly locality: Schema.optional<Schema.String>;
88
+ readonly region: Schema.optional<Schema.String>;
89
+ readonly postalCode: Schema.optional<Schema.String>;
90
+ readonly country: Schema.optional<Schema.String>;
91
+ readonly translations: Schema.$Array<Schema.Struct<{
92
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
93
+ readonly label: Schema.NonEmptyString;
94
+ }>>;
95
+ }>>>;
96
+ }>, Schema.Unknown, never, never>>;
56
97
  readonly parentId: Schema.NullOr<Schema.String>;
57
98
  readonly createdAt: Schema.Date;
58
99
  }>>;
@@ -63,7 +104,7 @@ export declare const ServerOrganizationChildrenResponse: Schema.$Array<Schema.St
63
104
  readonly name: Schema.String;
64
105
  readonly slug: Schema.String;
65
106
  readonly logo: Schema.NullOr<Schema.String>;
66
- readonly metadata: Schema.NullOr<Schema.Struct<{
107
+ readonly metadata: Schema.NullOr<Schema.decodeTo<Schema.Struct<{
67
108
  readonly translations: Schema.$Array<Schema.Struct<{
68
109
  readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
69
110
  readonly name: Schema.String;
@@ -72,7 +113,48 @@ export declare const ServerOrganizationChildrenResponse: Schema.$Array<Schema.St
72
113
  readonly contactEmail: Schema.optional<Schema.NullOr<Schema.String>>;
73
114
  readonly location: Schema.optional<Schema.NullOr<Schema.String>>;
74
115
  }>>;
75
- }>>;
116
+ readonly emails: Schema.optional<Schema.$Array<Schema.Struct<{
117
+ readonly email: Schema.NonEmptyString;
118
+ readonly translations: Schema.$Array<Schema.Struct<{
119
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
120
+ readonly label: Schema.NonEmptyString;
121
+ }>>;
122
+ }>>>;
123
+ readonly phones: Schema.optional<Schema.$Array<Schema.Struct<{
124
+ readonly number: Schema.NonEmptyString;
125
+ readonly extension: Schema.optional<Schema.String>;
126
+ readonly translations: Schema.$Array<Schema.Struct<{
127
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
128
+ readonly label: Schema.NonEmptyString;
129
+ }>>;
130
+ }>>>;
131
+ readonly websites: Schema.optional<Schema.$Array<Schema.Struct<{
132
+ readonly url: Schema.NonEmptyString;
133
+ readonly translations: Schema.$Array<Schema.Struct<{
134
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
135
+ readonly label: Schema.NonEmptyString;
136
+ }>>;
137
+ }>>>;
138
+ readonly socials: Schema.optional<Schema.$Array<Schema.Struct<{
139
+ readonly platform: Schema.Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
140
+ readonly url: Schema.NonEmptyString;
141
+ readonly translations: Schema.$Array<Schema.Struct<{
142
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
143
+ readonly label: Schema.NonEmptyString;
144
+ }>>;
145
+ }>>>;
146
+ readonly addresses: Schema.optional<Schema.$Array<Schema.Struct<{
147
+ readonly streetAddress: Schema.optional<Schema.String>;
148
+ readonly locality: Schema.optional<Schema.String>;
149
+ readonly region: Schema.optional<Schema.String>;
150
+ readonly postalCode: Schema.optional<Schema.String>;
151
+ readonly country: Schema.optional<Schema.String>;
152
+ readonly translations: Schema.$Array<Schema.Struct<{
153
+ readonly locale: Schema.Union<readonly [Schema.Literal<"en">, Schema.Literal<"fr">]>;
154
+ readonly label: Schema.NonEmptyString;
155
+ }>>;
156
+ }>>>;
157
+ }>, Schema.Unknown, never, never>>;
76
158
  readonly parentId: Schema.NullOr<Schema.String>;
77
159
  readonly createdAt: Schema.Date;
78
160
  }>>;