@krak-stack/auth 0.1.23 → 0.1.25

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/client.d.ts CHANGED
@@ -7,6 +7,88 @@ export type AuthClientLayerOptions = Partial<ClientConfig> & {
7
7
  };
8
8
  declare const AuthApiClients_base: Context.ServiceClass<AuthApiClients, "@krak-stack/auth/AuthApiClients", {
9
9
  server: {
10
+ domains: {
11
+ create: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
12
+ readonly payload: {
13
+ readonly hostname: string;
14
+ readonly rootHostname: string;
15
+ readonly projectId?: string | null | undefined;
16
+ readonly organizationId?: string | null | undefined;
17
+ readonly managed?: boolean | undefined;
18
+ };
19
+ readonly responseMode?: Mode;
20
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
21
+ readonly id: string;
22
+ readonly hostname: string;
23
+ readonly rootHostname: string;
24
+ readonly projectId: string | null;
25
+ readonly organizationId: string | null;
26
+ readonly hostnameId: string;
27
+ readonly active: boolean;
28
+ readonly createdAt: Date;
29
+ readonly updatedAt: Date;
30
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
31
+ get: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
32
+ readonly params: {
33
+ readonly id: string;
34
+ };
35
+ readonly responseMode?: Mode;
36
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
37
+ readonly id: string;
38
+ readonly hostname: string;
39
+ readonly rootHostname: string;
40
+ readonly projectId: string | null;
41
+ readonly organizationId: string | null;
42
+ readonly hostnameId: string;
43
+ readonly active: boolean;
44
+ readonly createdAt: Date;
45
+ readonly updatedAt: Date;
46
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
47
+ getByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
48
+ readonly params: {
49
+ readonly hostname: string;
50
+ };
51
+ readonly responseMode?: Mode;
52
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
53
+ readonly id: string;
54
+ readonly hostname: string;
55
+ readonly rootHostname: string;
56
+ readonly projectId: string | null;
57
+ readonly organizationId: string | null;
58
+ readonly hostnameId: string;
59
+ readonly active: boolean;
60
+ readonly createdAt: Date;
61
+ readonly updatedAt: Date;
62
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
63
+ records: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
64
+ readonly params: {
65
+ readonly id: string;
66
+ };
67
+ readonly responseMode?: Mode;
68
+ }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
69
+ readonly required: boolean;
70
+ readonly status: string;
71
+ readonly type: string;
72
+ readonly name: string;
73
+ readonly value: string;
74
+ }[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
75
+ delete: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
76
+ readonly params: {
77
+ readonly id: string;
78
+ };
79
+ readonly responseMode?: Mode;
80
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
81
+ readonly id: string;
82
+ readonly hostname: string;
83
+ readonly rootHostname: string;
84
+ readonly projectId: string | null;
85
+ readonly organizationId: string | null;
86
+ readonly hostnameId: string;
87
+ readonly active: boolean;
88
+ readonly createdAt: Date;
89
+ readonly updatedAt: Date;
90
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
91
+ };
10
92
  listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
11
93
  readonly query: {
12
94
  readonly ids?: string | undefined;
@@ -260,6 +342,88 @@ declare const AuthApiClients_base: Context.ServiceClass<AuthApiClients, "@krak-s
260
342
  }> & {
261
343
  readonly make: Effect.Effect<{
262
344
  server: {
345
+ domains: {
346
+ create: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
347
+ readonly payload: {
348
+ readonly hostname: string;
349
+ readonly rootHostname: string;
350
+ readonly projectId?: string | null | undefined;
351
+ readonly organizationId?: string | null | undefined;
352
+ readonly managed?: boolean | undefined;
353
+ };
354
+ readonly responseMode?: Mode;
355
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
356
+ readonly id: string;
357
+ readonly hostname: string;
358
+ readonly rootHostname: string;
359
+ readonly projectId: string | null;
360
+ readonly organizationId: string | null;
361
+ readonly hostnameId: string;
362
+ readonly active: boolean;
363
+ readonly createdAt: Date;
364
+ readonly updatedAt: Date;
365
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
366
+ get: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
367
+ readonly params: {
368
+ readonly id: string;
369
+ };
370
+ readonly responseMode?: Mode;
371
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
372
+ readonly id: string;
373
+ readonly hostname: string;
374
+ readonly rootHostname: string;
375
+ readonly projectId: string | null;
376
+ readonly organizationId: string | null;
377
+ readonly hostnameId: string;
378
+ readonly active: boolean;
379
+ readonly createdAt: Date;
380
+ readonly updatedAt: Date;
381
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
382
+ getByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
383
+ readonly params: {
384
+ readonly hostname: string;
385
+ };
386
+ readonly responseMode?: Mode;
387
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
388
+ readonly id: string;
389
+ readonly hostname: string;
390
+ readonly rootHostname: string;
391
+ readonly projectId: string | null;
392
+ readonly organizationId: string | null;
393
+ readonly hostnameId: string;
394
+ readonly active: boolean;
395
+ readonly createdAt: Date;
396
+ readonly updatedAt: Date;
397
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
398
+ records: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
399
+ readonly params: {
400
+ readonly id: string;
401
+ };
402
+ readonly responseMode?: Mode;
403
+ }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
404
+ readonly required: boolean;
405
+ readonly status: string;
406
+ readonly type: string;
407
+ readonly name: string;
408
+ readonly value: string;
409
+ }[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
410
+ delete: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
411
+ readonly params: {
412
+ readonly id: string;
413
+ };
414
+ readonly responseMode?: Mode;
415
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
416
+ readonly id: string;
417
+ readonly hostname: string;
418
+ readonly rootHostname: string;
419
+ readonly projectId: string | null;
420
+ readonly organizationId: string | null;
421
+ readonly hostnameId: string;
422
+ readonly active: boolean;
423
+ readonly createdAt: Date;
424
+ readonly updatedAt: Date;
425
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
426
+ };
263
427
  listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
264
428
  readonly query: {
265
429
  readonly ids?: string | undefined;
@@ -542,6 +706,88 @@ declare const AuthClient_base: Context.ServiceClass<AuthClient, "@krak-stack/aut
542
706
  };
543
707
  } | null, unknown, never>;
544
708
  server: {
709
+ domains: {
710
+ create: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
711
+ readonly payload: {
712
+ readonly hostname: string;
713
+ readonly rootHostname: string;
714
+ readonly projectId?: string | null | undefined;
715
+ readonly organizationId?: string | null | undefined;
716
+ readonly managed?: boolean | undefined;
717
+ };
718
+ readonly responseMode?: Mode;
719
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
720
+ readonly id: string;
721
+ readonly hostname: string;
722
+ readonly rootHostname: string;
723
+ readonly projectId: string | null;
724
+ readonly organizationId: string | null;
725
+ readonly hostnameId: string;
726
+ readonly active: boolean;
727
+ readonly createdAt: Date;
728
+ readonly updatedAt: Date;
729
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
730
+ get: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
731
+ readonly params: {
732
+ readonly id: string;
733
+ };
734
+ readonly responseMode?: Mode;
735
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
736
+ readonly id: string;
737
+ readonly hostname: string;
738
+ readonly rootHostname: string;
739
+ readonly projectId: string | null;
740
+ readonly organizationId: string | null;
741
+ readonly hostnameId: string;
742
+ readonly active: boolean;
743
+ readonly createdAt: Date;
744
+ readonly updatedAt: Date;
745
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
746
+ getByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
747
+ readonly params: {
748
+ readonly hostname: string;
749
+ };
750
+ readonly responseMode?: Mode;
751
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
752
+ readonly id: string;
753
+ readonly hostname: string;
754
+ readonly rootHostname: string;
755
+ readonly projectId: string | null;
756
+ readonly organizationId: string | null;
757
+ readonly hostnameId: string;
758
+ readonly active: boolean;
759
+ readonly createdAt: Date;
760
+ readonly updatedAt: Date;
761
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
762
+ records: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
763
+ readonly params: {
764
+ readonly id: string;
765
+ };
766
+ readonly responseMode?: Mode;
767
+ }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
768
+ readonly required: boolean;
769
+ readonly status: string;
770
+ readonly type: string;
771
+ readonly name: string;
772
+ readonly value: string;
773
+ }[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
774
+ delete: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
775
+ readonly params: {
776
+ readonly id: string;
777
+ };
778
+ readonly responseMode?: Mode;
779
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
780
+ readonly id: string;
781
+ readonly hostname: string;
782
+ readonly rootHostname: string;
783
+ readonly projectId: string | null;
784
+ readonly organizationId: string | null;
785
+ readonly hostnameId: string;
786
+ readonly active: boolean;
787
+ readonly createdAt: Date;
788
+ readonly updatedAt: Date;
789
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
790
+ };
545
791
  listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
546
792
  readonly query: {
547
793
  readonly ids?: string | undefined;
@@ -793,6 +1039,88 @@ declare const AuthClient_base: Context.ServiceClass<AuthClient, "@krak-stack/aut
793
1039
  };
794
1040
  } | null, unknown, never>;
795
1041
  server: {
1042
+ domains: {
1043
+ create: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1044
+ readonly payload: {
1045
+ readonly hostname: string;
1046
+ readonly rootHostname: string;
1047
+ readonly projectId?: string | null | undefined;
1048
+ readonly organizationId?: string | null | undefined;
1049
+ readonly managed?: boolean | undefined;
1050
+ };
1051
+ readonly responseMode?: Mode;
1052
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
1053
+ readonly id: string;
1054
+ readonly hostname: string;
1055
+ readonly rootHostname: string;
1056
+ readonly projectId: string | null;
1057
+ readonly organizationId: string | null;
1058
+ readonly hostnameId: string;
1059
+ readonly active: boolean;
1060
+ readonly createdAt: Date;
1061
+ readonly updatedAt: Date;
1062
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").BadRequest | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
1063
+ get: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1064
+ readonly params: {
1065
+ readonly id: string;
1066
+ };
1067
+ readonly responseMode?: Mode;
1068
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
1069
+ readonly id: string;
1070
+ readonly hostname: string;
1071
+ readonly rootHostname: string;
1072
+ readonly projectId: string | null;
1073
+ readonly organizationId: string | null;
1074
+ readonly hostnameId: string;
1075
+ readonly active: boolean;
1076
+ readonly createdAt: Date;
1077
+ readonly updatedAt: Date;
1078
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
1079
+ getByHost: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1080
+ readonly params: {
1081
+ readonly hostname: string;
1082
+ };
1083
+ readonly responseMode?: Mode;
1084
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
1085
+ readonly id: string;
1086
+ readonly hostname: string;
1087
+ readonly rootHostname: string;
1088
+ readonly projectId: string | null;
1089
+ readonly organizationId: string | null;
1090
+ readonly hostnameId: string;
1091
+ readonly active: boolean;
1092
+ readonly createdAt: Date;
1093
+ readonly updatedAt: Date;
1094
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
1095
+ records: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1096
+ readonly params: {
1097
+ readonly id: string;
1098
+ };
1099
+ readonly responseMode?: Mode;
1100
+ }) => Effect.Effect<HttpApiClient.Client.Response<readonly {
1101
+ readonly required: boolean;
1102
+ readonly status: string;
1103
+ readonly type: string;
1104
+ readonly name: string;
1105
+ readonly value: string;
1106
+ }[], Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
1107
+ delete: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
1108
+ readonly params: {
1109
+ readonly id: string;
1110
+ };
1111
+ readonly responseMode?: Mode;
1112
+ }) => Effect.Effect<HttpApiClient.Client.Response<{
1113
+ readonly id: string;
1114
+ readonly hostname: string;
1115
+ readonly rootHostname: string;
1116
+ readonly projectId: string | null;
1117
+ readonly organizationId: string | null;
1118
+ readonly hostnameId: string;
1119
+ readonly active: boolean;
1120
+ readonly createdAt: Date;
1121
+ readonly updatedAt: Date;
1122
+ }, Mode>, import("effect/unstable/http/HttpClientError").HttpClientError | ([Mode] extends ["response-only"] ? never : import("effect/Schema").SchemaError | import("effect/unstable/httpapi/HttpApiError").Unauthorized | import("effect/unstable/httpapi/HttpApiError").NotFound | import("effect/unstable/httpapi/HttpApiError").InternalServerError), [Mode] extends ["response-only"] ? never : never>;
1123
+ };
796
1124
  listOrganizations: <Mode extends HttpApiClient.Client.ResponseMode = import("effect/unstable/httpapi/HttpApiEndpoint").ClientResponseMode>(request: {
797
1125
  readonly query: {
798
1126
  readonly ids?: string | undefined;
package/dist/client.js CHANGED
@@ -43,6 +43,11 @@ export class AuthApiClients extends Context.Service()("@krak-stack/auth/AuthApiC
43
43
  baseUrl: config.baseUrl,
44
44
  httpClient,
45
45
  });
46
+ const serverDomains = yield* HttpApiClient.group(ServerApi, {
47
+ group: "serverDomains",
48
+ baseUrl: config.baseUrl,
49
+ httpClient,
50
+ });
46
51
  const extra = yield* HttpApiClient.group(ExtraApi, {
47
52
  group: "extra",
48
53
  baseUrl: config.baseUrl,
@@ -58,6 +63,13 @@ export class AuthApiClients extends Context.Service()("@krak-stack/auth/AuthApiC
58
63
  server: {
59
64
  ...serverUsers,
60
65
  ...serverOrganizations,
66
+ domains: {
67
+ create: serverDomains.createDomain,
68
+ get: serverDomains.getDomain,
69
+ getByHost: serverDomains.getDomainByHost,
70
+ records: serverDomains.getDomainRecords,
71
+ delete: serverDomains.deleteDomain,
72
+ },
61
73
  },
62
74
  extra,
63
75
  };
@@ -112,6 +112,67 @@ export declare const ServerOrganizationsApiGroup: HttpApiGroup.HttpApiGroup<"ser
112
112
  readonly updatedAt: import("effect/Schema").Date;
113
113
  }>;
114
114
  }>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false>;
115
+ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDomains", HttpApiEndpoint.HttpApiEndpoint<"createDomain", "POST", "/domains", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
116
+ readonly hostname: import("effect/Schema").NonEmptyString;
117
+ readonly rootHostname: import("effect/Schema").NonEmptyString;
118
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
119
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
120
+ readonly managed: import("effect/Schema").optional<import("effect/Schema").Boolean>;
121
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
122
+ readonly id: import("effect/Schema").String;
123
+ readonly hostname: import("effect/Schema").String;
124
+ readonly rootHostname: import("effect/Schema").String;
125
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
126
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
127
+ readonly hostnameId: import("effect/Schema").String;
128
+ readonly active: import("effect/Schema").Boolean;
129
+ readonly createdAt: import("effect/Schema").Date;
130
+ readonly updatedAt: import("effect/Schema").Date;
131
+ }>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomain", "GET", "/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
132
+ readonly id: import("effect/Schema").NonEmptyString;
133
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
134
+ readonly id: import("effect/Schema").String;
135
+ readonly hostname: import("effect/Schema").String;
136
+ readonly rootHostname: import("effect/Schema").String;
137
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
138
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
139
+ readonly hostnameId: import("effect/Schema").String;
140
+ readonly active: import("effect/Schema").Boolean;
141
+ readonly createdAt: import("effect/Schema").Date;
142
+ readonly updatedAt: import("effect/Schema").Date;
143
+ }>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomainByHost", "GET", "/domains/by-host/:hostname", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
144
+ readonly hostname: import("effect/Schema").NonEmptyString;
145
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
146
+ readonly id: import("effect/Schema").String;
147
+ readonly hostname: import("effect/Schema").String;
148
+ readonly rootHostname: import("effect/Schema").String;
149
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
150
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
151
+ readonly hostnameId: import("effect/Schema").String;
152
+ readonly active: import("effect/Schema").Boolean;
153
+ readonly createdAt: import("effect/Schema").Date;
154
+ readonly updatedAt: import("effect/Schema").Date;
155
+ }>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomainRecords", "GET", "/domains/:id/records", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
156
+ readonly id: import("effect/Schema").NonEmptyString;
157
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
158
+ readonly required: import("effect/Schema").Boolean;
159
+ readonly status: import("effect/Schema").String;
160
+ readonly type: import("effect/Schema").String;
161
+ readonly name: import("effect/Schema").String;
162
+ readonly value: import("effect/Schema").String;
163
+ }>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteDomain", "DELETE", "/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
164
+ readonly id: import("effect/Schema").NonEmptyString;
165
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
166
+ readonly id: import("effect/Schema").String;
167
+ readonly hostname: import("effect/Schema").String;
168
+ readonly rootHostname: import("effect/Schema").String;
169
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
170
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
171
+ readonly hostnameId: import("effect/Schema").String;
172
+ readonly active: import("effect/Schema").Boolean;
173
+ readonly createdAt: import("effect/Schema").Date;
174
+ readonly updatedAt: import("effect/Schema").Date;
175
+ }>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, false>;
115
176
  export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpApiGroup<"serverUsers", HttpApiEndpoint.HttpApiEndpoint<"listUsersByIds", "GET", "/api/users", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
