@authhero/drizzle 0.43.2 → 0.43.3

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.
@@ -1580,7 +1580,8 @@ const B = $("tenants", {
1580
1580
  connections: s("connections").notNull().default("[]"),
1581
1581
  owner_user_id: s("owner_user_id", { length: 255 }),
1582
1582
  registration_type: s("registration_type", { length: 32 }),
1583
- registration_metadata: s("registration_metadata")
1583
+ registration_metadata: s("registration_metadata"),
1584
+ user_linking_mode: s("user_linking_mode", { length: 16 })
1584
1585
  },
1585
1586
  (n) => [
1586
1587
  Te({
@@ -3011,7 +3012,7 @@ var Xn;
3011
3012
  // second overwrites first
3012
3013
  });
3013
3014
  })(Xn || (Xn = {}));
3014
- const x = H.arrayToEnum([
3015
+ const k = H.arrayToEnum([
3015
3016
  "string",
3016
3017
  "nan",
3017
3018
  "number",
@@ -3035,23 +3036,23 @@ const x = H.arrayToEnum([
3035
3036
  ]), We = (n) => {
3036
3037
  switch (typeof n) {
3037
3038
  case "undefined":
3038
- return x.undefined;
3039
+ return k.undefined;
3039
3040
  case "string":
3040
- return x.string;
3041
+ return k.string;
3041
3042
  case "number":
3042
- return Number.isNaN(n) ? x.nan : x.number;
3043
+ return Number.isNaN(n) ? k.nan : k.number;
3043
3044
  case "boolean":
3044
- return x.boolean;
3045
+ return k.boolean;
3045
3046
  case "function":
3046
- return x.function;
3047
+ return k.function;
3047
3048
  case "bigint":
3048
- return x.bigint;
3049
+ return k.bigint;
3049
3050
  case "symbol":
3050
- return x.symbol;
3051
+ return k.symbol;
3051
3052
  case "object":
3052
- return Array.isArray(n) ? x.array : n === null ? x.null : n.then && typeof n.then == "function" && n.catch && typeof n.catch == "function" ? x.promise : typeof Map < "u" && n instanceof Map ? x.map : typeof Set < "u" && n instanceof Set ? x.set : typeof Date < "u" && n instanceof Date ? x.date : x.object;
3053
+ return Array.isArray(n) ? k.array : n === null ? k.null : n.then && typeof n.then == "function" && n.catch && typeof n.catch == "function" ? k.promise : typeof Map < "u" && n instanceof Map ? k.map : typeof Set < "u" && n instanceof Set ? k.set : typeof Date < "u" && n instanceof Date ? k.date : k.object;
3053
3054
  default:
3054
- return x.unknown;
3055
+ return k.unknown;
3055
3056
  }
3056
3057
  }, N = H.arrayToEnum([
3057
3058
  "invalid_type",
@@ -3139,7 +3140,7 @@ const ln = (n, e) => {
3139
3140
  let t;
3140
3141
  switch (n.code) {
3141
3142
  case N.invalid_type:
3142
- n.received === x.undefined ? t = "Required" : t = `Expected ${n.expected}, received ${n.received}`;
3143
+ n.received === k.undefined ? t = "Required" : t = `Expected ${n.expected}, received ${n.received}`;
3143
3144
  break;
3144
3145
  case N.invalid_literal:
3145
3146
  t = `Invalid literal value, expected ${JSON.stringify(n.expected, H.jsonStringifyReplacer)}`;
@@ -3573,11 +3574,11 @@ function Us(n, e) {
3573
3574
  }
3574
3575
  class Ze extends q {
3575
3576
  _parse(e) {
3576
- if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== x.string) {
3577
+ if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== k.string) {
3577
3578
  const r = this._getOrReturnCtx(e);
3578
3579
  return E(r, {
3579
3580
  code: N.invalid_type,
3580
- expected: x.string,
3581
+ expected: k.string,
3581
3582
  received: r.parsedType
3582
3583
  }), R;
3583
3584
  }
@@ -3963,11 +3964,11 @@ class yt extends q {
3963
3964
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
3964
3965
  }
3965
3966
  _parse(e) {
3966
- if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== x.number) {
3967
+ if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== k.number) {
3967
3968
  const r = this._getOrReturnCtx(e);
3968
3969
  return E(r, {
3969
3970
  code: N.invalid_type,
3970
- expected: x.number,
3971
+ expected: k.number,
3971
3972
  received: r.parsedType
3972
3973
  }), R;
3973
3974
  }
@@ -4141,7 +4142,7 @@ class Et extends q {
4141
4142
  } catch {
4142
4143
  return this._getInvalidInput(e);
4143
4144
  }
4144
- if (this._getType(e) !== x.bigint)
4145
+ if (this._getType(e) !== k.bigint)
4145
4146
  return this._getInvalidInput(e);
4146
4147
  let i;
4147
4148
  const a = new ke();
@@ -4169,7 +4170,7 @@ class Et extends q {
4169
4170
  const t = this._getOrReturnCtx(e);
4170
4171
  return E(t, {
4171
4172
  code: N.invalid_type,
4172
- expected: x.bigint,
4173
+ expected: k.bigint,
4173
4174
  received: t.parsedType
4174
4175
  }), R;
4175
4176
  }
@@ -4265,11 +4266,11 @@ Et.create = (n) => new Et({
4265
4266
  });
4266
4267
  class dn extends q {
4267
4268
  _parse(e) {
4268
- if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== x.boolean) {
4269
+ if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== k.boolean) {
4269
4270
  const i = this._getOrReturnCtx(e);
4270
4271
  return E(i, {
4271
4272
  code: N.invalid_type,
4272
- expected: x.boolean,
4273
+ expected: k.boolean,
4273
4274
  received: i.parsedType
4274
4275
  }), R;
4275
4276
  }
@@ -4283,11 +4284,11 @@ dn.create = (n) => new dn({
4283
4284
  });
4284
4285
  class zt extends q {
4285
4286
  _parse(e) {
4286
- if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== x.date) {
4287
+ if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== k.date) {
4287
4288
  const r = this._getOrReturnCtx(e);
4288
4289
  return E(r, {
4289
4290
  code: N.invalid_type,
4290
- expected: x.date,
4291
+ expected: k.date,
4291
4292
  received: r.parsedType
4292
4293
  }), R;
4293
4294
  }
@@ -4361,11 +4362,11 @@ zt.create = (n) => new zt({
4361
4362
  });
4362
4363
  class ti extends q {
4363
4364
  _parse(e) {
4364
- if (this._getType(e) !== x.symbol) {
4365
+ if (this._getType(e) !== k.symbol) {
4365
4366
  const i = this._getOrReturnCtx(e);
4366
4367
  return E(i, {
4367
4368
  code: N.invalid_type,
4368
- expected: x.symbol,
4369
+ expected: k.symbol,
4369
4370
  received: i.parsedType
4370
4371
  }), R;
4371
4372
  }
@@ -4378,11 +4379,11 @@ ti.create = (n) => new ti({
4378
4379
  });
4379
4380
  class cn extends q {
4380
4381
  _parse(e) {
4381
- if (this._getType(e) !== x.undefined) {
4382
+ if (this._getType(e) !== k.undefined) {
4382
4383
  const i = this._getOrReturnCtx(e);
4383
4384
  return E(i, {
4384
4385
  code: N.invalid_type,
4385
- expected: x.undefined,
4386
+ expected: k.undefined,
4386
4387
  received: i.parsedType
4387
4388
  }), R;
4388
4389
  }
@@ -4395,11 +4396,11 @@ cn.create = (n) => new cn({
4395
4396
  });
4396
4397
  class _n extends q {
4397
4398
  _parse(e) {
4398
- if (this._getType(e) !== x.null) {
4399
+ if (this._getType(e) !== k.null) {
4399
4400
  const i = this._getOrReturnCtx(e);
4400
4401
  return E(i, {
4401
4402
  code: N.invalid_type,
4402
- expected: x.null,
4403
+ expected: k.null,
4403
4404
  received: i.parsedType
4404
4405
  }), R;
4405
4406
  }
@@ -4439,7 +4440,7 @@ class et extends q {
4439
4440
  const t = this._getOrReturnCtx(e);
4440
4441
  return E(t, {
4441
4442
  code: N.invalid_type,
4442
- expected: x.never,
4443
+ expected: k.never,
4443
4444
  received: t.parsedType
4444
4445
  }), R;
4445
4446
  }
@@ -4450,11 +4451,11 @@ et.create = (n) => new et({
4450
4451
  });
4451
4452
  class ni extends q {
4452
4453
  _parse(e) {
4453
- if (this._getType(e) !== x.undefined) {
4454
+ if (this._getType(e) !== k.undefined) {
4454
4455
  const i = this._getOrReturnCtx(e);
4455
4456
  return E(i, {
4456
4457
  code: N.invalid_type,
4457
- expected: x.void,
4458
+ expected: k.void,
4458
4459
  received: i.parsedType
4459
4460
  }), R;
4460
4461
  }
@@ -4468,10 +4469,10 @@ ni.create = (n) => new ni({
4468
4469
  class $e extends q {
4469
4470
  _parse(e) {
4470
4471
  const { ctx: t, status: i } = this._processInputParams(e), a = this._def;
4471
- if (t.parsedType !== x.array)
4472
+ if (t.parsedType !== k.array)
4472
4473
  return E(t, {
4473
4474
  code: N.invalid_type,
4474
- expected: x.array,
4475
+ expected: k.array,
4475
4476
  received: t.parsedType
4476
4477
  }), R;
4477
4478
  if (a.exactLength !== null) {
@@ -4565,11 +4566,11 @@ class le extends q {
4565
4566
  return this._cached = { shape: e, keys: t }, this._cached;
4566
4567
  }
4567
4568
  _parse(e) {
4568
- if (this._getType(e) !== x.object) {
4569
+ if (this._getType(e) !== k.object) {
4569
4570
  const f = this._getOrReturnCtx(e);
4570
4571
  return E(f, {
4571
4572
  code: N.invalid_type,
4572
- expected: x.object,
4573
+ expected: k.object,
4573
4574
  received: f.parsedType
4574
4575
  }), R;
4575
4576
  }
@@ -4919,10 +4920,10 @@ const Je = (n) => n instanceof pn ? Je(n.schema) : n instanceof tt ? Je(n.innerT
4919
4920
  class gn extends q {
4920
4921
  _parse(e) {
4921
4922
  const { ctx: t } = this._processInputParams(e);
4922
- if (t.parsedType !== x.object)
4923
+ if (t.parsedType !== k.object)
4923
4924
  return E(t, {
4924
4925
  code: N.invalid_type,
4925
- expected: x.object,
4926
+ expected: k.object,
4926
4927
  received: t.parsedType
4927
4928
  }), R;
4928
4929
  const i = this.discriminator, a = t.data[i], r = this.optionsMap.get(a);
@@ -4982,7 +4983,7 @@ function ii(n, e) {
4982
4983
  const t = We(n), i = We(e);
4983
4984
  if (n === e)
4984
4985
  return { valid: !0, data: n };
4985
- if (t === x.object && i === x.object) {
4986
+ if (t === k.object && i === k.object) {
4986
4987
  const a = H.objectKeys(e), r = H.objectKeys(n).filter((d) => a.indexOf(d) !== -1), l = { ...n, ...e };
4987
4988
  for (const d of r) {
4988
4989
  const u = ii(n[d], e[d]);
@@ -4991,7 +4992,7 @@ function ii(n, e) {
4991
4992
  l[d] = u.data;
4992
4993
  }
4993
4994
  return { valid: !0, data: l };
4994
- } else if (t === x.array && i === x.array) {
4995
+ } else if (t === k.array && i === k.array) {
4995
4996
  if (n.length !== e.length)
4996
4997
  return { valid: !1 };
4997
4998
  const a = [];
@@ -5002,7 +5003,7 @@ function ii(n, e) {
5002
5003
  a.push(u.data);
5003
5004
  }
5004
5005
  return { valid: !0, data: a };
5005
- } else return t === x.date && i === x.date && +n == +e ? { valid: !0, data: n } : { valid: !1 };
5006
+ } else return t === k.date && i === k.date && +n == +e ? { valid: !0, data: n } : { valid: !1 };
5006
5007
  }
5007
5008
  class Mt extends q {
5008
5009
  _parse(e) {
@@ -5045,10 +5046,10 @@ Mt.create = (n, e, t) => new Mt({
5045
5046
  class st extends q {
5046
5047
  _parse(e) {
5047
5048
  const { status: t, ctx: i } = this._processInputParams(e);
5048
- if (i.parsedType !== x.array)
5049
+ if (i.parsedType !== k.array)
5049
5050
  return E(i, {
5050
5051
  code: N.invalid_type,
5051
- expected: x.array,
5052
+ expected: k.array,
5052
5053
  received: i.parsedType
5053
5054
  }), R;
5054
5055
  if (i.data.length < this._def.items.length)
@@ -5101,10 +5102,10 @@ class qt extends q {
5101
5102
  }
5102
5103
  _parse(e) {
5103
5104
  const { status: t, ctx: i } = this._processInputParams(e);
5104
- if (i.parsedType !== x.object)
5105
+ if (i.parsedType !== k.object)
5105
5106
  return E(i, {
5106
5107
  code: N.invalid_type,
5107
- expected: x.object,
5108
+ expected: k.object,
5108
5109
  received: i.parsedType
5109
5110
  }), R;
5110
5111
  const a = [], r = this._def.keyType, l = this._def.valueType;
@@ -5142,10 +5143,10 @@ class ai extends q {
5142
5143
  }
5143
5144
  _parse(e) {
5144
5145
  const { status: t, ctx: i } = this._processInputParams(e);
5145
- if (i.parsedType !== x.map)
5146
+ if (i.parsedType !== k.map)
5146
5147
  return E(i, {
5147
5148
  code: N.invalid_type,
5148
- expected: x.map,
5149
+ expected: k.map,
5149
5150
  received: i.parsedType
5150
5151
  }), R;
5151
5152
  const a = this._def.keyType, r = this._def.valueType, l = [...i.data.entries()].map(([d, u], f) => ({
@@ -5184,10 +5185,10 @@ ai.create = (n, e, t) => new ai({
5184
5185
  class xt extends q {
5185
5186
  _parse(e) {
5186
5187
  const { status: t, ctx: i } = this._processInputParams(e);
5187
- if (i.parsedType !== x.set)
5188
+ if (i.parsedType !== k.set)
5188
5189
  return E(i, {
5189
5190
  code: N.invalid_type,
5190
- expected: x.set,
5191
+ expected: k.set,
5191
5192
  received: i.parsedType
5192
5193
  }), R;
5193
5194
  const a = this._def;
@@ -5345,7 +5346,7 @@ lt.create = _r;
5345
5346
  class $t extends q {
5346
5347
  _parse(e) {
5347
5348
  const t = H.getValidEnumValues(this._def.values), i = this._getOrReturnCtx(e);
5348
- if (i.parsedType !== x.string && i.parsedType !== x.number) {
5349
+ if (i.parsedType !== k.string && i.parsedType !== k.number) {
5349
5350
  const a = H.objectValues(t);
5350
5351
  return E(i, {
5351
5352
  expected: H.joinValues(a),
@@ -5378,13 +5379,13 @@ class jt extends q {
5378
5379
  }
5379
5380
  _parse(e) {
5380
5381
  const { ctx: t } = this._processInputParams(e);
5381
- if (t.parsedType !== x.promise && t.common.async === !1)
5382
+ if (t.parsedType !== k.promise && t.common.async === !1)
5382
5383
  return E(t, {
5383
5384
  code: N.invalid_type,
5384
- expected: x.promise,
5385
+ expected: k.promise,
5385
5386
  received: t.parsedType
5386
5387
  }), R;
5387
- const i = t.parsedType === x.promise ? t.data : Promise.resolve(t.data);
5388
+ const i = t.parsedType === k.promise ? t.data : Promise.resolve(t.data);
5388
5389
  return De(i.then((a) => this._def.type.parseAsync(a, {
5389
5390
  path: t.path,
5390
5391
  errorMap: t.common.contextualErrorMap
@@ -5490,7 +5491,7 @@ tt.createWithPreprocess = (n, e, t) => new tt({
5490
5491
  });
5491
5492
  class He extends q {
5492
5493
  _parse(e) {
5493
- return this._getType(e) === x.undefined ? De(void 0) : this._def.innerType._parse(e);
5494
+ return this._getType(e) === k.undefined ? De(void 0) : this._def.innerType._parse(e);
5494
5495
  }
5495
5496
  unwrap() {
5496
5497
  return this._def.innerType;
@@ -5503,7 +5504,7 @@ He.create = (n, e) => new He({
5503
5504
  });
5504
5505
  class dt extends q {
5505
5506
  _parse(e) {
5506
- return this._getType(e) === x.null ? De(null) : this._def.innerType._parse(e);
5507
+ return this._getType(e) === k.null ? De(null) : this._def.innerType._parse(e);
5507
5508
  }
5508
5509
  unwrap() {
5509
5510
  return this._def.innerType;
@@ -5518,7 +5519,7 @@ class Vt extends q {
5518
5519
  _parse(e) {
5519
5520
  const { ctx: t } = this._processInputParams(e);
5520
5521
  let i = t.data;
5521
- return t.parsedType === x.undefined && (i = this._def.defaultValue()), this._def.innerType._parse({
5522
+ return t.parsedType === k.undefined && (i = this._def.defaultValue()), this._def.innerType._parse({
5522
5523
  data: i,
5523
5524
  path: t.path,
5524
5525
  parent: t
@@ -5579,11 +5580,11 @@ Zt.create = (n, e) => new Zt({
5579
5580
  });
5580
5581
  class oi extends q {
5581
5582
  _parse(e) {
5582
- if (this._getType(e) !== x.nan) {
5583
+ if (this._getType(e) !== k.nan) {
5583
5584
  const i = this._getOrReturnCtx(e);
5584
5585
  return E(i, {
5585
5586
  code: N.invalid_type,
5586
- expected: x.nan,
5587
+ expected: k.nan,
5587
5588
  received: i.parsedType
5588
5589
  }), R;
5589
5590
  }
@@ -5673,7 +5674,7 @@ et.create;
5673
5674
  const b = $e.create, _ = le.create, Pe = Pt.create, kt = gn.create;
5674
5675
  Mt.create;
5675
5676
  st.create;
5676
- const P = qt.create, O = Bt.create, k = lt.create, gt = $t.create;
5677
+ const P = qt.create, O = Bt.create, x = lt.create, gt = $t.create;
5677
5678
  jt.create;
5678
5679
  He.create;
5679
5680
  dt.create;
@@ -5712,7 +5713,7 @@ const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5712
5713
  ZodNumber: yt,
5713
5714
  ZodObject: le,
5714
5715
  ZodOptional: He,
5715
- ZodParsedType: x,
5716
+ ZodParsedType: k,
5716
5717
  ZodPipeline: mn,
5717
5718
  ZodPromise: jt,
5718
5719
  ZodReadonly: Ht,
@@ -5736,7 +5737,7 @@ const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5736
5737
  datetimeRegex: cr,
5737
5738
  defaultErrorMap: ln,
5738
5739
  discriminatedUnion: kt,
5739
- enum: k,
5740
+ enum: x,
5740
5741
  getErrorMap: rr,
5741
5742
  getParsedType: We,
5742
5743
  isAborted: Yn,
@@ -5781,13 +5782,13 @@ const Ve = _({
5781
5782
  secrets: b(qs).optional()
5782
5783
  });
5783
5784
  ur.partial().extend({
5784
- status: k(["draft", "built"]).optional(),
5785
+ status: x(["draft", "built"]).optional(),
5785
5786
  deployed_at: o().optional()
5786
5787
  });
5787
5788
  ur.extend({
5788
5789
  id: o(),
5789
5790
  tenant_id: o(),
5790
- status: k(["draft", "built"]).default("built"),
5791
+ status: x(["draft", "built"]).default("built"),
5791
5792
  deployed_at: o().optional(),
5792
5793
  // Override secrets to return names only (no values) in responses
5793
5794
  secrets: b(
@@ -5798,13 +5799,13 @@ ur.extend({
5798
5799
  ).optional(),
5799
5800
  ...Ve.shape
5800
5801
  });
5801
- const Bs = k([
5802
+ const Bs = x([
5802
5803
  "user_action",
5803
5804
  "admin_action",
5804
5805
  "system",
5805
5806
  "api"
5806
5807
  ]), $s = _({
5807
- type: k(["user", "admin", "system", "api_key", "client_credentials"]),
5808
+ type: x(["user", "admin", "system", "api_key", "client_credentials"]),
5808
5809
  id: o().optional(),
5809
5810
  email: o().optional(),
5810
5811
  org_id: o().optional(),
@@ -5863,15 +5864,15 @@ const Bs = k([
5863
5864
  Qs.extend({
5864
5865
  id: o()
5865
5866
  });
5866
- k(["AUTH0", "EMAIL", "REDIRECT"]);
5867
- k([
5867
+ x(["AUTH0", "EMAIL", "REDIRECT"]);
5868
+ x([
5868
5869
  "CREATE_USER",
5869
5870
  "GET_USER",
5870
5871
  "UPDATE_USER",
5871
5872
  "SEND_REQUEST",
5872
5873
  "SEND_EMAIL"
5873
5874
  ]);
5874
- k(["VERIFY_EMAIL"]);
5875
+ x(["VERIFY_EMAIL"]);
5875
5876
  const Gs = _({
5876
5877
  require_mx_record: h().optional(),
5877
5878
  block_aliases: h().optional(),
@@ -5902,7 +5903,7 @@ const Gs = _({
5902
5903
  email: o(),
5903
5904
  rules: Gs.optional()
5904
5905
  })
5905
- }), Xs = k(["change-email", "account", "custom"]), Ys = _({
5906
+ }), Xs = x(["change-email", "account", "custom"]), Ys = _({
5906
5907
  id: o(),
5907
5908
  alias: o().max(100).optional(),
5908
5909
  type: O("REDIRECT"),
@@ -6094,7 +6095,7 @@ const dl = _({
6094
6095
  client_secret: o().default(() => ll()).optional().openapi({
6095
6096
  description: "Client secret (which you must not make public)."
6096
6097
  }),
6097
- app_type: k([
6098
+ app_type: x([
6098
6099
  "native",
6099
6100
  "spa",
6100
6101
  "regular_web",
@@ -6201,7 +6202,7 @@ const dl = _({
6201
6202
  addons: P(j()).default({}).optional().openapi({
6202
6203
  description: "Addons enabled for this client and their associated configurations."
6203
6204
  }),
6204
- token_endpoint_auth_method: k(["none", "client_secret_post", "client_secret_basic"]).default("client_secret_basic").optional().openapi({
6205
+ token_endpoint_auth_method: x(["none", "client_secret_post", "client_secret_basic"]).default("client_secret_basic").optional().openapi({
6205
6206
  description: "Defines the requested authentication method for the token endpoint. Can be none (public client without a client secret), client_secret_post (client uses HTTP POST parameters), or client_secret_basic (client uses HTTP Basic)."
6206
6207
  }),
6207
6208
  client_metadata: P(o().max(255)).default({}).optional().openapi({
@@ -6220,10 +6221,10 @@ const dl = _({
6220
6221
  default_organization: P(j()).default({}).optional().openapi({
6221
6222
  description: "Defines the default Organization ID and flows"
6222
6223
  }),
6223
- organization_usage: k(["deny", "allow", "require"]).default("deny").optional().openapi({
6224
+ organization_usage: x(["deny", "allow", "require"]).default("deny").optional().openapi({
6224
6225
  description: "Defines how to proceed during an authentication transaction with regards an organization. Can be deny (default), allow or require."
6225
6226
  }),
6226
- organization_require_behavior: k(["no_prompt", "pre_login_prompt", "post_login_prompt"]).default("no_prompt").optional().openapi({
6227
+ organization_require_behavior: x(["no_prompt", "pre_login_prompt", "post_login_prompt"]).default("no_prompt").optional().openapi({
6227
6228
  description: "Defines how to proceed during an authentication transaction when client.organization_usage: 'require'. Can be no_prompt (default), pre_login_prompt or post_login_prompt. post_login_prompt requires oidc_conformant: true."
6228
6229
  }),
6229
6230
  client_authentication_methods: P(j()).default({}).optional().openapi({
@@ -6238,7 +6239,7 @@ const dl = _({
6238
6239
  signed_request_object: P(j()).default({}).optional().openapi({
6239
6240
  description: "JWT-secured Authorization Requests (JAR) settings."
6240
6241
  }),
6241
- compliance_level: k([
6242
+ compliance_level: x([
6242
6243
  "none",
6243
6244
  "fapi1_adv_pkj_par",
6244
6245
  "fapi1_adv_mtls_par",
@@ -6254,11 +6255,14 @@ const dl = _({
6254
6255
  owner_user_id: o().optional().openapi({
6255
6256
  description: "User ID of the consenting user when this client was created via IAT-gated Dynamic Client Registration. NULL for clients created via the Management API or open DCR."
6256
6257
  }),
6257
- registration_type: k(["manual", "open_dcr", "iat_dcr"]).optional().openapi({
6258
+ registration_type: x(["manual", "open_dcr", "iat_dcr"]).optional().openapi({
6258
6259
  description: "Provenance of this client. `manual` = Management API; `open_dcr` = RFC 7591 without IAT; `iat_dcr` = RFC 7591 with an Initial Access Token."
6259
6260
  }),
6260
6261
  registration_metadata: P(j()).default({}).optional().openapi({
6261
6262
  description: "Arbitrary metadata captured at Dynamic Client Registration time that isn't a first-class client field (e.g. integration_type, domain). Also stores `iat_constraints` for clients created via IAT so RFC 7592 PUT can enforce field immutability."
6263
+ }),
6264
+ user_linking_mode: x(["builtin", "off"]).optional().openapi({
6265
+ description: "Per-client override for the built-in email-based user-linking path. `builtin` runs the legacy in-process linking at user creation/email update. `off` disables the legacy path; linking only happens if the tenant has enabled the `account-linking` template hook. When unset, the service-level `userLinkingMode` default applies."
6262
6266
  })
6263
6267
  });
6264
6268
  _({
@@ -6276,7 +6280,7 @@ const cl = _({
6276
6280
  scope: b(o()).optional().openapi({
6277
6281
  description: "Scopes allowed for this client grant."
6278
6282
  }),
6279
- organization_usage: k(["deny", "allow", "require"]).optional().openapi({
6283
+ organization_usage: x(["deny", "allow", "require"]).optional().openapi({
6280
6284
  description: "Defines whether organizations can be used with client credentials exchanges for this grant."
6281
6285
  }),
6282
6286
  allow_any_organization: h().optional().openapi({
@@ -6285,7 +6289,7 @@ const cl = _({
6285
6289
  is_system: h().optional().openapi({
6286
6290
  description: "If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly."
6287
6291
  }),
6288
- subject_type: k(["client", "user"]).optional().openapi({
6292
+ subject_type: x(["client", "user"]).optional().openapi({
6289
6293
  description: "The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement."
6290
6294
  }),
6291
6295
  authorization_details_types: b(o()).optional().openapi({
@@ -6300,7 +6304,7 @@ const cl = _({
6300
6304
  updated_at: o().optional()
6301
6305
  });
6302
6306
  b(_l);
6303
- const fr = k(["iat", "rat"]), ul = _({
6307
+ const fr = x(["iat", "rat"]), ul = _({
6304
6308
  id: o(),
6305
6309
  token_hash: o(),
6306
6310
  type: fr,
@@ -6469,10 +6473,10 @@ const yn = _({
6469
6473
  coordinates: Ot,
6470
6474
  alias: o().optional(),
6471
6475
  config: _({
6472
- action_type: k(["REDIRECT"]).openapi({
6476
+ action_type: x(["REDIRECT"]).openapi({
6473
6477
  description: "The type of action to perform"
6474
6478
  }),
6475
- target: k(["change-email", "account", "custom"]).openapi({
6479
+ target: x(["change-email", "account", "custom"]).openapi({
6476
6480
  description: "The predefined target to redirect to"
6477
6481
  }),
6478
6482
  custom_url: o().optional().openapi({
@@ -6561,7 +6565,7 @@ _({
6561
6565
  url: o()
6562
6566
  }).optional()
6563
6567
  });
6564
- const Tl = k([
6568
+ const Tl = x([
6565
6569
  "password_reset",
6566
6570
  "email_verification",
6567
6571
  "otp",
@@ -6586,7 +6590,7 @@ const Tl = k([
6586
6590
  code_challenge: o().optional().openapi({
6587
6591
  description: "The code challenge used in PKCE in outbound flows"
6588
6592
  }),
6589
- code_challenge_method: k(["plain", "S256"]).optional().openapi({
6593
+ code_challenge_method: x(["plain", "S256"]).optional().openapi({
6590
6594
  description: "The code challenge method used in PKCE in outbound flows"
6591
6595
  }),
6592
6596
  redirect_uri: o().optional().openapi({
@@ -6630,7 +6634,7 @@ const Il = _({
6630
6634
  twilio_token: o().optional(),
6631
6635
  icon_url: o().optional(),
6632
6636
  // Password policy options for Username-Password-Authentication connections
6633
- passwordPolicy: k(["none", "low", "fair", "good", "excellent"]).optional(),
6637
+ passwordPolicy: x(["none", "low", "fair", "good", "excellent"]).optional(),
6634
6638
  password_complexity_options: _({
6635
6639
  min_length: I().optional()
6636
6640
  }).optional(),
@@ -6658,7 +6662,7 @@ const Il = _({
6658
6662
  active: h().optional()
6659
6663
  }).optional(),
6660
6664
  signup: _({
6661
- status: k(["required", "optional", "disabled"]).optional(),
6665
+ status: x(["required", "optional", "disabled"]).optional(),
6662
6666
  verification: _({
6663
6667
  active: h().optional()
6664
6668
  }).optional()
@@ -6668,14 +6672,14 @@ const Il = _({
6668
6672
  }).optional(),
6669
6673
  unique: h().optional(),
6670
6674
  profile_required: h().optional(),
6671
- verification_method: k(["link", "code"]).optional()
6675
+ verification_method: x(["link", "code"]).optional()
6672
6676
  }).optional(),
6673
6677
  username: _({
6674
6678
  identifier: _({
6675
6679
  active: h().optional()
6676
6680
  }).optional(),
6677
6681
  signup: _({
6678
- status: k(["required", "optional", "disabled"]).optional()
6682
+ status: x(["required", "optional", "disabled"]).optional()
6679
6683
  }).optional(),
6680
6684
  validation: _({
6681
6685
  max_length: I().optional(),
@@ -6692,7 +6696,7 @@ const Il = _({
6692
6696
  active: h().optional()
6693
6697
  }).optional(),
6694
6698
  signup: _({
6695
- status: k(["required", "optional", "disabled"]).optional()
6699
+ status: x(["required", "optional", "disabled"]).optional()
6696
6700
  }).optional()
6697
6701
  }).optional()
6698
6702
  }).optional(),
@@ -6707,7 +6711,7 @@ const Il = _({
6707
6711
  }).optional(),
6708
6712
  // Passkey options for Username-Password-Authentication connections
6709
6713
  passkey_options: _({
6710
- challenge_ui: k(["both", "autofill", "button"]).optional(),
6714
+ challenge_ui: x(["both", "autofill", "button"]).optional(),
6711
6715
  local_enrollment_enabled: h().optional(),
6712
6716
  progressive_enrollment_enabled: h().optional()
6713
6717
  }).optional(),
@@ -6720,7 +6724,7 @@ const Il = _({
6720
6724
  }).optional()
6721
6725
  }).optional(),
6722
6726
  // Controls when root user attributes are updated from external IdP
6723
- set_user_root_attributes: k(["on_each_login", "on_first_login", "never_on_login"]).optional()
6727
+ set_user_root_attributes: x(["on_each_login", "on_first_login", "never_on_login"]).optional()
6724
6728
  }), Cl = _({
6725
6729
  id: o().optional(),
6726
6730
  name: o(),
@@ -6743,10 +6747,10 @@ _({
6743
6747
  const Dl = _({
6744
6748
  domain: o(),
6745
6749
  custom_domain_id: o().optional(),
6746
- type: k(["auth0_managed_certs", "self_managed_certs"]),
6747
- verification_method: k(["txt"]).optional(),
6748
- tls_policy: k(["recommended"]).optional(),
6749
- custom_client_ip_header: k([
6750
+ type: x(["auth0_managed_certs", "self_managed_certs"]),
6751
+ verification_method: x(["txt"]).optional(),
6752
+ tls_policy: x(["recommended"]).optional(),
6753
+ custom_client_ip_header: x([
6750
6754
  "true-client-ip",
6751
6755
  "cf-connecting-ip",
6752
6756
  "x-forwarded-for",
@@ -6769,7 +6773,7 @@ const Dl = _({
6769
6773
  ...Dl.shape,
6770
6774
  custom_domain_id: o(),
6771
6775
  primary: h(),
6772
- status: k(["disabled", "pending", "pending_verification", "ready"]),
6776
+ status: x(["disabled", "pending", "pending_verification", "ready"]),
6773
6777
  origin_domain_name: o().optional(),
6774
6778
  verification: _({
6775
6779
  methods: b(Ll)
@@ -6859,7 +6863,7 @@ const vi = _({
6859
6863
  _({
6860
6864
  id: I().optional(),
6861
6865
  text: o(),
6862
- type: k(["info", "error", "success", "warning"])
6866
+ type: x(["info", "error", "success", "warning"])
6863
6867
  })
6864
6868
  ).optional(),
6865
6869
  required: h().optional(),
@@ -6891,7 +6895,7 @@ const vi = _({
6891
6895
  label: o()
6892
6896
  })
6893
6897
  ).optional(),
6894
- display: k(["radio", "checkbox"]).optional(),
6898
+ display: x(["radio", "checkbox"]).optional(),
6895
6899
  multiple: h().optional(),
6896
6900
  default_value: Pe([o(), b(o())]).optional()
6897
6901
  }).optional()
@@ -7142,7 +7146,7 @@ _({
7142
7146
  const md = _({
7143
7147
  id: I().optional(),
7144
7148
  text: o(),
7145
- type: k(["info", "error", "success", "warning"])
7149
+ type: x(["info", "error", "success", "warning"])
7146
7150
  }), yd = _({
7147
7151
  id: o().optional(),
7148
7152
  text: o(),
@@ -7153,7 +7157,7 @@ _({
7153
7157
  /** Screen identifier for CSS targeting (e.g., 'identifier', 'enter-password', 'signup') */
7154
7158
  name: o().optional(),
7155
7159
  action: o(),
7156
- method: k(["POST", "GET"]),
7160
+ method: x(["POST", "GET"]),
7157
7161
  title: o().optional(),
7158
7162
  description: o().optional(),
7159
7163
  components: b(wr),
@@ -7162,32 +7166,36 @@ _({
7162
7166
  /** Footer HTML content displayed at the very bottom of the widget (e.g., terms and conditions) */
7163
7167
  footer: o().optional()
7164
7168
  });
7165
- const Nr = k([
7169
+ const Nr = x([
7166
7170
  "pre-user-registration",
7167
7171
  "post-user-registration",
7168
7172
  "post-user-login",
7173
+ "post-user-update",
7169
7174
  "validate-registration-username",
7170
7175
  "pre-user-deletion",
7171
7176
  "post-user-deletion"
7172
7177
  // Potentially other triggers specific to webhooks in the future
7173
- ]), Sr = k([
7178
+ ]), Sr = x([
7174
7179
  "pre-user-registration",
7175
7180
  "post-user-registration",
7176
7181
  "post-user-login",
7177
7182
  "validate-registration-username",
7178
7183
  "pre-user-deletion",
7179
7184
  "post-user-deletion"
7180
- ]), br = k([
7185
+ ]), br = x([
7181
7186
  "post-user-login",
7187
+ "post-user-registration",
7188
+ "post-user-update",
7182
7189
  "credentials-exchange"
7183
- ]), Er = k([
7190
+ ]), Er = x([
7184
7191
  "post-user-login",
7185
7192
  "credentials-exchange",
7186
7193
  "pre-user-registration",
7187
7194
  "post-user-registration"
7188
- ]), xr = k([
7195
+ ]), xr = x([
7189
7196
  "ensure-username",
7190
- "set-preferred-username"
7197
+ "set-preferred-username",
7198
+ "account-linking"
7191
7199
  ]), _t = {
7192
7200
  enabled: h().default(!1),
7193
7201
  synchronous: h().default(!1),
@@ -7281,7 +7289,7 @@ _({
7281
7289
  ticket_id: o().optional()
7282
7290
  }).extend(Id.shape);
7283
7291
  const Cd = _({
7284
- alg: k([
7292
+ alg: x([
7285
7293
  "RS256",
7286
7294
  "RS384",
7287
7295
  "RS512",
@@ -7294,11 +7302,11 @@ const Cd = _({
7294
7302
  ]),
7295
7303
  e: o(),
7296
7304
  kid: o(),
7297
- kty: k(["RSA", "EC", "oct"]),
7305
+ kty: x(["RSA", "EC", "oct"]),
7298
7306
  n: o(),
7299
7307
  x5t: o().optional(),
7300
7308
  x5c: b(o()).optional(),
7301
- use: k(["sig", "enc"]).optional()
7309
+ use: x(["sig", "enc"]).optional()
7302
7310
  });
7303
7311
  _({
7304
7312
  keys: b(Cd)
@@ -7584,7 +7592,7 @@ const qd = _({
7584
7592
  id: o().optional(),
7585
7593
  user_id: o(),
7586
7594
  password: o(),
7587
- algorithm: k(["bcrypt", "argon2id"]).default("argon2id"),
7595
+ algorithm: x(["bcrypt", "argon2id"]).default("argon2id"),
7588
7596
  is_current: h().default(!0)
7589
7597
  });
7590
7598
  qd.extend({
@@ -7641,7 +7649,7 @@ _({
7641
7649
  connection: o().optional().openapi({
7642
7650
  description: "The connection identifier associated with the key"
7643
7651
  }),
7644
- type: k(["jwt_signing", "saml_encryption"]).openapi({
7652
+ type: x(["jwt_signing", "saml_encryption"]).openapi({
7645
7653
  description: "The type of the signing key"
7646
7654
  })
7647
7655
  });
@@ -7663,7 +7671,7 @@ const $d = _({
7663
7671
  ephemeral_session_lifetime: I().optional(),
7664
7672
  idle_ephemeral_session_lifetime: I().optional(),
7665
7673
  session_cookie: _({
7666
- mode: k(["persistent", "non-persistent"]).optional()
7674
+ mode: x(["persistent", "non-persistent"]).optional()
7667
7675
  }).optional(),
7668
7676
  // Logout settings
7669
7677
  allowed_logout_urls: b(o()).optional(),
@@ -7755,7 +7763,7 @@ const $d = _({
7755
7763
  }).optional(),
7756
7764
  // Device flow settings
7757
7765
  device_flow: _({
7758
- charset: k(["base20", "digits"]).optional(),
7766
+ charset: x(["base20", "digits"]).optional(),
7759
7767
  mask: o().max(20).optional()
7760
7768
  }).optional(),
7761
7769
  // Default token quota
@@ -7795,7 +7803,7 @@ const $d = _({
7795
7803
  // Guardian MFA Factors configuration (internal storage, exposed via /guardian API)
7796
7804
  mfa: _({
7797
7805
  // MFA policy: "never" = MFA disabled, "always" = MFA required for all logins
7798
- policy: k(["never", "always"]).default("never").optional(),
7806
+ policy: x(["never", "always"]).default("never").optional(),
7799
7807
  // Factor states
7800
7808
  factors: _({
7801
7809
  sms: h().default(!1),
@@ -7809,7 +7817,7 @@ const $d = _({
7809
7817
  }).optional(),
7810
7818
  // SMS provider configuration
7811
7819
  sms_provider: _({
7812
- provider: k(["twilio", "vonage", "aws_sns", "phone_message_hook"]).optional()
7820
+ provider: x(["twilio", "vonage", "aws_sns", "phone_message_hook"]).optional()
7813
7821
  }).optional(),
7814
7822
  // Twilio-specific configuration
7815
7823
  twilio: _({
@@ -7846,10 +7854,10 @@ _({
7846
7854
  const jd = _({
7847
7855
  button_border_radius: I(),
7848
7856
  button_border_weight: I(),
7849
- buttons_style: k(["pill", "rounded", "sharp"]),
7857
+ buttons_style: x(["pill", "rounded", "sharp"]),
7850
7858
  input_border_radius: I(),
7851
7859
  input_border_weight: I(),
7852
- inputs_style: k(["pill", "rounded", "sharp"]),
7860
+ inputs_style: x(["pill", "rounded", "sharp"]),
7853
7861
  show_widget_shadow: h(),
7854
7862
  widget_border_weight: I(),
7855
7863
  widget_corner_radius: I()
@@ -7857,7 +7865,7 @@ const jd = _({
7857
7865
  base_focus_color: o(),
7858
7866
  base_hover_color: o(),
7859
7867
  body_text: o(),
7860
- captcha_widget_theme: k(["auto", "dark", "light"]),
7868
+ captcha_widget_theme: x(["auto", "dark", "light"]),
7861
7869
  error: o(),
7862
7870
  header: o(),
7863
7871
  icons: o(),
@@ -7882,20 +7890,20 @@ const jd = _({
7882
7890
  font_url: o(),
7883
7891
  input_labels: vt,
7884
7892
  links: vt,
7885
- links_style: k(["normal", "underlined"]),
7893
+ links_style: x(["normal", "underlined"]),
7886
7894
  reference_text_size: I(),
7887
7895
  subtitle: vt,
7888
7896
  title: vt
7889
7897
  }), Hd = _({
7890
7898
  background_color: o(),
7891
7899
  background_image_url: o(),
7892
- page_layout: k(["center", "left", "right"])
7900
+ page_layout: x(["center", "left", "right"])
7893
7901
  }), Kd = _({
7894
- header_text_alignment: k(["center", "left", "right"]),
7902
+ header_text_alignment: x(["center", "left", "right"]),
7895
7903
  logo_height: I(),
7896
- logo_position: k(["center", "left", "none", "right"]),
7904
+ logo_position: x(["center", "left", "none", "right"]),
7897
7905
  logo_url: o(),
7898
- social_buttons_layout: k(["bottom", "top"])
7906
+ social_buttons_layout: x(["bottom", "top"])
7899
7907
  }), Qd = _({
7900
7908
  borders: jd,
7901
7909
  colors: Vd,
@@ -7908,7 +7916,7 @@ Qd.extend({
7908
7916
  themeId: o()
7909
7917
  });
7910
7918
  _({
7911
- universal_login_experience: k(["new", "classic"]).default("new"),
7919
+ universal_login_experience: x(["new", "classic"]).default("new"),
7912
7920
  identifier_first: h().default(!0),
7913
7921
  password_first: h().default(!1),
7914
7922
  webauthn_platform_first_factor: h()
@@ -7986,7 +7994,7 @@ const Jd = _({
7986
7994
  value: o(),
7987
7995
  description: o().optional()
7988
7996
  }), Wd = _({
7989
- token_dialect: k(["access_token", "access_token_authz"]).optional(),
7997
+ token_dialect: x(["access_token", "access_token_authz"]).optional(),
7990
7998
  enforce_policies: h().optional(),
7991
7999
  allow_skipping_userinfo: h().optional(),
7992
8000
  skip_userinfo: h().optional(),
@@ -8163,7 +8171,7 @@ _({
8163
8171
  idle_session_lifetime: I().default(72),
8164
8172
  session_lifetime: I().default(168),
8165
8173
  session_cookie: _({
8166
- mode: k(["persistent", "non-persistent"]).optional()
8174
+ mode: x(["persistent", "non-persistent"]).optional()
8167
8175
  }).optional(),
8168
8176
  // MFA settings
8169
8177
  enable_client_connections: h().optional(),
@@ -8230,7 +8238,7 @@ _({
8230
8238
  // Guardian MFA Factors configuration (internal storage, exposed via /guardian API)
8231
8239
  mfa: _({
8232
8240
  // MFA policy: "never" = MFA disabled, "always" = MFA required for all logins
8233
- policy: k(["never", "always"]).default("never").optional(),
8241
+ policy: x(["never", "always"]).default("never").optional(),
8234
8242
  // Factor states
8235
8243
  factors: _({
8236
8244
  sms: h().default(!1),
@@ -8244,7 +8252,7 @@ _({
8244
8252
  }).optional(),
8245
8253
  // SMS provider configuration
8246
8254
  sms_provider: _({
8247
- provider: k(["twilio", "vonage", "aws_sns", "phone_message_hook"]).optional()
8255
+ provider: x(["twilio", "vonage", "aws_sns", "phone_message_hook"]).optional()
8248
8256
  }).optional(),
8249
8257
  // Twilio-specific configuration
8250
8258
  twilio: _({
@@ -8289,7 +8297,7 @@ I().openapi({
8289
8297
  description: "Number of active users in the last 30 days",
8290
8298
  example: 1234
8291
8299
  });
8292
- const fc = k([
8300
+ const fc = x([
8293
8301
  "login",
8294
8302
  "login-id",
8295
8303
  "login-password",
@@ -8330,7 +8338,7 @@ _({
8330
8338
  language: o(),
8331
8339
  custom_text: hc
8332
8340
  });
8333
- const gc = k([
8341
+ const gc = x([
8334
8342
  "phone",
8335
8343
  "totp",
8336
8344
  "email",