attio 0.0.1-experimental.20240729 → 0.0.1-experimental.20240809

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/lib/api/add-connection-definition.d.ts +21 -0
  2. package/lib/api/add-connection-definition.d.ts.map +1 -0
  3. package/lib/api/add-connection-definition.js +24 -0
  4. package/lib/api/add-connection-definition.js.map +1 -0
  5. package/lib/api/create-dev-version.d.ts +3 -3
  6. package/lib/api/create-dev-version.d.ts.map +1 -1
  7. package/lib/api/create-dev-version.js +2 -2
  8. package/lib/api/create-dev-version.js.map +1 -1
  9. package/lib/api/remove-connection-definition.d.ts +16 -0
  10. package/lib/api/remove-connection-definition.d.ts.map +1 -0
  11. package/lib/api/remove-connection-definition.js +8 -0
  12. package/lib/api/remove-connection-definition.js.map +1 -0
  13. package/lib/attio.d.ts +1 -1
  14. package/lib/attio.js +1 -1
  15. package/lib/commands/connection/add.d.ts +22 -0
  16. package/lib/commands/connection/add.d.ts.map +1 -0
  17. package/lib/commands/connection/add.js +66 -0
  18. package/lib/commands/connection/add.js.map +1 -0
  19. package/lib/commands/connection/index.d.ts +2 -0
  20. package/lib/commands/connection/index.d.ts.map +1 -0
  21. package/lib/commands/connection/index.js +2 -0
  22. package/lib/commands/connection/index.js.map +1 -0
  23. package/lib/commands/connection/remove.d.ts +16 -0
  24. package/lib/commands/connection/remove.d.ts.map +1 -0
  25. package/lib/commands/connection/remove.js +42 -0
  26. package/lib/commands/connection/remove.js.map +1 -0
  27. package/lib/machines/add-connection-machine.d.ts +159 -0
  28. package/lib/machines/add-connection-machine.d.ts.map +1 -0
  29. package/lib/machines/add-connection-machine.js +224 -0
  30. package/lib/machines/add-connection-machine.js.map +1 -0
  31. package/lib/machines/dev-machine.d.ts.map +1 -1
  32. package/lib/machines/dev-machine.js +3 -3
  33. package/lib/machines/dev-machine.js.map +1 -1
  34. package/lib/machines/remove-connection-machine.d.ts +106 -0
  35. package/lib/machines/remove-connection-machine.d.ts.map +1 -0
  36. package/lib/machines/remove-connection-machine.js +161 -0
  37. package/lib/machines/remove-connection-machine.js.map +1 -0
  38. package/lib/schema.d.ts +5 -5
  39. package/lib/schema.d.ts.map +1 -1
  40. package/lib/schema.js +10 -7
  41. package/lib/schema.js.map +1 -1
  42. package/lib/schema.json +32 -31
  43. package/lib/util/app-config.d.ts +11 -0
  44. package/lib/util/app-config.d.ts.map +1 -0
  45. package/lib/util/app-config.js +52 -0
  46. package/lib/util/app-config.js.map +1 -0
  47. package/package.json +1 -1
  48. package/lib/util/load-extension-config.d.ts +0 -3
  49. package/lib/util/load-extension-config.d.ts.map +0 -1
  50. package/lib/util/load-extension-config.js +0 -32
  51. package/lib/util/load-extension-config.js.map +0 -1
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ import { Config } from "../schema.js";
3
+ declare const addConnectionSchema: z.ZodObject<{
4
+ app_id: z.ZodString;
5
+ connection_definition_id: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ app_id: string;
8
+ connection_definition_id: string;
9
+ }, {
10
+ app_id: string;
11
+ connection_definition_id: string;
12
+ }>;
13
+ export type Connection = z.infer<typeof addConnectionSchema>;
14
+ export declare function addConnectionDefinition({ token, devSlug, appId, connection, }: {
15
+ token: string;
16
+ devSlug: string;
17
+ appId: string;
18
+ connection: NonNullable<Config["connection"]>;
19
+ }): Promise<Connection>;
20
+ export {};
21
+ //# sourceMappingURL=add-connection-definition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-connection-definition.d.ts","sourceRoot":"","sources":["../../src/api/add-connection-definition.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,OAAO,EAAC,MAAM,EAAC,MAAM,cAAc,CAAA;AAInC,QAAA,MAAM,mBAAmB;;;;;;;;;EAGvB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE5D,wBAAsB,uBAAuB,CAAC,EAC1C,KAAK,EACL,OAAO,EACP,KAAK,EACL,UAAU,GACb,EAAE;IACC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAA;CAChD,GAAG,OAAO,CAAC,UAAU,CAAC,CAiBtB"}
@@ -0,0 +1,24 @@
1
+ import { v4 as uuid } from "uuid";
2
+ import { z } from "zod";
3
+ import { API } from "../env.js";
4
+ import { handleError } from "./handle-error.js";
5
+ import { makeHeaders } from "./make-headers.js";
6
+ const addConnectionSchema = z.object({
7
+ app_id: z.string(),
8
+ connection_definition_id: z.string(),
9
+ });
10
+ export async function addConnectionDefinition({ token, devSlug, appId, connection, }) {
11
+ const connectionDefinitionId = uuid();
12
+ const response = await fetch(`${API}/developer-portal/accounts/${devSlug}/apps/${appId}/connection-definitions/${connectionDefinitionId}`, {
13
+ method: "PUT",
14
+ headers: makeHeaders(token),
15
+ body: JSON.stringify({
16
+ connection_type: connection?.connection_type,
17
+ audience: connection?.audience,
18
+ major: 1,
19
+ }),
20
+ });
21
+ await handleError(response);
22
+ return addConnectionSchema.parse(await response.json());
23
+ }
24
+ //# sourceMappingURL=add-connection-definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-connection-definition.js","sourceRoot":"","sources":["../../src/api/add-connection-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,EAAE,IAAI,IAAI,EAAC,MAAM,MAAM,CAAA;AAC/B,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,OAAO,EAAC,GAAG,EAAC,MAAM,WAAW,CAAA;AAE7B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAA;AAE7C,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE;CACvC,CAAC,CAAA;AAIF,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,EAC1C,KAAK,EACL,OAAO,EACP,KAAK,EACL,UAAU,GAMb;IACG,MAAM,sBAAsB,GAAG,IAAI,EAAE,CAAA;IACrC,MAAM,QAAQ,GAAG,MAAM,KAAK,CACxB,GAAG,GAAG,8BAA8B,OAAO,SAAS,KAAK,2BAA2B,sBAAsB,EAAE,EAC5G;QACI,MAAM,EAAE,KAAK;QACb,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC;QAC3B,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;YACjB,eAAe,EAAE,UAAU,EAAE,eAAe;YAC5C,QAAQ,EAAE,UAAU,EAAE,QAAQ;YAC9B,KAAK,EAAE,CAAC;SACX,CAAC;KACL,CACJ,CAAA;IACD,MAAM,WAAW,CAAC,QAAQ,CAAC,CAAA;IAE3B,OAAO,mBAAmB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;AAC3D,CAAC"}
@@ -10,16 +10,16 @@ declare const createDevVersionSchema: z.ZodObject<{
10
10
  app_dev_version_id: string;
11
11
  }>;
