@krak-stack/auth 0.1.24 → 0.1.27

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.
@@ -86,6 +86,7 @@ export const ServerDomain = Schema.Struct({
86
86
  projectId: Schema.NullOr(Schema.String),
87
87
  organizationId: Schema.NullOr(Schema.String),
88
88
  hostnameId: Schema.String,
89
+ managed: Schema.Boolean,
89
90
  active: Schema.Boolean,
90
91
  createdAt: Schema.Date,
91
92
  updatedAt: Schema.Date,
@@ -101,6 +102,7 @@ export const ServerDomain = Schema.Struct({
101
102
  projectId: "kokobi",
102
103
  organizationId: "org_1",
103
104
  hostnameId: "cloudflare-hostname-id",
105
+ managed: true,
104
106
  active: false,
105
107
  createdAt: new Date("2026-01-01T00:00:00.000Z"),
106
108
  updatedAt: new Date("2026-01-01T00:00:00.000Z"),
@@ -112,16 +114,36 @@ export const ServerCreateDomainPayload = Schema.Struct({
112
114
  rootHostname: Schema.NonEmptyString,
113
115
  projectId: Schema.optional(Schema.NullOr(Schema.String)),
114
116
  organizationId: Schema.optional(Schema.NullOr(Schema.String)),
117
+ managed: Schema.Boolean,
115
118
  }).annotate({
116
119
  identifier: "ServerCreateDomainPayload",
117
120
  title: "Create server domain payload",
118
- description: "Payload used by trusted services to register an auth-owned custom hostname.",
121
+ description: "Payload used by trusted services to register an auth hostname. Set managed to false when the custom hostname is provisioned externally.",
119
122
  examples: [
120
123
  {
121
124
  hostname: "auth.institute.example.com",
122
125
  rootHostname: "institute.example.com",
123
126
  projectId: "kokobi",
124
127
  organizationId: "org_1",
128
+ managed: true,
129
+ },
130
+ ],
131
+ });
132
+ export const ServerUpdateDomainPayload = Schema.Struct({
133
+ rootHostname: Schema.NonEmptyString,
134
+ projectId: Schema.optional(Schema.NullOr(Schema.String)),
135
+ organizationId: Schema.optional(Schema.NullOr(Schema.String)),
136
+ managed: Schema.Boolean,
137
+ }).annotate({
138
+ identifier: "ServerUpdateDomainPayload",
139
+ title: "Update server domain payload",
140
+ description: "Payload used by administrators to update an auth hostname's trust target, ownership links, and Cloudflare management mode.",
141
+ examples: [
142
+ {
143
+ rootHostname: "institute.example.com",
144
+ projectId: "kokobi",
145
+ organizationId: "org_1",
146
+ managed: false,
125
147
  },
126
148
  ],
127
149
  });