@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.
package/dist/service.d.ts CHANGED
@@ -118,19 +118,62 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
118
118
  readonly key: import("effect/Schema").String;
119
119
  }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
120
120
  readonly getOrganizationPublicProfile: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
121
- readonly query: import("effect/Schema").Struct.ReadonlySide<{
122
- readonly organizationId: import("effect/Schema").String;
123
- }, "Type">;
121
+ readonly query: {
122
+ readonly organizationId: string;
123
+ readonly locale?: "en" | "fr" | undefined;
124
+ };
124
125
  readonly responseMode?: Mode;
125
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
126
- readonly id: import("effect/Schema").String;
127
- readonly name: import("effect/Schema").String;
128
- readonly slug: import("effect/Schema").String;
129
- readonly displayName: import("effect/Schema").String;
130
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
131
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
132
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
133
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
126
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
127
+ readonly id: string;
128
+ readonly name: string;
129
+ readonly slug: string;
130
+ readonly displayName: string;
131
+ readonly contactEmail: string | null;
132
+ readonly emails?: readonly import("effect/Schema").Struct.ReadonlySide<{
133
+ readonly email: import("effect/Schema").NonEmptyString;
134
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
135
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
136
+ readonly label: import("effect/Schema").NonEmptyString;
137
+ }>>;
138
+ }, "Type">[] | undefined;
139
+ readonly phones?: readonly {
140
+ readonly number: string;
141
+ readonly extension?: string | undefined;
142
+ readonly translations: readonly import("effect/Schema").Struct.ReadonlySide<{
143
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
144
+ readonly label: import("effect/Schema").NonEmptyString;
145
+ }, "Type">[];
146
+ }[] | undefined;
147
+ readonly websites?: readonly import("effect/Schema").Struct.ReadonlySide<{
148
+ readonly url: import("effect/Schema").NonEmptyString;
149
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
150
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
151
+ readonly label: import("effect/Schema").NonEmptyString;
152
+ }>>;
153
+ }, "Type">[] | undefined;
154
+ readonly socials?: readonly import("effect/Schema").Struct.ReadonlySide<{
155
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
156
+ readonly url: import("effect/Schema").NonEmptyString;
157
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
158
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
159
+ readonly label: import("effect/Schema").NonEmptyString;
160
+ }>>;
161
+ }, "Type">[] | undefined;
162
+ readonly addresses?: readonly {
163
+ readonly streetAddress?: string | undefined;
164
+ readonly locality?: string | undefined;
165
+ readonly region?: string | undefined;
166
+ readonly postalCode?: string | undefined;
167
+ readonly country?: string | undefined;
168
+ readonly translations: readonly import("effect/Schema").Struct.ReadonlySide<{
169
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
170
+ readonly label: import("effect/Schema").NonEmptyString;
171
+ }, "Type">[];
172
+ readonly formatted: string;
173
+ }[] | undefined;
174
+ readonly logo: string | null;
175
+ readonly icon: string | null;
176
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
134
177
  readonly getProjectPublicConfig: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
135
178
  readonly query: {
136
179
  readonly projectId?: string | undefined;
@@ -345,7 +388,7 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
345
388
  readonly name: import("effect/Schema").String;
346
389
  readonly slug: import("effect/Schema").String;
347
390
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
348
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
391
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
349
392
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
350
393
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
351
394
  readonly name: import("effect/Schema").String;
@@ -354,7 +397,48 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
354
397
  readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
355
398
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
356
399
  }>>;
357
- }>>;
400
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
401
+ readonly email: import("effect/Schema").NonEmptyString;
402
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
403
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
404
+ readonly label: import("effect/Schema").NonEmptyString;
405
+ }>>;
406
+ }>>>;
407
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
408
+ readonly number: import("effect/Schema").NonEmptyString;
409
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
410
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
411
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
412
+ readonly label: import("effect/Schema").NonEmptyString;
413
+ }>>;
414
+ }>>>;
415
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
416
+ readonly url: import("effect/Schema").NonEmptyString;
417
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
418
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
419
+ readonly label: import("effect/Schema").NonEmptyString;
420
+ }>>;
421
+ }>>>;
422
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
423
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
424
+ readonly url: import("effect/Schema").NonEmptyString;
425
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
426
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
427
+ readonly label: import("effect/Schema").NonEmptyString;
428
+ }>>;
429
+ }>>>;
430
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
431
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
432
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
433
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
434
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
435
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
436
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
437
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
438
+ readonly label: import("effect/Schema").NonEmptyString;
439
+ }>>;
440
+ }>>>;
441
+ }>, import("effect/Schema").Unknown, never, never>>;
358
442
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
359
443
  readonly createdAt: import("effect/Schema").Date;