12
12
  export type DevVersion = z.infer<typeof createDevVersionSchema>;
13
- export declare function createDevVersion({ token, devSlug, appId, targetWorkspaceId, connections, environmentVariables, }: {
13
+ export declare function createDevVersion({ token, devSlug, appId, targetWorkspaceId, connection, environmentVariables, }: {
14
14
  token: string;
15
15
  devSlug: string;
16
16
  appId: string;
17
17
  targetWorkspaceId: string;
18
18
  environmentVariables: Record<string, string>;
19
- connections: Record<string, {
19
+ connection: {
20
20
  connection_type: "secret";
21
21
  audience: "workspace" | "workspace-member";
22
- }>;
22
+ } | null;
23
23
  }): Promise<{
24
24
  app_id: string;
25
25
  app_dev_version_id: string;
@@ -1 +1 @@
1
- {"version":3,"file":"create-dev-version.d.ts","sourceRoot":"","sources":["../../src/api/create-dev-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAMrB,QAAA,MAAM,sBAAsB;;;;;;;;;EAG1B,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE/D,wBAAsB,gBAAgB,CAAC,EACnC,KAAK,EACL,OAAO,EACP,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,oBAAoB,GACvB,EAAE;IACC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,MAAM,CAAA;IACzB,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5C,WAAW,EAAE,MAAM,CACf,MAAM,EACN;QACI,eAAe,EAAE,QAAQ,CAAA;QACzB,QAAQ,EAAE,WAAW,GAAG,kBAAkB,CAAA;KAC7C,CACJ,CAAA;CACJ;;;GAiBA"}
1
+ {"version":3,"file":"create-dev-version.d.ts","sourceRoot":"","sources":["../../src/api/create-dev-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAMrB,QAAA,MAAM,sBAAsB;;;;;;;;;EAG1B,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE/D,wBAAsB,gBAAgB,CAAC,EACnC,KAAK,EACL,OAAO,EACP,KAAK,EACL,iBAAiB,EACjB,UAAU,EACV,oBAAoB,GACvB,EAAE;IACC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,iBAAiB,EAAE,MAAM,CAAA;IACzB,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5C,UAAU,EAAE;QACR,eAAe,EAAE,QAAQ,CAAA;QACzB,QAAQ,EAAE,WAAW,GAAG,kBAAkB,CAAA;KAC7C,GAAG,IAAI,CAAA;CACX;;;GAiBA"}
@@ -6,12 +6,12 @@ const createDevVersionSchema = z.object({
6
6
  app_id: z.string(),
7
7
  app_dev_version_id: z.string(),
8
8
  });
9
- export async function createDevVersion({ token, devSlug, appId, targetWorkspaceId, connections, environmentVariables, }) {
9
+ export async function createDevVersion({ token, devSlug, appId, targetWorkspaceId, connection, environmentVariables, }) {
10
10
  const response = await fetch(`${API}/developer-portal/accounts/${devSlug}/apps/${appId}/dev-versions`, {
11
11
  method: "POST",
12
12
  headers: makeHeaders(token),
13
13
  body: JSON.stringify({
14
- connections,
14
+ connection,
15
15
  major: 1,
16
16
  target_workspace_id: targetWorkspaceId,
17
17
  environment_variables: environmentVariables,
@@ -1 +1 @@
1
- {"version":3,"file":"create-dev-version.js","sourceRoot":"","sources":["../../src/api/create-dev-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,OAAO,EAAC,GAAG,EAAC,MAAM,WAAW,CAAA;AAC7B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAA;AAE7C,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;CACjC,CAAC,CAAA;AAIF,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,EACnC,KAAK,EACL,OAAO,EACP,KAAK,EACL,iBAAiB,EACjB,WAAW,EACX,oBAAoB,GAcvB;IACG,MAAM,QAAQ,GAAG,MAAM,KAAK,CACxB,GAAG,GAAG,8BAA8B,OAAO,SAAS,KAA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SAC9C,CAAC;KACL,CACJ,CAAA;IACD,MAAM,WAAW,CAAC,QAAQ,CAAC,CAAA;IAE3B,OAAO,sBAAsB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;AAC9D,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { z } from "zod";
2
+ declare const removeConnectionSchema: z.ZodObject<{
3
+ app_id: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ app_id: string;
6
+ }, {
7
+ app_id: string;
8
+ }>;
9
+ export type Connection = z.infer<typeof removeConnectionSchema>;
10
+ export declare function removeConnectionDefinition({ appId, }: {
11
+ token: string;
12
+ devSlug: string;
13
+ appId: string;
14
+ }): Promise<Connection>;
15
+ export {};
16
+ //# sourceMappingURL=remove-connection-definition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-connection-definition.d.ts","sourceRoot":"","sources":["../../src/api/remove-connection-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAMrB,QAAA,MAAM,sBAAsB;;;;;;EAE1B,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE/D,wBAAsB,0BAA0B,CAAC,EAG7C,KAAK,GACR,EAAE;IACC,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CAChB,GAAG,OAAO,CAAC,UAAU,CAAC,CActB"}
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ const removeConnectionSchema = z.object({
3
+ app_id: z.string(),
4
+ });
5
+ export async function removeConnectionDefinition({ appId, }) {
6
+ return removeConnectionSchema.parse({ app_id: appId });
7
+ }
8
+ //# sourceMappingURL=remove-connection-definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-connection-definition.js","sourceRoot":"","sources":["../../src/api/remove-connection-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAMrB,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA;AAIF,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,EAG7C,KAAK,GAKR;IAaG,OAAO,sBAAsB,CAAC,KAAK,CAAC,EAAC,MAAM,EAAE,KAAK,EAAC,CAAC,CAAA;AACxD,CAAC"}
package/lib/attio.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node --no-warnings=ExperimentalWarning
2
2
  export {};
3
3
  //# sourceMappingURL=attio.d.ts.map
package/lib/attio.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node --no-warnings=ExperimentalWarning
2
2
  import Pastel from "pastel";
3
3
  const app = new Pastel({
4
4
  name: "attio",
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import { z } from "zod";
3
+ export declare const description = "Create a new connection for your Attio app";
4
+ export declare const options: z.ZodObject<{
5
+ type: z.ZodOptional<z.ZodEnum<["secret"]>>;
6
+ audience: z.ZodOptional<z.ZodEnum<["workspace", "workspace-member"]>>;
7
+ dev: z.ZodDefault<z.ZodBoolean>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ dev: boolean;
10
+ type?: "secret" | undefined;
11
+ audience?: "workspace" | "workspace-member" | undefined;
12
+ }, {
13
+ type?: "secret" | undefined;
14
+ audience?: "workspace" | "workspace-member" | undefined;
15
+ dev?: boolean | undefined;
16
+ }>;
17
+ interface Props {
18
+ options: z.infer<typeof options>;
19
+ }
20
+ export default function AddConnection({ options: { type: connectionType, audience, dev } }: Props): React.JSX.Element;
21
+ export {};
22
+ //# sourceMappingURL=add.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../src/commands/connection/add.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAWrB,eAAO,MAAM,WAAW,+CAA+C,CAAA;AACvE,eAAO,MAAM,OAAO;;;;;;;;;;;;EAalB,CAAA;AAEF,UAAU,KAAK;IACX,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAA;CACnC;AAID,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAC,OAAO,EAAE,EAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,EAAC,EAAC,EAAE,KAAK,qBA0F5F"}
@@ -0,0 +1,66 @@
1
+ import { useMachine } from "@xstate/react";
2
+ import { Box, Text } from "ink";
3
+ import Spinner from "ink-spinner";
4
+ import { option } from "pastel";
5
+ import React from "react";
6
+ import { z } from "zod";
7
+ import { InitialInstructions } from "../../components/InitialInstructions.js";
8
+ import { Logo } from "../../components/Logo.js";
9
+ import { Select } from "../../components/Select.js";
10
+ import { addConnectionMachine, audiences, connectionTypes, } from "../../machines/add-connection-machine.js";
11
+ export const description = "Create a new connection for your Attio app";
12
+ export const options = z.object({
13
+ type: z
14
+ .enum(["secret"])
15
+ .optional()
16
+ .describe(option({ description: "The type of connection to create" })),
17
+ audience: z
18
+ .enum(["workspace", "workspace-member"])
19
+ .optional()
20
+ .describe(option({ description: "The audience for the connection" })),
21
+ dev: z
22
+ .boolean()
23
+ .default(false)
24
+ .describe(option({ description: "Run in development mode (additional debugging info)" })),
25
+ });
26
+ export default function AddConnection({ options: { type: connectionType, audience, dev } }) {
27
+ const [snapshot, send] = useMachine(addConnectionMachine, {
28
+ input: {
29
+ connectionType,
30
+ audience,
31
+ },
32
+ });
33
+ return (React.createElement(Box, { flexDirection: "column" },
34
+ dev && (React.createElement(Box, null,
35
+ React.createElement(Text, null, JSON.stringify(snapshot.value, null, 2)))),
36
+ React.createElement(Logo, null),
37
+ snapshot.matches("Show config instructions") && (React.createElement(InitialInstructions, { reason: snapshot.context.configError })),
38
+ snapshot.matches("Already have a connection") && (React.createElement(Box, { flexDirection: "column" },
39
+ React.createElement(Box, null,
40
+ React.createElement(Text, { color: "redBright" }, "This app already has a connection."),
41
+ React.createElement(Text, null, " To change it, you first must remove it with:")),
42
+ React.createElement(Box, { flexDirection: "column", borderStyle: "round", width: 27, paddingX: 1, marginBottom: 1 },
43
+ React.createElement(Text, null, "attio connection remove")))),
44
+ snapshot.matches("Ask for connection type") && (React.createElement(Box, { flexDirection: "column" },
45
+ React.createElement(Box, null,
46
+ React.createElement(Text, null, "What type of connection will this be?")),
47
+ React.createElement(Box, null,
48
+ React.createElement(Select, { items: connectionTypes, onSelect: (connectionType) => send({ type: "Choose Connection Type", connectionType }) })))),
49
+ snapshot.matches("Ask for audience") && (React.createElement(Box, { flexDirection: "column" },
50
+ React.createElement(Box, null,
51
+ React.createElement(Text, null, "What is the audience of this connection?")),
52
+ React.createElement(Box, null,
53
+ React.createElement(Select, { items: audiences, onSelect: (audience) => send({ type: "Choose Audience", audience }) })))),
54
+ snapshot.matches("Creating connection definition") && (React.createElement(Box, { flexDirection: "column" },
55
+ React.createElement(Box, null,
56
+ React.createElement(Text, null, "Creating connection definition..."),
57
+ React.createElement(Text, { color: "green" },
58
+ React.createElement(Spinner, { type: "dots" }))))),
59
+ snapshot.matches("Success") && (React.createElement(Box, { flexDirection: "column" },
60
+ React.createElement(Box, null,
61
+ React.createElement(Text, { color: "green" }, "SUCCESS!! \uD83C\uDF89 Your connection has been created.")))),
62
+ snapshot.matches("Error") && (React.createElement(Box, { flexDirection: "column" },
63
+ React.createElement(Box, null,
64
+ React.createElement(Text, { color: "red" }, snapshot.context.error))))));
65
+ }
66
+ //# sourceMappingURL=add.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add.js","sourceRoot":"","sources":["../../../src/commands/connection/add.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,U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ACA,QAAQ,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,CACrC,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ;YACvB,oBAAC,GAAG;gBACA,oBAAC,IAAI,mDAAgD,CACnD;YACN,oBAAC,GAAG;gBACA,oBAAC,MAAM,IACH,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAC,CAAC,GACnE,CACA,CACJ,CACT;QACA,QAAQ,CAAC,OAAO,CAAC,gCAAgC,CAAC,IAAI,CACnD,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ;YACvB,oBAAC,GAAG;gBACA,oBAAC,IAAI,4CAAyC;gBAC9C,oBAAC,IAAI,IAAC,KAAK,EAAC,OAAO;oBACf,oBAAC,OAAO,IAAC,IAAI,EAAC,MAAM,GAAG,CACpB,CACL,CACJ,CACT;QACA,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAC5B,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ;YACvB,oBAAC,GAAG;gBACA,oBAAC,IAAI,IAAC,KAAK,EAAC,OAAO,+DAAsD,CACvE,CACJ,CACT;QACA,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAC1B,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ;YACvB,oBAAC,GAAG;gBACA,oBAAC,IAAI,IAAC,KAAK,EAAC,KAAK,IAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAQ,CAC/C,CACJ,CACT,CACC,CACT,CAAA;AACL,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const description = "Manage app connections";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/connection/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,2BAA2B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export const description = "Manage app connections";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/connection/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,wBAAwB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { z } from "zod";
3
+ export declare const description = "Remove a connection from your Attio app";
4
+ export declare const options: z.ZodObject<{
5
+ dev: z.ZodDefault<z.ZodBoolean>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ dev: boolean;
8
+ }, {
9
+ dev?: boolean | undefined;
10
+ }>;
11
+ interface Props {
12
+ options: z.infer<typeof options>;
13
+ }
14
+ export default function RemoveConnection({ options: { dev } }: Props): React.JSX.Element;
15
+ export {};
16
+ //# sourceMappingURL=remove.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../src/commands/connection/remove.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAMrB,eAAO,MAAM,WAAW,4CAA4C,CAAA;AACpE,eAAO,MAAM,OAAO;;;;;;EAKlB,CAAA;AAEF,UAAU,KAAK;IACX,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAA;CACnC;AAID,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EAAC,OAAO,EAAE,EAAC,GAAG,EAAC,EAAC,EAAE,KAAK,qBAyD/D"}
@@ -0,0 +1,42 @@
1
+ import { useMachine } from "@xstate/react";
2
+ import { Box, Text } from "ink";
3
+ import Spinner from "ink-spinner";
4
+ import { option } from "pastel";
5
+ import React from "react";
6
+ import { z } from "zod";
7
+ import { InitialInstructions } from "../../components/InitialInstructions.js";
8
+ import { Logo } from "../../components/Logo.js";
9
+ import { removeConnectionMachine } from "../../machines/remove-connection-machine.js";
10
+ export const description = "Remove a connection from your Attio app";
11
+ export const options = z.object({
12
+ dev: z
13
+ .boolean()
14
+ .default(false)
15
+ .describe(option({ description: "Run in development mode (additional debugging info)" })),
16
+ });
17
+ export default function RemoveConnection({ options: { dev } }) {
18
+ const [snapshot] = useMachine(removeConnectionMachine);
19
+ return (React.createElement(Box, { flexDirection: "column" },
20
+ dev && (React.createElement(Box, null,
21
+ React.createElement(Text, null, JSON.stringify(snapshot.value, null, 2)))),
22
+ React.createElement(Logo, null),
23
+ snapshot.matches("Show config instructions") && (React.createElement(InitialInstructions, { reason: snapshot.context.configError })),
24
+ snapshot.matches("No connection to remove") && (React.createElement(Box, { flexDirection: "column" },
25
+ React.createElement(Box, null,
26
+ React.createElement(Text, { color: "redBright" }, "This app has no connections to remove."),
27
+ React.createElement(Text, null, " To add one, use:")),
28
+ React.createElement(Box, { flexDirection: "column", borderStyle: "round", width: 27, paddingX: 1, marginBottom: 1 },
29
+ React.createElement(Text, null, "attio connection add")))),
30
+ snapshot.matches("Removing connection definition") && (React.createElement(Box, { flexDirection: "column" },
31
+ React.createElement(Box, null,
32
+ React.createElement(Text, null, "Removing connection definition..."),
33
+ React.createElement(Text, { color: "green" },
34
+ React.createElement(Spinner, { type: "dots" }))))),
35
+ snapshot.matches("Success") && (React.createElement(Box, { flexDirection: "column" },
36
+ React.createElement(Box, null,
37
+ React.createElement(Text, { color: "green" }, "SUCCESS!! \uD83C\uDF89 Your connection has been removed.")))),
38
+ snapshot.matches("Error") && (React.createElement(Box, { flexDirection: "column" },
39
+ React.createElement(Box, null,
40
+ React.createElement(Text, { color: "red" }, snapshot.context.error))))));
41
+ }
42
+ //# sourceMappingURL=remove.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove.js","sourceRoot":"","sources":["../../../src/commands/connection/remove.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,GAAG,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AC,GAAG,IAAC,aAAa,EAAC,QAAQ;YACvB,oBAAC,GAAG;gBACA,oBAAC,IAAI,IAAC,KAAK,EAAC,WAAW,6CAA8C;gBACrE,oBAAC,IAAI,4BAAyB,CAC5B;YACN,oBAAC,GAAG,IACA,aAAa,EAAC,QAAQ,EACtB,WAAW,EAAC,OAAO,EACnB,KAAK,EAAE,EAAE,EACT,QAAQ,EAAE,CAAC,EACX,YAAY,EAAE,CAAC;gBAEf,oBAAC,IAAI,+BAA4B,CAC/B,CACJ,CACT;QACA,QAAQ,CAAC,OAAO,CAAC,gCAAgC,CAAC,IAAI,CACnD,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ;YACvB,oBAAC,GAAG;gBACA,oBAAC,IAAI,4CAAyC;gBAC9C,oBAAC,IAAI,IAAC,KAAK,EAAC,OAAO;oBACf,oBAAC,OAAO,IAAC,IAAI,EAAC,MAAM,GAAG,CACpB,CACL,CACJ,CACT;QACA,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAC5B,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ;YACvB,oBAAC,GAAG;gBACA,oBAAC,IAAI,IAAC,KAAK,EAAC,OAAO,+DAAsD,CACvE,CACJ,CACT;QACA,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAC1B,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ;YACvB,oBAAC,GAAG;gBACA,oBAAC,IAAI,IAAC,KAAK,EAAC,KAAK,IAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAQ,CAC/C,CACJ,CACT,CACC,CACT,CAAA;AACL,CAAC"}
@@ -0,0 +1,159 @@
1
+ import { InitialConfigError } from "../util/load-config.js";
2
+ export declare const connectionTypes: readonly [{
3
+ readonly value: "secret";
4
+ readonly label: "Secret";
5
+ }];
6
+ export declare const audiences: readonly [{
7
+ readonly value: "workspace";
8
+ readonly label: "Workspace";
9
+ }, {
10
+ readonly value: "workspace-member";
11
+ readonly label: "Workspace Member";
12
+ }];
13
+ export type ConnectionType = (typeof connectionTypes)[number]["value"];
14
+ export type Audience = (typeof audiences)[number]["value"];
15
+ interface Context {
16
+ error?: string;
17
+ configError?: InitialConfigError;
18
+ audience?: Audience;
19
+ haveConnection: boolean;
20
+ connectionType?: ConnectionType;
21
+ developer: {
22
+ slug: string;
23
+ token: string;
24
+ };
25
+ connectionDefinitionId?: string;
26
+ appId: string;
27
+ }
28
+ type Event = {
29
+ type: "App Config Loaded";
30
+ appId: string;
31
+ haveConnection: boolean;
32
+ } | {
33
+ type: "Choose Audience";
34
+ audience: Audience;
35
+ } | {
36
+ type: "Choose Connection Type";
37
+ connectionType: ConnectionType;
38
+ } | {
39
+ type: "Developer Config Loaded";
40
+ token: string;
41
+ slug: string;
42
+ } | {
43
+ type: "No Developer Config";
44
+ configError: InitialConfigError;
45
+ } | {
46
+ type: "Error";
47
+ error: string;
48
+ } | {
49
+ type: "Submit";
50
+ } | {
51
+ type: "Success";
52
+ };
53
+ export declare const addConnectionMachine: import("xstate").StateMachine<Context, {
54
+ type: "App Config Loaded";
55
+ appId: string;
56
+ haveConnection: boolean;
57
+ } | {
58
+ type: "Choose Audience";
59
+ audience: Audience;
60
+ } | {
61
+ type: "Choose Connection Type";
62
+ connectionType: ConnectionType;
63
+ } | {
64
+ type: "Developer Config Loaded";
65
+ token: string;
66
+ slug: string;
67
+ } | {
68
+ type: "No Developer Config";
69
+ configError: InitialConfigError;
70
+ } | {
71
+ type: "Error";
72
+ error: string;
73
+ } | {
74
+ type: "Submit";
75
+ } | {
76
+ type: "Success";
77
+ }, {
78
+ [x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<Required<Pick<Context, "audience" | "appId" | "connectionType" | "developer">>>, Event, import("xstate").EventObject> | undefined;
79
+ }, import("xstate").Values<{
80
+ createConnectionDefinition: {
81
+ src: "createConnectionDefinition";
82
+ logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "audience" | "appId" | "connectionType" | "developer">>, import("xstate").EventObject>;
83
+ id: string | undefined;
84
+ };
85
+ loadDeveloperConfig: {
86
+ src: "loadDeveloperConfig";
87
+ logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
88
+ id: string | undefined;
89
+ };
90
+ loadAppConfig: {
91
+ src: "loadAppConfig";
92
+ logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
93
+ id: string | undefined;
94
+ };
95
+ }>, import("xstate").Values<{
96
+ clearError: {
97
+ type: "clearError";
98
+ params: import("xstate").NonReducibleUnknown;
99
+ };
100
+ setError: {
101
+ type: "setError";
102
+ params: {
103
+ error: string;
104
+ };
105
+ };
106
+ setConfigError: {
107
+ type: "setConfigError";
108
+ params: {
109
+ configError: InitialConfigError;
110
+ };
111
+ };
112
+ setAudience: {
113
+ type: "setAudience";
114
+ params: {
115
+ audience: Audience;
116
+ };
117
+ };
118
+ setConnectionType: {
119
+ type: "setConnectionType";
120
+ params: {
121
+ connectionType: ConnectionType;
122
+ };
123
+ };
124
+ setDeveloperConfig: {
125
+ type: "setDeveloperConfig";
126
+ params: {
127
+ token: string;
128
+ slug: string;
129
+ };
130
+ };
131
+ setAppConfig: {
132
+ type: "setAppConfig";
133
+ params: {
134
+ appId: string;
135
+ haveConnection: boolean;
136
+ };
137
+ };
138
+ }>, import("xstate").Values<{
139
+ "already have a connection": {
140
+ type: "already have a connection";
141
+ params: {
142
+ haveConnection: boolean;
143
+ };
144
+ };
145
+ "have audience": {
146
+ type: "have audience";
147
+ params: {
148
+ audience?: "workspace" | "workspace-member" | undefined;
149
+ };
150
+ };
151
+ "have connection type": {
152
+ type: "have connection type";
153
+ params: {
154
+ connectionType?: "secret" | undefined;
155
+ };
156
+ };
157
+ }>, never, "Success" | "Error" | "Show config instructions" | "Loading Developer Config" | "Loading App Config" | "Do we already have a connection?" | "Do we need a connection type?" | "Do we need audience?" | "Ask for connection type" | "Creating connection definition" | "Ask for audience" | "Already have a connection", string, Pick<Context, "audience" | "connectionType">, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject>;
158
+ export {};
159
+ //# sourceMappingURL=add-connection-machine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-connection-machine.d.ts","sourceRoot":"","sources":["../../src/machines/add-connection-machine.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,kBAAkB,EAAa,MAAM,wBAAwB,CAAA;AAErE,eAAO,MAAM,eAAe;;;EAGlB,CAAA;AACV,eAAO,MAAM,SAAS;;;;;;EAGZ,CAAA;AACV,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AACtE,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAE1D,UAAU,OAAO;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,kBAAkB,CAAA;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,cAAc,EAAE,OAAO,CAAA;IACvB,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,SAAS,EAAE;QACP,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,KAAK,KAAK,GACJ;IAAC,IAAI,EAAE,mBAAmB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,OAAO,CAAA;CAAC,GACnE;IAAC,IAAI,EAAE,iBAAiB,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAC,GAC7C;IAAC,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