@dual-os/github-api 0.0.0-stage → 6.0.5

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 (78) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +34 -2
  3. package/Runner.js +5537 -0
  4. package/Runner.js.map +59 -0
  5. package/bundle-inventory.json +1 -0
  6. package/dist/_virtual/_rolldown/runtime.js +10 -0
  7. package/dist/_virtual/_rolldown/runtime.js.map +9 -0
  8. package/dist/auth.d.ts +49 -0
  9. package/dist/auth.d.ts.map +1 -0
  10. package/dist/auth.js +21 -0
  11. package/dist/auth.js.map +9 -0
  12. package/dist/channel/github-app-client.d.ts +67 -0
  13. package/dist/channel/github-app-client.d.ts.map +1 -0
  14. package/dist/channel/github-app-client.js +18 -0
  15. package/dist/channel/github-app-client.js.map +9 -0
  16. package/dist/channel/github-app-definition.d.ts +190 -0
  17. package/dist/channel/github-app-definition.d.ts.map +1 -0
  18. package/dist/channel/github-app-definition.js +32 -0
  19. package/dist/channel/github-app-definition.js.map +9 -0
  20. package/dist/channel/github-app.d.ts +126 -0
  21. package/dist/channel/github-app.d.ts.map +1 -0
  22. package/dist/channel/github-app.js +17 -0
  23. package/dist/channel/github-app.js.map +9 -0
  24. package/dist/channel/internal/webhook.d.ts +38 -0
  25. package/dist/channel/internal/webhook.d.ts.map +1 -0
  26. package/dist/channel/internal/webhook.js +22 -0
  27. package/dist/channel/internal/webhook.js.map +9 -0
  28. package/dist/generated/http.d.ts +81 -0
  29. package/dist/generated/http.d.ts.map +1 -0
  30. package/dist/generated/http.js +66 -0
  31. package/dist/generated/http.js.map +9 -0
  32. package/dist/generated/operations.d.ts +20998 -0
  33. package/dist/generated/operations.d.ts.map +1 -0
  34. package/dist/generated/operations.js +4934 -0
  35. package/dist/generated/operations.js.map +9 -0
  36. package/dist/generated/plugin.d.ts +6318 -0
  37. package/dist/generated/plugin.d.ts.map +1 -0
  38. package/dist/generated/plugin.js +20 -0
  39. package/dist/generated/plugin.js.map +9 -0
  40. package/dist/plugin.d.ts +10 -0
  41. package/dist/plugin.d.ts.map +1 -0
  42. package/dist/plugin.js +33 -0
  43. package/dist/plugin.js.map +10 -0
  44. package/dist/triggers.d.ts +151 -0
  45. package/dist/triggers.d.ts.map +1 -0
  46. package/dist/triggers.js +19 -0
  47. package/dist/triggers.js.map +9 -0
  48. package/dual-plugin.json +1 -0
  49. package/licenses/@dual-os_sdk@0.9.0/LICENSE +4 -0
  50. package/licenses/@effect_platform-node-shared@4.1.2/LICENSE +21 -0
  51. package/licenses/@effect_platform-node@4.1.2/LICENSE +21 -0
  52. package/licenses/effect@4.1.2/LICENSE +21 -0
  53. package/package.json +1 -6
  54. package/plugin-1b35jx9g.js +64 -0
  55. package/plugin-1b35jx9g.js.map +10 -0
  56. package/plugin-2jdfj02n.js +18 -0
  57. package/plugin-2jdfj02n.js.map +10 -0
  58. package/plugin-2qqpmr67.js +108 -0
  59. package/plugin-2qqpmr67.js.map +10 -0
  60. package/plugin-3ryytw13.js +1257 -0
  61. package/plugin-3ryytw13.js.map +17 -0
  62. package/plugin-5rkcrntd.js +160 -0
  63. package/plugin-5rkcrntd.js.map +10 -0
  64. package/plugin-7hfrx1dg.js +167 -0
  65. package/plugin-7hfrx1dg.js.map +10 -0
  66. package/plugin-e0mt19z7.js +377 -0
  67. package/plugin-e0mt19z7.js.map +10 -0
  68. package/plugin-gtd7vh23.js +25272 -0
  69. package/plugin-gtd7vh23.js.map +10 -0
  70. package/plugin-p1y3h7d7.js +10516 -0
  71. package/plugin-p1y3h7d7.js.map +10 -0
  72. package/plugin-p6f7n836.js +631 -0
  73. package/plugin-p6f7n836.js.map +12 -0
  74. package/plugin-r0m0v72b.js +156 -0
  75. package/plugin-r0m0v72b.js.map +10 -0
  76. package/plugin-w0va8331.js +19347 -0
  77. package/plugin-w0va8331.js.map +158 -0
  78. package/plugin.json +49 -0
