@distilled.cloud/telegram 0.0.0 → 1.0.0-rc.22

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 (44) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +78 -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 +36 -0
  8. package/lib/credentials.d.ts.map +1 -0
  9. package/lib/credentials.js +1 -0
  10. package/lib/errors.d.ts +41 -0
  11. package/lib/errors.d.ts.map +1 -0
  12. package/lib/errors.js +1 -0
  13. package/lib/index.d.ts +37 -0
  14. package/lib/index.d.ts.map +1 -0
  15. package/lib/index.js +6 -0
  16. package/lib/index.lazy.js +6 -0
  17. package/lib/index.lazy.js.map +1 -0
  18. package/lib/protocol.d.ts +28 -0
  19. package/lib/protocol.d.ts.map +1 -0
  20. package/lib/protocol.js +1 -0
  21. package/lib/retry.d.ts +50 -0
  22. package/lib/retry.d.ts.map +1 -0
  23. package/lib/retry.js +1 -0
  24. package/lib/services/index.d.ts +2 -0
  25. package/lib/services/index.d.ts.map +1 -0
  26. package/lib/services/index.js +1 -0
  27. package/lib/services/telegram.d.ts +9340 -0
  28. package/lib/services/telegram.d.ts.map +1 -0
  29. package/lib/services/telegram.js +251 -0
  30. package/lib/services/telegram.js.map +1 -0
  31. package/lib/services.lazy/index.js +3 -0
  32. package/lib/services.lazy/telegram.js +3 -0
  33. package/lib/traits.d.ts +10 -0
  34. package/lib/traits.d.ts.map +1 -0
  35. package/lib/traits.js +1 -0
  36. package/package.json +77 -2
  37. package/src/credentials.ts +109 -0
  38. package/src/errors.ts +54 -0
  39. package/src/index.ts +36 -0
  40. package/src/protocol.ts +146 -0
  41. package/src/retry.ts +69 -0
  42. package/src/services/index.ts +2 -0
  43. package/src/services/telegram.ts +17648 -0
  44. package/src/traits.ts +44 -0
package/src/traits.ts ADDED
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Telegram SDK trait surface -- hand-written.
3
+ *
4
+ * Re-exports the generic protocol traits from core so generated operations
5
+ * import everything from one place. The protocol unwraps the Bot API's
6
+ * `{ ok, result }` envelope itself, so there are no provider-specific traits.
7
+ */
8
+ export {
9
+ Body,
10
+ Header,
11
+ Query,
12
+ Label,
13
+ Http,
14
+ ResponseCode,
15
+ HttpBody,
16
+ FormDataFile,
17
+ KeyDictionary,
18
+ UnionCases,
19
+ applyErrorMatchers,
20
+ getErrorMatchers,
21
+ type HttpTrait,
22
+ type ErrorMatcher,
23
+ bodySymbol,
24
+ headerSymbol,
25
+ querySymbol,
26
+ labelSymbol,
27
+ httpSymbol,
28
+ responseCodeSymbol,
29
+ httpBodySymbol,
30
+ formDataFileSymbol,
31
+ keyDictionarySymbol,
32
+ unionCasesSymbol,
33
+ errorMatchersSymbol,
34
+ } from "@distilled.cloud/core/trait";
35
+
36
+ // Bearer-REST protocol traits (sensitive strings, bare-payload responses).
37
+ export {
38
+ SensitiveValue,
39
+ RawResponse,
40
+ RawResponseRoot,
41
+ sensitiveValueSymbol,
42
+ rawResponseSymbol,
43
+ rawResponseRootSymbol,
44
+ } from "@distilled.cloud/core/protocol-rest";