@ekanos/cli 0.15.0 → 0.16.0
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/README.md +41 -4
- package/dist/auth/ekanos-api.d.ts +23 -0
- package/dist/auth/ekanos-api.js +33 -6
- package/dist/auth/ekanos-api.js.map +1 -1
- package/dist/commands/agents.js +3 -2
- package/dist/commands/agents.js.map +1 -1
- package/dist/commands/apps.d.ts +11 -3
- package/dist/commands/apps.js +86 -28
- package/dist/commands/apps.js.map +1 -1
- package/dist/commands/catalog.d.ts +4 -2
- package/dist/commands/catalog.js +166 -35
- package/dist/commands/catalog.js.map +1 -1
- package/dist/commands/login.d.ts +2 -0
- package/dist/commands/login.js +17 -0
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/runs.d.ts +7 -3
- package/dist/commands/runs.js +21 -5
- package/dist/commands/runs.js.map +1 -1
- package/dist/commands/scope-notice.d.ts +7 -0
- package/dist/commands/scope-notice.js +4 -11
- package/dist/commands/scope-notice.js.map +1 -1
- package/dist/commands/sources-roles.d.ts +5 -0
- package/dist/commands/sources-roles.js +235 -0
- package/dist/commands/sources-roles.js.map +1 -0
- package/dist/commands/sources.d.ts +5 -0
- package/dist/commands/sources.js +6 -1
- package/dist/commands/sources.js.map +1 -1
- package/dist/commands/team-agent-readiness.d.ts +18 -2
- package/dist/commands/team-agent-readiness.js +39 -39
- package/dist/commands/team-agent-readiness.js.map +1 -1
- package/dist/commands/team-agents-agents.d.ts +5 -2
- package/dist/commands/team-agents-agents.js +152 -15
- package/dist/commands/team-agents-agents.js.map +1 -1
- package/dist/commands/team-agents-define.d.ts +31 -0
- package/dist/commands/team-agents-define.js +176 -0
- package/dist/commands/team-agents-define.js.map +1 -0
- package/dist/commands/team-agents-mcp.js +112 -10
- package/dist/commands/team-agents-mcp.js.map +1 -1
- package/dist/commands/team-agents-triggers.d.ts +1 -1
- package/dist/commands/team-agents-triggers.js +137 -5
- package/dist/commands/team-agents-triggers.js.map +1 -1
- package/dist/commands/team-agents.d.ts +4 -1
- package/dist/commands/team-agents.js +17 -4
- package/dist/commands/team-agents.js.map +1 -1
- package/dist/commands/team-llm-key.d.ts +14 -0
- package/dist/commands/team-llm-key.js +122 -0
- package/dist/commands/team-llm-key.js.map +1 -0
- package/dist/commands/teams-connect.js +123 -31
- package/dist/commands/teams-connect.js.map +1 -1
- package/dist/commands/teams-lifecycle.d.ts +90 -0
- package/dist/commands/teams-lifecycle.js +457 -0
- package/dist/commands/teams-lifecycle.js.map +1 -0
- package/dist/commands/teams-onboard.d.ts +14 -0
- package/dist/commands/teams-onboard.js +62 -13
- package/dist/commands/teams-onboard.js.map +1 -1
- package/dist/commands/teams-overview.js +6 -2
- package/dist/commands/teams-overview.js.map +1 -1
- package/dist/commands/teams.d.ts +25 -5
- package/dist/commands/teams.js +101 -39
- package/dist/commands/teams.js.map +1 -1
- package/dist/commands/workflows.d.ts +37 -0
- package/dist/commands/workflows.js +589 -0
- package/dist/commands/workflows.js.map +1 -0
- package/dist/connect-fields.d.ts +22 -0
- package/dist/connect-fields.js +115 -0
- package/dist/connect-fields.js.map +1 -0
- package/dist/context.d.ts +12 -0
- package/dist/context.js +32 -9
- package/dist/context.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.js +357 -122
- package/dist/index.js.map +1 -1
- package/dist/invocation.d.ts +31 -0
- package/dist/invocation.js +58 -0
- package/dist/invocation.js.map +1 -0
- package/dist/runs-api.js +8 -3
- package/dist/runs-api.js.map +1 -1
- package/dist/safe-fs.d.ts +18 -0
- package/dist/safe-fs.js +57 -0
- package/dist/safe-fs.js.map +1 -1
- package/dist/secret-form.d.ts +48 -0
- package/dist/secret-form.js +212 -0
- package/dist/secret-form.js.map +1 -0
- package/dist/secret-input.d.ts +96 -0
- package/dist/secret-input.js +299 -0
- package/dist/secret-input.js.map +1 -0
- package/dist/team-connect-api.d.ts +78 -3
- package/dist/team-connect-api.js +17 -2
- package/dist/team-connect-api.js.map +1 -1
- package/dist/team-lifecycle-api.d.ts +435 -0
- package/dist/team-lifecycle-api.js +301 -0
- package/dist/team-lifecycle-api.js.map +1 -0
- package/dist/teams-api.d.ts +13 -1
- package/dist/teams-api.js +88 -27
- package/dist/teams-api.js.map +1 -1
- package/dist/unknown-command.d.ts +18 -0
- package/dist/unknown-command.js +50 -0
- package/dist/unknown-command.js.map +1 -0
- package/dist/workflows-api.d.ts +69 -0
- package/dist/workflows-api.js +182 -0
- package/dist/workflows-api.js.map +1 -0
- package/package.json +3 -3
- package/templates/AGENTS.md.tmpl +6 -4
- package/templates/claude-skill.md.tmpl +4 -1
- package/templates/package.json.tmpl +4 -4
- package/templates/skills/build-agent/SKILL.md +43 -10
- package/templates/skills/build-agent/references/agent-json.md +4 -1
- package/templates/skills/build-agent/references/app-setup.md +14 -7
- package/templates/skills/build-agent/references/rollout.md +26 -2
- package/templates/skills/build-agent/references/set-up-an-integration.md +46 -29
- package/templates/skills/build-integration/references/widget-design.md +1 -1
- package/templates/skills/ekanos-platform/SKILL.md +66 -14
- package/templates/skills/polish-widgets/references/patterns.md +3 -3
package/dist/team-connect-api.js
CHANGED
|
@@ -7,9 +7,9 @@ import { call } from './teams-api.js';
|
|
|
7
7
|
* GET /api/partner/teams/<team>/integrations/<product>/connect?source=<slug>[&as=<email>][&connection=<id>]
|
|
8
8
|
* → { plan }
|
|
9
9
|
* POST /api/partner/teams/<team>/integrations/<product>/connect?source=<slug>
|
|
10
|
-
* { as?, fields?, connection? }
|
|
10
|
+
* { as?, fields?, set?, connection? }
|
|
11
11
|
* → { plan, result: "activated" } fields / no-fields
|
|
12
|
-
* → { plan, result: "consent", authorizeUrl, expiresAt } oauth
|
|
12
|
+
* → { plan, result: "consent", authorizeUrl, expiresAt } oauth (fields too, for signIn "app")
|
|
13
13
|
*
|
|
14
14
|
* The plan's `mode`, decided by the host, says how the product is
|
|
15
15
|
* connected. The shapes are read here rather than from
|
|
@@ -41,6 +41,12 @@ export const TeamConnectPlanSchema = z.object({
|
|
|
41
41
|
'no-fields',
|
|
42
42
|
'browser',
|
|
43
43
|
]),
|
|
44
|
+
/**
|
|
45
|
+
* `oauth` mode: whose sign-in the link opens — the hosted partner
|
|
46
|
+
* transport, or the app's own connect route (GitHub, ROAM), which then
|
|
47
|
+
* activates with `fields`. Absent from an older host (`partner`).
|
|
48
|
+
*/
|
|
49
|
+
signIn: z.enum(['partner', 'app']).optional(),
|
|
44
50
|
reason: z.string().nullable(),
|
|
45
51
|
fields: z.array(z.object({
|
|
46
52
|
name: z.string(),
|
|
@@ -48,6 +54,15 @@ export const TeamConnectPlanSchema = z.object({
|
|
|
48
54
|
description: z.string().nullable(),
|
|
49
55
|
sensitive: z.boolean(),
|
|
50
56
|
required: z.boolean(),
|
|
57
|
+
/**
|
|
58
|
+
* How it is entered (`connect-fields.ts`). An older host sends only
|
|
59
|
+
* plain fields, so absent reads as text.
|
|
60
|
+
*/
|
|
61
|
+
type: z
|
|
62
|
+
.enum(['text', 'number', 'boolean', 'select', 'list', 'json'])
|
|
63
|
+
.default('text'),
|
|
64
|
+
options: z.array(z.string()).nullable().default(null),
|
|
65
|
+
itemType: z.enum(['text', 'number']).nullable().default(null),
|
|
51
66
|
})),
|
|
52
67
|
teamApp: z.boolean(),
|
|
53
68
|
member: z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team-connect-api.js","sourceRoot":"","sources":["../src/team-connect-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAuB,IAAI,EAAE,MAAM,aAAa,CAAC;AAExD;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC;QACf,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;QACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,CAAC,CA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CAAC,QAAQ,EAAE,CAAC;IACd,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7E,OAAO,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE;QACzC,MAAM,EAAE,KAAK;QACb,IAAI;QACJ,MAAM,EAAE,MAAM,CAAC,MAAM;KACtB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,IAAY,EACZ,WAAmB,EACnB,MAAc,EACd,IAKC;IAED,OAAO,IAAI,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE;QAC1C,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC;QACzB,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,IAAI,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC,iCAAM,IAAI,KAAE,UAAU,EAAE,MAAM,CAAC,UAAU,IAAG,CAAC,CAAC,IAAI;KAC5E,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { z } from 'zod';\n\nimport { type TeamsApiResult, call } from './teams-api';\n\n/**\n * The CLI's client for connecting a product for a team (`ekanos teams\n * connect`), for the team's Source admin.\n *\n * GET /api/partner/teams/<team>/integrations/<product>/connect?source=<slug>[&as=<email>][&connection=<id>]\n * → { plan }\n * POST /api/partner/teams/<team>/integrations/<product>/connect?source=<slug>\n * { as?, fields?, set?, connection? }\n * → { plan, result: \"activated\" } fields / no-fields\n * → { plan, result: \"consent\", authorizeUrl, expiresAt } oauth (fields too, for signIn \"app\")\n *\n * The plan's `mode`, decided by the host, says how the product is\n * connected. The shapes are read here rather than from\n * `@ekanos/integration-schema`, so this CLI works against a host without a\n * schema release.\n */\n\nexport const TeamConnectPlanSchema = z.object({\n source: z.object({\n id: z.string(),\n slug: z.string(),\n name: z.string().nullable(),\n }),\n team: z.object({ slug: z.string(), name: z.string() }),\n product: z.object({\n slug: z.string(),\n name: z.string(),\n kind: z.enum(['experience', 'integration']).nullable(),\n }),\n scope: z.enum(['team', 'user']),\n /** The OAuth connection the plan is for; absent from an older host (`default`). */\n connectionId: z.string().optional(),\n mode: z.enum([\n 'unsupported',\n 'not-entitled',\n 'not-self-serve',\n 'works-as-shipped',\n 'oauth',\n 'fields',\n 'no-fields',\n 'browser',\n ]),\n /**\n * `oauth` mode: whose sign-in the link opens — the hosted partner\n * transport, or the app's own connect route (GitHub, ROAM), which then\n * activates with `fields`. Absent from an older host (`partner`).\n */\n signIn: z.enum(['partner', 'app']).optional(),\n reason: z.string().nullable(),\n fields: z.array(\n z.object({\n name: z.string(),\n label: z.string(),\n description: z.string().nullable(),\n sensitive: z.boolean(),\n required: z.boolean(),\n /**\n * How it is entered (`connect-fields.ts`). An older host sends only\n * plain fields, so absent reads as text.\n */\n type: z\n .enum(['text', 'number', 'boolean', 'select', 'list', 'json'])\n .default('text'),\n options: z.array(z.string()).nullable().default(null),\n itemType: z.enum(['text', 'number']).nullable().default(null),\n }),\n ),\n teamApp: z.boolean(),\n member: z\n .object({\n userId: z.string(),\n email: z.string().nullable(),\n isCaller: z.boolean(),\n })\n .nullable(),\n memberProblem: z.string().nullable(),\n connected: z.boolean(),\n connectedAt: z.string().nullable(),\n connectUrl: z.string(),\n /**\n * Whether the team's product scopes hide the product from it in the app.\n * Absent from an older host.\n */\n productScope: z\n .object({\n state: z.enum(['unscoped', 'scoped', 'locked_out']),\n scopes: z.array(z.string()),\n hidden: z.boolean(),\n })\n .optional(),\n});\nexport type TeamConnectPlan = z.infer<typeof TeamConnectPlanSchema>;\nexport type TeamConnectField = TeamConnectPlan['fields'][number];\n\n/** A field's value as sent: text, or typed by `connect-fields.ts`. */\nexport type FieldValue =\n | string\n | number\n | boolean\n | null\n | FieldValue[]\n | { [key: string]: FieldValue };\n\nconst ShowSchema = z.object({ plan: TeamConnectPlanSchema });\nconst StartSchema = z.discriminatedUnion('result', [\n z.object({ plan: TeamConnectPlanSchema, result: z.literal('activated') }),\n z.object({\n plan: TeamConnectPlanSchema,\n result: z.literal('consent'),\n authorizeUrl: z.string(),\n expiresAt: z.string(),\n }),\n]);\nexport type TeamConnectStart = z.infer<typeof StartSchema>;\n\ninterface Target {\n source: string;\n team: string;\n product: string;\n /** A named OAuth connection (`agent`); the main one when absent. */\n connection?: string;\n}\n\nfunction connectPath(target: Target): string {\n return `/api/partner/teams/${encodeURIComponent(target.team)}/integrations/${encodeURIComponent(target.product)}/connect`;\n}\n\nexport function showTeamConnect(\n host: string,\n accessToken: string,\n target: Target,\n asEmail?: string,\n): Promise<TeamsApiResult<z.infer<typeof ShowSchema>>> {\n // `call` puts `source` in the query; the rest ride in the path's own query.\n const query = new URLSearchParams({\n ...(asEmail ? { as: asEmail } : {}),\n ...(target.connection ? { connection: target.connection } : {}),\n }).toString();\n const path = query ? `${connectPath(target)}?${query}` : connectPath(target);\n return call(host, accessToken, ShowSchema, {\n method: 'GET',\n path,\n source: target.source,\n });\n}\n\nexport function startTeamConnect(\n host: string,\n accessToken: string,\n target: Target,\n body: {\n as?: string;\n fields?: Record<string, FieldValue>;\n /** The field names given by `--set`, not a prompt: the host refuses a secret among them. */\n set?: string[];\n },\n): Promise<TeamsApiResult<TeamConnectStart>> {\n return call(host, accessToken, StartSchema, {\n method: 'POST',\n path: connectPath(target),\n source: target.source,\n body: target.connection ? { ...body, connection: target.connection } : body,\n });\n}\n"]}
|
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type TeamsApiResult } from './teams-api.js';
|
|
3
|
+
export declare const InvitationResendSchema: z.ZodObject<{
|
|
4
|
+
team: z.ZodObject<{
|
|
5
|
+
slug: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
email: z.ZodString;
|
|
9
|
+
role: z.ZodString;
|
|
10
|
+
action: z.ZodEnum<{
|
|
11
|
+
renewed: "renewed";
|
|
12
|
+
resent: "resent";
|
|
13
|
+
}>;
|
|
14
|
+
expiresAt: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const TeamLeaveSchema: z.ZodObject<{
|
|
17
|
+
team: z.ZodObject<{
|
|
18
|
+
slug: z.ZodString;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
role: z.ZodString;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const TeamGroupSchema: z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
description: z.ZodNullable<z.ZodString>;
|
|
27
|
+
members: z.ZodArray<z.ZodObject<{
|
|
28
|
+
userId: z.ZodString;
|
|
29
|
+
email: z.ZodNullable<z.ZodString>;
|
|
30
|
+
name: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>>;
|
|
32
|
+
products: z.ZodArray<z.ZodObject<{
|
|
33
|
+
slug: z.ZodString;
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
widgetCount: z.ZodNumber;
|
|
37
|
+
mcpToolCount: z.ZodNumber;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export type TeamGroup = z.infer<typeof TeamGroupSchema>;
|
|
40
|
+
declare const GroupListSchema: z.ZodObject<{
|
|
41
|
+
source: z.ZodObject<{
|
|
42
|
+
id: z.ZodString;
|
|
43
|
+
slug: z.ZodString;
|
|
44
|
+
name: z.ZodNullable<z.ZodString>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
team: z.ZodObject<{
|
|
47
|
+
slug: z.ZodString;
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
name: z.ZodString;
|
|
53
|
+
description: z.ZodNullable<z.ZodString>;
|
|
54
|
+
members: z.ZodArray<z.ZodObject<{
|
|
55
|
+
userId: z.ZodString;
|
|
56
|
+
email: z.ZodNullable<z.ZodString>;
|
|
57
|
+
name: z.ZodNullable<z.ZodString>;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
products: z.ZodArray<z.ZodObject<{
|
|
60
|
+
slug: z.ZodString;
|
|
61
|
+
name: z.ZodString;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
widgetCount: z.ZodNumber;
|
|
64
|
+
mcpToolCount: z.ZodNumber;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
declare const GroupResultSchema: z.ZodObject<{
|
|
68
|
+
team: z.ZodObject<{
|
|
69
|
+
slug: z.ZodString;
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
group: z.ZodObject<{
|
|
73
|
+
id: z.ZodString;
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
description: z.ZodNullable<z.ZodString>;
|
|
76
|
+
members: z.ZodArray<z.ZodObject<{
|
|
77
|
+
userId: z.ZodString;
|
|
78
|
+
email: z.ZodNullable<z.ZodString>;
|
|
79
|
+
name: z.ZodNullable<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
products: z.ZodArray<z.ZodObject<{
|
|
82
|
+
slug: z.ZodString;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
widgetCount: z.ZodNumber;
|
|
86
|
+
mcpToolCount: z.ZodNumber;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
declare const GroupUpdateSchema: z.ZodObject<{
|
|
90
|
+
team: z.ZodObject<{
|
|
91
|
+
slug: z.ZodString;
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
group: z.ZodObject<{
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
description: z.ZodNullable<z.ZodString>;
|
|
98
|
+
members: z.ZodArray<z.ZodObject<{
|
|
99
|
+
userId: z.ZodString;
|
|
100
|
+
email: z.ZodNullable<z.ZodString>;
|
|
101
|
+
name: z.ZodNullable<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
products: z.ZodArray<z.ZodObject<{
|
|
104
|
+
slug: z.ZodString;
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
}, z.core.$strip>>;
|
|
107
|
+
widgetCount: z.ZodNumber;
|
|
108
|
+
mcpToolCount: z.ZodNumber;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
previous: z.ZodObject<{
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
description: z.ZodNullable<z.ZodString>;
|
|
114
|
+
members: z.ZodArray<z.ZodObject<{
|
|
115
|
+
userId: z.ZodString;
|
|
116
|
+
email: z.ZodNullable<z.ZodString>;
|
|
117
|
+
name: z.ZodNullable<z.ZodString>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
119
|
+
products: z.ZodArray<z.ZodObject<{
|
|
120
|
+
slug: z.ZodString;
|
|
121
|
+
name: z.ZodString;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
widgetCount: z.ZodNumber;
|
|
124
|
+
mcpToolCount: z.ZodNumber;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
declare const GroupMemberSchema: z.ZodObject<{
|
|
128
|
+
team: z.ZodObject<{
|
|
129
|
+
slug: z.ZodString;
|
|
130
|
+
name: z.ZodString;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
group: z.ZodObject<{
|
|
133
|
+
id: z.ZodString;
|
|
134
|
+
name: z.ZodString;
|
|
135
|
+
description: z.ZodNullable<z.ZodString>;
|
|
136
|
+
members: z.ZodArray<z.ZodObject<{
|
|
137
|
+
userId: z.ZodString;
|
|
138
|
+
email: z.ZodNullable<z.ZodString>;
|
|
139
|
+
name: z.ZodNullable<z.ZodString>;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
products: z.ZodArray<z.ZodObject<{
|
|
142
|
+
slug: z.ZodString;
|
|
143
|
+
name: z.ZodString;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
widgetCount: z.ZodNumber;
|
|
146
|
+
mcpToolCount: z.ZodNumber;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
email: z.ZodString;
|
|
149
|
+
changed: z.ZodBoolean;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
export declare const TeamHealthRowSchema: z.ZodObject<{
|
|
152
|
+
productId: z.ZodString;
|
|
153
|
+
productName: z.ZodString;
|
|
154
|
+
slug: z.ZodString;
|
|
155
|
+
status: z.ZodEnum<{
|
|
156
|
+
degraded: "degraded";
|
|
157
|
+
healthy: "healthy";
|
|
158
|
+
unhealthy: "unhealthy";
|
|
159
|
+
unknown: "unknown";
|
|
160
|
+
}>;
|
|
161
|
+
lastCheckedAt: z.ZodNullable<z.ZodString>;
|
|
162
|
+
lastSuccessAt: z.ZodNullable<z.ZodString>;
|
|
163
|
+
lastFailureAt: z.ZodNullable<z.ZodString>;
|
|
164
|
+
lastErrorMessage: z.ZodNullable<z.ZodString>;
|
|
165
|
+
errorRatePct: z.ZodNullable<z.ZodNumber>;
|
|
166
|
+
tokenExpiresAt: z.ZodNullable<z.ZodString>;
|
|
167
|
+
statusReason: z.ZodNullable<z.ZodString>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export type TeamHealthRow = z.infer<typeof TeamHealthRowSchema>;
|
|
170
|
+
declare const HealthListSchema: z.ZodObject<{
|
|
171
|
+
source: z.ZodObject<{
|
|
172
|
+
id: z.ZodString;
|
|
173
|
+
slug: z.ZodString;
|
|
174
|
+
name: z.ZodNullable<z.ZodString>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
team: z.ZodObject<{
|
|
177
|
+
slug: z.ZodString;
|
|
178
|
+
name: z.ZodString;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
integrations: z.ZodArray<z.ZodObject<{
|
|
181
|
+
productId: z.ZodString;
|
|
182
|
+
productName: z.ZodString;
|
|
183
|
+
slug: z.ZodString;
|
|
184
|
+
status: z.ZodEnum<{
|
|
185
|
+
degraded: "degraded";
|
|
186
|
+
healthy: "healthy";
|
|
187
|
+
unhealthy: "unhealthy";
|
|
188
|
+
unknown: "unknown";
|
|
189
|
+
}>;
|
|
190
|
+
lastCheckedAt: z.ZodNullable<z.ZodString>;
|
|
191
|
+
lastSuccessAt: z.ZodNullable<z.ZodString>;
|
|
192
|
+
lastFailureAt: z.ZodNullable<z.ZodString>;
|
|
193
|
+
lastErrorMessage: z.ZodNullable<z.ZodString>;
|
|
194
|
+
errorRatePct: z.ZodNullable<z.ZodNumber>;
|
|
195
|
+
tokenExpiresAt: z.ZodNullable<z.ZodString>;
|
|
196
|
+
statusReason: z.ZodNullable<z.ZodString>;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
declare const HealthRunSchema: z.ZodObject<{
|
|
200
|
+
team: z.ZodObject<{
|
|
201
|
+
slug: z.ZodString;
|
|
202
|
+
name: z.ZodString;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
integration: z.ZodObject<{
|
|
205
|
+
productId: z.ZodString;
|
|
206
|
+
productName: z.ZodString;
|
|
207
|
+
slug: z.ZodString;
|
|
208
|
+
status: z.ZodEnum<{
|
|
209
|
+
degraded: "degraded";
|
|
210
|
+
healthy: "healthy";
|
|
211
|
+
unhealthy: "unhealthy";
|
|
212
|
+
unknown: "unknown";
|
|
213
|
+
}>;
|
|
214
|
+
lastCheckedAt: z.ZodNullable<z.ZodString>;
|
|
215
|
+
lastSuccessAt: z.ZodNullable<z.ZodString>;
|
|
216
|
+
lastFailureAt: z.ZodNullable<z.ZodString>;
|
|
217
|
+
lastErrorMessage: z.ZodNullable<z.ZodString>;
|
|
218
|
+
errorRatePct: z.ZodNullable<z.ZodNumber>;
|
|
219
|
+
tokenExpiresAt: z.ZodNullable<z.ZodString>;
|
|
220
|
+
statusReason: z.ZodNullable<z.ZodString>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
declare const WorkspaceListSchema: z.ZodObject<{
|
|
224
|
+
source: z.ZodObject<{
|
|
225
|
+
id: z.ZodString;
|
|
226
|
+
slug: z.ZodString;
|
|
227
|
+
name: z.ZodNullable<z.ZodString>;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
team: z.ZodObject<{
|
|
230
|
+
slug: z.ZodString;
|
|
231
|
+
name: z.ZodString;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
workspaces: z.ZodArray<z.ZodObject<{
|
|
234
|
+
slug: z.ZodString;
|
|
235
|
+
name: z.ZodString;
|
|
236
|
+
label: z.ZodNullable<z.ZodString>;
|
|
237
|
+
visible: z.ZodBoolean;
|
|
238
|
+
isDefault: z.ZodBoolean;
|
|
239
|
+
}, z.core.$strip>>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
declare const WorkspaceDefaultSchema: z.ZodObject<{
|
|
242
|
+
team: z.ZodObject<{
|
|
243
|
+
slug: z.ZodString;
|
|
244
|
+
name: z.ZodString;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
workspace: z.ZodObject<{
|
|
247
|
+
slug: z.ZodString;
|
|
248
|
+
name: z.ZodString;
|
|
249
|
+
label: z.ZodNullable<z.ZodString>;
|
|
250
|
+
visible: z.ZodBoolean;
|
|
251
|
+
isDefault: z.ZodBoolean;
|
|
252
|
+
}, z.core.$strip>;
|
|
253
|
+
previous: z.ZodNullable<z.ZodObject<{
|
|
254
|
+
slug: z.ZodString;
|
|
255
|
+
name: z.ZodString;
|
|
256
|
+
label: z.ZodNullable<z.ZodString>;
|
|
257
|
+
visible: z.ZodBoolean;
|
|
258
|
+
isDefault: z.ZodBoolean;
|
|
259
|
+
}, z.core.$strip>>;
|
|
260
|
+
changed: z.ZodBoolean;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
export declare const SourceRoleSchema: z.ZodObject<{
|
|
263
|
+
name: z.ZodString;
|
|
264
|
+
displayName: z.ZodString;
|
|
265
|
+
description: z.ZodNullable<z.ZodString>;
|
|
266
|
+
hierarchyLevel: z.ZodNumber;
|
|
267
|
+
isSystem: z.ZodBoolean;
|
|
268
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
269
|
+
memberCount: z.ZodNumber;
|
|
270
|
+
}, z.core.$strip>;
|
|
271
|
+
export type SourceRole = z.infer<typeof SourceRoleSchema>;
|
|
272
|
+
declare const RoleListSchema: z.ZodObject<{
|
|
273
|
+
source: z.ZodObject<{
|
|
274
|
+
id: z.ZodString;
|
|
275
|
+
slug: z.ZodString;
|
|
276
|
+
name: z.ZodNullable<z.ZodString>;
|
|
277
|
+
}, z.core.$strip>;
|
|
278
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
displayName: z.ZodString;
|
|
281
|
+
description: z.ZodNullable<z.ZodString>;
|
|
282
|
+
hierarchyLevel: z.ZodNumber;
|
|
283
|
+
isSystem: z.ZodBoolean;
|
|
284
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
285
|
+
memberCount: z.ZodNumber;
|
|
286
|
+
}, z.core.$strip>>;
|
|
287
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
288
|
+
permission: z.ZodString;
|
|
289
|
+
label: z.ZodString;
|
|
290
|
+
category: z.ZodString;
|
|
291
|
+
}, z.core.$strip>>;
|
|
292
|
+
}, z.core.$strip>;
|
|
293
|
+
declare const RoleResultSchema: z.ZodObject<{
|
|
294
|
+
source: z.ZodObject<{
|
|
295
|
+
id: z.ZodString;
|
|
296
|
+
slug: z.ZodString;
|
|
297
|
+
name: z.ZodNullable<z.ZodString>;
|
|
298
|
+
}, z.core.$strip>;
|
|
299
|
+
role: z.ZodObject<{
|
|
300
|
+
name: z.ZodString;
|
|
301
|
+
displayName: z.ZodString;
|
|
302
|
+
description: z.ZodNullable<z.ZodString>;
|
|
303
|
+
hierarchyLevel: z.ZodNumber;
|
|
304
|
+
isSystem: z.ZodBoolean;
|
|
305
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
306
|
+
memberCount: z.ZodNumber;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
}, z.core.$strip>;
|
|
309
|
+
declare const RoleUpdateSchema: z.ZodObject<{
|
|
310
|
+
source: z.ZodObject<{
|
|
311
|
+
id: z.ZodString;
|
|
312
|
+
slug: z.ZodString;
|
|
313
|
+
name: z.ZodNullable<z.ZodString>;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
role: z.ZodObject<{
|
|
316
|
+
name: z.ZodString;
|
|
317
|
+
displayName: z.ZodString;
|
|
318
|
+
description: z.ZodNullable<z.ZodString>;
|
|
319
|
+
hierarchyLevel: z.ZodNumber;
|
|
320
|
+
isSystem: z.ZodBoolean;
|
|
321
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
322
|
+
memberCount: z.ZodNumber;
|
|
323
|
+
}, z.core.$strip>;
|
|
324
|
+
previous: z.ZodObject<{
|
|
325
|
+
name: z.ZodString;
|
|
326
|
+
displayName: z.ZodString;
|
|
327
|
+
description: z.ZodNullable<z.ZodString>;
|
|
328
|
+
hierarchyLevel: z.ZodNumber;
|
|
329
|
+
isSystem: z.ZodBoolean;
|
|
330
|
+
permissions: z.ZodArray<z.ZodString>;
|
|
331
|
+
memberCount: z.ZodNumber;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
}, z.core.$strip>;
|
|
334
|
+
declare const PeopleSchema: z.ZodObject<{
|
|
335
|
+
source: z.ZodObject<{
|
|
336
|
+
id: z.ZodString;
|
|
337
|
+
slug: z.ZodString;
|
|
338
|
+
name: z.ZodNullable<z.ZodString>;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
people: z.ZodArray<z.ZodObject<{
|
|
341
|
+
userId: z.ZodString;
|
|
342
|
+
name: z.ZodNullable<z.ZodString>;
|
|
343
|
+
email: z.ZodNullable<z.ZodString>;
|
|
344
|
+
joinedAt: z.ZodNullable<z.ZodString>;
|
|
345
|
+
status: z.ZodEnum<{
|
|
346
|
+
active: "active";
|
|
347
|
+
invited: "invited";
|
|
348
|
+
left: "left";
|
|
349
|
+
removed: "removed";
|
|
350
|
+
suspended: "suspended";
|
|
351
|
+
}>;
|
|
352
|
+
teams: z.ZodArray<z.ZodObject<{
|
|
353
|
+
accountName: z.ZodString;
|
|
354
|
+
roleLabel: z.ZodString;
|
|
355
|
+
status: z.ZodEnum<{
|
|
356
|
+
active: "active";
|
|
357
|
+
invited: "invited";
|
|
358
|
+
left: "left";
|
|
359
|
+
removed: "removed";
|
|
360
|
+
suspended: "suspended";
|
|
361
|
+
}>;
|
|
362
|
+
}, z.core.$strip>>;
|
|
363
|
+
}, z.core.$strip>>;
|
|
364
|
+
total: z.ZodNumber;
|
|
365
|
+
page: z.ZodNumber;
|
|
366
|
+
pageSize: z.ZodNumber;
|
|
367
|
+
}, z.core.$strip>;
|
|
368
|
+
export type SourcePeople = z.infer<typeof PeopleSchema>;
|
|
369
|
+
type TeamTarget = {
|
|
370
|
+
source: string;
|
|
371
|
+
team: string;
|
|
372
|
+
};
|
|
373
|
+
type Api<T> = Promise<TeamsApiResult<T>>;
|
|
374
|
+
export declare function resendTeamInvitation(host: string, token: string, target: TeamTarget & {
|
|
375
|
+
email: string;
|
|
376
|
+
}): Api<z.infer<typeof InvitationResendSchema>>;
|
|
377
|
+
export declare function leaveTeam(host: string, token: string, target: TeamTarget): Api<z.infer<typeof TeamLeaveSchema>>;
|
|
378
|
+
export declare function listTeamGroups(host: string, token: string, target: TeamTarget): Api<z.infer<typeof GroupListSchema>>;
|
|
379
|
+
export declare function createTeamGroup(host: string, token: string, target: TeamTarget, body: {
|
|
380
|
+
name: string;
|
|
381
|
+
description?: string;
|
|
382
|
+
products?: string[];
|
|
383
|
+
}): Api<z.infer<typeof GroupResultSchema>>;
|
|
384
|
+
export declare function updateTeamGroup(host: string, token: string, target: TeamTarget & {
|
|
385
|
+
group: string;
|
|
386
|
+
}, body: {
|
|
387
|
+
name?: string;
|
|
388
|
+
description?: string | null;
|
|
389
|
+
products?: string[];
|
|
390
|
+
}): Api<z.infer<typeof GroupUpdateSchema>>;
|
|
391
|
+
export declare function deleteTeamGroup(host: string, token: string, target: TeamTarget & {
|
|
392
|
+
group: string;
|
|
393
|
+
}): Api<z.infer<typeof GroupResultSchema>>;
|
|
394
|
+
export declare function setTeamGroupMember(host: string, token: string, target: TeamTarget & {
|
|
395
|
+
group: string;
|
|
396
|
+
email: string;
|
|
397
|
+
}, member: boolean): Api<z.infer<typeof GroupMemberSchema>>;
|
|
398
|
+
export declare function listTeamHealth(host: string, token: string, target: TeamTarget): Api<z.infer<typeof HealthListSchema>>;
|
|
399
|
+
/** The caller's own personal connection's health; `run` checks it now. */
|
|
400
|
+
export declare function ownTeamHealth(host: string, token: string, target: TeamTarget & {
|
|
401
|
+
product: string;
|
|
402
|
+
}, run: boolean): Api<z.infer<typeof HealthRunSchema>>;
|
|
403
|
+
export declare function runTeamHealthCheck(host: string, token: string, target: TeamTarget & {
|
|
404
|
+
product: string;
|
|
405
|
+
}): Api<z.infer<typeof HealthRunSchema>>;
|
|
406
|
+
export declare function listTeamWorkspaces(host: string, token: string, target: TeamTarget): Api<z.infer<typeof WorkspaceListSchema>>;
|
|
407
|
+
export declare function setTeamDefaultWorkspace(host: string, token: string, target: TeamTarget, workspace: string): Api<z.infer<typeof WorkspaceDefaultSchema>>;
|
|
408
|
+
export declare function listSourceRoles(host: string, token: string, source: string): Api<z.infer<typeof RoleListSchema>>;
|
|
409
|
+
export declare function createSourceRole(host: string, token: string, source: string, body: {
|
|
410
|
+
name: string;
|
|
411
|
+
displayName: string;
|
|
412
|
+
description?: string;
|
|
413
|
+
hierarchyLevel: number;
|
|
414
|
+
permissions: string[];
|
|
415
|
+
}): Api<z.infer<typeof RoleResultSchema>>;
|
|
416
|
+
export declare function updateSourceRole(host: string, token: string, target: {
|
|
417
|
+
source: string;
|
|
418
|
+
role: string;
|
|
419
|
+
}, body: {
|
|
420
|
+
displayName?: string;
|
|
421
|
+
description?: string;
|
|
422
|
+
hierarchyLevel?: number;
|
|
423
|
+
permissions?: string[];
|
|
424
|
+
grant?: string[];
|
|
425
|
+
revoke?: string[];
|
|
426
|
+
}): Api<z.infer<typeof RoleUpdateSchema>>;
|
|
427
|
+
export declare function deleteSourceRole(host: string, token: string, target: {
|
|
428
|
+
source: string;
|
|
429
|
+
role: string;
|
|
430
|
+
}): Api<z.infer<typeof RoleResultSchema>>;
|
|
431
|
+
export declare function listSourcePeople(host: string, token: string, source: string, query: {
|
|
432
|
+
search?: string;
|
|
433
|
+
page?: number;
|
|
434
|
+
}): Api<SourcePeople>;
|
|
435
|
+
export {};
|