@distilled.cloud/steel 0.0.0 → 1.0.0-rc.20

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 (102) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +66 -4
  3. package/lib/.lazy.json +1 -0
  4. package/lib/_bundle/lazy.js +4 -0
  5. package/lib/_bundle/sdk.js +2 -0
  6. package/lib/_bundle/sdk.js.map +1 -0
  7. package/lib/credentials.d.ts +24 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +39 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +26 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +7 -0
  16. package/lib/index.lazy.js +7 -0
  17. package/lib/index.lazy.js.map +1 -0
  18. package/lib/pagination.d.ts +10 -0
  19. package/lib/pagination.d.ts.map +1 -0
  20. package/lib/pagination.js +1 -0
  21. package/lib/protocol.d.ts +19 -0
  22. package/lib/protocol.d.ts.map +1 -0
  23. package/lib/protocol.js +1 -0
  24. package/lib/retry.d.ts +50 -0
  25. package/lib/retry.d.ts.map +1 -0
  26. package/lib/retry.js +1 -0
  27. package/lib/services/api_keys.d.ts +63 -0
  28. package/lib/services/api_keys.d.ts.map +1 -0
  29. package/lib/services/api_keys.js +2 -0
  30. package/lib/services/api_keys.js.map +1 -0
  31. package/lib/services/auth.d.ts +32 -0
  32. package/lib/services/auth.d.ts.map +1 -0
  33. package/lib/services/auth.js +2 -0
  34. package/lib/services/auth.js.map +1 -0
  35. package/lib/services/browser_tools.d.ts +166 -0
  36. package/lib/services/browser_tools.d.ts.map +1 -0
  37. package/lib/services/browser_tools.js +2 -0
  38. package/lib/services/browser_tools.js.map +1 -0
  39. package/lib/services/captchas.d.ts +72 -0
  40. package/lib/services/captchas.d.ts.map +1 -0
  41. package/lib/services/captchas.js +2 -0
  42. package/lib/services/captchas.js.map +1 -0
  43. package/lib/services/credentials.d.ts +127 -0
  44. package/lib/services/credentials.d.ts.map +1 -0
  45. package/lib/services/credentials.js +2 -0
  46. package/lib/services/credentials.js.map +1 -0
  47. package/lib/services/extensions.d.ts +122 -0
  48. package/lib/services/extensions.d.ts.map +1 -0
  49. package/lib/services/extensions.js +2 -0
  50. package/lib/services/extensions.js.map +1 -0
  51. package/lib/services/files.d.ts +144 -0
  52. package/lib/services/files.d.ts.map +1 -0
  53. package/lib/services/files.js +2 -0
  54. package/lib/services/files.js.map +1 -0
  55. package/lib/services/index.d.ts +11 -0
  56. package/lib/services/index.d.ts.map +1 -0
  57. package/lib/services/index.js +10 -0
  58. package/lib/services/profiles.d.ts +422 -0
  59. package/lib/services/profiles.d.ts.map +1 -0
  60. package/lib/services/profiles.js +2 -0
  61. package/lib/services/profiles.js.map +1 -0
  62. package/lib/services/projects.d.ts +50 -0
  63. package/lib/services/projects.d.ts.map +1 -0
  64. package/lib/services/projects.js +2 -0
  65. package/lib/services/projects.js.map +1 -0
  66. package/lib/services/sessions.d.ts +1977 -0
  67. package/lib/services/sessions.d.ts.map +1 -0
  68. package/lib/services/sessions.js +44 -0
  69. package/lib/services/sessions.js.map +1 -0
  70. package/lib/services.lazy/api_keys.js +1 -0
  71. package/lib/services.lazy/auth.js +1 -0
  72. package/lib/services.lazy/browser_tools.js +1 -0
  73. package/lib/services.lazy/captchas.js +1 -0
  74. package/lib/services.lazy/credentials.js +1 -0
  75. package/lib/services.lazy/extensions.js +1 -0
  76. package/lib/services.lazy/files.js +1 -0
  77. package/lib/services.lazy/index.js +3 -0
  78. package/lib/services.lazy/profiles.js +1 -0
  79. package/lib/services.lazy/projects.js +1 -0
  80. package/lib/services.lazy/sessions.js +4 -0
  81. package/lib/traits.d.ts +11 -0
  82. package/lib/traits.d.ts.map +1 -0
  83. package/lib/traits.js +1 -0
  84. package/package.json +83 -2
  85. package/src/credentials.ts +63 -0
  86. package/src/errors.ts +51 -0
  87. package/src/index.ts +25 -0
  88. package/src/pagination.ts +9 -0
  89. package/src/protocol.ts +76 -0
  90. package/src/retry.ts +69 -0
  91. package/src/services/api_keys.ts +124 -0
  92. package/src/services/auth.ts +101 -0
  93. package/src/services/browser_tools.ts +338 -0
  94. package/src/services/captchas.ts +216 -0
  95. package/src/services/credentials.ts +292 -0
  96. package/src/services/extensions.ts +338 -0
  97. package/src/services/files.ts +456 -0
  98. package/src/services/index.ts +11 -0
  99. package/src/services/profiles.ts +871 -0
  100. package/src/services/projects.ts +146 -0
  101. package/src/services/sessions.ts +4515 -0
  102. package/src/traits.ts +46 -0
package/src/traits.ts ADDED
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Steel SDK trait surface -- hand-written.
3
+ *
4
+ * Re-exports the generic protocol traits from core so generated operations
5
+ * import everything from one place. Steel is plain API-key REST JSON with no
6
+ * success envelope; the REST-protocol traits (SensitiveValue / RawResponse)
7
+ * come from `core/protocol-rest`.
8
+ */
9
+ export {
10
+ Body,
11
+ Header,
12
+ Query,
13
+ Label,
14
+ Http,
15
+ ResponseCode,
16
+ HttpBody,
17
+ FormDataFile,
18
+ KeyDictionary,
19
+ UnionCases,
20
+ applyErrorMatchers,
21
+ getErrorMatchers,
22
+ type HttpTrait,
23
+ type ErrorMatcher,
24
+ bodySymbol,
25
+ headerSymbol,
26
+ querySymbol,
27
+ labelSymbol,
28
+ httpSymbol,
29
+ responseCodeSymbol,
30
+ httpBodySymbol,
31
+ formDataFileSymbol,
32
+ keyDictionarySymbol,
33
+ unionCasesSymbol,
34
+ errorMatchersSymbol,
35
+ } from "@distilled.cloud/core/trait";
36
+
37
+ // REST protocol traits (sensitive strings, bare-payload and binary responses).
38
+ export {
39
+ SensitiveValue,
40
+ BinaryResponse,
41
+ RawResponse,
42
+ RawResponseRoot,
43
+ sensitiveValueSymbol,
44
+ rawResponseSymbol,
45
+ rawResponseRootSymbol,
46
+ } from "@distilled.cloud/core/protocol-rest";