@domino-sdk/relay 1.62.0 → 1.63.0

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +120 -0
  2. package/dist/{accounts-CCqCKCVx.d.ts → accounts-nz3mzfRQ.d.ts} +21 -3
  3. package/dist/{attempt-captures-Cm-5G0PC.d.ts → attempt-captures-DMi8oR9T.d.ts} +1 -1
  4. package/dist/authoring.d.ts +54 -20
  5. package/dist/authoring.js +58 -24
  6. package/dist/{automatic-outcomes-pAsOyIVp.d.ts → automatic-outcomes-C_LLQU1p.d.ts} +11 -1
  7. package/dist/avatar.d.ts +1 -1
  8. package/dist/browser.d.ts +9 -9
  9. package/dist/browser.js +15 -13
  10. package/dist/capability-error-CuI_F7yM.d.ts +296 -0
  11. package/dist/{catalog--ZIlskAo.d.ts → catalog-BaTOKpNw.d.ts} +21 -10
  12. package/dist/{chunk-3PYYGFSB.js → chunk-3RFP6GT5.js} +3 -3
  13. package/dist/{chunk-HTZHBTIL.js → chunk-4GQW43UU.js} +193 -357
  14. package/dist/{chunk-D26YNACF.js → chunk-4NOFSGAL.js} +56 -56
  15. package/dist/{chunk-UW5232GG.js → chunk-5XLZ34PV.js} +5 -5
  16. package/dist/{chunk-QYPMPWVX.js → chunk-7X67QLPB.js} +43 -43
  17. package/dist/{chunk-5TEYFX6X.js → chunk-7Z4SZ6YM.js} +2 -2
  18. package/dist/{chunk-Y322OTCH.js → chunk-AQOL3SK5.js} +1 -1
  19. package/dist/{chunk-CICDIBOF.js → chunk-EHUSD3O2.js} +76 -72
  20. package/dist/chunk-FO2LCZTL.js +19 -0
  21. package/dist/{chunk-3KLC4AMA.js → chunk-FU5CGNTR.js} +135 -173
  22. package/dist/{chunk-K2KS3JLY.js → chunk-GLH6MEI2.js} +7 -2
  23. package/dist/chunk-ICXZZNPS.js +199 -0
  24. package/dist/{chunk-MK425RXJ.js → chunk-ID3BZXFZ.js} +709 -640
  25. package/dist/{chunk-UAKYDVT3.js → chunk-KP2MCX3R.js} +111 -89
  26. package/dist/{chunk-GKIFABGN.js → chunk-LZWXCBUB.js} +74 -247
  27. package/dist/{chunk-6WCIWXUV.js → chunk-MTKRIQEU.js} +2 -2
  28. package/dist/{chunk-4OC7REYX.js → chunk-MWMCQLCG.js} +3 -3
  29. package/dist/{chunk-XJFYAXET.js → chunk-N4BDKS6Y.js} +19 -19
  30. package/dist/{chunk-E6IKQHTX.js → chunk-N4LNEGQX.js} +2 -2
  31. package/dist/chunk-NQDEWJWE.js +554 -0
  32. package/dist/{chunk-GTDW453U.js → chunk-QR6HH4DI.js} +100 -114
  33. package/dist/chunk-TLSQETTY.js +41 -0
  34. package/dist/{chunk-CZFXGGEK.js → chunk-U66GUVSG.js} +2 -2
  35. package/dist/{chunk-KDR2VAJP.js → chunk-UYVJZR33.js} +2 -2
  36. package/dist/chunk-UZ765UGH.js +18 -0
  37. package/dist/{chunk-XNKSSE32.js → chunk-VWQGWGCH.js} +7 -7
  38. package/dist/{chunk-WSBYWVTZ.js → chunk-W7YSMSGC.js} +166 -158
  39. package/dist/{client-B-hbHX30.d.ts → client-DHmG7rn6.d.ts} +25 -61
  40. package/dist/{capability-error-DFMwSuSf.d.ts → dashboards-CLemT6kj.d.ts} +14 -294
  41. package/dist/{deployments-M4OHn7G3.d.ts → deployments-DTULi7dF.d.ts} +46 -3
  42. package/dist/{identity-integration-3mX6b5iH.d.ts → identity-integration-DOeNZaxF.d.ts} +32 -2
  43. package/dist/index.d.ts +10 -10
  44. package/dist/index.js +13 -11
  45. package/dist/internal.d.ts +27 -13
  46. package/dist/internal.js +41 -13
  47. package/dist/{analytics-BwAKLi7O.d.ts → limits-kNzYdZ00.d.ts} +124 -3
  48. package/dist/{offers-DhAtss4_.d.ts → offers-CYeN_I0Y.d.ts} +3 -2
  49. package/dist/portal-proxy.d.ts +19 -3
  50. package/dist/portal-proxy.js +64 -22
  51. package/dist/react/index.d.ts +21 -14
  52. package/dist/react/index.js +55 -29
  53. package/dist/{pages-B8q8Y_dQ.d.ts → reward-deliveries-drp-x1G-.d.ts} +300 -233
  54. package/dist/runtime/authoring.js +1 -1
  55. package/dist/runtime/chunks/UGDV5W4N.js +1 -0
  56. package/dist/runtime/manifest.json +3 -3
  57. package/dist/runtime/schema.js +1 -1
  58. package/dist/schema.d.ts +193 -18
  59. package/dist/schema.js +31 -26
  60. package/dist/server/index.d.ts +13 -13
  61. package/dist/server/index.js +5885 -6224
  62. package/dist/{sign-in-providers-BkjcDsFF.d.ts → sign-in-providers-B1Q9eDRm.d.ts} +7 -2
  63. package/dist/{submission-input-DHGKhXfp.d.ts → submission-input-DZCbjQUH.d.ts} +3 -2
  64. package/dist/{telegram-browser-BCE7zdOb.d.ts → telegram-browser-NL0Asmsi.d.ts} +4 -4
  65. package/dist/telegram.d.ts +8 -8
  66. package/dist/telegram.js +2 -2
  67. package/dist/testing.d.ts +228 -26
  68. package/dist/testing.js +137 -92
  69. package/dist/{tracker-data-Hb1uQnk5.d.ts → tracker-data-esm3WG8R.d.ts} +34 -8
  70. package/dist/{transport-DkhX2Cbs.d.ts → transport-Czht_irp.d.ts} +41259 -39835
  71. package/dist/{wallet-DTO7SXj7.d.ts → wallet-B7e06v4m.d.ts} +14 -4
  72. package/package.json +1 -1
  73. package/dist/chunk-UPQPUJOU.js +0 -457
  74. package/dist/runtime/chunks/Y4OAVXFR.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  authScopeSchema,