360
444
  }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
@@ -368,7 +452,7 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
368
452
  readonly name: import("effect/Schema").String;
369
453
  readonly slug: import("effect/Schema").String;
370
454
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
371
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
455
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
372
456
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
373
457
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
374
458
  readonly name: import("effect/Schema").String;
@@ -377,7 +461,48 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
377
461
  readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
378
462
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
379
463
  }>>;
380
- }>>;
464
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
465
+ readonly email: import("effect/Schema").NonEmptyString;
466
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
467
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
468
+ readonly label: import("effect/Schema").NonEmptyString;
469
+ }>>;
470
+ }>>>;
471
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
472
+ readonly number: import("effect/Schema").NonEmptyString;
473
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
474
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
475
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
476
+ readonly label: import("effect/Schema").NonEmptyString;
477
+ }>>;
478
+ }>>>;
479
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
480
+ readonly url: import("effect/Schema").NonEmptyString;
481
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
482
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
483
+ readonly label: import("effect/Schema").NonEmptyString;
484
+ }>>;
485
+ }>>>;
486
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
487
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
488
+ readonly url: import("effect/Schema").NonEmptyString;
489
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
490
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
491
+ readonly label: import("effect/Schema").NonEmptyString;
492
+ }>>;
493
+ }>>>;
494
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
495
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
496
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
497
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
498
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
499
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
500
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
501
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
502
+ readonly label: import("effect/Schema").NonEmptyString;
503
+ }>>;
504
+ }>>>;
505
+ }>, import("effect/Schema").Unknown, never, never>>;
381
506
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
382
507
  readonly createdAt: import("effect/Schema").Date;
383
508
  }, "Type">[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
@@ -417,7 +542,7 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
417
542
  readonly name: import("effect/Schema").String;
418
543
  readonly slug: import("effect/Schema").String;
419
544
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
420
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
545
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
421
546
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
422
547
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
423
548
  readonly name: import("effect/Schema").String;
@@ -426,7 +551,48 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
426
551
  readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
427
552
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
428
553
  }>>;
429
- }>>;
554
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
555
+ readonly email: import("effect/Schema").NonEmptyString;
556
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
557
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
558
+ readonly label: import("effect/Schema").NonEmptyString;
559
+ }>>;
560
+ }>>>;
561
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
562
+ readonly number: import("effect/Schema").NonEmptyString;
563
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
564
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
565
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
566
+ readonly label: import("effect/Schema").NonEmptyString;
567
+ }>>;
568
+ }>>>;
569
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
570
+ readonly url: import("effect/Schema").NonEmptyString;
571
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
572
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
573
+ readonly label: import("effect/Schema").NonEmptyString;
574
+ }>>;
575
+ }>>>;
576
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
577
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
578
+ readonly url: import("effect/Schema").NonEmptyString;
579
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
580
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
581
+ readonly label: import("effect/Schema").NonEmptyString;
582
+ }>>;
583
+ }>>>;
584
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
585
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
586
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
587
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
588
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
589
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
590
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
591
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
592
+ readonly label: import("effect/Schema").NonEmptyString;
593
+ }>>;
594
+ }>>>;
595
+ }>, import("effect/Schema").Unknown, never, never>>;
430
596
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
431
597
  readonly createdAt: import("effect/Schema").Date;
432
598
  }>>;
@@ -569,19 +735,62 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
569
735
  readonly key: import("effect/Schema").String;
570
736
  }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("./extra/schema").ExtraBadRequest | HttpApiError.Forbidden | HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
571
737
  readonly getOrganizationPublicProfile: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
572
- readonly query: import("effect/Schema").Struct.ReadonlySide<{
573
- readonly organizationId: import("effect/Schema").String;
574
- }, "Type">;
738
+ readonly query: {
739
+ readonly organizationId: string;
740
+ readonly locale?: "en" | "fr" | undefined;
741
+ };
575
742
  readonly responseMode?: Mode;
