@dual-os/linear-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.
- package/LICENSE +29 -0
- package/README.md +36 -2
- package/Runner.js +5537 -0
- package/Runner.js.map +59 -0
- package/bundle-inventory.json +1 -0
- package/dist/_virtual/_rolldown/runtime.js +10 -0
- package/dist/_virtual/_rolldown/runtime.js.map +9 -0
- package/dist/auth.d.ts +51 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +19 -0
- package/dist/auth.js.map +9 -0
- package/dist/channel/internal/webhook.d.ts +96 -0
- package/dist/channel/internal/webhook.d.ts.map +1 -0
- package/dist/channel/internal/webhook.js +20 -0
- package/dist/channel/internal/webhook.js.map +9 -0
- package/dist/channel/linear-app-client.d.ts +54 -0
- package/dist/channel/linear-app-client.d.ts.map +1 -0
- package/dist/channel/linear-app-client.js +14 -0
- package/dist/channel/linear-app-client.js.map +9 -0
- package/dist/channel/linear-app-definition.d.ts +171 -0
- package/dist/channel/linear-app-definition.d.ts.map +1 -0
- package/dist/channel/linear-app-definition.js +18 -0
- package/dist/channel/linear-app-definition.js.map +9 -0
- package/dist/channel/linear-app.d.ts +65 -0
- package/dist/channel/linear-app.d.ts.map +1 -0
- package/dist/channel/linear-app.js +15 -0
- package/dist/channel/linear-app.js.map +9 -0
- package/dist/generated/http.d.ts +81 -0
- package/dist/generated/http.d.ts.map +1 -0
- package/dist/generated/http.js +66 -0
- package/dist/generated/http.js.map +9 -0
- package/dist/generated/operations.d.ts +14326 -0
- package/dist/generated/operations.d.ts.map +1 -0
- package/dist/generated/operations.js +3640 -0
- package/dist/generated/operations.js.map +9 -0
- package/dist/generated/plugin.d.ts +989 -0
- package/dist/generated/plugin.d.ts.map +1 -0
- package/dist/generated/plugin.js +20 -0
- package/dist/generated/plugin.js.map +9 -0
- package/dist/plugin.d.ts +4278 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/plugin.js +33 -0
- package/dist/plugin.js.map +10 -0
- package/dist/triggers.d.ts +211 -0
- package/dist/triggers.d.ts.map +1 -0
- package/dist/triggers.js +19 -0
- package/dist/triggers.js.map +9 -0
- package/dual-plugin.json +1 -0
- package/licenses/@dual-os_sdk@0.9.0/LICENSE +4 -0
- package/licenses/@effect_platform-node-shared@4.1.2/LICENSE +21 -0
- package/licenses/@effect_platform-node@4.1.2/LICENSE +21 -0
- package/licenses/effect@4.1.2/LICENSE +21 -0
- package/package.json +1 -6
- package/plugin-03c4ezxj.js +244 -0
- package/plugin-03c4ezxj.js.map +10 -0
- package/plugin-0pkez622.js +1257 -0
- package/plugin-0pkez622.js.map +17 -0
- package/plugin-292sech3.js +64 -0
- package/plugin-292sech3.js.map +10 -0
- package/plugin-2jdfj02n.js +18 -0
- package/plugin-2jdfj02n.js.map +10 -0
- package/plugin-5d2kw2pq.js +274 -0
- package/plugin-5d2kw2pq.js.map +10 -0
- package/plugin-9vdeenc2.js +19263 -0
- package/plugin-9vdeenc2.js.map +158 -0
- package/plugin-aaq7c99y.js +79 -0
- package/plugin-aaq7c99y.js.map +10 -0
- package/plugin-acwx0zjc.js +3615 -0
- package/plugin-acwx0zjc.js.map +10 -0
- package/plugin-c5xtmfce.js +81 -0
- package/plugin-c5xtmfce.js.map +10 -0
- package/plugin-evq9z31a.js +14513 -0
- package/plugin-evq9z31a.js.map +10 -0
- package/plugin-jgac4d6v.js +138 -0
- package/plugin-jgac4d6v.js.map +10 -0
- package/plugin-pbx41zqr.js +204 -0
- package/plugin-pbx41zqr.js.map +10 -0
- package/plugin.json +46 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"format":1,"toolchain":{"bun":"1.4.2","lockfile_sha512":"88aca23c582bb0bb9e5f5392e9c84ccd348597966769329c39132006ff7be9ae3bfa1b468c1b0e6baa678fed13d690b8421bdd1a6bffb63aaad3c09154c72aae"},"packages":[{"name":"@dual-os/sdk","version":"0.9.0","license":"UNLICENSED","licenses":["licenses/@dual-os_sdk@0.9.0/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"]}]}
|
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-c5xtmfce.js";
|
|
7
|
+
import"../plugin-2jdfj02n.js";
|
|
8
|
+
import"../plugin-aaq7c99y.js";
|
|
9
|
+
import"../plugin-0pkez622.js";
|
|
10
|
+
import"../plugin-9vdeenc2.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
|
package/dist/auth.js.map
ADDED
|
@@ -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-pbx41zqr.js";
|
|
9
|
+
import"../../../plugin-0pkez622.js";
|
|
10
|
+
import"../../../plugin-9vdeenc2.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,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-03c4ezxj.js";
|
|
6
|
+
import"../../plugin-0pkez622.js";
|
|
7
|
+
import"../../plugin-9vdeenc2.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,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-aaq7c99y.js";
|
|
8
|
+
import"../../plugin-0pkez622.js";
|
|
9
|
+
import"../../plugin-9vdeenc2.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,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-5d2kw2pq.js";
|
|
5
|
+
import"../../plugin-pbx41zqr.js";
|
|
6
|
+
import"../../plugin-03c4ezxj.js";
|
|
7
|
+
import"../../plugin-aaq7c99y.js";
|
|
8
|
+
import"../../plugin-0pkez622.js";
|
|
9
|
+
import"../../plugin-9vdeenc2.js";
|
|
10
|
+
export {
|
|
11
|
+
linearChannelLayer2 as linearChannelLayer
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//# debugId=E55077042911C80164756E2164756E21
|
|
15
|
+
//# sourceMappingURL=linear-app.js.map
|