@ekanos/cli 0.15.0 → 0.17.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 +103 -8
- 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/add.d.ts +2 -0
- package/dist/commands/add.js +118 -0
- package/dist/commands/add.js.map +1 -0
- 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/audiences.d.ts +31 -0
- package/dist/commands/audiences.js +239 -0
- package/dist/commands/audiences.js.map +1 -0
- package/dist/commands/build.d.ts +2 -0
- package/dist/commands/build.js +41 -0
- package/dist/commands/build.js.map +1 -0
- 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/check.d.ts +2 -0
- package/dist/commands/check.js +43 -0
- package/dist/commands/check.js.map +1 -0
- package/dist/commands/codegen.d.ts +2 -0
- package/dist/commands/codegen.js +49 -0
- package/dist/commands/codegen.js.map +1 -0
- package/dist/commands/contract.d.ts +52 -0
- package/dist/commands/contract.js +300 -0
- package/dist/commands/contract.js.map +1 -0
- package/dist/commands/dev.d.ts +7 -0
- package/dist/commands/dev.js +186 -12
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/index-experience.d.ts +31 -0
- package/dist/commands/index-experience.js +21 -0
- package/dist/commands/index-experience.js.map +1 -0
- package/dist/commands/init.d.ts +7 -0
- package/dist/commands/init.js +12 -0
- package/dist/commands/init.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/new.d.ts +2 -0
- package/dist/commands/new.js +39 -0
- package/dist/commands/new.js.map +1 -0
- package/dist/commands/publish.d.ts +59 -0
- package/dist/commands/publish.js +118 -65
- package/dist/commands/publish.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 +13 -0
- package/dist/commands/scope-notice.js +12 -4
- 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 +8 -1
- package/dist/commands/sources.js.map +1 -1
- package/dist/commands/sync.d.ts +2 -0
- package/dist/commands/sync.js +150 -0
- package/dist/commands/sync.js.map +1 -0
- 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-audience.d.ts +12 -0
- package/dist/commands/teams-audience.js +144 -0
- package/dist/commands/teams-audience.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-scope.js +4 -0
- package/dist/commands/teams-scope.js.map +1 -1
- package/dist/commands/teams.d.ts +25 -5
- package/dist/commands/teams.js +106 -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/compatibility.d.ts +10 -1
- package/dist/compatibility.js +10 -1
- package/dist/compatibility.js.map +1 -1
- 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/dev-experience.d.ts +125 -0
- package/dist/dev-experience.js +128 -0
- package/dist/dev-experience.js.map +1 -0
- package/dist/experience/boundary.d.ts +12 -0
- package/dist/experience/boundary.js +260 -0
- package/dist/experience/boundary.js.map +1 -0
- package/dist/experience/build.d.ts +16 -0
- package/dist/experience/build.js +90 -0
- package/dist/experience/build.js.map +1 -0
- package/dist/experience/checks.d.ts +29 -0
- package/dist/experience/checks.js +133 -0
- package/dist/experience/checks.js.map +1 -0
- package/dist/experience/contract-sources.d.ts +36 -0
- package/dist/experience/contract-sources.js +111 -0
- package/dist/experience/contract-sources.js.map +1 -0
- package/dist/experience/definition-checks.d.ts +26 -0
- package/dist/experience/definition-checks.js +201 -0
- package/dist/experience/definition-checks.js.map +1 -0
- package/dist/experience/definition-shape.d.ts +60 -0
- package/dist/experience/definition-shape.js +2 -0
- package/dist/experience/definition-shape.js.map +1 -0
- package/dist/experience/init.d.ts +10 -0
- package/dist/experience/init.js +64 -0
- package/dist/experience/init.js.map +1 -0
- package/dist/experience/integrations-codegen.d.ts +17 -0
- package/dist/experience/integrations-codegen.js +51 -0
- package/dist/experience/integrations-codegen.js.map +1 -0
- package/dist/experience/json-schema-to-ts.d.ts +1 -0
- package/dist/experience/json-schema-to-ts.js +90 -0
- package/dist/experience/json-schema-to-ts.js.map +1 -0
- package/dist/experience/load-experience.d.ts +23 -0
- package/dist/experience/load-experience.js +115 -0
- package/dist/experience/load-experience.js.map +1 -0
- package/dist/experience/overrides.d.ts +8 -0
- package/dist/experience/overrides.js +21 -0
- package/dist/experience/overrides.js.map +1 -0
- package/dist/experience/pin-integration.d.ts +8 -0
- package/dist/experience/pin-integration.js +17 -0
- package/dist/experience/pin-integration.js.map +1 -0
- package/dist/experience/pin-ops.d.ts +12 -0
- package/dist/experience/pin-ops.js +36 -0
- package/dist/experience/pin-ops.js.map +1 -0
- package/dist/experience/pins.d.ts +35 -0
- package/dist/experience/pins.js +91 -0
- package/dist/experience/pins.js.map +1 -0
- package/dist/experience/project.d.ts +52 -0
- package/dist/experience/project.js +149 -0
- package/dist/experience/project.js.map +1 -0
- package/dist/experience/publish.d.ts +51 -0
- package/dist/experience/publish.js +144 -0
- package/dist/experience/publish.js.map +1 -0
- package/dist/experience/regenerate.d.ts +10 -0
- package/dist/experience/regenerate.js +33 -0
- package/dist/experience/regenerate.js.map +1 -0
- package/dist/experience/report.d.ts +9 -0
- package/dist/experience/report.js +23 -0
- package/dist/experience/report.js.map +1 -0
- package/dist/harness-scaffold.d.ts +52 -18
- package/dist/harness-scaffold.js +189 -9
- package/dist/harness-scaffold.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.js +494 -127
- 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/project-checks.d.ts +12 -0
- package/dist/project-checks.js +46 -0
- package/dist/project-checks.js.map +1 -1
- package/dist/project.d.ts +14 -0
- package/dist/project.js +10 -0
- package/dist/project.js.map +1 -1
- package/dist/repo/publish.d.ts +42 -0
- package/dist/repo/publish.js +225 -0
- package/dist/repo/publish.js.map +1 -0
- package/dist/repo/scaffold.d.ts +30 -0
- package/dist/repo/scaffold.js +165 -0
- package/dist/repo/scaffold.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 +49 -1
- package/dist/teams-api.js +149 -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/validate-findings.js +2 -1
- package/dist/validate-findings.js.map +1 -1
- 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/ekanos.json.tmpl +1 -0
- package/templates/experience/AGENTS.md.tmpl +22 -0
- package/templates/experience/ekanos.json.tmpl +7 -0
- package/templates/experience/ekanos.lock.json.tmpl +4 -0
- package/templates/experience/eslint.config.mjs.tmpl +25 -0
- package/templates/experience/gitignore.tmpl +17 -0
- package/templates/experience/package.json.tmpl +41 -0
- package/templates/experience/src/.ekanos/integrations.d.ts.tmpl +3 -0
- package/templates/experience/src/experience.ts.tmpl +30 -0
- package/templates/experience/src/widgets/hello-widget.tsx.tmpl +40 -0
- package/templates/experience/tsconfig.json.tmpl +20 -0
- package/templates/harness/app/%5F%5Fekanos/api/[...path]/route.ts.tmpl +9 -0
- package/templates/harness/app/[slug]/activation/page.tsx.tmpl +1 -1
- package/templates/harness/app/[slug]/page.tsx.tmpl +1 -1
- package/templates/harness/app/[slug]/tile/page.tsx.tmpl +1 -1
- package/templates/harness/app/[slug]/triggers/page.tsx.tmpl +1 -1
- package/templates/harness/app/[slug]/widgets/[widgetId]/page.tsx.tmpl +1 -1
- package/templates/harness/app/[slug]/widgets/page.tsx.tmpl +1 -1
- package/templates/harness/app/experience/layout.tsx.tmpl +17 -0
- package/templates/harness/app/experience/page.tsx.tmpl +1 -0
- package/templates/harness/app/experience/pages/[id]/page.tsx.tmpl +1 -0
- package/templates/harness/app/experience/review-queue/page.tsx.tmpl +1 -0
- package/templates/harness/app/experience/runs/page.tsx.tmpl +1 -0
- package/templates/harness/app/experience/widgets/[id]/page.tsx.tmpl +1 -0
- package/templates/harness/app/experience/widgets/page.tsx.tmpl +1 -0
- package/templates/harness/app/experience/workflows/[id]/page.tsx.tmpl +1 -0
- package/templates/harness/app/experience/workflows/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/connect/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/events/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/health/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/operations/[kind]/[name]/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/operations/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/preview/activation/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/preview/layout.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/preview/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/preview/tile/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/preview/triggers/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/preview/widgets/[widgetId]/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/preview/widgets/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/[slug]/runs/page.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/layout.tsx.tmpl +1 -0
- package/templates/harness/app/integrations/page.tsx.tmpl +1 -0
- package/templates/harness/app/page.experience.tsx.tmpl +5 -0
- package/templates/harness/repo/app/%5F%5Fekanos/api/[...path]/route.ts.tmpl +11 -0
- package/templates/harness/repo/app/(repo)/connections/page.tsx.tmpl +1 -0
- package/templates/harness/repo/app/(repo)/layout.tsx.tmpl +1 -0
- package/templates/harness/repo/app/(repo)/page.tsx.tmpl +1 -0
- package/templates/harness/repo/app/experiences/[name]/connect/page.tsx.tmpl +1 -0
- package/templates/harness/repo/app/experiences/[name]/layout.tsx.tmpl +9 -0
- package/templates/harness/repo/app/experiences/page.tsx.tmpl +5 -0
- package/templates/harness/repo/app/harness-shell.tsx.tmpl +9 -0
- package/templates/harness/repo/app/integrations/[slug]/layout.tsx.tmpl +1 -0
- package/templates/harness/repo/app/integrations/page.tsx.tmpl +5 -0
- package/templates/harness/repo/app/repo-experiences.ts.tmpl +5 -0
- package/templates/harness/styles/globals.css.tmpl +15 -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
|
@@ -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 {};
|