@notionhq/apps 0.0.12 → 0.0.14

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 (137) hide show
  1. package/README.md +32 -0
  2. package/dist/box.generated.d.ts +164 -0
  3. package/dist/box.generated.d.ts.map +1 -0
  4. package/dist/box.generated.js +24 -0
  5. package/dist/calendar.generated.d.ts +1036 -0
  6. package/dist/calendar.generated.d.ts.map +1 -0
  7. package/dist/calendar.generated.js +42 -0
  8. package/dist/cli/build.d.ts.map +1 -1
  9. package/dist/cli/build.js +41 -10
  10. package/dist/cli/codegen.d.ts +2 -0
  11. package/dist/cli/codegen.d.ts.map +1 -1
  12. package/dist/cli/codegen.js +13 -2
  13. package/dist/cli/discover.d.ts +2 -0
  14. package/dist/cli/discover.d.ts.map +1 -1
  15. package/dist/cli/discover.js +4 -2
  16. package/dist/cli/emit-manifest.d.ts +3 -1
  17. package/dist/cli/emit-manifest.d.ts.map +1 -1
  18. package/dist/cli/emit-manifest.js +10 -4
  19. package/dist/cli/index.js +33 -1
  20. package/dist/confluence.generated.d.ts +98 -0
  21. package/dist/confluence.generated.d.ts.map +1 -0
  22. package/dist/confluence.generated.js +18 -0
  23. package/dist/connection-actions.d.ts +2 -0
  24. package/dist/connection-actions.d.ts.map +1 -0
  25. package/dist/connection-actions.js +0 -0
  26. package/dist/connection-trigger-definitions.generated.d.ts +34 -0
  27. package/dist/connection-trigger-definitions.generated.d.ts.map +1 -0
  28. package/dist/connection-trigger-definitions.generated.js +45 -0
  29. package/dist/connections.d.ts +15 -0
  30. package/dist/connections.d.ts.map +1 -0
  31. package/dist/connections.js +79 -0
  32. package/dist/connections.test.d.ts +2 -0
  33. package/dist/connections.test.d.ts.map +1 -0
  34. package/dist/cursor.generated.d.ts +154 -0
  35. package/dist/cursor.generated.d.ts.map +1 -0
  36. package/dist/cursor.generated.js +18 -0
  37. package/dist/custom-block.d.ts +54 -0
  38. package/dist/custom-block.d.ts.map +1 -0
  39. package/dist/custom-block.js +30 -0
  40. package/dist/custom-block.test.d.ts +2 -0
  41. package/dist/custom-block.test.d.ts.map +1 -0
  42. package/dist/custom-blocks.d.ts +2 -0
  43. package/dist/custom-blocks.d.ts.map +1 -0
  44. package/dist/custom-blocks.js +1 -0
  45. package/dist/discord.generated.d.ts +279 -0
  46. package/dist/discord.generated.d.ts.map +1 -0
  47. package/dist/discord.generated.js +33 -0
  48. package/dist/gmail.generated.d.ts +184 -0
  49. package/dist/gmail.generated.d.ts.map +1 -0
  50. package/dist/gmail.generated.js +21 -0
  51. package/dist/googleCalendar.generated.d.ts +83 -0
  52. package/dist/googleCalendar.generated.d.ts.map +1 -0
  53. package/dist/googleCalendar.generated.js +15 -0
  54. package/dist/googleDrive.generated.d.ts +210 -0
  55. package/dist/googleDrive.generated.d.ts.map +1 -0
  56. package/dist/googleDrive.generated.js +27 -0
  57. package/dist/googleDriveOauth.generated.d.ts +851 -0
  58. package/dist/googleDriveOauth.generated.d.ts.map +1 -0
  59. package/dist/googleDriveOauth.generated.js +84 -0
  60. package/dist/manifest.d.ts +1 -1
  61. package/dist/manifest.d.ts.map +1 -1
  62. package/dist/nds.css +1 -0
  63. package/dist/notion-as-code/database.d.ts +4 -3
  64. package/dist/notion-as-code/database.d.ts.map +1 -1
  65. package/dist/notion-as-code/database.js +11 -2
  66. package/dist/notion-as-code/intents.d.ts +4 -1
  67. package/dist/notion-as-code/intents.d.ts.map +1 -1
  68. package/dist/notion-as-code/page.d.ts +4 -4
  69. package/dist/notion-as-code/page.d.ts.map +1 -1
  70. package/dist/notion-as-code/page.js +11 -2
  71. package/dist/outlook.generated.d.ts +224 -0
  72. package/dist/outlook.generated.d.ts.map +1 -0
  73. package/dist/outlook.generated.js +24 -0
  74. package/dist/providers.generated.d.ts +117 -0
  75. package/dist/providers.generated.d.ts.map +1 -0
  76. package/dist/providers.generated.js +108 -0
  77. package/dist/react.d.ts +2 -0
  78. package/dist/react.d.ts.map +1 -0
  79. package/dist/react.js +1 -0
  80. package/dist/salesforce.generated.d.ts +151 -0
  81. package/dist/salesforce.generated.d.ts.map +1 -0
  82. package/dist/salesforce.generated.js +24 -0
  83. package/dist/slack.generated.d.ts +290 -0
  84. package/dist/slack.generated.d.ts.map +1 -0
  85. package/dist/slack.generated.js +30 -0
  86. package/dist/triggers.generated.d.ts +107 -32
  87. package/dist/triggers.generated.d.ts.map +1 -1
  88. package/dist/triggers.generated.js +36 -24
  89. package/dist/workflow-connections-types.test.d.ts +2 -0
  90. package/dist/workflow-connections-types.test.d.ts.map +1 -0
  91. package/dist/workflow-types.test.d.ts +2 -0
  92. package/dist/workflow-types.test.d.ts.map +1 -0
  93. package/dist/workflow.d.ts +20 -16
  94. package/dist/workflow.d.ts.map +1 -1
  95. package/dist/workflow.js +14 -17
  96. package/docs/BUILD.md +83 -14
  97. package/docs/CONNECTIONS.md +129 -0
  98. package/package.json +16 -2
  99. package/src/box.generated.ts +187 -0
  100. package/src/calendar.generated.ts +1117 -0
  101. package/src/cli/build.test.ts +87 -0
  102. package/src/cli/build.ts +47 -9
  103. package/src/cli/codegen.test.ts +2 -0
  104. package/src/cli/codegen.ts +25 -7
  105. package/src/cli/discover.test.ts +12 -0
  106. package/src/cli/discover.ts +6 -2
  107. package/src/cli/emit-manifest.ts +13 -3
  108. package/src/cli/index.ts +33 -1
  109. package/src/confluence.generated.ts +109 -0
  110. package/src/connection-actions.ts +2 -0
  111. package/src/connection-trigger-definitions.generated.ts +48 -0
  112. package/src/connections.test.ts +157 -0
  113. package/src/connections.ts +126 -0
  114. package/src/cursor.generated.ts +167 -0
  115. package/src/custom-block.test.ts +19 -0
  116. package/src/custom-block.ts +41 -0
  117. package/src/custom-blocks.ts +1 -0
  118. package/src/discord.generated.ts +318 -0
  119. package/src/gmail.generated.ts +205 -0
  120. package/src/googleCalendar.generated.ts +95 -0
  121. package/src/googleDrive.generated.ts +235 -0
  122. package/src/googleDriveOauth.generated.ts +980 -0
  123. package/src/manifest.ts +1 -1
  124. package/src/nds.css +1 -0
  125. package/src/notion-as-code/database.ts +19 -11
  126. package/src/notion-as-code/intents.ts +2 -1
  127. package/src/notion-as-code/page.ts +17 -11
  128. package/src/outlook.generated.ts +249 -0
  129. package/src/providers.generated.ts +207 -0
  130. package/src/react.ts +1 -0
  131. package/src/salesforce.generated.ts +170 -0
  132. package/src/slack.generated.ts +330 -0
  133. package/src/triggers.generated.ts +112 -32
  134. package/src/workflow-connections-types.test.ts +59 -0
  135. package/src/workflow-types.test.ts +144 -0
  136. package/src/workflow.test.ts +112 -2
  137. package/src/workflow.ts +58 -29