116
177
  readonly ids: import("effect/Schema").NonEmptyString;
117
178
  }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
@@ -222,4 +283,64 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
222
283
  readonly createdAt: import("effect/Schema").Date;
223
284
  readonly updatedAt: import("effect/Schema").Date;
224
285
  }>;
225
- }>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false>>;
286
+ }>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never>, false> | HttpApiGroup.HttpApiGroup<"serverDomains", HttpApiEndpoint.HttpApiEndpoint<"createDomain", "POST", "/api/domains", HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
287
+ readonly hostname: import("effect/Schema").NonEmptyString;
288
+ readonly rootHostname: import("effect/Schema").NonEmptyString;
289
+ readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
290
+ readonly organizationId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
291
+ readonly managed: import("effect/Schema").optional<import("effect/Schema").Boolean>;
292
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
293
+ readonly id: import("effect/Schema").String;
294
+ readonly hostname: import("effect/Schema").String;
295
+ readonly rootHostname: import("effect/Schema").String;
296
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
297
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
298
+ readonly hostnameId: import("effect/Schema").String;
299
+ readonly active: import("effect/Schema").Boolean;
300
+ readonly createdAt: import("effect/Schema").Date;
301
+ readonly updatedAt: import("effect/Schema").Date;
302
+ }>>, HttpApiEndpoint.Json<typeof HttpApiError.BadRequest | typeof HttpApiError.Unauthorized | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomain", "GET", "/api/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
303
+ readonly id: import("effect/Schema").NonEmptyString;
304
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
305
+ readonly id: import("effect/Schema").String;
306
+ readonly hostname: import("effect/Schema").String;
307
+ readonly rootHostname: import("effect/Schema").String;
308
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
309
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
310
+ readonly hostnameId: import("effect/Schema").String;
311
+ readonly active: import("effect/Schema").Boolean;
312
+ readonly createdAt: import("effect/Schema").Date;
313
+ readonly updatedAt: import("effect/Schema").Date;
314
+ }>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomainByHost", "GET", "/api/domains/by-host/:hostname", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
315
+ readonly hostname: import("effect/Schema").NonEmptyString;
316
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
317
+ readonly id: import("effect/Schema").String;
318
+ readonly hostname: import("effect/Schema").String;
319
+ readonly rootHostname: import("effect/Schema").String;
320
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
321
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
322
+ readonly hostnameId: import("effect/Schema").String;
323
+ readonly active: import("effect/Schema").Boolean;
324
+ readonly createdAt: import("effect/Schema").Date;
325
+ readonly updatedAt: import("effect/Schema").Date;
326
+ }>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getDomainRecords", "GET", "/api/domains/:id/records", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
327
+ readonly id: import("effect/Schema").NonEmptyString;
328
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").$Array<import("effect/Schema").Struct<{
329
+ readonly required: import("effect/Schema").Boolean;
330
+ readonly status: import("effect/Schema").String;
331
+ readonly type: import("effect/Schema").String;
332
+ readonly name: import("effect/Schema").String;
333
+ readonly value: import("effect/Schema").String;
334
+ }>>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteDomain", "DELETE", "/api/domains/:id", HttpApiEndpoint.StringTree<import("effect/Schema").Struct<{
335
+ readonly id: import("effect/Schema").NonEmptyString;
336
+ }>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<never>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
337
+ readonly id: import("effect/Schema").String;
338
+ readonly hostname: import("effect/Schema").String;
339
+ readonly rootHostname: import("effect/Schema").String;
340
+ readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").String>;
341
+ readonly organizationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
342
+ readonly hostnameId: import("effect/Schema").String;
343
+ readonly active: import("effect/Schema").Boolean;
344
+ readonly createdAt: import("effect/Schema").Date;
345
+ readonly updatedAt: import("effect/Schema").Date;
346
+ }>>, HttpApiEndpoint.Json<typeof HttpApiError.Unauthorized | typeof HttpApiError.NotFound | typeof HttpApiError.InternalServerError>, never, never>, false>>;
@@ -1,7 +1,7 @@
1
1
  import { HttpApi, OpenApi } from "effect/unstable/httpapi";