576
- }) => Effect.Effect<HttpApiClient.Client.Response<import("effect/Schema").Struct.ReadonlySide<{
577
- readonly id: import("effect/Schema").String;
578
- readonly name: import("effect/Schema").String;
579
- readonly slug: import("effect/Schema").String;
580
- readonly displayName: import("effect/Schema").String;
581
- readonly contactEmail: import("effect/Schema").NullOr<import("effect/Schema").String>;
582
- readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
583
- readonly icon: import("effect/Schema").NullOr<import("effect/Schema").String>;
584
- }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
743
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
744
+ readonly id: string;
745
+ readonly name: string;
746
+ readonly slug: string;
747
+ readonly displayName: string;
748
+ readonly contactEmail: string | null;
749
+ readonly emails?: readonly import("effect/Schema").Struct.ReadonlySide<{
750
+ readonly email: import("effect/Schema").NonEmptyString;
751
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
752
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
753
+ readonly label: import("effect/Schema").NonEmptyString;
754
+ }>>;
755
+ }, "Type">[] | undefined;
756
+ readonly phones?: readonly {
757
+ readonly number: string;
758
+ readonly extension?: string | undefined;
759
+ readonly translations: readonly import("effect/Schema").Struct.ReadonlySide<{
760
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
761
+ readonly label: import("effect/Schema").NonEmptyString;
762
+ }, "Type">[];
763
+ }[] | undefined;
764
+ readonly websites?: readonly import("effect/Schema").Struct.ReadonlySide<{
765
+ readonly url: import("effect/Schema").NonEmptyString;
766
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
767
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
768
+ readonly label: import("effect/Schema").NonEmptyString;
769
+ }>>;
770
+ }, "Type">[] | undefined;
771
+ readonly socials?: readonly import("effect/Schema").Struct.ReadonlySide<{
772
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
773
+ readonly url: import("effect/Schema").NonEmptyString;
774
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
775
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
776
+ readonly label: import("effect/Schema").NonEmptyString;
777
+ }>>;
778
+ }, "Type">[] | undefined;
779
+ readonly addresses?: readonly {
780
+ readonly streetAddress?: string | undefined;
781
+ readonly locality?: string | undefined;
782
+ readonly region?: string | undefined;
783
+ readonly postalCode?: string | undefined;
784
+ readonly country?: string | undefined;
785
+ readonly translations: readonly import("effect/Schema").Struct.ReadonlySide<{
786
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
787
+ readonly label: import("effect/Schema").NonEmptyString;
788
+ }, "Type">[];
789
+ readonly formatted: string;
790
+ }[] | undefined;
791
+ readonly logo: string | null;
792
+ readonly icon: string | null;
793
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError), [Mode] extends ["response-only"] ? never : never>;
585
794
  readonly getProjectPublicConfig: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
586
795
  readonly query: {
587
796
  readonly projectId?: string | undefined;
@@ -796,7 +1005,7 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
796
1005
  readonly name: import("effect/Schema").String;
797
1006
  readonly slug: import("effect/Schema").String;
798
1007
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
799
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1008
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
800
1009
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
801
1010
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
802
1011
  readonly name: import("effect/Schema").String;
@@ -805,7 +1014,48 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
805
1014
  readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
806
1015
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
807
1016
  }>>;
808
- }>>;
1017
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1018
+ readonly email: import("effect/Schema").NonEmptyString;
1019
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1020
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1021
+ readonly label: import("effect/Schema").NonEmptyString;
1022
+ }>>;
1023
+ }>>>;
1024
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1025
+ readonly number: import("effect/Schema").NonEmptyString;
1026
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1027
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1028
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1029
+ readonly label: import("effect/Schema").NonEmptyString;
1030
+ }>>;
1031
+ }>>>;
1032
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1033
+ readonly url: import("effect/Schema").NonEmptyString;
1034
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1035
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1036
+ readonly label: import("effect/Schema").NonEmptyString;
1037
+ }>>;
1038
+ }>>>;
1039
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1040
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1041
+ readonly url: import("effect/Schema").NonEmptyString;
1042
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1043
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1044
+ readonly label: import("effect/Schema").NonEmptyString;
1045
+ }>>;
1046
+ }>>>;
1047
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1048
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1049
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1050
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1051
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1052
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1053
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1054
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1055
+ readonly label: import("effect/Schema").NonEmptyString;
1056
+ }>>;
1057
+ }>>>;
1058
+ }>, import("effect/Schema").Unknown, never, never>>;
809
1059
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
810
1060
  readonly createdAt: import("effect/Schema").Date;
811
1061
  }, "Type">, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | HttpApiError.NotFound | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
@@ -819,7 +1069,7 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
819
1069
  readonly name: import("effect/Schema").String;
820
1070
  readonly slug: import("effect/Schema").String;
821
1071
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
822
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1072
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
823
1073
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
824
1074
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
825
1075
  readonly name: import("effect/Schema").String;
@@ -828,7 +1078,48 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
828
1078
  readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
829
1079
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
830
1080
  }>>;
