@distilled.cloud/forgejo 0.0.0 → 1.0.0-rc.9
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/README.md +71 -0
- package/lib/credentials.d.ts +35 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +57 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +56 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +36 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +28 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +28 -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 +61 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +50 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +43 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/activitypub.d.ts +121 -0
- package/lib/services/activitypub.d.ts.map +1 -0
- package/lib/services/activitypub.js +202 -0
- package/lib/services/activitypub.js.map +1 -0
- package/lib/services/admin.d.ts +1196 -0
- package/lib/services/admin.d.ts.map +1 -0
- package/lib/services/admin.js +1276 -0
- package/lib/services/admin.js.map +1 -0
- package/lib/services/index.d.ts +11 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +12 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/issue.d.ts +1479 -0
- package/lib/services/issue.d.ts.map +1 -0
- package/lib/services/issue.js +1732 -0
- package/lib/services/issue.js.map +1 -0
- package/lib/services/miscellaneous.d.ts +494 -0
- package/lib/services/miscellaneous.d.ts.map +1 -0
- package/lib/services/miscellaneous.js +471 -0
- package/lib/services/miscellaneous.js.map +1 -0
- package/lib/services/notification.d.ts +390 -0
- package/lib/services/notification.d.ts.map +1 -0
- package/lib/services/notification.js +344 -0
- package/lib/services/notification.js.map +1 -0
- package/lib/services/organization.d.ts +1593 -0
- package/lib/services/organization.d.ts.map +1 -0
- package/lib/services/organization.js +1672 -0
- package/lib/services/organization.js.map +1 -0
- package/lib/services/package.d.ts +347 -0
- package/lib/services/package.d.ts.map +1 -0
- package/lib/services/package.js +320 -0
- package/lib/services/package.js.map +1 -0
- package/lib/services/repository.d.ts +4770 -0
- package/lib/services/repository.d.ts.map +1 -0
- package/lib/services/repository.js +5449 -0
- package/lib/services/repository.js.map +1 -0
- package/lib/services/settings.d.ts +67 -0
- package/lib/services/settings.d.ts.map +1 -0
- package/lib/services/settings.js +87 -0
- package/lib/services/settings.js.map +1 -0
- package/lib/services/user.d.ts +1764 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +1921 -0
- package/lib/services/user.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 +78 -6
- package/src/credentials.ts +89 -0
- package/src/errors.ts +72 -0
- package/src/index.ts +31 -0
- package/src/protocol.ts +86 -0
- package/src/retry.ts +74 -0
- package/src/services/activitypub.ts +415 -0
- package/src/services/admin.ts +3103 -0
- package/src/services/index.ts +11 -0
- package/src/services/issue.ts +3949 -0
- package/src/services/miscellaneous.ts +1118 -0
- package/src/services/notification.ts +847 -0
- package/src/services/organization.ts +4008 -0
- package/src/services/package.ts +767 -0
- package/src/services/repository.ts +12839 -0
- package/src/services/settings.ts +190 -0
- package/src/services/user.ts +4669 -0
- package/src/traits.ts +44 -0
package/src/traits.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Forgejo SDK trait surface — hand-written.
|
|
3
|
+
*
|
|
4
|
+
* Re-exports the generic protocol traits from core so generated operations
|
|
5
|
+
* import everything from one place. Forgejo speaks plain token-REST JSON with
|
|
6
|
+
* no success 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";
|