@dual-os/linear-api 0.0.0-stage → 6.0.4

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 +29 -0
  2. package/README.md +36 -2
  3. package/Runner.js +5771 -0
  4. package/Runner.js.map +63 -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 +51 -0
  9. package/dist/auth.d.ts.map +1 -0
  10. package/dist/auth.js +19 -0
  11. package/dist/auth.js.map +9 -0
  12. package/dist/channel/internal/webhook.d.ts +96 -0
  13. package/dist/channel/internal/webhook.d.ts.map +1 -0
  14. package/dist/channel/internal/webhook.js +20 -0
  15. package/dist/channel/internal/webhook.js.map +9 -0
  16. package/dist/channel/linear-app-client.d.ts +54 -0
  17. package/dist/channel/linear-app-client.d.ts.map +1 -0
  18. package/dist/channel/linear-app-client.js +14 -0
  19. package/dist/channel/linear-app-client.js.map +9 -0
  20. package/dist/channel/linear-app-definition.d.ts +171 -0
  21. package/dist/channel/linear-app-definition.d.ts.map +1 -0
  22. package/dist/channel/linear-app-definition.js +18 -0
  23. package/dist/channel/linear-app-definition.js.map +9 -0
  24. package/dist/channel/linear-app.d.ts +65 -0
  25. package/dist/channel/linear-app.d.ts.map +1 -0
  26. package/dist/channel/linear-app.js +15 -0
  27. package/dist/channel/linear-app.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 +14326 -0
  33. package/dist/generated/operations.d.ts.map +1 -0
  34. package/dist/generated/operations.js +3640 -0
  35. package/dist/generated/operations.js.map +9 -0
  36. package/dist/generated/plugin.d.ts +989 -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 +4278 -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 +211 -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.8.1/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-15tbf6dq.js +79 -0
  55. package/plugin-15tbf6dq.js.map +10 -0
  56. package/plugin-2jdfj02n.js +18 -0
  57. package/plugin-2jdfj02n.js.map +10 -0
  58. package/plugin-5bqv66ke.js +14513 -0
  59. package/plugin-5bqv66ke.js.map +10 -0
  60. package/plugin-9w5999vc.js +81 -0
  61. package/plugin-9w5999vc.js.map +10 -0
  62. package/plugin-bcdkw9ac.js +3615 -0
  63. package/plugin-bcdkw9ac.js.map +10 -0
  64. package/plugin-d4a2ytg0.js +19311 -0
  65. package/plugin-d4a2ytg0.js.map +159 -0
  66. package/plugin-dbxxf9k5.js +64 -0
  67. package/plugin-dbxxf9k5.js.map +10 -0
  68. package/plugin-e503g25g.js +204 -0
  69. package/plugin-e503g25g.js.map +10 -0
  70. package/plugin-s3mapcpn.js +138 -0
  71. package/plugin-s3mapcpn.js.map +10 -0
  72. package/plugin-srg9rdjf.js +244 -0
  73. package/plugin-srg9rdjf.js.map +10 -0
  74. package/plugin-v0kgp19h.js +1257 -0
  75. package/plugin-v0kgp19h.js.map +17 -0
  76. package/plugin-xv11dhcc.js +274 -0
  77. package/plugin-xv11dhcc.js.map +10 -0
  78. package/plugin.json +46 -0