831
- }>>;
1081
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1082
+ readonly email: import("effect/Schema").NonEmptyString;
1083
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1084
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1085
+ readonly label: import("effect/Schema").NonEmptyString;
1086
+ }>>;
1087
+ }>>>;
1088
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1089
+ readonly number: import("effect/Schema").NonEmptyString;
1090
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1091
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1092
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1093
+ readonly label: import("effect/Schema").NonEmptyString;
1094
+ }>>;
1095
+ }>>>;
1096
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1097
+ readonly url: import("effect/Schema").NonEmptyString;
1098
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1099
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1100
+ readonly label: import("effect/Schema").NonEmptyString;
1101
+ }>>;
1102
+ }>>>;
1103
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1104
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1105
+ readonly url: import("effect/Schema").NonEmptyString;
1106
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1107
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1108
+ readonly label: import("effect/Schema").NonEmptyString;
1109
+ }>>;
1110
+ }>>>;
1111
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1112
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1113
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1114
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1115
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1116
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1117
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1118
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1119
+ readonly label: import("effect/Schema").NonEmptyString;
1120
+ }>>;
1121
+ }>>>;
1122
+ }>, import("effect/Schema").Unknown, never, never>>;
832
1123
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
833
1124
  readonly createdAt: import("effect/Schema").Date;
834
1125
  }, "Type">[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : HttpApiError.InternalServerError | import("effect/Schema").SchemaError | HttpApiError.Unauthorized), [Mode] extends ["response-only"] ? never : never>;
@@ -868,7 +1159,7 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
868
1159
  readonly name: import("effect/Schema").String;
869
1160
  readonly slug: import("effect/Schema").String;
870
1161
  readonly logo: import("effect/Schema").NullOr<import("effect/Schema").String>;
871
- readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
1162
+ readonly metadata: import("effect/Schema").NullOr<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
872
1163
  readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
873
1164
  readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
874
1165
  readonly name: import("effect/Schema").String;
@@ -877,7 +1168,48 @@ declare const AuthService_base: Context.ServiceClass<AuthService, "@krak-stack/a
877
1168
  readonly contactEmail: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
878
1169
  readonly location: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
879
1170
  }>>;
880
- }>>;
1171
+ readonly emails: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1172
+ readonly email: import("effect/Schema").NonEmptyString;
1173
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1174
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1175
+ readonly label: import("effect/Schema").NonEmptyString;
1176
+ }>>;
1177
+ }>>>;
1178
+ readonly phones: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1179
+ readonly number: import("effect/Schema").NonEmptyString;
1180
+ readonly extension: import("effect/Schema").optional<import("effect/Schema").String>;
1181
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1182
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1183
+ readonly label: import("effect/Schema").NonEmptyString;
1184
+ }>>;
1185
+ }>>>;
1186
+ readonly websites: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1187
+ readonly url: import("effect/Schema").NonEmptyString;
1188
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1189
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1190
+ readonly label: import("effect/Schema").NonEmptyString;
1191
+ }>>;
1192
+ }>>>;
1193
+ readonly socials: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1194
+ readonly platform: import("effect/Schema").Literals<readonly ["facebook", "github", "instagram", "linkedin", "tiktok", "x", "youtube"]>;
1195
+ readonly url: import("effect/Schema").NonEmptyString;
1196
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1197
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1198
+ readonly label: import("effect/Schema").NonEmptyString;
1199
+ }>>;
1200
+ }>>>;
1201
+ readonly addresses: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
1202
+ readonly streetAddress: import("effect/Schema").optional<import("effect/Schema").String>;
1203
+ readonly locality: import("effect/Schema").optional<import("effect/Schema").String>;
1204
+ readonly region: import("effect/Schema").optional<import("effect/Schema").String>;
1205
+ readonly postalCode: import("effect/Schema").optional<import("effect/Schema").String>;
1206
+ readonly country: import("effect/Schema").optional<import("effect/Schema").String>;
1207
+ readonly translations: import("effect/Schema").$Array<import("effect/Schema").Struct<{
1208
+ readonly locale: import("effect/Schema").Union<readonly [import("effect/Schema").Literal<"en">, import("effect/Schema").Literal<"fr">]>;
1209
+ readonly label: import("effect/Schema").NonEmptyString;
1210
+ }>>;
1211
+ }>>>;
1212
+ }>, import("effect/Schema").Unknown, never, never>>;
881
1213
  readonly parentId: import("effect/Schema").NullOr<import("effect/Schema").String>;
882
1214
  readonly createdAt: import("effect/Schema").Date;
883
1215
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krak-stack/auth",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
4
4
  "description": "Effect HttpApi clients and schemas for KrakStack Auth.",
5
5
  "license": "MIT",
6
6
  "files": [