@@ -0,0 +1,22 @@
1
+ // @bun
2
+ import {
3
+ NumericId2,
4
+ header2,
5
+ verify2,
6
+ conversationKey2,
7
+ parse2,
8
+ mentions2
9
+ } from "../../../plugin-7hfrx1dg.js";
10
+ import"../../../plugin-3ryytw13.js";
11
+ import"../../../plugin-w0va8331.js";
12
+ export {
13
+ NumericId2 as NumericId,
14
+ conversationKey2 as conversationKey,
15
+ header2 as header,
16
+ mentions2 as mentions,
17
+ parse2 as parse,
18
+ verify2 as verify
19
+ };
20
+
21
+ //# debugId=890EDFA376EAD9BC64756E2164756E21
22
+ //# sourceMappingURL=webhook.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "890EDFA376EAD9BC64756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,81 @@
1
+ import { authMethods } from "../auth.js";
2
+ import "./http.js";
3
+ import { Action, Http } from "@dual-os/sdk";
4
+ import { Base64FromFile, Base64UrlFromFile, DataUriFromFile, DateTimeFromRfc2822, DateTimeFromUnixSeconds, File, FileFromBase64, FileFromBase64Url, FileFromDataUri, Rfc2822FromDateTime, UnixSecondsFromDateTime, continuation, decoded, form, literal, params, path, preauthenticated, segments } from "@dual-os/sdk/Http";
5
+ declare namespace http_d_exports {
6
+ export { Base64FromFile, Base64UrlFromFile, Context, DataUriFromFile, DateTimeFromRfc2822, DateTimeFromUnixSeconds, File, FileFromBase64, FileFromBase64Url, FileFromDataUri, Handler, http_d_exports as Http, Rfc2822FromDateTime, UnixSecondsFromDateTime, continuation, decoded, endpoint, execute, form, googleUpload, graphql, literal, mcp, params, path, preauthenticated, segments, variants };
7
+ }
8
+ export type Handler<Input, Output> = Http.Handler<typeof authMethods, Input, Output>;
9
+ export interface Context extends Action.HandlerContext<typeof authMethods> {}
10
+ declare const { endpoint, execute, googleUpload, graphql, mcp, variants }: {
11
+ endpoint: {
12
+ <const Input extends import("effect/Schema").Top, const Output extends import("effect/Schema").Top>(contract: {
13
+ readonly input: Input;
14
+ readonly output: Output;
15
+ }, run: (input: Input["Type"], context: Context, output: Output) => import("effect/Effect").Effect<Output["Type"], Action.ActionHandlerFailure, import("effect/http/HttpClient").HttpClient>): Http.Endpoint<Context, Input, Output>;
16
+ <const Input extends import("effect/Schema").Top, const Wire extends import("effect/Schema").Top>(contract: {
17
+ readonly input: Input;
18
+ readonly output: Http.Decoded<Wire>;
19
+ }, run: (input: Input["Type"], context: Context, output: Wire) => import("effect/Effect").Effect<Wire["Type"], Action.ActionHandlerFailure, import("effect/http/HttpClient").HttpClient>): Http.DecodedEndpoint<Context, Input, Wire>;
20
+ };
21
+ execute: <Output extends import("effect/Schema").Top>(context: Context | undefined, output: Output, request: import("effect/Effect").Effect<import("effect/http/HttpClientRequest").HttpClientRequest, Action.ActionHandlerError, never> | import("effect/http/HttpClientRequest").HttpClientRequest, body: "binary" | "file" | "json" | "text" | "unknown" | "void") => import("effect/Effect").Effect<Output["Type"], Action.ActionHandlerError | Action.RetryableActionHandlerError, import("effect/http/HttpClient").HttpClient | Output["DecodingServices"]>;
22
+ googleUpload: <Output extends import("effect/Schema").Top>(context: Context, output: Output, request: import("effect/http/HttpClientRequest").HttpClientRequest, payload: {
23
+ readonly mode: "media";
24
+ readonly media: {
25
+ readonly _tag: "File";
26
+ readonly contentType: string;
27
+ readonly id: string;
28
+ readonly name: string;
29
+ readonly sizeBytes: number;
30
+ } | {
31
+ readonly contentBase64: Uint8Array;
32
+ readonly contentType?: string | null;
33
+ };
34
+ } | {
35
+ readonly mode: "multipart";
36
+ readonly media: {
37
+ readonly _tag: "File";
38
+ readonly contentType: string;
39
+ readonly id: string;
40
+ readonly name: string;
41
+ readonly sizeBytes: number;
42
+ } | {
43
+ readonly contentBase64: Uint8Array;
44
+ readonly contentType?: string | null;
45
+ };
46
+ readonly metadata: unknown;
47
+ } | {
48
+ readonly mode: "start";
49
+ readonly contentType: string;
50
+ readonly metadata?: unknown;
51
+ readonly totalBytes: number;
52
+ } | {
53
+ readonly mode: "chunk";
54
+ readonly sessionUrl: string;
55
+ readonly totalBytes: number;
56
+ readonly offset: number;
57
+ readonly media: {
58
+ readonly _tag: "File";
59
+ readonly contentType: string;
60
+ readonly id: string;
61
+ readonly name: string;
62
+ readonly sizeBytes: number;
63
+ } | {
64
+ readonly contentBase64: Uint8Array;
65
+ readonly contentType?: string | null;
66
+ };
67
+ } | {
68
+ readonly mode: "status";
69
+ readonly sessionUrl: string;
70
+ readonly totalBytes: number;
71
+ }, options: {
72
+ readonly maxSize?: number;
73
+ readonly resumable?: string;
74
+ }) => import("effect/Effect").Effect<Output["Type"], Action.ActionHandlerError | Action.RetryableActionHandlerError, import("effect/http/HttpClient").HttpClient | Output["DecodingServices"]>;
75
+ graphql: <Output extends import("effect/Schema").Top>(context: Context, output: Output, request: import("effect/Effect").Effect<import("effect/http/HttpClientRequest").HttpClientRequest, Action.ActionHandlerError, never> | import("effect/http/HttpClientRequest").HttpClientRequest, field: string) => import("effect/Effect").Effect<Output["Type"], Action.ActionHandlerError | Action.RetryableActionHandlerError, import("effect/http/HttpClient").HttpClient | Output["DecodingServices"]>;
76
+ mcp: <Output extends import("effect/Schema").Top>(context: Context, output: Output, server: string, tool: string, args: unknown, structured: boolean) => import("effect/Effect").Effect<Output["Type"], Action.ActionHandlerError | Action.RetryableActionHandlerError, import("effect/http/HttpClient").HttpClient | Exclude<Output["DecodingServices"], import("effect/Scope").Scope>>;
77
+ variants: <Output extends import("effect/Schema").Top>(context: Context | undefined, output: Output, request: import("effect/Effect").Effect<import("effect/http/HttpClientRequest").HttpClientRequest, Action.ActionHandlerError, never> | import("effect/http/HttpClientRequest").HttpClientRequest, declared: readonly Http.Variant[], media?: boolean | undefined) => import("effect/Effect").Effect<Output["Type"], Action.ActionHandlerError | Action.RetryableActionHandlerError, import("effect/http/HttpClient").HttpClient | Output["DecodingServices"]>;
78
+ };
79
+ //#endregion
80
+ export { Base64FromFile, Base64UrlFromFile, DataUriFromFile, DateTimeFromRfc2822, DateTimeFromUnixSeconds, File, FileFromBase64, FileFromBase64Url, FileFromDataUri, http_d_exports as Http, Rfc2822FromDateTime, UnixSecondsFromDateTime, continuation, decoded, endpoint, execute, form, googleUpload, graphql, literal, mcp, params, path, preauthenticated, segments, variants };
81
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","names":["Auth.authMethods"],"sources":["../../src/generated/http.ts"],"mappings":";;;;;;;YA4BY,QAAQ,OAAO,UAAU,KAAK,eAAeA,aAAkB,OAAO;iBAEjE,gBAAgB,OAAO,sBAAsBA;cAEjD,EAAE,UAAU,SAAS,cAAc,SAAS,KAAK"}
@@ -0,0 +1,66 @@
1
+ // @bun
2
+ import {
3
+ http_exports,
4
+ endpoint2,
5
+ execute2,
6
+ googleUpload2,
7
+ graphql2,
8
+ mcp2,
9
+ variants2
10
+ } from "../../plugin-1b35jx9g.js";
11
+ import"../../plugin-r0m0v72b.js";
12
+ import"../../plugin-2jdfj02n.js";
13
+ import"../../plugin-2qqpmr67.js";
14
+ import {
15
+ File2,
16
+ FileFromBase642,
17
+ FileFromBase64Url2,
18
+ Base64FromFile2,
19
+ Base64UrlFromFile2,
20
+ FileFromDataUri2,
21
+ DataUriFromFile2,
22
+ DateTimeFromUnixSeconds2,
23
+ UnixSecondsFromDateTime2,
24
+ DateTimeFromRfc28222,
25
+ Rfc2822FromDateTime2,
26
+ decoded2,
27
+ path2,
28
+ literal2,
29
+ segments2,
30
+ params2,
31
+ form2,
32
+ continuation2,
33
+ preauthenticated2
34
+ } from "../../plugin-3ryytw13.js";
35
+ import"../../plugin-w0va8331.js";
36
+ export {
37
+ Base64FromFile2 as Base64FromFile,
38
+ Base64UrlFromFile2 as Base64UrlFromFile,
39
+ DataUriFromFile2 as DataUriFromFile,
40
+ DateTimeFromRfc28222 as DateTimeFromRfc2822,
41
+ DateTimeFromUnixSeconds2 as DateTimeFromUnixSeconds,
42
+ File2 as File,
43
+ FileFromBase642 as FileFromBase64,
44
+ FileFromBase64Url2 as FileFromBase64Url,
45
+ FileFromDataUri2 as FileFromDataUri,
46
+ http_exports as Http,
47
+ Rfc2822FromDateTime2 as Rfc2822FromDateTime,
48
+ UnixSecondsFromDateTime2 as UnixSecondsFromDateTime,
49
+ continuation2 as continuation,
50
+ decoded2 as decoded,
51
+ endpoint2 as endpoint,
52
+ execute2 as execute,
53
+ form2 as form,
54
+ googleUpload2 as googleUpload,
55
+ graphql2 as graphql,
56
+ literal2 as literal,
57
+ mcp2 as mcp,
58
+ params2 as params,
59
+ path2 as path,
60
+ preauthenticated2 as preauthenticated,
61
+ segments2 as segments,
62
+ variants2 as variants
63
+ };
64
+
65
+ //# debugId=EEC99C1DE0696BEE64756E2164756E21
66
+ //# sourceMappingURL=http.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "EEC99C1DE0696BEE64756E2164756E21",
8
+ "names": []
9
+ }