2
2
  import { HttpApiEndpoint, HttpApiError, HttpApiGroup, } from "effect/unstable/httpapi";
3
3
  import { Member, Organization, User } from "../schema";
4
- import { ServerActiveOrganization, ServerIdParams, ServerIdsQuery, ServerMemberParams, ServerMembersResponse, ServerOrganizationIdParams, ServerOrganizationsQuery, ServerOrganizationsResponse, ServerUserIdParams, ServerUsersResponse, } from "./schema";
4
+ import { ServerActiveOrganization, ServerCreateDomainPayload, ServerDomain, ServerDomainHostParams, ServerDomainIdParams, ServerDomainRecordsResponse, ServerIdParams, ServerIdsQuery, ServerMemberParams, ServerMembersResponse, ServerOrganizationIdParams, ServerOrganizationsQuery, ServerOrganizationsResponse, ServerUserIdParams, ServerUsersResponse, } from "./schema";
5
5
  export const ServerUsersApiGroup = HttpApiGroup.make("serverUsers")
6
6
  .add(HttpApiEndpoint.get("listUsersByIds", "/users", {
7
7
  query: ServerIdsQuery,
@@ -91,7 +91,62 @@ export const ServerOrganizationsApiGroup = HttpApiGroup.make("serverOrganization
91
91
  title: "Organizations (Server)",
92
92
  description: "Server-to-server organization and membership endpoints for trusted services.",
93
93
  }));
94
+ export const ServerDomainsApiGroup = HttpApiGroup.make("serverDomains")
95
+ .add(HttpApiEndpoint.post("createDomain", "/domains", {
96
+ payload: ServerCreateDomainPayload,
97
+ success: ServerDomain,
98
+ error: [
99
+ HttpApiError.BadRequest,
100
+ HttpApiError.Unauthorized,
101
+ HttpApiError.InternalServerError,
102
+ ],
103
+ }).annotateMerge(OpenApi.annotations({
104
+ title: "Create server domain",
105
+ summary: "Register an auth hostname",
106
+ description: "Registers an auth hostname for a trusted service. Managed domains are provisioned in Cloudflare by auth; unmanaged domains are only registered for auth request resolution. Requires a service API key.",
107
+ })))
108
+ .add(HttpApiEndpoint.get("getDomain", "/domains/:id", {
109
+ params: ServerDomainIdParams,
110
+ success: ServerDomain,
111
+ error: [
112
+ HttpApiError.Unauthorized,
113
+ HttpApiError.NotFound,
114
+ HttpApiError.InternalServerError,
115
+ ],
116
+ }))
117
+ .add(HttpApiEndpoint.get("getDomainByHost", "/domains/by-host/:hostname", {
118
+ params: ServerDomainHostParams,
119
+ success: ServerDomain,
120
+ error: [
121
+ HttpApiError.Unauthorized,
122
+ HttpApiError.NotFound,
123
+ HttpApiError.InternalServerError,
124
+ ],
125
+ }))
126
+ .add(HttpApiEndpoint.get("getDomainRecords", "/domains/:id/records", {
127
+ params: ServerDomainIdParams,
128
+ success: ServerDomainRecordsResponse,
129
+ error: [
130
+ HttpApiError.Unauthorized,
131
+ HttpApiError.NotFound,
132
+ HttpApiError.InternalServerError,
133
+ ],
134
+ }))
135
+ .add(HttpApiEndpoint.delete("deleteDomain", "/domains/:id", {
136
+ params: ServerDomainIdParams,
137
+ success: ServerDomain,
138
+ error: [
139
+ HttpApiError.Unauthorized,
140
+ HttpApiError.NotFound,
141
+ HttpApiError.InternalServerError,
142
+ ],
143
+ }))
144
+ .annotateMerge(OpenApi.annotations({
145
+ title: "Domains (Server)",
146
+ description: "Server-to-server auth hostname endpoints.",
147
+ }));
94
148
  export const ServerApi = HttpApi.make("ServerApi")
95
149
  .add(ServerUsersApiGroup)
96
150
  .add(ServerOrganizationsApiGroup)
151
+ .add(ServerDomainsApiGroup)
97
152
  .prefix("/api");
@@ -74,7 +74,48 @@ export declare const ServerMembersResponse: Schema.$Array<Schema.Struct<{
74
74
  readonly updatedAt: Schema.Date;
75
75
  }>;
76
76
  }>>;