3
3
  exchangeResultSchema
4
- } from "./chunk-XJFYAXET.js";
4
+ } from "./chunk-N4BDKS6Y.js";
5
5
  import {
6
6
  appIdentityKindSchema,
7
7
  cosmosAddressSchema,
@@ -11,11 +11,11 @@ import {
11
11
  offsetDateTimeSchema,
12
12
  openIdentityKindSchema,
13
13
  solanaAddressSchema
14
- } from "./chunk-MK425RXJ.js";
14
+ } from "./chunk-ID3BZXFZ.js";
15
15
 
16
16
  // src/credential-secrets.ts
17
17
  import * as z from "zod";
18
- var credentialSecretSchema = z.object({
18
+ var credentialSecretSchema = /* @__PURE__ */ (() => z.object({
19
19
  id: z.string().uuid(),
20
20
  /** The secret's last four characters, to tell secrets apart; null for one issued before hints. */
21
21
  hint: z.string().nullable(),
@@ -24,18 +24,18 @@ var credentialSecretSchema = z.object({
24
24
  expiresAt: z.number().nullable(),
25
25
  /** When the secret last authenticated a request; null when it never has. */
26
26
  lastUsedAt: z.number().nullable()
27
- });
28
- var credentialSecretInputSchema = z.object({
27
+ }))();
28
+ var credentialSecretInputSchema = /* @__PURE__ */ (() => z.object({
29
29
  expiresInDays: z.number().int().min(1).max(3650).optional()
30
- }).strict();
30
+ }).strict())();
31
31
 
32
32
  // src/server/member-imports.ts
33
33
  import * as z2 from "zod";
34
- var importTimeSchema = z2.union([
34
+ var importTimeSchema = /* @__PURE__ */ (() => z2.union([
35
35
  z2.number().int().nonnegative().safe(),
36
36
  offsetDateTimeSchema().transform((value) => Date.parse(value))
37
- ]);
38
- var importWalletSchema = z2.discriminatedUnion("chain", [
37
+ ]))();
38
+ var importWalletSchema = /* @__PURE__ */ (() => z2.discriminatedUnion("chain", [
39
39
  z2.object({
40
40
  kind: z2.literal("wallet"),
41
41
  chain: z2.literal("solana"),
@@ -52,47 +52,47 @@ var importWalletSchema = z2.discriminatedUnion("chain", [
52
52
  network: cosmosNetworkSchema,
53
53
  address: cosmosAddressSchema
54
54
  }).strict()
55
- ]);
56
- var importXSchema = z2.object({
55
+ ]))();
56
+ var importXSchema = /* @__PURE__ */ (() => z2.object({
57
57
  kind: z2.literal("x"),
58
58
  subject: z2.string().regex(/^[1-9][0-9]{0,19}$/, "Use the numeric X user ID")
59
- }).strict();
60
- var importTelegramSchema = z2.object({
59
+ }).strict())();
60
+ var importTelegramSchema = /* @__PURE__ */ (() => z2.object({
61
61
  kind: z2.literal("telegram"),
62
62
  subject: z2.string().regex(/^[1-9][0-9]{0,19}$/, "Use the numeric Telegram user ID")
63
- }).strict();
64
- var importDiscordSchema = z2.object({
63
+ }).strict())();
64
+ var importDiscordSchema = /* @__PURE__ */ (() => z2.object({
65
65
  kind: z2.literal("discord"),
66
66
  subject: z2.string().regex(/^[1-9][0-9]{0,19}$/, "Use the numeric Discord user ID")
67
- }).strict();
68
- var importAppIdentitySchema = z2.object({ kind: appIdentityKindSchema, subject: z2.string().min(1).max(256) }).strict();
69
- var memberImportIdentitySchema = z2.union([
67
+ }).strict())();
68
+ var importAppIdentitySchema = /* @__PURE__ */ (() => z2.object({ kind: appIdentityKindSchema, subject: z2.string().min(1).max(256) }).strict())();
69
+ var memberImportIdentitySchema = /* @__PURE__ */ (() => z2.union([
70
70
  importAppIdentitySchema,
71
71
  importWalletSchema,
72
72
  importXSchema
73
- ]);
74
- var memberImportAccountSchema = z2.union([
73
+ ]))();
74
+ var memberImportAccountSchema = /* @__PURE__ */ (() => z2.union([
75
75
  importWalletSchema,
76
76
  importXSchema
77
- ]);
78
- var memberImportVouchedAccountSchema = z2.union([
77
+ ]))();
78
+ var memberImportVouchedAccountSchema = /* @__PURE__ */ (() => z2.union([
79
79
  importWalletSchema,
80
80
  importXSchema,
81
81
  importTelegramSchema,
82
82
  importDiscordSchema
83
- ]);
84
- var identityReferenceSchema = z2.union([
83
+ ]))();
84
+ var identityReferenceSchema = /* @__PURE__ */ (() => z2.union([
85
85
  importAppIdentitySchema,
86
86
  importWalletSchema,
87
87
  importXSchema,
88
88
  importTelegramSchema,
89
89
  importDiscordSchema
90
- ]);
91
- var memberImportActionSchema = z2.object({
90
+ ]))();
91
+ var memberImportActionSchema = /* @__PURE__ */ (() => z2.object({
92
92
  at: importTimeSchema,
93
93
  key: z2.string().min(1).max(200).optional()
94
- }).strict();
95
- var memberImportReferralSchema = z2.object({
94
+ }).strict())();
95
+ var memberImportReferralSchema = /* @__PURE__ */ (() => z2.object({
96
96
  /**
97
97
  * The inviter: the `ref` of another row of this import, or the sign-in identity of a member
98
98
  * who already exists in this environment.
@@ -107,8 +107,8 @@ var memberImportReferralSchema = z2.object({
107
107
  qualified: z2.array(
108
108
  z2.object({ program: z2.string().min(1).max(200), at: importTimeSchema }).strict()
109
109
  ).max(50).default([])
110
- }).strict();
111
- var memberImportConsentSchema = z2.object({
110
+ }).strict())();
111
+ var memberImportConsentSchema = /* @__PURE__ */ (() => z2.object({
112
112
  /** The channel, such as `email`. */
113
113
  channel: z2.string().min(1).max(64),
114
114
  state: z2.enum(["granted", "withdrawn"]),
@@ -121,8 +121,8 @@ var memberImportConsentSchema = z2.object({
121
121
  // The 2,000-character limit is a row refusal at check, so a long wording refuses its row
122
122
  // instead of the batch; this bound only caps what a row stores.
123
123
  wording: z2.string().max(8e3).optional()
124
- }).strict();
125
- var memberImportRowSchema = z2.object({
124
+ }).strict())();
125
+ var memberImportRowSchema = /* @__PURE__ */ (() => z2.object({
126
126
  /** The member's ID on the platform they come from. Unique within an import. */
127
127
  ref: z2.string().trim().min(1).max(200),
128
128
  identity: memberImportIdentitySchema,
@@ -144,17 +144,17 @@ var memberImportRowSchema = z2.object({
144
144
  referral: memberImportReferralSchema.optional(),
145
145
  /** The member's marketing consent, per channel, as the platform they come from recorded it. */
146
146
  consent: z2.array(memberImportConsentSchema).max(10).optional()
147
- }).strict();
148
- var memberImportFullRowSchema = memberImportRowSchema.extend({
147
+ }).strict())();
148
+ var memberImportFullRowSchema = /* @__PURE__ */ (() => memberImportRowSchema.extend({
149
149
  accounts: z2.array(memberImportVouchedAccountSchema).max(20).default([])
150
- }).strict();
151
- var memberImportCreateSchema = z2.object({
150
+ }).strict())();
151
+ var memberImportCreateSchema = /* @__PURE__ */ (() => z2.object({
152
152
  actionId: identifier,
153
153
  /** Where the members come from, such as "legacy-domino". */
154
154
  source: z2.string().trim().min(1).max(100)
155
- }).strict();
156
- var memberImportRowsInputSchema = z2.object({ rows: z2.array(memberImportRowSchema).min(1).max(500) }).strict();
157
- var memberImportFullRowsInputSchema = z2.object({ rows: z2.array(memberImportFullRowSchema).min(1).max(500) }).strict();
155
+ }).strict())();
156
+ var memberImportRowsInputSchema = /* @__PURE__ */ (() => z2.object({ rows: z2.array(memberImportRowSchema).min(1).max(500) }).strict())();
157
+ var memberImportFullRowsInputSchema = /* @__PURE__ */ (() => z2.object({ rows: z2.array(memberImportFullRowSchema).min(1).max(500) }).strict())();
158
158
  var MemberImportRefusalCode = {
159
159
  /** An account or identity belongs to another member in the project. */
160
160
  AccountLinkedElsewhere: "account-linked-elsewhere",
@@ -213,12 +213,12 @@ var MemberImportRefusalCode = {
213
213
  /** No referral program of that key or ID in this environment, or it is archived. */
214
214
  UnknownReferralProgram: "unknown-referral-program"
215
215
  };
216
- var refusalCodeSchema = z2.string();
217
- var memberImportRefusalSchema = z2.object({
216
+ var refusalCodeSchema = /* @__PURE__ */ (() => z2.string())();
217
+ var memberImportRefusalSchema = /* @__PURE__ */ (() => z2.object({
218
218
  code: refusalCodeSchema,
219
219
  message: z2.string()
220
- });
221
- var memberImportRowResultSchema = z2.object({
220
+ }))();
221
+ var memberImportRowResultSchema = /* @__PURE__ */ (() => z2.object({
222
222
  line: z2.number().int().positive(),
223
223
  ref: z2.string(),
224
224
  status: z2.enum(["pending", "ready", "applied", "refused"]),
@@ -232,17 +232,17 @@ var memberImportRowResultSchema = z2.object({
232
232
  * this field.
233
233
  */
234
234
  reverted: z2.boolean().optional()
235
- });
236
- var memberImportRowPageSchema = z2.object({
235
+ }))();
236
+ var memberImportRowPageSchema = /* @__PURE__ */ (() => z2.object({
237
237
  items: z2.array(memberImportRowResultSchema),
238
238
  nextCursor: z2.string().nullable()
239
- });
240
- var memberImportRowQuerySchema = z2.object({
239
+ }))();
240
+ var memberImportRowQuerySchema = /* @__PURE__ */ (() => z2.object({
241
241
  status: z2.enum(["pending", "ready", "applied", "refused"]).optional(),
242
242
  cursor: z2.string().max(200).optional(),
243
243
  limit: z2.coerce.number().int().min(1).max(500).optional()
244
- }).strict();
245
- var memberImportSummarySchema = z2.object({
244
+ }).strict())();
245
+ var memberImportSummarySchema = /* @__PURE__ */ (() => z2.object({
246
246
  rows: z2.number().int().nonnegative(),
247
247
  ready: z2.number().int().nonnegative(),
248
248
  refused: z2.number().int().nonnegative(),
@@ -277,13 +277,13 @@ var memberImportSummarySchema = z2.object({
277
277
  refusals: z2.array(
278
278
  z2.object({ code: refusalCodeSchema, rows: z2.number().int().nonnegative() })
279
279
  )
280
- });
281
- var memberImportCommandSchema = z2.object({ actionId: identifier.optional() }).strict();
282
- var memberImportRevertInputSchema = z2.object({
280
+ }))();
281
+ var memberImportCommandSchema = /* @__PURE__ */ (() => z2.object({ actionId: identifier.optional() }).strict())();
282
+ var memberImportRevertInputSchema = /* @__PURE__ */ (() => z2.object({
283
283
  actionId: identifier,
284
284
  reason: z2.string().trim().min(1).max(500)
285
- }).strict();
286
- var memberImportRevertOutcomeSchema = z2.object({
285
+ }).strict())();
286
+ var memberImportRevertOutcomeSchema = /* @__PURE__ */ (() => z2.object({
287
287
  reversed: z2.object({
288
288
  /** Applied rows the revert went through. */
289
289
  rows: z2.number().int().nonnegative(),
@@ -309,7 +309,9 @@ var memberImportRevertOutcomeSchema = z2.object({
309
309
  /**
310
310
  * Links the rows created that stay, because the member relied on them since: `signed-in` with
311
311
  * it, or `proved` a vouched wallet. `kind` is `wallet`, the provider (`x`, `telegram`,
312
- * `discord`) or `app:<name>`; `account` is the address or subject.
312
+ * `discord`) or `app:<name>`; `account` is the address or subject. A row whose member was erased
313
+ * (`members.erase`) is passed over whole: one entry with `kind: "member"`, the member ID as
314
+ * `account` and reason `member-erased`, and nothing of that row is reversed.
313
315
  */
314
316
  keptLinks: z2.array(
315
317
  z2.object({
@@ -324,8 +326,8 @@ var memberImportRevertOutcomeSchema = z2.object({
324
326
  * links all stay, and only their balances and completions were reversed.
325
327
  */
326
328
  linksUntracked: z2.boolean()
327
- });
328
- var memberImportRevertSchema = z2.object({
329
+ }))();
330
+ var memberImportRevertSchema = /* @__PURE__ */ (() => z2.object({
329
331
  reason: z2.string(),
330
332
  requestedAt: z2.number().int(),
331
333
  requestedBy: z2.string().nullable(),
@@ -333,7 +335,7 @@ var memberImportRevertSchema = z2.object({
333
335
  rows: z2.number().int().nonnegative(),
334
336
  revertedAt: z2.number().int().nullable(),
335
337
  outcome: memberImportRevertOutcomeSchema.nullable()
336
- });
338
+ }))();
337
339
  var MemberImportState = {
338
340
  /** Rows are being added. */
339
341
  Open: "open",
@@ -354,8 +356,8 @@ var MemberImportState = {
354
356
  /** Canceled before it was applied. */
355
357
  Canceled: "canceled"
356
358
  };
357
- var memberImportStateSchema = z2.string();
358
- var memberImportSchema = z2.object({
359
+ var memberImportStateSchema = /* @__PURE__ */ (() => z2.string())();
360
+ var memberImportSchema = /* @__PURE__ */ (() => z2.object({
359
361
  id: identifier,
360
362
  source: z2.string(),
361
363
  /**
@@ -395,27 +397,34 @@ var memberImportSchema = z2.object({
395
397
  stoppedBy: z2.string().nullish(),
396
398
  /** Set once a revert was asked for: the import is `reverting`, then `reverted`. */
397
399
  revert: memberImportRevertSchema.nullish()
398
- });
399
- var memberImportPageSchema = z2.object({
400
+ }))();
401
+ var memberImportPageSchema = /* @__PURE__ */ (() => z2.object({
400
402
  items: z2.array(memberImportSchema),
401
403
  nextCursor: z2.string().nullable()
402
- });
403
- var memberImportListQuerySchema = z2.object({
404
+ }))();
405
+ var memberImportListQuerySchema = /* @__PURE__ */ (() => z2.object({
404
406
  cursor: z2.string().max(200).optional(),
405
407
  limit: z2.coerce.number().int().min(1).max(100).optional()
406
- }).strict();
408
+ }).strict())();
407
409
 
408
410
  // src/identity-integration.ts
409
411
  import * as z3 from "zod";
410
- var identityIntegrationInputSchema = z3.object({
412
+ var identityIntegrationInputSchema = /* @__PURE__ */ (() => z3.object({
411
413
  name: z3.string().trim().min(1).max(80),
412
- origin: z3.string().url().refine((value) => {
414
+ origin: z3.string().url().superRefine((value, context) => {
413
415
  const url = new URL(value);
414
- return url.protocol === "https:" && url.origin === value;
415
- }, "Use an exact HTTPS application origin"),
416
+ if (url.protocol !== "https:") {
417
+ context.addIssue({ code: "custom", message: "Use an HTTPS origin." });
418
+ } else if (url.origin !== value) {
419
+ context.addIssue({
420
+ code: "custom",
421
+ message: `Use the exact origin ${url.origin}, without a path, query or trailing slash.`
422
+ });
423
+ }
424
+ }),
416
425
  /**
417
426
  * The identity kind this integration owns in the project and environment, such as
418
- * `app:telegram`. Each member it signs in gets the exchanged subject as an identity of this
427
+ * `app:game`. Each member it signs in gets the exchanged subject as an identity of this
419
428
  * kind, which tracker attribution and `ctx.member.identities()` read. Its kind cannot change.
420
429
  * Omit it for an integration that only signs members in.
421
430
  *
@@ -441,8 +450,8 @@ var identityIntegrationInputSchema = z3.object({
441
450
  ).refine(
442
451
  (input) => !input.adoptIdentitiesFrom === !input.reason,
443
452
  "Give a reason when adopting identities, and only then"
444
- );
445
- var identityIntegrationSchema = z3.object({
453
+ ))();
454
+ var identityIntegrationSchema = /* @__PURE__ */ (() => z3.object({
446
455
  ...authScopeSchema.shape,
447
456
  id: z3.string().uuid(),
448
457
  name: z3.string(),
@@ -465,13 +474,13 @@ var identityIntegrationSchema = z3.object({
465
474
  * (`accounts` on the exchange). False in Relay versions without it.
466
475
  */
467
476
  vouchesAccounts: z3.boolean().default(false)
468
- });
469
- var identityIntegrationSecretSchema = identityIntegrationSchema.extend(
477
+ }))();
478
+ var identityIntegrationSecretSchema = /* @__PURE__ */ (() => identityIntegrationSchema.extend(
470
479
  {
471
480
  token: z3.string()
472
481
  }
473
- );
474
- var identityKindClaimSchema = z3.object({
482
+ ))();
483
+ var identityKindClaimSchema = /* @__PURE__ */ (() => z3.object({
475
484
  kind: openIdentityKindSchema,
476
485
  /** The owning integration's ID; it stays after the integration is disconnected. */
477
486
  integration: z3.string(),
@@ -484,20 +493,20 @@ var identityKindClaimSchema = z3.object({
484
493
  /** Identities an operator unlinked. */
485
494
  unlinked: z3.number().int().nonnegative(),
486
495
  claimedAt: z3.number().int().nonnegative()
487
- });
488
- var identityIntegrationAccountVouchingInputSchema = z3.object({
496
+ }))();
497
+ var identityIntegrationAccountVouchingInputSchema = /* @__PURE__ */ (() => z3.object({
489
498
  enabled: z3.boolean(),
490
499
  reason: z3.string().trim().min(1).max(500),
491
500
  actionId: identifier.optional()
492
- }).strict();
501
+ }).strict())();
493
502
  var vouchedProviders = ["x", "telegram", "discord"];
494
- var participantExchangeAccountsSchema = z3.array(memberImportVouchedAccountSchema).max(20).refine(
503
+ var participantExchangeAccountsSchema = /* @__PURE__ */ (() => z3.array(memberImportVouchedAccountSchema).max(20).refine(
495
504
  (accounts) => vouchedProviders.every(
496
505
  (kind) => accounts.filter((entry) => entry.kind === kind).length <= 1
497
506
  ),
498
507
  "Vouch for at most one X, Telegram and Discord account each"
499
- );
500
- var participantExchangeSchema = z3.object({
508
+ ))();
509
+ var participantExchangeSchema = /* @__PURE__ */ (() => z3.object({
501
510
  subject: z3.string().min(1).max(200),
502
511
  previousToken: z3.string().max(200).optional(),
503
512
  /**
@@ -506,22 +515,34 @@ var participantExchangeSchema = z3.object({
506
515
  * `ACCOUNT_VOUCHING_OFF`.
507
516
  */
508
517
  accounts: participantExchangeAccountsSchema.optional()
509
- }).strict();
510
- var participantExchangeAccountResultSchema = z3.object({
518
+ }).strict())();
519
+ var participantExchangeAccountResultSchema = /* @__PURE__ */ (() => z3.object({
511
520
  account: memberImportVouchedAccountSchema,
512
521
  status: z3.string(),
513
522
  code: z3.string().optional(),
514
523
  message: z3.string().optional()
515
- });
516
- var participantExchangeResultSchema = exchangeResultSchema.extend({
524
+ }))();
525
+ var participantExchangeResultSchema = /* @__PURE__ */ (() => exchangeResultSchema.extend({
517
526
  accounts: z3.array(participantExchangeAccountResultSchema).optional()
518
- });
519
- var accountVouchedBySchema = z3.object({
527
+ }))();
528
+ var identityIntegrationKeySchema = /* @__PURE__ */ (() => z3.object({
529
+ id: z3.string(),
530
+ name: z3.string(),
531
+ organization: z3.string(),
532
+ project: z3.string(),
533
+ environment: z3.string(),
534
+ origin: z3.string(),
535
+ identityKind: openIdentityKindSchema.nullable().default(null),
536
+ vouchesAccounts: z3.boolean().default(false),
537
+ secretExpiresAt: z3.number().nullable().default(null),
538
+ appOrigins: z3.array(z3.string()).default([])
539
+ }))();
540
+ var accountVouchedBySchema = /* @__PURE__ */ (() => z3.object({
520
541
  /** The integration's ID; it stays after the integration is disconnected. */
521
542
  integration: z3.string(),
522
543
  /** The integration's name when it vouched for the account. */
523
544
  integrationName: z3.string()
524
- });
545
+ }))();
525
546
 
526
547
  export {
527
548
  credentialSecretSchema,
@@ -561,5 +582,6 @@ export {
561
582
  participantExchangeSchema,
562
583
  participantExchangeAccountResultSchema,
563
584
  participantExchangeResultSchema,
585
+ identityIntegrationKeySchema,
564
586
  accountVouchedBySchema
565
587
  };