@domino-sdk/relay 1.21.0 → 1.23.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 (50) hide show
  1. package/dist/accounts-B31dWEYD.d.ts +292 -0
  2. package/dist/{attempt-captures-ByzZyggX.d.ts → attempt-captures-JDIgz2lY.d.ts} +1 -1
  3. package/dist/authoring.d.ts +112 -49
  4. package/dist/authoring.js +37 -3
  5. package/dist/{automatic-outcomes-BBSdMf0R.d.ts → automatic-outcomes-T9lEIvTj.d.ts} +1 -1
  6. package/dist/browser.d.ts +8 -8
  7. package/dist/browser.js +10 -9
  8. package/dist/{chunk-WQT4H2PI.js → chunk-57KARWUC.js} +1 -1
  9. package/dist/{chunk-EMLDFUTV.js → chunk-6UFXPKLA.js} +6 -1
  10. package/dist/{chunk-GMKJPHN4.js → chunk-AXQYGVOP.js} +1 -1
  11. package/dist/{chunk-JIQHUDVZ.js → chunk-B4EZ76WX.js} +1 -1
  12. package/dist/{chunk-T47OFHHX.js → chunk-E7MVYASS.js} +1 -1
  13. package/dist/{chunk-CVQG2AZZ.js → chunk-ENBQ6UEE.js} +2 -2
  14. package/dist/{chunk-NGP2NMZ4.js → chunk-G75JVB4D.js} +1 -1
  15. package/dist/{chunk-5ZRDK4KQ.js → chunk-GB26FIZT.js} +96 -118
  16. package/dist/{chunk-YXAK2637.js → chunk-JUQ2GNMD.js} +1 -1
  17. package/dist/{chunk-XSLRNFIY.js → chunk-MRU7GX2V.js} +1 -1
  18. package/dist/{chunk-YVBWCT4S.js → chunk-RPEGZW27.js} +2 -2
  19. package/dist/{chunk-NHHM5ASX.js → chunk-SMUYGCGP.js} +4 -4
  20. package/dist/{chunk-7YRXDG7R.js → chunk-UCZGXYCN.js} +9 -7
  21. package/dist/chunk-W33PYWYQ.js +102 -0
  22. package/dist/{chunk-5P5PTZ3T.js → chunk-WOGCRDFT.js} +1 -1
  23. package/dist/{chunk-H4FL5WA5.js → chunk-XQE22UKY.js} +13 -11
  24. package/dist/{client-DSlycgar.d.ts → client-HG0uMG0Q.d.ts} +6 -6
  25. package/dist/{deployments-nNS4spO9.d.ts → deployments-B--Shwgx.d.ts} +121 -109
  26. package/dist/{groups-jLLG7MML.d.ts → groups-CfyRewkJ.d.ts} +1 -1
  27. package/dist/{images-BPiPqVKn.d.ts → images-DwNmzqWv.d.ts} +1 -1
  28. package/dist/index.d.ts +9 -9
  29. package/dist/index.js +9 -8
  30. package/dist/{integrations-Cr9EhGI_.d.ts → integrations-BMNtARU_.d.ts} +2 -0
  31. package/dist/internal.d.ts +9 -9
  32. package/dist/internal.js +8 -8
  33. package/dist/{offers-CPqiF3dZ.d.ts → offers-CEwkAGsB.d.ts} +2 -2
  34. package/dist/{pages-1h1387a3.d.ts → pages-D1xrbGJl.d.ts} +6 -1
  35. package/dist/{telegram-DALZ7GdF.d.ts → participant-activity-DYdUUhw2.d.ts} +1 -40
  36. package/dist/portal-proxy.js +3 -3
  37. package/dist/react/index.d.ts +11 -11
  38. package/dist/react/index.js +10 -9
  39. package/dist/{schema-Br3c1GOu.d.ts → schema-D57mhL2q.d.ts} +1427 -1422
  40. package/dist/schema.d.ts +325 -323
  41. package/dist/schema.js +29 -11
  42. package/dist/server/index.d.ts +9 -9
  43. package/dist/server/index.js +59 -15
  44. package/dist/{submission-input-BEJ9qENg.d.ts → submission-input-DjXg0o-r.d.ts} +2 -2
  45. package/dist/{telegram-browser-CGB01TaB.d.ts → telegram-browser-DaP0Rawg.d.ts} +2 -3
  46. package/dist/testing.d.ts +18 -6
  47. package/dist/testing.js +42 -7
  48. package/dist/{transport-DUc8QwDl.d.ts → transport-BZbTTtBk.d.ts} +2216 -2007
  49. package/package.json +1 -1
  50. package/dist/accounts-5ciAkCMP.d.ts +0 -147
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@domino-sdk/relay",
3
- "version": "1.21.0",
3
+ "version": "1.23.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -1,147 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- /** A Discord message as `ctx.discord.message()` reads it, from the project's Discord server. */
4
- declare const discordMessageSchema: z.ZodObject<{
5
- guildId: z.ZodString;
6
- channelId: z.ZodString;
7
- messageId: z.ZodString;
8
- userId: z.ZodString;
9
- content: z.ZodNullable<z.ZodString>;
10
- replyTo: z.ZodNullable<z.ZodString>;
11
- publishedAt: z.ZodNumber;
12
- }, z.core.$strict>;
13
- type DiscordMessage = z.infer<typeof discordMessageSchema>;
14
- /**
15
- * Messages posted in the project's Discord server, written by the Discord gateway. The record's
16
- * `author` is the message author's Discord account. Message text is stored only with `text: true`.
17
- * Edits update stored text. Deleting a message, or turning text off, removes retained text.
18
- */
19
- declare const discordMessagesSourceSchema: z.ZodObject<{
20
- kind: z.ZodLiteral<"discord-messages">;
21
- /** Store each message's text in `data.text`. Off unless set. */
22
- text: z.ZodOptional<z.ZodBoolean>;
23
- }, z.core.$strict>;
24
- /**
25
- * Reactions added in the project's Discord server, written by the Discord gateway. The record's
26
- * `author` is the reactor's Discord account and its `messageAuthor` account is the message's
27
- * author, when Discord could name it.
28
- */
29
- declare const discordReactionsSourceSchema: z.ZodObject<{
30
- kind: z.ZodLiteral<"discord-reactions">;
31
- }, z.core.$strict>;
32
- /** The `data` of a `discord.messages()` record. IDs are Discord snowflakes. */
33
- declare const discordMessageDataSchema: z.ZodObject<{
34
- guildId: z.ZodString;
35
- channelId: z.ZodString;
36
- messageId: z.ZodString;
37
- replyTo: z.ZodNullable<z.ZodString>;
38
- publishedAt: z.ZodNumber;
39
- }, z.core.$strip>;
40
- type DiscordMessageData = z.infer<typeof discordMessageDataSchema>;
41
- /**
42
- * The `data` of a `discord.messages({ text: true })` record. `text` is null when the platform's
43
- * bot does not receive message content.
44
- */
45
- declare const discordMessageTextDataSchema: z.ZodObject<{
46
- guildId: z.ZodString;
47
- channelId: z.ZodString;
48
- messageId: z.ZodString;
49
- replyTo: z.ZodNullable<z.ZodString>;
50
- publishedAt: z.ZodNumber;
51
- text: z.ZodNullable<z.ZodString>;
52
- }, z.core.$strip>;
53
- type DiscordMessageTextData = z.infer<typeof discordMessageTextDataSchema>;
54
- /** The `data` of a `discord.reactions()` record. IDs are Discord snowflakes. */
55
- declare const discordReactionDataSchema: z.ZodObject<{
56
- guildId: z.ZodString;
57
- channelId: z.ZodString;
58
- messageId: z.ZodString;
59
- emoji: z.ZodObject<{
60
- id: z.ZodNullable<z.ZodString>;
61
- name: z.ZodString;
62
- }, z.core.$strip>;
63
- reactorRoles: z.ZodArray<z.ZodString>;
64
- messagePublishedAt: z.ZodNumber;
65
- }, z.core.$strip>;
66
- type DiscordReactionData = z.infer<typeof discordReactionDataSchema>;
67
- /** Rewards and resource selectors supported by the Discord integration. */
68
- declare const discordRewardSchema: z.ZodObject<{
69
- kind: z.ZodLiteral<"integration">;
70
- provider: z.ZodLiteral<"discord">;
71
- action: z.ZodLiteral<"grant-role">;
72
- roleId: z.ZodString;
73
- }, z.core.$strict>;
74
- declare const discordResourceSourceSchema: z.ZodUnion<readonly [z.ZodObject<{
75
- provider: z.ZodLiteral<"discord">;
76
- resource: z.ZodLiteral<"channel">;
77
- types: z.ZodArray<z.ZodEnum<{
78
- text: "text";
79
- announcement: "announcement";
80
- }>>;
81
- }, z.core.$strict>, z.ZodObject<{
82
- provider: z.ZodLiteral<"discord">;
83
- resource: z.ZodLiteral<"role">;
84
- assignable: z.ZodDefault<z.ZodBoolean>;
85
- }, z.core.$strict>]>;
86
-
87
- declare const authProviderSchema: z.ZodEnum<{
88
- discord: "discord";
89
- google: "google";
90
- apple: "apple";
91
- x: "x";
92
- }>;
93
- type AuthProvider = z.infer<typeof authProviderSchema>;
94
- declare const accountConnectionSchema: z.ZodObject<{
95
- provider: z.ZodEnum<{
96
- discord: "discord";
97
- google: "google";
98
- apple: "apple";
99
- x: "x";
100
- }>;
101
- configured: z.ZodBoolean;
102
- status: z.ZodEnum<{
103
- disconnected: "disconnected";
104
- connected: "connected";
105
- reconnect: "reconnect";
106
- }>;
107
- subject: z.ZodNullable<z.ZodString>;
108
- revision: z.ZodNumber;
109
- }, z.core.$strip>;
110
- type AccountConnection = z.infer<typeof accountConnectionSchema>;
111
- declare const discordMemberInputSchema: z.ZodObject<{}, z.core.$strict>;
112
- declare const discordMessageInputSchema: z.ZodObject<{
113
- channelId: z.ZodString;
114
- messageId: z.ZodString;
115
- }, z.core.$strict>;
116
- declare const discordMemberSchema: z.ZodObject<{
117
- userId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
118
- nickname: z.ZodDefault<z.ZodNullable<z.ZodString>>;
119
- displayName: z.ZodDefault<z.ZodNullable<z.ZodString>>;
120
- boostingSince: z.ZodDefault<z.ZodNullable<z.ZodString>>;
121
- roles: z.ZodArray<z.ZodString>;
122
- joinedAt: z.ZodNullable<z.ZodString>;
123
- pending: z.ZodBoolean;
124
- }, z.core.$strip>;
125
- type DiscordMember = z.infer<typeof discordMemberSchema>;
126
- /**
127
- * Reads the project's connected Discord server for the member's linked Discord account. The
128
- * account and the integration are pinned at the attempt's first Discord read: later links and
129
- * unlinks do not change the attempt. Provider failures, and an integration that is not ready,
130
- * throw `CapabilityError` with code `"provider-unavailable"`.
131
- */
132
- interface DiscordReader {
133
- /** The member's server membership; null when they are not in the server or have not linked Discord. */
134
- member(): Promise<DiscordMember | null>;
135
- /**
136
- * A message in the connected server; null when it does not exist. The bot reads it, so the
137
- * member needs no linked Discord account. A channel outside the connected server, or one the
138
- * bot cannot see, throws
139
- * `CapabilityError` with code `"author-error"`.
140
- */
141
- message(input: {
142
- channelId: string;
143
- messageId: string;
144
- }): Promise<DiscordMessage | null>;
145
- }
146
-
147
- export { type AccountConnection as A, type DiscordMessageData as D, type AuthProvider as a, type DiscordMessageTextData as b, discordReactionsSourceSchema as c, discordMessagesSourceSchema as d, type DiscordReactionData as e, type DiscordReader as f, type DiscordMember as g, type DiscordMessage as h, accountConnectionSchema as i, authProviderSchema as j, discordMemberInputSchema as k, discordMemberSchema as l, discordMessageDataSchema as m, discordMessageInputSchema as n, discordMessageSchema as o, discordMessageTextDataSchema as p, discordReactionDataSchema as q, discordResourceSourceSchema as r, discordRewardSchema as s };