@distilled.cloud/x 0.0.0-stage → 1.0.0-rc.21

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 (48) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +114 -2
  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 +29 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +50 -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 +11 -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/index.d.ts +2 -0
  28. package/lib/services/index.d.ts.map +1 -0
  29. package/lib/services/index.js +1 -0
  30. package/lib/services/x.d.ts +10689 -0
  31. package/lib/services/x.d.ts.map +1 -0
  32. package/lib/services/x.js +368 -0
  33. package/lib/services/x.js.map +1 -0
  34. package/lib/services.lazy/index.js +3 -0
  35. package/lib/services.lazy/x.js +3 -0
  36. package/lib/traits.d.ts +12 -0
  37. package/lib/traits.d.ts.map +1 -0
  38. package/lib/traits.js +1 -0
  39. package/package.json +88 -3
  40. package/src/credentials.ts +79 -0
  41. package/src/errors.ts +60 -0
  42. package/src/index.ts +25 -0
  43. package/src/pagination.ts +10 -0
  44. package/src/protocol.ts +73 -0
  45. package/src/retry.ts +69 -0
  46. package/src/services/index.ts +2 -0
  47. package/src/services/x.ts +29733 -0
  48. package/src/traits.ts +50 -0
package/src/traits.ts ADDED
@@ -0,0 +1,50 @@
1
+ /**
2
+ * X SDK trait surface -- hand-written.
3
+ *
4
+ * Re-exports the generic protocol traits from core so generated operations
5
+ * import everything from one place. X is bearer-token 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
+ IdempotencyToken,
13
+ Query,
14
+ Label,
15
+ Http,
16
+ ResponseCode,
17
+ HttpBody,
18
+ FormDataFile,
19
+ KeyDictionary,
20
+ UnionCases,
21
+ applyErrorMatchers,
22
+ getErrorMatchers,
23
+ type HttpTrait,
24
+ type ErrorMatcher,
25
+ bodySymbol,
26
+ headerSymbol,
27
+ querySymbol,
28
+ labelSymbol,
29
+ httpSymbol,
30
+ responseCodeSymbol,
31
+ httpBodySymbol,
32
+ formDataFileSymbol,
33
+ keyDictionarySymbol,
34
+ unionCasesSymbol,
35
+ errorMatchersSymbol,
36
+ } from "@distilled.cloud/core/trait";
37
+
38
+ // REST protocol traits (sensitive strings, bare-payload and binary responses).
39
+ export {
40
+ SensitiveValue,
41
+ BinaryResponse,
42
+ RawResponse,
43
+ RawResponseRoot,
44
+ sensitiveValueSymbol,
45
+ rawResponseSymbol,
46
+ rawResponseRootSymbol,
47
+ } from "@distilled.cloud/core/protocol-rest";
48
+
49
+ // Newline-delimited JSON framing for the streaming endpoints.
50
+ export { ndjson } from "@distilled.cloud/core/ndjson";