-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmanifest.ts
45 lines (44 loc) · 1.13 KB
/
manifest.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { Manifest } from "deno-slack-sdk/mod.ts";
import { CreateAccessRequestWorkflow } from "./workflows/CreateAccessRequestWorkflow.ts";
import { AccessApprovalFunction } from "./functions/access_approval_prompt.ts";
import { AccessRequestFunction } from "./functions/access_request_prompt.ts";
import { TailscaleTokenStore } from "./datastores/tailscale.ts";
import {
AccessType,
ApproverType,
DeviceType,
ProfileType,
} from "./types/tailscale.ts";
export default Manifest({
name: "Tailscale Access",
description: "Ask for temporary access to devices in your Tailnet",
icon: "./assets/avatar.png",
workflows: [
CreateAccessRequestWorkflow,
],
datastores: [
TailscaleTokenStore,
],
functions: [
AccessRequestFunction,
AccessApprovalFunction,
],
types: [
ProfileType,
DeviceType,
ApproverType,
AccessType,
],
outgoingDomains: [
"api.tailscale.com",
],
botScopes: [
"commands",
"users:read", // look up user profile.
"users:read.email", // look up user email address.
"chat:write",
"chat:write.public",
"datastore:read",
"datastore:write",
],
});