@krak-stack/auth 0.1.24 → 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 +4 -0
- package/dist/server/api.d.ts +2 -0
- package/dist/server/api.js +3 -3
- package/dist/server/schema.d.ts +1 -0
- package/dist/server/schema.js +3 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ declare const AuthApiClients_base: Context.ServiceClass<AuthApiClients, "@krak-s
|
|
|
14
14
|
readonly rootHostname: string;
|
|
15
15
|
readonly projectId?: string | null | undefined;
|
|
16
16
|
readonly organizationId?: string | null | undefined;
|
|
17
|
+
readonly managed?: boolean | undefined;
|
|
17
18
|
};
|
|
18
19
|
readonly responseMode?: Mode;
|
|
19
20
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
@@ -348,6 +349,7 @@ declare const AuthApiClients_base: Context.ServiceClass<AuthApiClients, "@krak-s
|
|
|
348
349
|
readonly rootHostname: string;
|
|
349
350
|
readonly projectId?: string | null | undefined;
|
|
350
351
|
readonly organizationId?: string | null | undefined;
|
|
352
|
+
readonly managed?: boolean | undefined;
|
|
351
353
|
};
|
|
352
354
|
readonly responseMode?: Mode;
|
|
353
355
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
@@ -711,6 +713,7 @@ declare const AuthClient_base: Context.ServiceClass<AuthClient, "@krak-stack/aut
|
|
|
711
713
|
readonly rootHostname: string;
|
|
712
714
|
readonly projectId?: string | null | undefined;
|
|
713
715
|
readonly organizationId?: string | null | undefined;
|
|
716
|
+
readonly managed?: boolean | undefined;
|
|
714
717
|
};
|
|
715
718
|
readonly responseMode?: Mode;
|
|
716
719
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
|
@@ -1043,6 +1046,7 @@ declare const AuthClient_base: Context.ServiceClass<AuthClient, "@krak-stack/aut
|
|
|
1043
1046
|
readonly rootHostname: string;
|
|
1044
1047
|
readonly projectId?: string | null | undefined;
|
|
1045
1048
|
readonly organizationId?: string | null | undefined;
|
|
1049
|
+
readonly managed?: boolean | undefined;
|
|
1046
1050
|
};
|
|
1047
1051
|
readonly responseMode?: Mode;
|
|
1048
1052
|
}) => Effect.Effect<HttpApiClient.Client.Response<{
|
package/dist/server/api.d.ts
CHANGED
|
@@ -117,6 +117,7 @@ export declare const ServerDomainsApiGroup: HttpApiGroup.HttpApiGroup<"serverDom
|
|
|
117
117
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
118
118
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
119
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>;
|
|
120
121
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
121
122
|
readonly id: import("effect/Schema").String;
|
|
122
123
|
readonly hostname: import("effect/Schema").String;
|
|
@@ -287,6 +288,7 @@ export declare const ServerApi: HttpApi.HttpApi<"ServerApi", HttpApiGroup.HttpAp
|
|
|
287
288
|
readonly rootHostname: import("effect/Schema").NonEmptyString;
|
|
288
289
|
readonly projectId: import("effect/Schema").optional<import("effect/Schema").NullOr<import("effect/Schema").String>>;
|
|
289
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>;
|
|
290
292
|
}>>, HttpApiEndpoint.StringTree<never>, HttpApiEndpoint.Json<import("effect/Schema").Struct<{
|
|
291
293
|
readonly id: import("effect/Schema").String;
|
|
292
294
|
readonly hostname: import("effect/Schema").String;
|
package/dist/server/api.js
CHANGED
|
@@ -102,8 +102,8 @@ export const ServerDomainsApiGroup = HttpApiGroup.make("serverDomains")
|
|
|
102
102
|
],
|
|
103
103
|
}).annotateMerge(OpenApi.annotations({
|
|
104
104
|
title: "Create server domain",
|
|
105
|
-
summary: "
|
|
106
|
-
description: "Registers an auth
|
|
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
107
|
})))
|
|
108
108
|
.add(HttpApiEndpoint.get("getDomain", "/domains/:id", {
|
|
109
109
|
params: ServerDomainIdParams,
|
|
@@ -143,7 +143,7 @@ export const ServerDomainsApiGroup = HttpApiGroup.make("serverDomains")
|
|
|
143
143
|
}))
|
|
144
144
|
.annotateMerge(OpenApi.annotations({
|
|
145
145
|
title: "Domains (Server)",
|
|
146
|
-
description: "Server-to-server auth
|
|
146
|
+
description: "Server-to-server auth hostname endpoints.",
|
|
147
147
|
}));
|
|
148
148
|
export const ServerApi = HttpApi.make("ServerApi")
|
|
149
149
|
.add(ServerUsersApiGroup)
|
package/dist/server/schema.d.ts
CHANGED
|
@@ -90,6 +90,7 @@ export declare const ServerCreateDomainPayload: Schema.Struct<{
|
|
|
90
90
|
readonly rootHostname: Schema.NonEmptyString;
|
|
91
91
|
readonly projectId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
92
92
|
readonly organizationId: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
93
|
+
readonly managed: Schema.optional<Schema.Boolean>;
|
|
93
94
|
}>;
|
|
94
95
|
export declare const ServerDomainIdParams: Schema.Struct<{
|
|
95
96
|
readonly id: Schema.NonEmptyString;
|
package/dist/server/schema.js
CHANGED
|
@@ -112,16 +112,18 @@ export const ServerCreateDomainPayload = Schema.Struct({
|
|
|
112
112
|
rootHostname: Schema.NonEmptyString,
|
|
113
113
|
projectId: Schema.optional(Schema.NullOr(Schema.String)),
|
|
114
114
|
organizationId: Schema.optional(Schema.NullOr(Schema.String)),
|
|
115
|
+
managed: Schema.optional(Schema.Boolean),
|
|
115
116
|
}).annotate({
|
|
116
117
|
identifier: "ServerCreateDomainPayload",
|
|
117
118
|
title: "Create server domain payload",
|
|
118
|
-
description: "Payload used by trusted services to register an auth
|
|
119
|
+
description: "Payload used by trusted services to register an auth hostname. Set managed to false when the custom hostname is provisioned externally.",
|
|
119
120
|
examples: [
|
|
120
121
|
{
|
|
121
122
|
hostname: "auth.institute.example.com",
|
|
122
123
|
rootHostname: "institute.example.com",
|
|
123
124
|
projectId: "kokobi",
|
|
124
125
|
organizationId: "org_1",
|
|
126
|
+
managed: true,
|
|
125
127
|
},
|
|
126
128
|
],
|
|
127
129
|
});
|