@@ -0,0 +1 @@
1
+ {"format":1,"toolchain":{"bun":"1.4.2","lockfile_sha512":"5a33b7f1f025a7c482045f64ed93b52c9f6c8674d0133fd234234f876c0b7bb9a9956e0a731f50fe53250544fbdef0d0dd06ea6ae4a4d8669149f9cb8315e121"},"packages":[{"name":"@dual-os/sdk","version":"0.8.1","license":"UNLICENSED","licenses":["licenses/@dual-os_sdk@0.8.1/LICENSE"]},{"name":"@effect/platform-node-shared","version":"4.1.2","license":"MIT","licenses":["licenses/@effect_platform-node-shared@4.1.2/LICENSE"]},{"name":"@effect/platform-node","version":"4.1.2","license":"MIT","licenses":["licenses/@effect_platform-node@4.1.2/LICENSE"]},{"name":"effect","version":"4.1.2","license":"MIT","licenses":["licenses/effect@4.1.2/LICENSE"]}]}
@@ -0,0 +1,10 @@
1
+ // @bun
2
+ import {
3
+ __exportAll2
4
+ } from "../../../plugin-2jdfj02n.js";
5
+ export {
6
+ __exportAll2 as __exportAll
7
+ };
8
+
9
+ //# debugId=F421F4E6458B986D64756E2164756E21
10
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "F421F4E6458B986D64756E2164756E21",
8
+ "names": []
9
+ }
package/dist/auth.d.ts ADDED
@@ -0,0 +1,51 @@
1
+ import "./auth.js";
2
+ import { Schema } from "effect";
3
+ import { HttpClient } from "effect/http";
4
+ import { Action, AuthMethod } from "@dual-os/sdk";
5
+ declare namespace auth_d_exports {
6
+ export { auth_d_exports as Auth, authMethods, authorize };
7
+ }
8
+ export declare const authMethods: readonly [AuthMethod.AuthMethod<"api-token", undefined, Schema.Struct<{
9
+ readonly apiKey: Schema.NonEmptyString;
10
+ readonly signingSecret: Schema.optionalKey<Schema.NonEmptyString>;
11
+ }>, Schema.Struct<{
12
+ readonly apiKey: Schema.NonEmptyString;
13
+ readonly signingSecret: Schema.optionalKey<Schema.NonEmptyString>;
14
+ }>, Schema.Struct<{
15
+ readonly apiKey: Schema.NonEmptyString;
16
+ readonly signingSecret: Schema.optionalKey<Schema.NonEmptyString>;
17
+ }>, never>, AuthMethod.AuthMethod<"oauth2", Schema.Struct<{
18
+ readonly clientId: Schema.String;
19
+ readonly clientSecret: Schema.String;
20
+ readonly signingSecret: Schema.optional<Schema.NonEmptyString>;
21
+ }>, undefined, Schema.Struct<{
22
+ readonly accessToken: Schema.String;
23
+ readonly expiresAt: Schema.optional<Schema.Number>;
24
+ readonly expiresIn: Schema.optional<Schema.Number>;
25
+ readonly raw: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
26
+ readonly refreshToken: Schema.optional<Schema.String>;
27
+ readonly scope: Schema.optional<Schema.String>;
28
+ readonly tokenType: Schema.optional<Schema.String>;
29
+ }>, Schema.Struct<{
30
+ readonly accessToken: Schema.String;
31
+ readonly signingSecret: Schema.optional<Schema.NonEmptyString>;
32
+ }>, AuthMethod.Service>, AuthMethod.AuthMethod<"app", undefined, Schema.Struct<{
33
+ readonly accessToken: Schema.NonEmptyString;
34
+ readonly appUserId: Schema.NonEmptyString;
35
+ readonly organizationId: Schema.NonEmptyString;
36
+ readonly signingSecret: Schema.NonEmptyString;
37
+ }>, Schema.Struct<{
38
+ readonly accessToken: Schema.NonEmptyString;
39
+ readonly appUserId: Schema.NonEmptyString;
40
+ readonly organizationId: Schema.NonEmptyString;
41
+ readonly signingSecret: Schema.NonEmptyString;
42
+ }>, Schema.Struct<{
43
+ readonly accessToken: Schema.NonEmptyString;
44
+ readonly appUserId: Schema.NonEmptyString;
45
+ readonly organizationId: Schema.NonEmptyString;
46
+ readonly signingSecret: Schema.NonEmptyString;
47
+ }>, never>];
48
+ export declare function authorize(client: HttpClient.HttpClient, context: Action.HandlerContext<typeof authMethods>): HttpClient.HttpClient;
49
+ //#endregion
50
+ export { auth_d_exports as Auth };
51
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","names":[],"sources":["../src/auth.ts"],"mappings":";;;;;;;qBAgDa,uBAAW,WAAA,mCAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAER,UACd,QAAQ,WAAW,YACnB,SAAS,OAAO,sBAAsB,eACrC,WAAW"}
package/dist/auth.js ADDED
@@ -0,0 +1,19 @@
1
+ // @bun
2
+ import {
3
+ auth_exports2,
4
+ authMethods2,
5
+ authorize2
6
+ } from "../plugin-9w5999vc.js";
7
+ import"../plugin-2jdfj02n.js";
8
+ import"../plugin-15tbf6dq.js";
9
+ import"../plugin-v0kgp19h.js";
10
+ import"../plugin-d4a2ytg0.js";
11
+ export {
12
+ auth_exports2 as Auth,
13
+ authMethods2 as authMethods,
14
+ auth_exports2 as auth_exports,
15
+ authorize2 as authorize
16
+ };
17
+
18
+ //# debugId=EAB7905EA2F7F9B264756E2164756E21
19
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "EAB7905EA2F7F9B264756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,96 @@
1
+ import { Effect, Option, Schema } from "effect";
2
+ import { AgentChannel } from "@dual-os/sdk";
3
+ //#region src/channel/internal/webhook.d.ts
4
+ /** The workspace and app user an installation serves. */
5
+ interface Identity {
6
+ readonly appUserId: string;
7
+ readonly organizationId: string;
8
+ }
9
+ /** The teams whose issues can start a session; empty for every team. */
10
+ type Teams = readonly string[];
11
+ /** Linear signs the raw body in `Linear-Signature` and dates it in `webhookTimestamp`. */
12
+ export declare const verifyWebhook: (request: {
13
+ readonly body: string;
14
+ readonly headers: {
15
+ readonly [x: string]: string;
16
+ };
17
+ readonly method: "DELETE" | "GET" | "PATCH" | "POST" | "PUT";
18
+ readonly url: string;
19
+ }, signingSecret: string) => Effect.Effect<{
20
+ verified: true;
21
+ }, AgentChannel.HandlerError, never>;
22
+ /** A provider message key: the comment a user wrote, else the session or prompt it started. */
23
+ export declare function commentKey(commentId: string): string;
24
+ /** The Linear comment a message key names, if it names one. */
25
+ export declare function commentOf(messageKey: string): Option.Option<string>;
26
+ /** The issue a destination names, or none for a session outside an issue. */
27
+ export declare function issueOf(target: AgentChannel.Destination): Option.Option<string>;
28
+ /** The events of one verified webhook: a session start, a prompt or a stop; nothing for the rest. */
29
+ export declare const webhookEvents: (body: string, identity: Identity, teams: Teams) => Effect.Effect<({
30
+ readonly content: {
31
+ readonly assets?: readonly {
32
+ readonly assetKey: string;
33
+ readonly mediaType: string;
34
+ readonly url: string;
35
+ }[];
36
+ readonly mentions?: readonly string[];
37
+ readonly replyToMessageKey?: string;
38
+ readonly text: string;
39
+ };
40
+ readonly conversation: {
41
+ readonly conversationKey: string;
42
+ readonly kind: "direct" | "group";
43
+ readonly threadKey?: string;
44
+ };
45
+ readonly eventKey: string;
46
+ readonly extensions?: {
47
+ readonly [x: string]: Schema.Json;
48
+ };
49
+ readonly kind: "message";
50
+ readonly messageKey: string;
51
+ readonly respond: boolean;
52
+ readonly senderKey: string;
53
+ readonly timestamp: string;
54
+ } | {
55
+ readonly conversation: {
56
+ readonly conversationKey: string;
57
+ readonly kind: "direct" | "group";
58
+ readonly threadKey?: string;
59
+ };
60
+ readonly senderKey: string;
61
+ readonly eventKey: string;
62
+ readonly extensions?: {
63
+ readonly [x: string]: Schema.Json;
64
+ };
65
+ readonly kind: "echo";
66
+ readonly messageKey: string;
67
+ readonly timestamp: string;
68
+ } | {
69
+ readonly deliveryKey: string;
70
+ readonly deliveryUpdateKey: string;
71
+ readonly eventKey: string;
72
+ readonly extensions?: {
73
+ readonly [x: string]: Schema.Json;
74
+ };
75
+ readonly kind: "delivery_update";
76
+ readonly providerDeliveryKey: string;
77
+ readonly sequence: number;
78
+ readonly status: "failed" | "succeeded";
79
+ readonly timestamp: string;
80
+ } | {
81
+ readonly conversation: {
82
+ readonly conversationKey: string;
83
+ readonly kind: "direct" | "group";
84
+ readonly threadKey?: string;
85
+ };
86
+ readonly senderKey: string;
87
+ readonly eventKey: string;
88
+ readonly extensions?: {
89
+ readonly [x: string]: Schema.Json;
90
+ };
91
+ readonly kind: "stop";
92
+ readonly timestamp: string;
93
+ })[], AgentChannel.HandlerError, never>;
94
+ //#endregion
95
+ export {};
96
+ //# sourceMappingURL=webhook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook.d.ts","names":[],"sources":["../../../src/channel/internal/webhook.ts"],"mappings":";;;;UA+EU;WACC;WACA;;;KAIN;;qBAWQ,gBAAa;;;;;;;;;GAkCxB,aAAA;;wBAGc,WAAW;;wBAKX,UAAU,qBAAkB,OAAA;;wBAkB5B,QAAQ,QAAQ,aAAa,cAAW,OAAA;;qBA0E3C,gBAAa,cAAA,UAAA,UAAA,OAAA,UAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8CxB,aAAA"}
@@ -0,0 +1,20 @@
1
+ // @bun
2
+ import {
3
+ verifyWebhook2,
4
+ commentKey2,
5
+ commentOf2,
6
+ issueOf2,
7
+ webhookEvents2
8
+ } from "../../../plugin-e503g25g.js";
9
+ import"../../../plugin-v0kgp19h.js";
10
+ import"../../../plugin-d4a2ytg0.js";
11
+ export {
12
+ commentKey2 as commentKey,
13
+ commentOf2 as commentOf,
14
+ issueOf2 as issueOf,
15
+ verifyWebhook2 as verifyWebhook,
16
+ webhookEvents2 as webhookEvents
17
+ };
18
+
19
+ //# debugId=DCF2816FD1E674D664756E2164756E21
20
+ //# sourceMappingURL=webhook.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "DCF2816FD1E674D664756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,54 @@
1
+ import { Context, DateTime, Effect, Layer, Schema } from "effect";
2
+ import { HttpClient } from "effect/http";
3
+ import { AgentChannel } from "@dual-os/sdk";
4
+ //#region src/channel/linear-app-client.d.ts
5
+ export declare const ActivityContent: Schema.Struct<{
6
+ readonly body: Schema.NonEmptyString;
7
+ readonly type: Schema.Literals<readonly ["thought", "response", "error", "elicitation"]>;
8
+ }>;
9
+ declare const LinearAppClient_base: Context.ServiceClass<LinearAppClient, "@dual-os/linear-app/linear-app-client/LinearAppClient", {
10
+ createActivity: (token: string, activity: {
11
+ readonly agentSessionId: string;
12
+ readonly content: {
13
+ readonly body: string;
14
+ readonly type: "elicitation" | "error" | "response" | "thought";
15
+ };
16
+ readonly ephemeral: boolean;
17
+ readonly id: string;
18
+ readonly options: readonly string[];
19
+ }) => Effect.Effect<void, AgentChannel.HandlerError, never>;
20
+ issueComments: (token: string, issueId: string, limit: number) => Effect.Effect<{
21
+ body: string;
22
+ createdAt: DateTime.Utc;
23
+ id: string;
24
+ user: {
25
+ readonly id: string;
26
+ readonly name: string;
27
+ };
28
+ }[], AgentChannel.HandlerError, never>;
29
+ setPlan: (token: string, agentSessionId: string, plan: readonly {
30
+ readonly content: string;
31
+ readonly status: "canceled" | "completed" | "inProgress" | "pending";
32
+ }[]) => Effect.Effect<void, AgentChannel.HandlerError, never>;
33
+ setReaction: (token: string, reaction: {
34
+ readonly active: boolean;
35
+ readonly emoji: string;
36
+ readonly id: string;
37
+ readonly target: {
38
+ readonly commentId: string;
39
+ } | {
40
+ readonly issueId: string;
41
+ };
42
+ }) => Effect.Effect<void, AgentChannel.HandlerError, never>;
43
+ viewer: (token: string) => Effect.Effect<{
44
+ appUserId: string;
45
+ organizationId: string;
46
+ }, AgentChannel.HandlerError, never>;
47
+ }>;
48
+ /** Linear's GraphQL API for Agent Sessions, called with the installation's token. */
49
+ export declare class LinearAppClient extends LinearAppClient_base {
50
+ static readonly layer: Layer.Layer<LinearAppClient, never, HttpClient.HttpClient>;
51
+ }
52
+ //#endregion
53
+ export {};
54
+ //# sourceMappingURL=linear-app-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear-app-client.d.ts","names":[],"sources":["../../src/channel/linear-app-client.ts"],"mappings":";;;;qBAwCa,iBAAe,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkSf,wBAAwB;kBAInB,OAAK,MAAA,MAAA,wBAAA,WAAA"}
@@ -0,0 +1,14 @@
1
+ // @bun
2
+ import {
3
+ ActivityContent2,
4
+ LinearAppClient2
5
+ } from "../../plugin-srg9rdjf.js";
6
+ import"../../plugin-v0kgp19h.js";
7
+ import"../../plugin-d4a2ytg0.js";
8
+ export {
9
+ ActivityContent2 as ActivityContent,
10
+ LinearAppClient2 as LinearAppClient
11
+ };
12
+
13
+ //# debugId=DDA493FAAF734A0064756E2164756E21
14
+ //# sourceMappingURL=linear-app-client.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "DDA493FAAF734A0064756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,171 @@
1
+ import { Schema } from "effect";
2
+ import { AgentChannel, AuthMethod, Plugin } from "@dual-os/sdk";
3
+ //#region src/channel/linear-app-definition.d.ts
4
+ /** Your own Linear app installed with `actor=app`: its token, signing secret and identity. */
5
+ export declare const linearAppToken: AuthMethod.AuthMethod<"app", undefined, Schema.Struct<{
6
+ readonly accessToken: Schema.NonEmptyString;
7
+ readonly appUserId: Schema.NonEmptyString;
8
+ readonly organizationId: Schema.NonEmptyString;
9
+ readonly signingSecret: Schema.NonEmptyString;
10
+ }>, Schema.Struct<{
11
+ readonly accessToken: Schema.NonEmptyString;
12
+ readonly appUserId: Schema.NonEmptyString;
13
+ readonly organizationId: Schema.NonEmptyString;
14
+ readonly signingSecret: Schema.NonEmptyString;
15
+ }>, Schema.Struct<{
16
+ readonly accessToken: Schema.NonEmptyString;
17
+ readonly appUserId: Schema.NonEmptyString;
18
+ readonly organizationId: Schema.NonEmptyString;
19
+ readonly signingSecret: Schema.NonEmptyString;
20
+ }>, never>;
21
+ /** Linear activities cannot be edited or removed, so no message update or delete. */
22
+ export declare const agentSessionDefinition: {
23
+ readonly authMethods: readonly [AuthMethod.AuthMethod<"app", undefined, Schema.Struct<{
24
+ readonly accessToken: Schema.NonEmptyString;
25
+ readonly appUserId: Schema.NonEmptyString;
26
+ readonly organizationId: Schema.NonEmptyString;
27
+ readonly signingSecret: Schema.NonEmptyString;
28
+ }>, Schema.Struct<{
29
+ readonly accessToken: Schema.NonEmptyString;
30
+ readonly appUserId: Schema.NonEmptyString;
31
+ readonly organizationId: Schema.NonEmptyString;
32
+ readonly signingSecret: Schema.NonEmptyString;
33
+ }>, Schema.Struct<{
34
+ readonly accessToken: Schema.NonEmptyString;
35
+ readonly appUserId: Schema.NonEmptyString;
36
+ readonly organizationId: Schema.NonEmptyString;
37
+ readonly signingSecret: Schema.NonEmptyString;
38
+ }>, never>];
39
+ readonly definitionSettings: Schema.$Record<Schema.String, Schema.Never>;
40
+ readonly deploymentSettings: Schema.Struct<{
41
+ readonly teamIds: Schema.$Array<Schema.NonEmptyString>;
42
+ readonly access: Schema.Literals<readonly ["open", "restricted"]>;
43
+ readonly allowedSenderKeys: Schema.$Array<Schema.NonEmptyString>;
44
+ }>;
45
+ readonly exposure: "webhook";
46
+ readonly features: {
47
+ readonly assets: false;
48
+ readonly deliveryMode: "idempotent";
49
+ readonly deliveryState: false;
50
+ readonly directText: true;
51
+ readonly groups: true;
52
+ readonly mentions: false;
53
+ readonly operations: readonly ["present_outcome", "create_message", "set_activity", "render_plan", "set_reaction"];
54
+ readonly readContext: true;
55
+ readonly replies: false;
56
+ readonly threads: true;
57
+ };
58
+ readonly requiredChecks: readonly ["access"];
59
+ readonly state: Schema.Struct<{
60
+ readonly appUserId: Schema.String;
61
+ readonly ingressUrl: Schema.String;
62
+ readonly organizationId: Schema.String;
63
+ }>;
64
+ };
65
+ export declare const agentSessionChannel: AgentChannel.AgentChannel<"agent-session", {
66
+ readonly authMethods: readonly [AuthMethod.AuthMethod<"app", undefined, Schema.Struct<{
67
+ readonly accessToken: Schema.NonEmptyString;
68
+ readonly appUserId: Schema.NonEmptyString;
69
+ readonly organizationId: Schema.NonEmptyString;
70
+ readonly signingSecret: Schema.NonEmptyString;
71
+ }>, Schema.Struct<{
72
+ readonly accessToken: Schema.NonEmptyString;
73
+ readonly appUserId: Schema.NonEmptyString;
74
+ readonly organizationId: Schema.NonEmptyString;
75
+ readonly signingSecret: Schema.NonEmptyString;
76
+ }>, Schema.Struct<{
77
+ readonly accessToken: Schema.NonEmptyString;
78
+ readonly appUserId: Schema.NonEmptyString;
79
+ readonly organizationId: Schema.NonEmptyString;
80
+ readonly signingSecret: Schema.NonEmptyString;
81
+ }>, never>];
82
+ readonly definitionSettings: Schema.$Record<Schema.String, Schema.Never>;
83
+ readonly deploymentSettings: Schema.Struct<{
84
+ readonly teamIds: Schema.$Array<Schema.NonEmptyString>;
85
+ readonly access: Schema.Literals<readonly ["open", "restricted"]>;
86
+ readonly allowedSenderKeys: Schema.$Array<Schema.NonEmptyString>;
87
+ }>;
88
+ readonly exposure: "webhook";
89
+ readonly features: {
90
+ readonly assets: false;
91
+ readonly deliveryMode: "idempotent";
92
+ readonly deliveryState: false;
93
+ readonly directText: true;
94
+ readonly groups: true;
95
+ readonly mentions: false;
96
+ readonly operations: readonly ["present_outcome", "create_message", "set_activity", "render_plan", "set_reaction"];
97
+ readonly readContext: true;
98
+ readonly replies: false;
99
+ readonly threads: true;
100
+ };
101
+ readonly requiredChecks: readonly ["access"];
102
+ readonly state: Schema.Struct<{
103
+ readonly appUserId: Schema.String;
104
+ readonly ingressUrl: Schema.String;
105
+ readonly organizationId: Schema.String;
106
+ }>;
107
+ readonly description: "Agent Sessions of your own Linear app: mentions, delegated issues and prompts in; activities, plans and reactions out.";
108
+ readonly name: "Linear Agent Sessions";
109
+ }>;
110
+ export declare const linearChannelBinding: Plugin.Plugin<"linear-api", readonly [AuthMethod.AuthMethod<"app", undefined, Schema.Struct<{
111
+ readonly accessToken: Schema.NonEmptyString;
112
+ readonly appUserId: Schema.NonEmptyString;
113
+ readonly organizationId: Schema.NonEmptyString;
114
+ readonly signingSecret: Schema.NonEmptyString;
115
+ }>, Schema.Struct<{
116
+ readonly accessToken: Schema.NonEmptyString;
117
+ readonly appUserId: Schema.NonEmptyString;
118
+ readonly organizationId: Schema.NonEmptyString;
119
+ readonly signingSecret: Schema.NonEmptyString;
120
+ }>, Schema.Struct<{
121
+ readonly accessToken: Schema.NonEmptyString;
122
+ readonly appUserId: Schema.NonEmptyString;
123
+ readonly organizationId: Schema.NonEmptyString;
124
+ readonly signingSecret: Schema.NonEmptyString;
125
+ }>, never>], readonly [], readonly [], readonly [], readonly [AgentChannel.AgentChannel<"agent-session", {
126
+ readonly authMethods: readonly [AuthMethod.AuthMethod<"app", undefined, Schema.Struct<{
127
+ readonly accessToken: Schema.NonEmptyString;
128
+ readonly appUserId: Schema.NonEmptyString;
129
+ readonly organizationId: Schema.NonEmptyString;
130
+ readonly signingSecret: Schema.NonEmptyString;
131
+ }>, Schema.Struct<{
132
+ readonly accessToken: Schema.NonEmptyString;
133
+ readonly appUserId: Schema.NonEmptyString;
134
+ readonly organizationId: Schema.NonEmptyString;
135
+ readonly signingSecret: Schema.NonEmptyString;
136
+ }>, Schema.Struct<{
137
+ readonly accessToken: Schema.NonEmptyString;
138
+ readonly appUserId: Schema.NonEmptyString;
139
+ readonly organizationId: Schema.NonEmptyString;
140
+ readonly signingSecret: Schema.NonEmptyString;
141
+ }>, never>];
142
+ readonly definitionSettings: Schema.$Record<Schema.String, Schema.Never>;
143
+ readonly deploymentSettings: Schema.Struct<{
144
+ readonly teamIds: Schema.$Array<Schema.NonEmptyString>;
145
+ readonly access: Schema.Literals<readonly ["open", "restricted"]>;
146
+ readonly allowedSenderKeys: Schema.$Array<Schema.NonEmptyString>;
147
+ }>;
148
+ readonly exposure: "webhook";
149
+ readonly features: {
150
+ readonly assets: false;
151
+ readonly deliveryMode: "idempotent";
152
+ readonly deliveryState: false;
153
+ readonly directText: true;
154
+ readonly groups: true;
155
+ readonly mentions: false;
156
+ readonly operations: readonly ["present_outcome", "create_message", "set_activity", "render_plan", "set_reaction"];
157
+ readonly readContext: true;
158
+ readonly replies: false;
159
+ readonly threads: true;
160
+ };
161
+ readonly requiredChecks: readonly ["access"];
162
+ readonly state: Schema.Struct<{
163
+ readonly appUserId: Schema.String;
164
+ readonly ingressUrl: Schema.String;
165
+ readonly organizationId: Schema.String;
166
+ }>;
167
+ readonly description: "Agent Sessions of your own Linear app: mentions, delegated issues and prompts in; activities, plans and reactions out.";
168
+ readonly name: "Linear Agent Sessions";
169
+ }>], never, never, never>;
170
+ //#endregion
171
+ //# sourceMappingURL=linear-app-definition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear-app-definition.d.ts","names":[],"sources":["../../src/channel/linear-app-definition.ts"],"mappings":";;;;qBAKa,gBAAc,WAAA,6BAAA,OAAA;;;;;;;;;;;;;;;;;qBAad;WACX,uBAAW,WAAA,6BAAA,OAAA;;;;;;;;;;;;;;;;WACX,oBAAkB,OAAA,QAAA,OAAA,QAAA,OAAA;WAElB,oBAAkB,OAAA;;;;;WAoBlB;WACA;aACE;aACA;aACA;aACA;aACA;aACA;aACA;aAOA;aACA;aACA;;WAEF;WACA,OAAK,OAAA;;;;;;qBAOM,qBAAmB,aAAA;;;;;;;;;;;;;;;;;;;;;;;WA3BpB;;aAER;aACA;aACA;aACA;aACA;aACA;aACA;aAOA;aACA;aACA;;WAEe;;;;;;;;;qBAeN,sBAAoB,OAAA,+BAAA,WAAA,6BAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAlCrB;;aAER;aACA;aACA;aACA;aACA;aACA;aACA;aAOA;aACA;aACA;;WAEe"}
@@ -0,0 +1,18 @@
1
+ // @bun
2
+ import {
3
+ linearAppToken2,
4
+ agentSessionDefinition2,
5
+ agentSessionChannel2,
6
+ linearChannelBinding2
7
+ } from "../../plugin-15tbf6dq.js";
8
+ import"../../plugin-v0kgp19h.js";
9
+ import"../../plugin-d4a2ytg0.js";
10
+ export {
11
+ agentSessionChannel2 as agentSessionChannel,
12
+ agentSessionDefinition2 as agentSessionDefinition,
13
+ linearAppToken2 as linearAppToken,
14
+ linearChannelBinding2 as linearChannelBinding
15
+ };
16
+
17
+ //# debugId=C6706E406363F4AF64756E2164756E21
18
+ //# sourceMappingURL=linear-app-definition.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "C6706E406363F4AF64756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,65 @@
1
+ import { Layer } from "effect";
2
+ import { AgentChannel, Plugin } from "@dual-os/sdk";
3
+ //#region src/channel/linear-app.d.ts
4
+ export declare const linearChannelLayer: Layer.Layer<Plugin.HandlerServices<Plugin.Plugin<"linear-api", readonly [import("@dual-os/sdk/AuthMethod").AuthMethod<"app", undefined, import("effect/Schema").Struct<{
5
+ readonly accessToken: import("effect/Schema").NonEmptyString;
6
+ readonly appUserId: import("effect/Schema").NonEmptyString;
7
+ readonly organizationId: import("effect/Schema").NonEmptyString;
8
+ readonly signingSecret: import("effect/Schema").NonEmptyString;
9
+ }>, import("effect/Schema").Struct<{
10
+ readonly accessToken: import("effect/Schema").NonEmptyString;
11
+ readonly appUserId: import("effect/Schema").NonEmptyString;
12
+ readonly organizationId: import("effect/Schema").NonEmptyString;
13
+ readonly signingSecret: import("effect/Schema").NonEmptyString;
14
+ }>, import("effect/Schema").Struct<{
15
+ readonly accessToken: import("effect/Schema").NonEmptyString;
16
+ readonly appUserId: import("effect/Schema").NonEmptyString;
17
+ readonly organizationId: import("effect/Schema").NonEmptyString;
18
+ readonly signingSecret: import("effect/Schema").NonEmptyString;
19
+ }>, never>], readonly [], readonly [], readonly [], readonly [AgentChannel.AgentChannel<"agent-session", {
20
+ readonly authMethods: readonly [import("@dual-os/sdk/AuthMethod").AuthMethod<"app", undefined, import("effect/Schema").Struct<{
21
+ readonly accessToken: import("effect/Schema").NonEmptyString;
22
+ readonly appUserId: import("effect/Schema").NonEmptyString;
23
+ readonly organizationId: import("effect/Schema").NonEmptyString;
24
+ readonly signingSecret: import("effect/Schema").NonEmptyString;
25
+ }>, import("effect/Schema").Struct<{
26
+ readonly accessToken: import("effect/Schema").NonEmptyString;
27
+ readonly appUserId: import("effect/Schema").NonEmptyString;
28
+ readonly organizationId: import("effect/Schema").NonEmptyString;
29
+ readonly signingSecret: import("effect/Schema").NonEmptyString;
30
+ }>, import("effect/Schema").Struct<{
31
+ readonly accessToken: import("effect/Schema").NonEmptyString;
32
+ readonly appUserId: import("effect/Schema").NonEmptyString;
33
+ readonly organizationId: import("effect/Schema").NonEmptyString;
34
+ readonly signingSecret: import("effect/Schema").NonEmptyString;
35
+ }>, never>];
36
+ readonly definitionSettings: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Never>;
37
+ readonly deploymentSettings: import("effect/Schema").Struct<{
38
+ readonly teamIds: import("effect/Schema").$Array<import("effect/Schema").NonEmptyString>;
39
+ readonly access: import("effect/Schema").Literals<readonly ["open", "restricted"]>;
40
+ readonly allowedSenderKeys: import("effect/Schema").$Array<import("effect/Schema").NonEmptyString>;
41
+ }>;
42
+ readonly exposure: "webhook";
43
+ readonly features: {
44
+ readonly assets: false;
45
+ readonly deliveryMode: "idempotent";
46
+ readonly deliveryState: false;
47
+ readonly directText: true;
48
+ readonly groups: true;
49
+ readonly mentions: false;
50
+ readonly operations: readonly ["present_outcome", "create_message", "set_activity", "render_plan", "set_reaction"];
51
+ readonly readContext: true;
52
+ readonly replies: false;
53
+ readonly threads: true;
54
+ };
55
+ readonly requiredChecks: readonly ["access"];
56
+ readonly state: import("effect/Schema").Struct<{
57
+ readonly appUserId: import("effect/Schema").String;
58
+ readonly ingressUrl: import("effect/Schema").String;
59
+ readonly organizationId: import("effect/Schema").String;
60
+ }>;
61
+ readonly description: "Agent Sessions of your own Linear app: mentions, delegated issues and prompts in; activities, plans and reactions out.";
62
+ readonly name: "Linear Agent Sessions";
63
+ }>], never, never, never>>, never, never>;
64
+ //#endregion
65
+ //# sourceMappingURL=linear-app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linear-app.d.ts","names":[],"sources":["../../src/channel/linear-app.ts"],"mappings":";;;qBAuVa,oBAAkB,MAAA,MAAA,OAAA,gBAAA,OAAA,iEAAA,qDAAA"}
@@ -0,0 +1,15 @@
1
+ // @bun
2
+ import {
3
+ linearChannelLayer2
4
+ } from "../../plugin-xv11dhcc.js";
5
+ import"../../plugin-e503g25g.js";
6
+ import"../../plugin-srg9rdjf.js";
7
+ import"../../plugin-15tbf6dq.js";
8
+ import"../../plugin-v0kgp19h.js";
9
+ import"../../plugin-d4a2ytg0.js";
10
+ export {
11
+ linearChannelLayer2 as linearChannelLayer
12
+ };
13
+
14
+ //# debugId=E55077042911C80164756E2164756E21
15
+ //# sourceMappingURL=linear-app.js.map
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "E55077042911C80164756E2164756E21",
8
+ "names": []
9
+ }