cloudstructs 0.9.8 → 0.9.9
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.
- package/.jsii +3 -3
- package/lib/codecommit-mirror/index.js +2 -2
- package/lib/dmarc/index.js +1 -1
- package/lib/ecs-service-roller/index.js +2 -2
- package/lib/email-receiver/receiver.js +1 -1
- package/lib/saml-identity-provider/index.js +2 -2
- package/lib/slack-app/manifest.js +1 -1
- package/lib/slack-app/slack-app.js +2 -2
- package/lib/slack-events/index.js +1 -1
- package/lib/slack-textract/index.js +1 -1
- package/lib/ssl-server-test/index.js +1 -1
- package/lib/state-machine-cr-provider/index.js +1 -1
- package/lib/static-website/index.js +1 -1
- package/lib/toolkit-cleaner/index.js +1 -1
- package/lib/url-shortener/index.js +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/buffer.d.ts +22 -22
- package/node_modules/@slack/logger/node_modules/@types/node/child_process.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/crypto.d.ts +61 -61
- package/node_modules/@slack/logger/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/events.d.ts +44 -1
- package/node_modules/@slack/logger/node_modules/@types/node/fs.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@slack/logger/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/https.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/logger/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@slack/logger/node_modules/@types/node/repl.d.ts +3 -3
- package/node_modules/@slack/logger/node_modules/@types/node/test.d.ts +31 -23
- package/node_modules/@slack/logger/node_modules/@types/node/worker_threads.d.ts +3 -0
- package/node_modules/@slack/types/LICENSE +23 -0
- package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts +10 -9
- package/node_modules/@slack/types/dist/block-kit/block-elements.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts +3 -7
- package/node_modules/@slack/types/dist/block-kit/blocks.d.ts.map +1 -1
- package/node_modules/@slack/types/dist/block-kit/composition-objects.d.ts +38 -0
- package/node_modules/@slack/types/dist/block-kit/composition-objects.d.ts.map +1 -1
- package/node_modules/@slack/types/package.json +10 -9
- package/node_modules/@slack/web-api/node_modules/@types/node/README.md +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/buffer.d.ts +22 -22
- package/node_modules/@slack/web-api/node_modules/@types/node/child_process.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/crypto.d.ts +61 -61
- package/node_modules/@slack/web-api/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/events.d.ts +44 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/fs.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@slack/web-api/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/https.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/package.json +2 -2
- package/node_modules/@slack/web-api/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@slack/web-api/node_modules/@types/node/repl.d.ts +3 -3
- package/node_modules/@slack/web-api/node_modules/@types/node/test.d.ts +31 -23
- package/node_modules/@slack/web-api/node_modules/@types/node/worker_threads.d.ts +3 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +22 -22
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +61 -61
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +44 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +31 -23
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +3 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/buffer.d.ts +22 -22
- package/node_modules/@types/is-stream/node_modules/@types/node/child_process.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/crypto.d.ts +61 -61
- package/node_modules/@types/is-stream/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/events.d.ts +44 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/fs.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/is-stream/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/https.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/is-stream/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/is-stream/node_modules/@types/node/repl.d.ts +3 -3
- package/node_modules/@types/is-stream/node_modules/@types/node/test.d.ts +31 -23
- package/node_modules/@types/is-stream/node_modules/@types/node/worker_threads.d.ts +3 -0
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +22 -22
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +61 -61
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +44 -1
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +31 -23
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +3 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +22 -22
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +61 -61
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +44 -1
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +1 -1
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +31 -23
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +3 -0
- package/package.json +19 -19
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.14.5",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -212,6 +212,6 @@
|
|
|
212
212
|
"dependencies": {
|
|
213
213
|
"undici-types": "~5.26.4"
|
|
214
214
|
},
|
|
215
|
-
"typesPublisherContentHash": "
|
|
215
|
+
"typesPublisherContentHash": "8dc6f8d71b81b71918d54a2fc8b71f492e0c9ebb263ffe4a93970039c9aadd3b",
|
|
216
216
|
"typeScriptVersion": "4.7"
|
|
217
217
|
}
|
|
@@ -506,7 +506,7 @@ declare module "perf_hooks" {
|
|
|
506
506
|
*/
|
|
507
507
|
disconnect(): void;
|
|
508
508
|
/**
|
|
509
|
-
* Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes`or `options.type`:
|
|
509
|
+
* Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`:
|
|
510
510
|
*
|
|
511
511
|
* ```js
|
|
512
512
|
* const {
|
|
@@ -1242,7 +1242,7 @@ declare module "process" {
|
|
|
1242
1242
|
title: string;
|
|
1243
1243
|
/**
|
|
1244
1244
|
* The operating system CPU architecture for which the Node.js binary was compiled.
|
|
1245
|
-
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'
|
|
1245
|
+
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'loong64'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'riscv64'`, `'s390'`, `'s390x'`, and `'x64'`.
|
|
1246
1246
|
*
|
|
1247
1247
|
* ```js
|
|
1248
1248
|
* import { arch } from 'node:process';
|
|
@@ -251,7 +251,7 @@ declare module "repl" {
|
|
|
251
251
|
private constructor();
|
|
252
252
|
/**
|
|
253
253
|
* The `replServer.defineCommand()` method is used to add new `.`\-prefixed commands
|
|
254
|
-
* to the REPL instance. Such commands are invoked by typing a `.` followed by the`keyword`. The `cmd` is either a `Function` or an `Object` with the following
|
|
254
|
+
* to the REPL instance. Such commands are invoked by typing a `.` followed by the `keyword`. The `cmd` is either a `Function` or an `Object` with the following
|
|
255
255
|
* properties:
|
|
256
256
|
*
|
|
257
257
|
* The following example shows two new commands added to the REPL instance:
|
|
@@ -289,7 +289,7 @@ declare module "repl" {
|
|
|
289
289
|
defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void;
|
|
290
290
|
/**
|
|
291
291
|
* The `replServer.displayPrompt()` method readies the REPL instance for input
|
|
292
|
-
* from the user, printing the configured `prompt` to a new line in the `output`and resuming the `input` to accept new input.
|
|
292
|
+
* from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input.
|
|
293
293
|
*
|
|
294
294
|
* When multi-line input is being entered, an ellipsis is printed rather than the
|
|
295
295
|
* 'prompt'.
|
|
@@ -304,7 +304,7 @@ declare module "repl" {
|
|
|
304
304
|
/**
|
|
305
305
|
* The `replServer.clearBufferedCommand()` method clears any command that has been
|
|
306
306
|
* buffered but not yet executed. This method is primarily intended to be
|
|
307
|
-
* called from within the action function for commands registered using the`replServer.defineCommand()` method.
|
|
307
|
+
* called from within the action function for commands registered using the `replServer.defineCommand()` method.
|
|
308
308
|
* @since v9.0.0
|
|
309
309
|
*/
|
|
310
310
|
clearBufferedCommand(): void;
|
|
@@ -299,49 +299,57 @@ declare module "node:test" {
|
|
|
299
299
|
}
|
|
300
300
|
interface RunOptions {
|
|
301
301
|
/**
|
|
302
|
-
* If a number is provided, then that many
|
|
303
|
-
* If
|
|
304
|
-
*
|
|
305
|
-
* If unspecified, subtests inherit this value from their parent.
|
|
306
|
-
* @default true
|
|
302
|
+
* If a number is provided, then that many test processes would run in parallel, where each process corresponds to one test file.
|
|
303
|
+
* If `true`, it would run `os.availableParallelism() - 1` test files in parallel. If `false`, it would only run one test file at a time.
|
|
304
|
+
* @default false
|
|
307
305
|
*/
|
|
308
306
|
concurrency?: number | boolean | undefined;
|
|
309
307
|
/**
|
|
310
|
-
* An array containing the list of files to run.
|
|
311
|
-
*
|
|
308
|
+
* An array containing the list of files to run. **Default** matching files from
|
|
309
|
+
* [test runner execution model](https://nodejs.org/docs/latest-v20.x/api/test.html#test-runner-execution-model).
|
|
312
310
|
*/
|
|
313
311
|
files?: readonly string[] | undefined;
|
|
314
312
|
/**
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* A number of milliseconds the test will fail after.
|
|
321
|
-
* If unspecified, subtests inherit this value from their parent.
|
|
322
|
-
* @default Infinity
|
|
313
|
+
* Configures the test runner to exit the process once all known
|
|
314
|
+
* tests have finished executing even if the event loop would
|
|
315
|
+
* otherwise remain active.
|
|
316
|
+
* @default false
|
|
323
317
|
*/
|
|
324
|
-
|
|
318
|
+
forceExit?: boolean | undefined;
|
|
325
319
|
/**
|
|
326
320
|
* Sets inspector port of test child process.
|
|
327
321
|
* If a nullish value is provided, each process gets its own port,
|
|
328
322
|
* incremented from the primary's `process.debugPort`.
|
|
323
|
+
* @default undefined
|
|
329
324
|
*/
|
|
330
325
|
inspectPort?: number | (() => number) | undefined;
|
|
331
|
-
/**
|
|
332
|
-
* That can be used to only run tests whose name matches the provided pattern.
|
|
333
|
-
* Test name patterns are interpreted as JavaScript regular expressions.
|
|
334
|
-
* For each test that is executed, any corresponding test hooks, such as `beforeEach()`, are also run.
|
|
335
|
-
*/
|
|
336
|
-
testNamePatterns?: string | RegExp | string[] | RegExp[];
|
|
337
326
|
/**
|
|
338
327
|
* If truthy, the test context will only run tests that have the `only` option set
|
|
339
328
|
*/
|
|
340
329
|
only?: boolean;
|
|
341
330
|
/**
|
|
342
|
-
* A function that accepts the TestsStream instance and can be used to setup listeners before any tests are run.
|
|
331
|
+
* A function that accepts the `TestsStream` instance and can be used to setup listeners before any tests are run.
|
|
332
|
+
* @default undefined
|
|
343
333
|
*/
|
|
344
334
|
setup?: (root: Test) => void | Promise<void>;
|
|
335
|
+
/**
|
|
336
|
+
* Allows aborting an in-progress test execution.
|
|
337
|
+
*/
|
|
338
|
+
signal?: AbortSignal | undefined;
|
|
339
|
+
/**
|
|
340
|
+
* A String, RegExp or a RegExp Array, that can be used to only run tests whose
|
|
341
|
+
* name matches the provided pattern. Test name patterns are interpreted as JavaScript
|
|
342
|
+
* regular expressions. For each test that is executed, any corresponding test hooks,
|
|
343
|
+
* such as `beforeEach()`, are also run.
|
|
344
|
+
* @default undefined
|
|
345
|
+
*/
|
|
346
|
+
testNamePatterns?: string | RegExp | string[] | RegExp[];
|
|
347
|
+
/**
|
|
348
|
+
* A number of milliseconds the test execution will fail after.
|
|
349
|
+
* If unspecified, subtests inherit this value from their parent.
|
|
350
|
+
* @default Infinity
|
|
351
|
+
*/
|
|
352
|
+
timeout?: number | undefined;
|
|
345
353
|
/**
|
|
346
354
|
* Whether to run in watch mode or not.
|
|
347
355
|
* @default false
|
|
@@ -237,6 +237,9 @@ declare module "worker_threads" {
|
|
|
237
237
|
off(event: "message", listener: (value: any) => void): this;
|
|
238
238
|
off(event: "messageerror", listener: (error: Error) => void): this;
|
|
239
239
|
off(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
240
|
+
addEventListener: EventTarget["addEventListener"];
|
|
241
|
+
dispatchEvent: EventTarget["dispatchEvent"];
|
|
242
|
+
removeEventListener: EventTarget["removeEventListener"];
|
|
240
243
|
}
|
|
241
244
|
interface WorkerOptions {
|
|
242
245
|
/**
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014- Slack Technologies, LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
23
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Actionable, Confirmable, Dispatchable, Focusable, Placeholdable, RichTextStyleable } from './extensions';
|
|
2
|
-
import { Option, PlainTextElement, PlainTextOption } from './composition-objects';
|
|
2
|
+
import { Option, PlainTextElement, PlainTextOption, UrlImageObject, SlackFileImageObject } from './composition-objects';
|
|
3
3
|
import { RichTextBlock } from './blocks';
|
|
4
4
|
/**
|
|
5
5
|
* @description Allows users a direct path to performing basic actions.
|
|
@@ -140,20 +140,16 @@ export interface FileInput extends Actionable {
|
|
|
140
140
|
* only an image in it.
|
|
141
141
|
* @see {@link https://api.slack.com/reference/block-kit/block-elements#image Image element reference}.
|
|
142
142
|
*/
|
|
143
|
-
export
|
|
143
|
+
export type ImageElement = {
|
|
144
144
|
/**
|
|
145
145
|
* @description The type of element. In this case `type` is always `image`.
|
|
146
146
|
*/
|
|
147
147
|
type: 'image';
|
|
148
|
-
/**
|
|
149
|
-
* @description The URL of the image to be displayed.
|
|
150
|
-
*/
|
|
151
|
-
image_url: string;
|
|
152
148
|
/**
|
|
153
149
|
* @description A plain-text summary of the image. This should not contain any markup.
|
|
154
150
|
*/
|
|
155
151
|
alt_text: string;
|
|
156
|
-
}
|
|
152
|
+
} & (UrlImageObject | SlackFileImageObject);
|
|
157
153
|
/**
|
|
158
154
|
* @description Allows users to choose an option from a drop down menu.
|
|
159
155
|
* The select menu also includes type-ahead functionality, where a user can type a part or all of an option string to
|
|
@@ -467,7 +463,7 @@ export interface NumberInput extends Actionable, Dispatchable, Focusable, Placeh
|
|
|
467
463
|
}
|
|
468
464
|
/**
|
|
469
465
|
* @description Allows users to press a button to view a list of options.
|
|
470
|
-
* Unlike the select menu, there is no typeahead field, and the button always appears with an ellipsis (
|
|
466
|
+
* Unlike the select menu, there is no typeahead field, and the button always appears with an ellipsis ('…') rather
|
|
471
467
|
* than customizable text. As such, it is usually used if you want a more compact layout than a select menu, or to
|
|
472
468
|
* supply a list of less visually important actions after a row of buttons. You can also specify simple URL links as
|
|
473
469
|
* overflow menu options, instead of actions.
|
|
@@ -553,7 +549,7 @@ export interface Timepicker extends Actionable, Confirmable, Focusable, Placehol
|
|
|
553
549
|
*/
|
|
554
550
|
initial_time?: string;
|
|
555
551
|
/**
|
|
556
|
-
* @description A string in the IANA format, e.g.
|
|
552
|
+
* @description A string in the IANA format, e.g. 'America/Chicago'. The timezone is displayed to end users as hint
|
|
557
553
|
* text underneath the time picker. It is also passed to the app upon certain interactions, such as view_submission.
|
|
558
554
|
*/
|
|
559
555
|
timezone?: string;
|
|
@@ -865,6 +861,11 @@ export interface RichTextQuote {
|
|
|
865
861
|
* @description An array of {@link RichTextElement} comprising the quote block.
|
|
866
862
|
*/
|
|
867
863
|
elements: RichTextElement[];
|
|
864
|
+
/**
|
|
865
|
+
* @description Whether to render a quote-block-like border on the inline side of the text quote.
|
|
866
|
+
* `0` renders no border, while `1` renders a border. Defaults to `0`.
|
|
867
|
+
*/
|
|
868
|
+
border?: 0 | 1;
|
|
868
869
|
}
|
|
869
870
|
/**
|
|
870
871
|
* @description A block of preformatted text within a rich text field.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-elements.d.ts","sourceRoot":"","sources":["../../src/block-kit/block-elements.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"block-elements.d.ts","sourceRoot":"","sources":["../../src/block-kit/block-elements.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,WAAW,EACX,YAAY,EACZ,SAAS,EACT,aAAa,EACb,iBAAiB,EAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;GAIG;AACH,MAAM,WAAW,MAAO,SAAQ,UAAU,EAAE,WAAW;IACrD;;OAEG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;OAGG;IACH,IAAI,EAAE,gBAAgB,CAAC;IACvB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAW,SAAQ,UAAU,EAAE,WAAW,EAAE,SAAS;IACpE;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;GAIG;AACH,MAAM,WAAW,UACf,SAAQ,UAAU,EAClB,WAAW,EACX,SAAS,EACT,aAAa;IACb;;OAEG;IACH,IAAI,EAAE,YAAY,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU,EAAE,WAAW,EAAE,SAAS;IACxE;;OAEG;IACH,IAAI,EAAE,gBAAgB,C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AAE,CAAC;IAC5B;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,EAAE,wBAAwB,CAAC;IAC/B;;OAEG;IACH,QAAQ,EAAE,CAAC,YAAY,GAAG,YAAY,CAAC,EAAE,CAAC;IAC1C;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,aACf,SAAQ,UAAU,EAClB,YAAY,EACZ,SAAS,EACT,aAAa;IACb;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlainTextElement, MrkdwnElement } from './composition-objects';
|
|
1
|
+
import { PlainTextElement, MrkdwnElement, UrlImageObject, SlackFileImageObject } from './composition-objects';
|
|
2
2
|
import { Actionable } from './extensions';
|
|
3
3
|
import { Button, Checkboxes, Datepicker, DateTimepicker, EmailInput, FileInput, ImageElement, MultiSelect, NumberInput, Overflow, PlainTextInput, RadioButtons, Select, Timepicker, URLInput, WorkflowButton, RichTextSection, RichTextList, RichTextQuote, RichTextPreformatted, RichTextInput } from './block-elements';
|
|
4
4
|
export interface Block {
|
|
@@ -95,15 +95,11 @@ export interface HeaderBlock extends Block {
|
|
|
95
95
|
* @description Displays an image. A simple image block, designed to make those cat photos really pop.
|
|
96
96
|
* @see {@link https://api.slack.com/reference/block-kit/blocks#image Image block reference}.
|
|
97
97
|
*/
|
|
98
|
-
export
|
|
98
|
+
export type ImageBlock = {
|
|
99
99
|
/**
|
|
100
100
|
* @description The type of block. For an image block, `type` is always `image`.
|
|
101
101
|
*/
|
|
102
102
|
type: 'image';
|
|
103
|
-
/**
|
|
104
|
-
* @description The URL of the image to be displayed. Maximum length for this field is 3000 characters.
|
|
105
|
-
*/
|
|
106
|
-
image_url: string;
|
|
107
103
|
/**
|
|
108
104
|
* @description A plain-text summary of the image. This should not contain any markup.
|
|
109
105
|
* Maximum length for this field is 2000 characters.
|
|
@@ -114,7 +110,7 @@ export interface ImageBlock extends Block {
|
|
|
114
110
|
* Maximum length for the text in this field is 2000 characters.
|
|
115
111
|
*/
|
|
116
112
|
title?: PlainTextElement;
|
|
117
|
-
}
|
|
113
|
+
} & Block & (UrlImageObject | SlackFileImageObject);
|
|
118
114
|
/**
|
|
119
115
|
* @description Collects information from users via block elements.
|
|
120
116
|
* @see {@link https://api.slack.com/reference/block-kit/blocks#input Input block reference}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/block-kit/blocks.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/block-kit/blocks.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACL,MAAM,EACN,UAAU,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,WAAW,EACX,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,MAAM,EACN,UAAU,EACV,QAAQ,EACR,cAAc,EACd,eAAe,EACf,YAAY,EACZ,aAAa,EACb,oBAAoB,EACpB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAChF,YAAY,GAAG,UAAU,GAAG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AAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAChC;AAED,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,CAAC,eAAe,GAAG,YAAY,GAAG,aAAa,GAAG,oBAAoB,CAAC,EAAE,CAAC;CACrF"}
|
|
@@ -169,5 +169,43 @@ interface BaseConversationFilter {
|
|
|
169
169
|
* @see {@link https://api.slack.com/reference/block-kit/composition-objects#filter_conversations Conversation filter object reference}.
|
|
170
170
|
*/
|
|
171
171
|
export type ConversationFilter = (BaseConversationFilter & Required<Pick<BaseConversationFilter, 'include'>>) | (BaseConversationFilter & Required<Pick<BaseConversationFilter, 'exclude_bot_users'>>) | (BaseConversationFilter & Required<Pick<BaseConversationFilter, 'exclude_external_shared_channels'>>);
|
|
172
|
+
/**
|
|
173
|
+
* @description Object for image which contains a image_url.
|
|
174
|
+
*/
|
|
175
|
+
export interface UrlImageObject {
|
|
176
|
+
/**
|
|
177
|
+
* @description The URL of the image to be displayed.
|
|
178
|
+
*/
|
|
179
|
+
image_url: string;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* @description Object for image which contains a slack_file.
|
|
183
|
+
*/
|
|
184
|
+
export interface SlackFileImageObject {
|
|
185
|
+
/**
|
|
186
|
+
* @description The slack file of the image to be displayed.
|
|
187
|
+
*/
|
|
188
|
+
slack_file: SlackFile;
|
|
189
|
+
}
|
|
190
|
+
interface SlackFileViaUrl {
|
|
191
|
+
/**
|
|
192
|
+
* @description This URL can be the `url_private` or the `permalink` of the {@link Slack file https://api.slack.com/types/file}.
|
|
193
|
+
*/
|
|
194
|
+
url: string;
|
|
195
|
+
}
|
|
196
|
+
interface SlackFileViaId {
|
|
197
|
+
/**
|
|
198
|
+
* @description `id` of the {@link Slack file https://api.slack.com/types/file}.
|
|
199
|
+
*/
|
|
200
|
+
id: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @description Defines an object containing Slack file information to be used in an image block or image element.
|
|
204
|
+
* This {@link file https://api.slack.com/types/file} must be an image and you must provide either the URL or ID. In addition,
|
|
205
|
+
* the user posting these blocks must have access to this file. If both are provided then the payload will be rejected.
|
|
206
|
+
* Currently only `png`, `jpg`, `jpeg`, and `gif` Slack image files are supported.
|
|
207
|
+
* @see {@link https://api.slack.com/reference/block-kit/composition-objects#slack_file Slack File object reference}.
|
|
208
|
+
*/
|
|
209
|
+
export type SlackFile = SlackFileViaUrl | SlackFileViaId;
|
|
172
210
|
export {};
|
|
173
211
|
//# sourceMappingURL=composition-objects.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composition-objects.d.ts","sourceRoot":"","sources":["../../src/block-kit/composition-objects.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;;OAGG;IACH,IAAI,EAAE,gBAAgB,GAAG,aAAa,CAAC;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,OAAO;CAAG;AAEtD;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;;;OAOG;IACH,kBAAkB,CAAC,EAAE,CAAC,kBAAkB,GAAG,sBAAsB,CAAC,EAAE,CAAC;CACtE;AAED,UAAU,gBAAgB;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;O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sB,GAAG,QAAQ,CAAC,IAAI,CAAC,sBAAsB,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,CAAC,sBAAsB,GAAG,QAAQ,CAAC,IAAI,CAAC,sBAAsB,EAAE,kCAAkC,CAAC,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"composition-objects.d.ts","sourceRoot":"","sources":["../../src/block-kit/composition-objects.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;;OAGG;IACH,IAAI,EAAE,gBAAgB,GAAG,aAAa,CAAC;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,OAAO;CAAG;AAEtD;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;;;OAOG;IACH,kBAAkB,CAAC,EAAE,CAAC,kBAAkB,GAAG,sBAAsB,CAAC,EAAE,CAAC;CACtE;AAED,UAAU,gBAAgB;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAChC;AAED,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD;;;OAGG;IACH,IAAI,EAAE,aAAa,CAAC;CACrB;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD;;;OAGG;IACH,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,YAAY,GAAG,eAAe,CAAC;AAEpD;;;GAGG;AACH,MAAM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U,EAAE,SAAS,CAAC;CACvB;AAED,UAAU,eAAe;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,UAAU,cAAc;IACtB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,cAAc,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slack/types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "Shared type definitions for the Node Slack SDK",
|
|
5
5
|
"author": "Slack Technologies, LLC",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,14 +36,15 @@
|
|
|
36
36
|
"ref-docs:model": "api-extractor run"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@microsoft/api-extractor": "^7.
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
41
|
-
"@typescript-eslint/parser": "^
|
|
42
|
-
"eslint": "^
|
|
43
|
-
"eslint-config-airbnb-base": "^
|
|
44
|
-
"eslint-config-airbnb-typescript": "^
|
|
45
|
-
"eslint-plugin-import": "^2.
|
|
46
|
-
"eslint-plugin-
|
|
39
|
+
"@microsoft/api-extractor": "^7.38.0",
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^6.4.1",
|
|
41
|
+
"@typescript-eslint/parser": "^6.4.0",
|
|
42
|
+
"eslint": "^8.47.0",
|
|
43
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
44
|
+
"eslint-config-airbnb-typescript": "^17.1.0",
|
|
45
|
+
"eslint-plugin-import": "^2.28.1",
|
|
46
|
+
"eslint-plugin-import-newlines": "^1.3.4",
|
|
47
|
+
"eslint-plugin-jsdoc": "^46.5.0",
|
|
47
48
|
"eslint-plugin-node": "^11.1.0",
|
|
48
49
|
"shx": "^0.3.2",
|
|
49
50
|
"typescript": "^4.1.0"
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 18 Jun 2024 06:37:41 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|