@distilled.cloud/discord 0.0.0 → 1.0.0-rc.10
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/LICENSE +201 -0
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +53 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +51 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +31 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +14 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +14 -0
- package/lib/index.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +81 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +52 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +45 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/discord.d.ts +7987 -0
- package/lib/services/discord.d.ts.map +1 -0
- package/lib/services/discord.js +12984 -0
- package/lib/services/discord.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +72 -3
- package/src/credentials.ts +93 -0
- package/src/errors.ts +67 -0
- package/src/index.ts +17 -0
- package/src/protocol.ts +106 -0
- package/src/retry.ts +76 -0
- package/src/services/discord.ts +27038 -0
- package/src/services/index.ts +2 -0
- package/src/traits.ts +44 -0
package/src/traits.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Discord SDK trait surface — hand-written.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the generic protocol traits from core so generated operations
|
|
5
|
+
* import everything from one place. Discord speaks plain bearer-REST JSON
|
|
6
|
+
* with no response envelope, 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";
|