@detent/sdk 0.0.0 → 0.1.1

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 (162) hide show
  1. package/README.md +4 -8
  2. package/_speakeasy/.github/action-inputs-config.json +53 -0
  3. package/_speakeasy/.github/action-security-config.json +88 -0
  4. package/dist/commonjs/lib/config.d.ts +3 -3
  5. package/dist/commonjs/lib/config.js +3 -3
  6. package/dist/esm/lib/config.d.ts +3 -3
  7. package/dist/esm/lib/config.js +3 -3
  8. package/examples/package-lock.json +1 -1
  9. package/jsr.json +1 -1
  10. package/package.json +5 -1
  11. package/src/lib/config.ts +3 -3
  12. package/.speakeasy/temp/downloaded_DebOqZlrza.json +0 -1
  13. package/.speakeasy/temp/downloaded_YLnaAbCoUV.json +0 -1
  14. package/examples/node_modules/.package-lock.json +0 -174
  15. package/examples/node_modules/@esbuild/darwin-arm64/package.json +0 -20
  16. package/examples/node_modules/@types/node/assert/strict.d.ts +0 -8
  17. package/examples/node_modules/@types/node/assert.d.ts +0 -1062
  18. package/examples/node_modules/@types/node/async_hooks.d.ts +0 -605
  19. package/examples/node_modules/@types/node/buffer.buffer.d.ts +0 -471
  20. package/examples/node_modules/@types/node/buffer.d.ts +0 -1936
  21. package/examples/node_modules/@types/node/child_process.d.ts +0 -1475
  22. package/examples/node_modules/@types/node/cluster.d.ts +0 -577
  23. package/examples/node_modules/@types/node/compatibility/disposable.d.ts +0 -16
  24. package/examples/node_modules/@types/node/compatibility/index.d.ts +0 -9
  25. package/examples/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  26. package/examples/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
  27. package/examples/node_modules/@types/node/console.d.ts +0 -452
  28. package/examples/node_modules/@types/node/constants.d.ts +0 -21
  29. package/examples/node_modules/@types/node/crypto.d.ts +0 -4590
  30. package/examples/node_modules/@types/node/dgram.d.ts +0 -597
  31. package/examples/node_modules/@types/node/diagnostics_channel.d.ts +0 -578
  32. package/examples/node_modules/@types/node/dns/promises.d.ts +0 -479
  33. package/examples/node_modules/@types/node/dns.d.ts +0 -871
  34. package/examples/node_modules/@types/node/domain.d.ts +0 -170
  35. package/examples/node_modules/@types/node/events.d.ts +0 -977
  36. package/examples/node_modules/@types/node/fs/promises.d.ts +0 -1270
  37. package/examples/node_modules/@types/node/fs.d.ts +0 -4375
  38. package/examples/node_modules/@types/node/globals.d.ts +0 -172
  39. package/examples/node_modules/@types/node/globals.typedarray.d.ts +0 -38
  40. package/examples/node_modules/@types/node/http.d.ts +0 -2049
  41. package/examples/node_modules/@types/node/http2.d.ts +0 -2631
  42. package/examples/node_modules/@types/node/https.d.ts +0 -578
  43. package/examples/node_modules/@types/node/index.d.ts +0 -93
  44. package/examples/node_modules/@types/node/inspector.generated.d.ts +0 -3966
  45. package/examples/node_modules/@types/node/module.d.ts +0 -539
  46. package/examples/node_modules/@types/node/net.d.ts +0 -1012
  47. package/examples/node_modules/@types/node/os.d.ts +0 -506
  48. package/examples/node_modules/@types/node/package.json +0 -140
  49. package/examples/node_modules/@types/node/path.d.ts +0 -200
  50. package/examples/node_modules/@types/node/perf_hooks.d.ts +0 -961
  51. package/examples/node_modules/@types/node/process.d.ts +0 -1966
  52. package/examples/node_modules/@types/node/punycode.d.ts +0 -117
  53. package/examples/node_modules/@types/node/querystring.d.ts +0 -152
  54. package/examples/node_modules/@types/node/readline/promises.d.ts +0 -162
  55. package/examples/node_modules/@types/node/readline.d.ts +0 -589
  56. package/examples/node_modules/@types/node/repl.d.ts +0 -430
  57. package/examples/node_modules/@types/node/sea.d.ts +0 -153
  58. package/examples/node_modules/@types/node/stream/consumers.d.ts +0 -38
  59. package/examples/node_modules/@types/node/stream/promises.d.ts +0 -90
  60. package/examples/node_modules/@types/node/stream/web.d.ts +0 -533
  61. package/examples/node_modules/@types/node/stream.d.ts +0 -1675
  62. package/examples/node_modules/@types/node/string_decoder.d.ts +0 -67
  63. package/examples/node_modules/@types/node/test.d.ts +0 -1787
  64. package/examples/node_modules/@types/node/timers/promises.d.ts +0 -108
  65. package/examples/node_modules/@types/node/timers.d.ts +0 -286
  66. package/examples/node_modules/@types/node/tls.d.ts +0 -1259
  67. package/examples/node_modules/@types/node/trace_events.d.ts +0 -197
  68. package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -468
  69. package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -34
  70. package/examples/node_modules/@types/node/ts5.6/index.d.ts +0 -93
  71. package/examples/node_modules/@types/node/tty.d.ts +0 -208
  72. package/examples/node_modules/@types/node/url.d.ts +0 -964
  73. package/examples/node_modules/@types/node/util.d.ts +0 -2331
  74. package/examples/node_modules/@types/node/v8.d.ts +0 -809
  75. package/examples/node_modules/@types/node/vm.d.ts +0 -1001
  76. package/examples/node_modules/@types/node/wasi.d.ts +0 -181
  77. package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  78. package/examples/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  79. package/examples/node_modules/@types/node/web-globals/events.d.ts +0 -97
  80. package/examples/node_modules/@types/node/web-globals/fetch.d.ts +0 -46
  81. package/examples/node_modules/@types/node/worker_threads.d.ts +0 -715
  82. package/examples/node_modules/@types/node/zlib.d.ts +0 -540
  83. package/examples/node_modules/dotenv/config.d.ts +0 -1
  84. package/examples/node_modules/dotenv/config.js +0 -9
  85. package/examples/node_modules/dotenv/lib/cli-options.js +0 -17
  86. package/examples/node_modules/dotenv/lib/env-options.js +0 -28
  87. package/examples/node_modules/dotenv/lib/main.d.ts +0 -162
  88. package/examples/node_modules/dotenv/lib/main.js +0 -386
  89. package/examples/node_modules/dotenv/package.json +0 -62
  90. package/examples/node_modules/esbuild/install.js +0 -289
  91. package/examples/node_modules/esbuild/lib/main.d.ts +0 -716
  92. package/examples/node_modules/esbuild/lib/main.js +0 -2242
  93. package/examples/node_modules/esbuild/package.json +0 -49
  94. package/examples/node_modules/fsevents/fsevents.d.ts +0 -46
  95. package/examples/node_modules/fsevents/fsevents.js +0 -83
  96. package/examples/node_modules/fsevents/package.json +0 -62
  97. package/examples/node_modules/get-tsconfig/dist/index.mjs +0 -7
  98. package/examples/node_modules/get-tsconfig/package.json +0 -46
  99. package/examples/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
  100. package/examples/node_modules/resolve-pkg-maps/package.json +0 -42
  101. package/examples/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
  102. package/examples/node_modules/tsx/dist/cjs/index.mjs +0 -1
  103. package/examples/node_modules/tsx/dist/cli.mjs +0 -55
  104. package/examples/node_modules/tsx/dist/client-BQVF1NaW.mjs +0 -1
  105. package/examples/node_modules/tsx/dist/esm/api/index.mjs +0 -1
  106. package/examples/node_modules/tsx/dist/esm/index.mjs +0 -2
  107. package/examples/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +0 -1
  108. package/examples/node_modules/tsx/dist/index-7AaEi15b.mjs +0 -14
  109. package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +0 -1
  110. package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +0 -3
  111. package/examples/node_modules/tsx/dist/loader.mjs +0 -1
  112. package/examples/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +0 -1
  113. package/examples/node_modules/tsx/dist/package-CeBgXWuR.mjs +0 -1
  114. package/examples/node_modules/tsx/dist/patch-repl.mjs +0 -1
  115. package/examples/node_modules/tsx/dist/preflight.mjs +0 -1
  116. package/examples/node_modules/tsx/dist/register-B7jrtLTO.mjs +0 -1
  117. package/examples/node_modules/tsx/dist/register-CFH5oNdT.mjs +0 -4
  118. package/examples/node_modules/tsx/dist/repl.mjs +0 -3
  119. package/examples/node_modules/tsx/dist/require-DQxpCAr4.mjs +0 -1
  120. package/examples/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
  121. package/examples/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +0 -1
  122. package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
  123. package/examples/node_modules/tsx/package.json +0 -68
  124. package/examples/node_modules/undici-types/agent.d.ts +0 -31
  125. package/examples/node_modules/undici-types/api.d.ts +0 -43
  126. package/examples/node_modules/undici-types/balanced-pool.d.ts +0 -29
  127. package/examples/node_modules/undici-types/cache.d.ts +0 -36
  128. package/examples/node_modules/undici-types/client.d.ts +0 -108
  129. package/examples/node_modules/undici-types/connector.d.ts +0 -34
  130. package/examples/node_modules/undici-types/content-type.d.ts +0 -21
  131. package/examples/node_modules/undici-types/cookies.d.ts +0 -28
  132. package/examples/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
  133. package/examples/node_modules/undici-types/dispatcher.d.ts +0 -256
  134. package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
  135. package/examples/node_modules/undici-types/errors.d.ts +0 -149
  136. package/examples/node_modules/undici-types/eventsource.d.ts +0 -61
  137. package/examples/node_modules/undici-types/fetch.d.ts +0 -209
  138. package/examples/node_modules/undici-types/file.d.ts +0 -39
  139. package/examples/node_modules/undici-types/filereader.d.ts +0 -54
  140. package/examples/node_modules/undici-types/formdata.d.ts +0 -108
  141. package/examples/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  142. package/examples/node_modules/undici-types/global-origin.d.ts +0 -7
  143. package/examples/node_modules/undici-types/handlers.d.ts +0 -15
  144. package/examples/node_modules/undici-types/header.d.ts +0 -4
  145. package/examples/node_modules/undici-types/index.d.ts +0 -71
  146. package/examples/node_modules/undici-types/interceptors.d.ts +0 -17
  147. package/examples/node_modules/undici-types/mock-agent.d.ts +0 -50
  148. package/examples/node_modules/undici-types/mock-client.d.ts +0 -25
  149. package/examples/node_modules/undici-types/mock-errors.d.ts +0 -12
  150. package/examples/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  151. package/examples/node_modules/undici-types/mock-pool.d.ts +0 -25
  152. package/examples/node_modules/undici-types/package.json +0 -55
  153. package/examples/node_modules/undici-types/patch.d.ts +0 -33
  154. package/examples/node_modules/undici-types/pool-stats.d.ts +0 -19
  155. package/examples/node_modules/undici-types/pool.d.ts +0 -39
  156. package/examples/node_modules/undici-types/proxy-agent.d.ts +0 -28
  157. package/examples/node_modules/undici-types/readable.d.ts +0 -65
  158. package/examples/node_modules/undici-types/retry-agent.d.ts +0 -8
  159. package/examples/node_modules/undici-types/retry-handler.d.ts +0 -116
  160. package/examples/node_modules/undici-types/util.d.ts +0 -18
  161. package/examples/node_modules/undici-types/webidl.d.ts +0 -228
  162. package/examples/node_modules/undici-types/websocket.d.ts +0 -150