@@ -0,0 +1,170 @@
1
+ // Generated by notion tool-core codegen-script-types --connections. Do not edit.
2
+ import type { ConnectionActionInvoker } from "./connection-actions.js"
3
+ /**
4
+ * Script input for the "Find Salesforce user IDs" effect (`salesforce.findUserIds`),
5
+ * derived from its Tool Core definition's call_function input projection.
6
+ *
7
+ * Find matching Salesforce users and their IDs.
8
+ */
9
+ export type FindUserIdsScriptInput = {
10
+ /**
11
+ * Partial name or email to match Salesforce users.
12
+ */
13
+ nameOrEmail: string
14
+ }
15
+
16
+ /**
17
+ * Canonical Tool Core output for the "Find Salesforce user IDs" effect (`salesforce.findUserIds`).
18
+ * This is the definition's output schema; the effect's script surface may
19
+ * re-encode it before returning.
20
+ */
21
+ export type FindUserIdsScriptOutput = {
22
+ users?: Array<{
23
+ id: string
24
+ name: string
25
+ email: string
26
+ }>
27
+ }
28
+
29
+ /**
30
+ * Script input for the "Get Salesforce sample" effect (`salesforce.getSample`),
31
+ * derived from its Tool Core definition's call_function input projection.
32
+ *
33
+ * Get accessible Salesforce objects and sample records.
34
+ */
35
+ export type GetSampleScriptInput = {
36
+ /**
37
+ * Object API name to fetch sample records for.
38
+ */
39
+ targetObject?: string
40
+ }
41
+
42
+ /**
43
+ * Canonical Tool Core output for the "Get Salesforce sample" effect (`salesforce.getSample`).
44
+ * This is the definition's output schema; the effect's script surface may
45
+ * re-encode it before returning.
46
+ */
47
+ export type GetSampleScriptOutput = {
48
+ objects: Array<string>
49
+ sample?: {
50
+ object: string
51
+ sampleRecords?: Array<{
52
+ Id?: string
53
+ name?: string
54
+ attributes?: Record<string, unknown>
55
+ }>
56
+ }
57
+ }
58
+
59
+ /**
60
+ * Script input for the "Load Salesforce record" effect (`salesforce.loadRecord`),
61
+ * derived from its Tool Core definition's call_function input projection.
62
+ *
63
+ * Load a Salesforce record.
64
+ */
65
+ export type LoadRecordScriptInput = {
66
+ /**
67
+ * Salesforce record ID (for example, 001xx000003DGbY).
68
+ */
69
+ recordId: string
70
+ /**
71
+ * Salesforce object type for the record (for example, Account or Opportunity).
72
+ */
73
+ objectType: string
74
+ }
75
+
76
+ /**
77
+ * Canonical Tool Core output for the "Load Salesforce record" effect (`salesforce.loadRecord`).
78
+ * This is the definition's output schema; the effect's script surface may
79
+ * re-encode it before returning.
80
+ */
81
+ export type LoadRecordScriptOutput = {
82
+ type: "salesforce-record"
83
+ title: string
84
+ blocks: Array<string>
85
+ recordId: string
86
+ objectType: string
87
+ }
88
+
89
+ /**
90
+ * Script input for the "Search Salesforce" effect (`salesforce.search`),
91
+ * derived from its Tool Core definition's call_function input projection.
92
+ *
93
+ * Search Salesforce via the configured connector.
94
+ */
95
+ export type SearchScriptInput = {
96
+ /**
97
+ * What to search for.
98
+ */
99
+ question: string
100
+ /**
101
+ * Keywords to use instead of the question.
102
+ */
103
+ keywords?: string
104
+ /**
105
+ * Optional time window. Use only "default", "all_time", a duration matching /^\d+[dwmy]$/ (for example, "7d", "2w", "3m", or "1y"), or a date in "YYYY-MM-DD" format. Do not use natural-language durations or combine units.
106
+ */
107
+ lookback?: string
108
+ }
109
+
110
+ /**
111
+ * Canonical Tool Core output for the "Search Salesforce" effect (`salesforce.search`).
112
+ * This is the definition's output schema; the effect's script surface may
113
+ * re-encode it before returning.
114
+ */
115
+ export type SearchScriptOutput = {
116
+ results: Array<{
117
+ id: string
118
+ title: string
119
+ path: string
120
+ text: string
121
+ lastEdited: string
122
+ isPrivate: boolean
123
+ pageId: string
124
+ objectType: string
125
+ }>
126
+ }
127
+
128
+ /**
129
+ * Script input for the "Query Salesforce" effect (`salesforce.soqlQuery`),
130
+ * derived from its Tool Core definition's call_function input projection.
131
+ *
132
+ * Run a SOQL query and return rows.
133
+ */
134
+ export type SoqlQueryScriptInput = {
135
+ /**
136
+ * SOQL query string. Only read-only SELECT queries are supported.
137
+ */
138
+ query: string
139
+ }
140
+
141
+ /**
142
+ * Canonical Tool Core output for the "Query Salesforce" effect (`salesforce.soqlQuery`).
143
+ * This is the definition's output schema; the effect's script surface may
144
+ * re-encode it before returning.
145
+ */
146
+ export type SoqlQueryScriptOutput = {
147
+ results: Array<string>
148
+ content: string
149
+ query: string
150
+ domain: string
151
+ }
152
+
153
+ export class SalesforceConnectionClient {
154
+ constructor(private readonly invoke: ConnectionActionInvoker) {}
155
+ findUserIds(args: FindUserIdsScriptInput): Promise<FindUserIdsScriptOutput> {
156
+ return this.invoke<FindUserIdsScriptOutput>("findUserIds", args)
157
+ }
158
+ getSample(args: GetSampleScriptInput): Promise<GetSampleScriptOutput> {
159
+ return this.invoke<GetSampleScriptOutput>("getSample", args)
160
+ }
161
+ loadRecord(args: LoadRecordScriptInput): Promise<LoadRecordScriptOutput> {
162
+ return this.invoke<LoadRecordScriptOutput>("loadRecord", args)
163
+ }
164
+ search(args: SearchScriptInput): Promise<SearchScriptOutput> {
165
+ return this.invoke<SearchScriptOutput>("search", args)
166
+ }
167
+ soqlQuery(args: SoqlQueryScriptInput): Promise<SoqlQueryScriptOutput> {
168
+ return this.invoke<SoqlQueryScriptOutput>("soqlQuery", args)
169
+ }
170
+ }
@@ -0,0 +1,330 @@
1
+ // Generated by notion tool-core codegen-script-types --connections. Do not edit.
2
+ import type { ConnectionActionInvoker } from "./connection-actions.js"
3
+ /**
4
+ * Script input for the "Find a Slack user by email" effect (`slack.findUserByEmail`),
5
+ * derived from its Tool Core definition's call_function input projection.
6
+ *
7
+ * Find a Slack user by email
8
+ */
9
+ export type FindUserByEmailScriptInput = {
10
+ email: string
11
+ }
12
+
13
+ /**
14
+ * Script result of the "Find a Slack user by email" effect (`slack.findUserByEmail`):
15
+ * the canonical Tool Core output schema with the effect's declared
16
+ * script-output projection applied, exactly as the runtime encoder
17
+ * returns it.
18
+ */
19
+ export type FindUserByEmailScriptOutput =
20
+ | {
21
+ handle: string
22
+ id: string
23
+ uri: string
24
+ displayName?: string
25
+ email?: string
26
+ notionUser?: string
27
+ realName?: string
28
+ statusEmoji?: string
29
+ statusText?: string
30
+ timeZone?: string
31
+ title?: string
32
+ }
33
+ | undefined
34
+
35
+ /**
36
+ * Script input for the "Get Slack channel threads" effect (`slack.getThreadsInChannelSince`),
37
+ * derived from its Tool Core definition's call_function input projection.
38
+ *
39
+ * Get all threads in a channel since a given timestamp
40
+ */
41
+ export type GetThreadsInChannelSinceScriptInput = {
42
+ /**
43
+ * The name of the channel without the # symbol. For example, "engineering".
44
+ */
45
+ channelName: string
46
+ /**
47
+ * ISO 8601 timestamp, for example 2026-01-01T00:00:00Z.
48
+ */
49
+ timestamp: string
50
+ }
51
+
52
+ /**
53
+ * Canonical Tool Core output for the "Get Slack channel threads" effect (`slack.getThreadsInChannelSince`).
54
+ * This is the definition's output schema; the effect's script surface may
55
+ * re-encode it before returning.
56
+ */
57
+ export type GetThreadsInChannelSinceScriptOutput = Array<
58
+ Array<{
59
+ channelId: string
60
+ channelUri: string
61
+ from:
62
+ | {
63
+ handle: string
64
+ id: string
65
+ type: "user"
66
+ uri: string
67
+ }
68
+ | {
69
+ type: "bot"
70
+ }
71
+ id: string
72
+ message: string
73
+ threadId: string
74
+ timestamp: string
75
+ uri: string
76
+ url: string
77
+ urls: Array<string>
78
+ channel?: string
79
+ fileIds?: Array<string>
80
+ files?: Array<string>
81
+ }>
82
+ >
83
+
84
+ /**
85
+ * Script input for the "Load Slack message" effect (`slack.loadMessage`),
86
+ * derived from its Tool Core definition's call_function input projection.
87
+ *
88
+ * Load a Slack message by ID.
89
+ */
90
+ export type LoadMessageScriptInput =
91
+ | {
92
+ /**
93
+ * Slack channel ID for the message.
94
+ */
95
+ channelId: string
96
+ /**
97
+ * Slack message timestamp (ts).
98
+ */
99
+ messageTs: string
100
+ /**
101
+ * Slack thread timestamp (ts) if threaded.
102
+ */
103
+ threadTs?: string
104
+ /**
105
+ * Slack workspace host parsed from the user's URL
106
+ */
107
+ workspaceHost?: string
108
+ }
109
+ | {
110
+ /**
111
+ * A Slack message identifier. Accepts a slackMessage:// URI as returned by other Slack tools (e.g. slackMessage://workspace.slack.com/C0123ABCDEF/12345/9876543210.987654), a https Slack archive URL, or a connector href from search results (slack://?base_url=...&channel_id=...&message_id=...).
112
+ */
113
+ url: string
114
+ }
115
+
116
+ /**
117
+ * Canonical Tool Core output for the "Load Slack message" effect (`slack.loadMessage`).
118
+ * This is the definition's output schema; the effect's script surface may
119
+ * re-encode it before returning.
120
+ */
121
+ export type LoadMessageScriptOutput = {
122
+ type: "slack"
123
+ channel: string
124
+ messages: Array<{
125
+ user: {
126
+ name: string
127
+ notionUserName?: string
128
+ notionUserId?: string
129
+ }
130
+ text: string
131
+ date?: string
132
+ ts?: string
133
+ attachments?: Array<string>
134
+ files?: Array<string>
135
+ }>
136
+ timestamp: number
137
+ additionalMessageToModel?: string
138
+ }
139
+
140
+ /**
141
+ * Script input for the "Query Slack channels" effect (`slack.queryChannels`),
142
+ * derived from its Tool Core definition's call_function input projection.
143
+ *
144
+ * Query Slack channels by criteria
145
+ */
146
+ export type QueryChannelsScriptInput = {
147
+ id?: string
148
+ name?: string
149
+ /**
150
+ * Filter channels created after this date. ISO format with timezone (e.g. 2024-01-01T00:00:00-05:00 for Eastern Time)
151
+ */
152
+ createdStart?: string
153
+ /**
154
+ * Filter channels created before this date. ISO format with timezone (e.g. 2024-01-01T00:00:00-05:00 for Eastern Time)
155
+ */
156
+ createdEnd?: string
157
+ isGeneral?: boolean
158
+ isIm?: boolean
159
+ isPrivate?: boolean
160
+ isMpim?: boolean
161
+ isShared?: boolean
162
+ isOrgShared?: boolean
163
+ botIsMember?: boolean
164
+ isArchived?: boolean
165
+ }
166
+
167
+ /**
168
+ * Canonical Tool Core output for the "Query Slack channels" effect (`slack.queryChannels`).
169
+ * This is the definition's output schema; the effect's script surface may
170
+ * re-encode it before returning.
171
+ */
172
+ export type QueryChannelsScriptOutput = Array<{
173
+ /**
174
+ * The Slack channel ID.
175
+ */
176
+ id: string
177
+ /**
178
+ * The prefixed channel URI.
179
+ */
180
+ uri: string
181
+ /**
182
+ * The user-navigable channel URL. Include this link when telling the user the channel was created.
183
+ */
184
+ url: string
185
+ /**
186
+ * The channel name, without a "#" prefix.
187
+ */
188
+ name: string
189
+ /**
190
+ * ISO 8601 timestamp of when the channel was created.
191
+ */
192
+ created: string
193
+ /**
194
+ * Whether this is the workspace's general channel.
195
+ */
196
+ isGeneral: boolean
197
+ /**
198
+ * Whether this is a direct message channel.
199
+ */
200
+ isIm: boolean
201
+ /**
202
+ * Whether the channel is private.
203
+ */
204
+ isPrivate: boolean
205
+ /**
206
+ * Whether this is a group direct message channel.
207
+ */
208
+ isMpim: boolean
209
+ /**
210
+ * Whether the channel is shared between Slack workspaces.
211
+ */
212
+ isShared: boolean
213
+ /**
214
+ * Whether the channel is shared across an Enterprise Grid organization.
215
+ */
216
+ isOrgShared: boolean
217
+ /**
218
+ * Whether the integration bot user is in the channel.
219
+ */
220
+ botIsMember: boolean
221
+ /**
222
+ * Whether the channel is archived.
223
+ */
224
+ isArchived: boolean
225
+ }>
226
+
227
+ /**
228
+ * Script input for the "Search Slack messages" effect (`slack.search`),
229
+ * derived from its Tool Core definition's call_function input projection.
230
+ *
231
+ * Search Slack via the configured connector.
232
+ */
233
+ export type SearchScriptInput = {
234
+ /**
235
+ * A single, focused question to search for.
236
+ */
237
+ question: string
238
+ /**
239
+ * Brief keywords capturing the core entities.
240
+ */
241
+ keywords?: string
242
+ /**
243
+ * Optional time window. Use only "default", "all_time", a duration matching /^\d+[dwmy]$/ (for example, "7d", "2w", "3m", or "1y"), or a date in "YYYY-MM-DD" format. Do not use natural-language durations or combine units.
244
+ */
245
+ lookback?: string
246
+ options?: {
247
+ /**
248
+ * Preferred Slack channel name. This boosts results from that channel but does not filter the search. Results from other conversations may be returned. Check each result's conversation before using it.
249
+ */
250
+ channel?: string
251
+ }
252
+ }
253
+
254
+ /**
255
+ * Canonical Tool Core output for the "Search Slack messages" effect (`slack.search`).
256
+ * This is the definition's output schema; the effect's script surface may
257
+ * re-encode it before returning.
258
+ */
259
+ export type SearchScriptOutput = {
260
+ results: Array<{
261
+ conversation: {
262
+ id: string
263
+ kind: "channel" | "dm" | "groupDm"
264
+ name: string
265
+ }
266
+ messageUrl: string
267
+ lastEdited: string
268
+ messages: Array<{
269
+ messageUrl: string
270
+ lastEdited: string
271
+ text: string
272
+ user: string
273
+ }>
274
+ }>
275
+ }
276
+
277
+ /**
278
+ * Script input for the "View Slack file URL" effect (`slack.viewFileUrl`),
279
+ * derived from its Tool Core definition's call_function input projection.
280
+ *
281
+ * Return a Slack file URL for script-agent viewing.
282
+ */
283
+ export type ViewFileUrlScriptInput = {
284
+ /**
285
+ * Slack private file URL or workspace file permalink to download and attach for viewing.
286
+ */
287
+ url: string
288
+ }
289
+
290
+ /**
291
+ * Canonical Tool Core output for the "View Slack file URL" effect (`slack.viewFileUrl`).
292
+ * This is the definition's output schema; the effect's script surface may
293
+ * re-encode it before returning.
294
+ */
295
+ export type ViewFileUrlScriptOutput = {
296
+ url: string
297
+ fileName?: string
298
+ fileUrl?: string
299
+ }
300
+
301
+ export class SlackConnectionClient {
302
+ constructor(private readonly invoke: ConnectionActionInvoker) {}
303
+ findUserByEmail(
304
+ args: FindUserByEmailScriptInput,
305
+ ): Promise<FindUserByEmailScriptOutput> {
306
+ return this.invoke<FindUserByEmailScriptOutput>("findUserByEmail", args)
307
+ }
308
+ getThreadsInChannelSince(
309
+ args: GetThreadsInChannelSinceScriptInput,
310
+ ): Promise<GetThreadsInChannelSinceScriptOutput> {
311
+ return this.invoke<GetThreadsInChannelSinceScriptOutput>(
312
+ "getThreadsInChannelSince",
313
+ args,
314
+ )
315
+ }
316
+ loadMessage(args: LoadMessageScriptInput): Promise<LoadMessageScriptOutput> {
317
+ return this.invoke<LoadMessageScriptOutput>("loadMessage", args)
318
+ }
319
+ queryChannels(
320
+ args: QueryChannelsScriptInput,
321
+ ): Promise<QueryChannelsScriptOutput> {
322
+ return this.invoke<QueryChannelsScriptOutput>("queryChannels", args)
323
+ }
324
+ search(args: SearchScriptInput): Promise<SearchScriptOutput> {
325
+ return this.invoke<SearchScriptOutput>("search", args)
326
+ }
327
+ viewFileUrl(args: ViewFileUrlScriptInput): Promise<ViewFileUrlScriptOutput> {
328
+ return this.invoke<ViewFileUrlScriptOutput>("viewFileUrl", args)
329
+ }
330
+ }