77
+ export declare const ServerDomain: Schema.Struct<{
78
+ readonly id: Schema.String;
79
+ readonly hostname: Schema.String;
80
+ readonly rootHostname: Schema.String;
81
+ readonly projectId: Schema.NullOr<Schema.String>;
82
+ readonly organizationId: Schema.NullOr<Schema.String>;
83
+ readonly hostnameId: Schema.String;
84
+ readonly active: Schema.Boolean;
85
+ readonly createdAt: Schema.Date;
86
+ readonly updatedAt: Schema.Date;
87
+ }>;
88
+ export declare const ServerCreateDomainPayload: Schema.Struct<{
89
+ readonly hostname: Schema.NonEmptyString;
90
+ readonly rootHostname: Schema.NonEmptyString;
91
+ readonly projectId: Schema.optional<Schema.NullOr<Schema.String>>;
92
+ readonly organizationId: Schema.optional<Schema.NullOr<Schema.String>>;
93
+ readonly managed: Schema.optional<Schema.Boolean>;
94
+ }>;
95
+ export declare const ServerDomainIdParams: Schema.Struct<{
96
+ readonly id: Schema.NonEmptyString;
97
+ }>;
98
+ export declare const ServerDomainHostParams: Schema.Struct<{
99
+ readonly hostname: Schema.NonEmptyString;
100
+ }>;
101
+ export declare const ServerDomainRecord: Schema.Struct<{
102
+ readonly required: Schema.Boolean;
103
+ readonly status: Schema.String;
104
+ readonly type: Schema.String;
105
+ readonly name: Schema.String;
106
+ readonly value: Schema.String;
107
+ }>;
108
+ export declare const ServerDomainRecordsResponse: Schema.$Array<Schema.Struct<{
109
+ readonly required: Schema.Boolean;
110
+ readonly status: Schema.String;
111
+ readonly type: Schema.String;
112
+ readonly name: Schema.String;
113
+ readonly value: Schema.String;
114
+ }>>;
77
115
  export type ServerUsersResponse = typeof ServerUsersResponse.Type;