@@ -1,67 +0,0 @@
1
- /**
2
- * The `node:string_decoder` module provides an API for decoding `Buffer` objects
3
- * into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16
4
- * characters. It can be accessed using:
5
- *
6
- * ```js
7
- * import { StringDecoder } from 'node:string_decoder';
8
- * ```
9
- *
10
- * The following example shows the basic use of the `StringDecoder` class.
11
- *
12
- * ```js
13
- * import { StringDecoder } from 'node:string_decoder';
14
- * const decoder = new StringDecoder('utf8');
15
- *
16
- * const cent = Buffer.from([0xC2, 0xA2]);
17
- * console.log(decoder.write(cent)); // Prints: ¢
18
- *
19
- * const euro = Buffer.from([0xE2, 0x82, 0xAC]);
20
- * console.log(decoder.write(euro)); // Prints: €
21
- * ```
22
- *
23
- * When a `Buffer` instance is written to the `StringDecoder` instance, an
24
- * internal buffer is used to ensure that the decoded string does not contain
25
- * any incomplete multibyte characters. These are held in the buffer until the
26
- * next call to `stringDecoder.write()` or until `stringDecoder.end()` is called.
27
- *
28
- * In the following example, the three UTF-8 encoded bytes of the European Euro
29
- * symbol (`€`) are written over three separate operations:
30
- *
31
- * ```js
32
- * import { StringDecoder } from 'node:string_decoder';
33
- * const decoder = new StringDecoder('utf8');
34
- *
35
- * decoder.write(Buffer.from([0xE2]));
36
- * decoder.write(Buffer.from([0x82]));
37
- * console.log(decoder.end(Buffer.from([0xAC]))); // Prints: €
38
- * ```
39
- * @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/string_decoder.js)
40
- */
41
- declare module "string_decoder" {
42
- class StringDecoder {
43
- constructor(encoding?: BufferEncoding);
44
- /**
45
- * Returns a decoded string, ensuring that any incomplete multibyte characters at
46
- * the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the
47
- * returned string and stored in an internal buffer for the next call to `stringDecoder.write()` or `stringDecoder.end()`.
48
- * @since v0.1.99
49
- * @param buffer The bytes to decode.
50
- */
51
- write(buffer: string | NodeJS.ArrayBufferView): string;
52
- /**
53
- * Returns any remaining input stored in the internal buffer as a string. Bytes
54
- * representing incomplete UTF-8 and UTF-16 characters will be replaced with
55
- * substitution characters appropriate for the character encoding.
56
- *
57
- * If the `buffer` argument is provided, one final call to `stringDecoder.write()` is performed before returning the remaining input.
58
- * After `end()` is called, the `stringDecoder` object can be reused for new input.
59
- * @since v0.9.3
60
- * @param buffer The bytes to decode.
61
- */
62
- end(buffer?: string | NodeJS.ArrayBufferView): string;
63
- }
64
- }
65
- declare module "node:string_decoder" {
66
- export * from "string_decoder";
67
- }