78
116
  export type ServerOrganizationsResponse = typeof ServerOrganizationsResponse.Type;
79
117
  export type ServerMembersResponse = typeof ServerMembersResponse.Type;
80
118
  export type ServerActiveOrganization = typeof ServerActiveOrganization.Type;
119
+ export type ServerDomain = typeof ServerDomain.Type;
120
+ export type ServerCreateDomainPayload = typeof ServerCreateDomainPayload.Type;
121
+ export type ServerDomainRecordsResponse = typeof ServerDomainRecordsResponse.Type;
@@ -79,3 +79,83 @@ export const ServerMembersResponse = Schema.Array(Member).annotate({
79
79
  title: "Server members response",
80
80
  description: "Organization members with user contact details.",
81
81
  });
82
+ export const ServerDomain = Schema.Struct({
83
+ id: Schema.String,
84
+ hostname: Schema.String,
85
+ rootHostname: Schema.String,
86
+ projectId: Schema.NullOr(Schema.String),
87
+ organizationId: Schema.NullOr(Schema.String),
88
+ hostnameId: Schema.String,
89
+ active: Schema.Boolean,
90
+ createdAt: Schema.Date,
91
+ updatedAt: Schema.Date,
92
+ }).annotate({
93
+ identifier: "ServerDomain",
94
+ title: "Server domain",
95
+ description: "An auth-owned custom hostname mapped to a project and optionally an organization.",
96
+ examples: [
97
+ {
98
+ id: "domain_1",
99
+ hostname: "auth.institute.example.com",
100
+ rootHostname: "institute.example.com",
101
+ projectId: "kokobi",
102
+ organizationId: "org_1",
103
+ hostnameId: "cloudflare-hostname-id",
104
+ active: false,
105
+ createdAt: new Date("2026-01-01T00:00:00.000Z"),
106
+ updatedAt: new Date("2026-01-01T00:00:00.000Z"),
107
+ },
108
+ ],
109
+ });
110
+ export const ServerCreateDomainPayload = Schema.Struct({
111
+ hostname: Schema.NonEmptyString,
112
+ rootHostname: Schema.NonEmptyString,
113
+ projectId: Schema.optional(Schema.NullOr(Schema.String)),
114
+ organizationId: Schema.optional(Schema.NullOr(Schema.String)),
115
+ managed: Schema.optional(Schema.Boolean),
116
+ }).annotate({
117
+ identifier: "ServerCreateDomainPayload",
118
+ title: "Create server domain payload",
119
+ description: "Payload used by trusted services to register an auth hostname. Set managed to false when the custom hostname is provisioned externally.",
120
+ examples: [
121
+ {
122
+ hostname: "auth.institute.example.com",
123
+ rootHostname: "institute.example.com",
124
+ projectId: "kokobi",
125
+ organizationId: "org_1",
126
+ managed: true,
127
+ },
128
+ ],
129
+ });
130
+ export const ServerDomainIdParams = Schema.Struct({
131
+ id: Schema.NonEmptyString,
132
+ }).annotate({
133
+ identifier: "ServerDomainIdParams",
134
+ title: "Server domain ID params",
135
+ description: "Domain ID used to return or delete a server domain.",
136
+ examples: [{ id: "domain_1" }],
137
+ });
138
+ export const ServerDomainHostParams = Schema.Struct({
139
+ hostname: Schema.NonEmptyString,
140
+ }).annotate({
141
+ identifier: "ServerDomainHostParams",
142
+ title: "Server domain host params",
143
+ description: "Hostname used to return a server domain.",
144
+ examples: [{ hostname: "auth.institute.example.com" }],
145
+ });
146
+ export const ServerDomainRecord = Schema.Struct({
147
+ required: Schema.Boolean,
148
+ status: Schema.String,
149
+ type: Schema.String,
150
+ name: Schema.String,
151
+ value: Schema.String,
152
+ }).annotate({
153
+ identifier: "ServerDomainRecord",
154
+ title: "Server domain DNS record",
155
+ description: "A DNS record required for an auth-owned custom hostname.",
156
+ });
157
+ export const ServerDomainRecordsResponse = Schema.Array(ServerDomainRecord).annotate({
158
+ identifier: "ServerDomainRecordsResponse",
159
+ title: "Server domain records response",
160
+ description: "DNS records required for an auth-owned custom hostname.",
161
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krak-stack/auth",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
4
4
  "description": "Effect HttpApi clients and schemas for KrakStack Auth.",
5
5
  "license": "MIT",
6
6
  "files": [