@flowcore/sdk 1.59.0 → 1.60.1

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 (50) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/esm/commands/index.d.ts +5 -0
  3. package/esm/commands/index.d.ts.map +1 -1
  4. package/esm/commands/index.js +6 -0
  5. package/esm/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.d.ts +32 -0
  6. package/esm/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.d.ts.map +1 -0
  7. package/esm/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.js +50 -0
  8. package/esm/commands/legacy-scenario/legacy-scenario-adapter.restart.d.ts +43 -0
  9. package/esm/commands/legacy-scenario/legacy-scenario-adapter.restart.d.ts.map +1 -0
  10. package/esm/commands/legacy-scenario/legacy-scenario-adapter.restart.js +50 -0
  11. package/esm/commands/legacy-scenario/legacy-scenario.delete.d.ts +35 -0
  12. package/esm/commands/legacy-scenario/legacy-scenario.delete.d.ts.map +1 -0
  13. package/esm/commands/legacy-scenario/legacy-scenario.delete.js +45 -0
  14. package/esm/commands/legacy-scenario/legacy-scenario.fetch.d.ts +23 -0
  15. package/esm/commands/legacy-scenario/legacy-scenario.fetch.d.ts.map +1 -0
  16. package/esm/commands/legacy-scenario/legacy-scenario.fetch.js +57 -0
  17. package/esm/commands/legacy-scenario/legacy-scenario.list.d.ts +32 -0
  18. package/esm/commands/legacy-scenario/legacy-scenario.list.d.ts.map +1 -0
  19. package/esm/commands/legacy-scenario/legacy-scenario.list.js +59 -0
  20. package/esm/contracts/index.d.ts +2 -0
  21. package/esm/contracts/index.d.ts.map +1 -1
  22. package/esm/contracts/index.js +1 -0
  23. package/esm/contracts/legacy-scenario.d.ts +108 -0
  24. package/esm/contracts/legacy-scenario.d.ts.map +1 -0
  25. package/esm/contracts/legacy-scenario.js +111 -0
  26. package/package.json +1 -1
  27. package/script/commands/index.d.ts +5 -0
  28. package/script/commands/index.d.ts.map +1 -1
  29. package/script/commands/index.js +6 -0
  30. package/script/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.d.ts +32 -0
  31. package/script/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.d.ts.map +1 -0
  32. package/script/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.js +54 -0
  33. package/script/commands/legacy-scenario/legacy-scenario-adapter.restart.d.ts +43 -0
  34. package/script/commands/legacy-scenario/legacy-scenario-adapter.restart.d.ts.map +1 -0
  35. package/script/commands/legacy-scenario/legacy-scenario-adapter.restart.js +54 -0
  36. package/script/commands/legacy-scenario/legacy-scenario.delete.d.ts +35 -0
  37. package/script/commands/legacy-scenario/legacy-scenario.delete.d.ts.map +1 -0
  38. package/script/commands/legacy-scenario/legacy-scenario.delete.js +49 -0
  39. package/script/commands/legacy-scenario/legacy-scenario.fetch.d.ts +23 -0
  40. package/script/commands/legacy-scenario/legacy-scenario.fetch.d.ts.map +1 -0
  41. package/script/commands/legacy-scenario/legacy-scenario.fetch.js +61 -0
  42. package/script/commands/legacy-scenario/legacy-scenario.list.d.ts +32 -0
  43. package/script/commands/legacy-scenario/legacy-scenario.list.d.ts.map +1 -0
  44. package/script/commands/legacy-scenario/legacy-scenario.list.js +63 -0
  45. package/script/contracts/index.d.ts +2 -0
  46. package/script/contracts/index.d.ts.map +1 -1
  47. package/script/contracts/index.js +5 -0
  48. package/script/contracts/legacy-scenario.d.ts +108 -0
  49. package/script/contracts/legacy-scenario.d.ts.map +1 -0
  50. package/script/contracts/legacy-scenario.js +114 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.60.1](https://github.com/flowcore-io/flowcore-sdk/compare/v1.60.0...v1.60.1) (2025-12-03)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * adapter state kubernetes output type ([d079a56](https://github.com/flowcore-io/flowcore-sdk/commit/d079a56cdc426b5d1e1eb4dc85d10a3464e29b74))
9
+ * deno fmt ([589c6e4](https://github.com/flowcore-io/flowcore-sdk/commit/589c6e440471c02c89a5bb7201596fae75eeaea5))
10
+ * update kubernetes status in LegacyScenarioAdapterState from RUNNING to READY ([3e9e773](https://github.com/flowcore-io/flowcore-sdk/commit/3e9e7735f4ff942d3cee25caae4e002f6e4b576b))
11
+
12
+ ## [1.60.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.59.0...v1.60.0) (2025-12-02)
13
+
14
+
15
+ ### Features
16
+
17
+ * add @std/testing dependency and update import path in legacy scenario tests ([5991e5d](https://github.com/flowcore-io/flowcore-sdk/commit/5991e5d36a2a73bad8de54c26d955d3537e72ed2))
18
+ * add legacy scenario commands and types for GraphQL integration ([c03e021](https://github.com/flowcore-io/flowcore-sdk/commit/c03e021baf08cdbb948046d01850341658878ddc))
19
+ * add legacy scenario commands and types for GraphQL integration ([eae8304](https://github.com/flowcore-io/flowcore-sdk/commit/eae8304ffaf42db4eb50a9fdc4c6e9b64d5c47e5))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * correct typo in LegacyScenarioDeploymentState and add reminder to update type ([7db0f4b](https://github.com/flowcore-io/flowcore-sdk/commit/7db0f4b6025f6f1f7c5e88a25e3a920209069b96))
25
+ * deno fmt ([ca8fed8](https://github.com/flowcore-io/flowcore-sdk/commit/ca8fed80f01383963dd17874585abd92ac1845ff))
26
+
3
27
  ## [1.59.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.58.2...v1.59.0) (2025-07-24)
4
28
 
5
29
 
@@ -63,6 +63,11 @@ export * from "./scenario/scenario.delete.js";
63
63
  export * from "./scenario/scenario.fetch.js";
64
64
  export * from "./scenario/scenario.list.js";
65
65
  export * from "./scenario/scenario.update.js";
66
+ export * from "./legacy-scenario/legacy-scenario.delete.js";
67
+ export * from "./legacy-scenario/legacy-scenario.fetch.js";
68
+ export * from "./legacy-scenario/legacy-scenario.list.js";
69
+ export * from "./legacy-scenario/legacy-scenario-adapter.fetch-state.js";
70
+ export * from "./legacy-scenario/legacy-scenario-adapter.restart.js";
66
71
  export * from "./iam/permissions/get-user-permissions.js";
67
72
  export * from "./iam/policies/create-policy.js";
68
73
  export * from "./iam/policies/get-policy.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,cAAc,2CAA2C,CAAA;AACzD,cAAc,0CAA0C,CAAA;AACxD,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,yCAAyC,CAAA;AAGvD,cAAc,4BAA4B,CAAA;AAG1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AACzC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AAGzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yBAAyB,CAAA;AAGvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAG3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,mCAAmC,CAAA;AACjD,cAAc,mCAAmC,CAAA;AACjD,cAAc,kCAAkC,CAAA;AAChD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,wDAAwD,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AAC5C,cAAc,qCAAqC,CAAA;AACnD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,oCAAoC,CAAA;AAElD,cAAc,+CAA+C,CAAA;AAC7D,cAAc,wDAAwD,CAAA;AACtE,cAAc,sDAAsD,CAAA;AACpE,cAAc,gDAAgD,CAAA;AAC9D,cAAc,gDAAgD,CAAA;AAC9D,cAAc,8CAA8C,CAAA;AAC5D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,gDAAgD,CAAA;AAC9D,cAAc,iDAAiD,CAAA;AAC/D,cAAc,iDAAiD,CAAA;AAE/D,cAAc,0CAA0C,CAAA;AACxD,cAAc,mDAAmD,CAAA;AACjE,cAAc,kDAAkD,CAAA;AAChE,cAAc,2CAA2C,CAAA;AACzD,cAAc,0CAA0C,CAAA;AACxD,cAAc,2CAA2C,CAAA;AACzD,cAAc,4CAA4C,CAAA;AAC1D,cAAc,6CAA6C,CAAA;AAE3D,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAE7C,cAAc,gDAAgD,CAAA;AAE9D,cAAc,gCAAgC,CAAA;AAC9C,cAAc,iCAAiC,CAAA"}
@@ -76,6 +76,12 @@ export * from "./scenario/scenario.delete.js";
76
76
  export * from "./scenario/scenario.fetch.js";
77
77
  export * from "./scenario/scenario.list.js";
78
78
  export * from "./scenario/scenario.update.js";
79
+ // Legacy Scenario (GraphQL-based)
80
+ export * from "./legacy-scenario/legacy-scenario.delete.js";
81
+ export * from "./legacy-scenario/legacy-scenario.fetch.js";
82
+ export * from "./legacy-scenario/legacy-scenario.list.js";
83
+ export * from "./legacy-scenario/legacy-scenario-adapter.fetch-state.js";
84
+ export * from "./legacy-scenario/legacy-scenario-adapter.restart.js";
79
85
  // Identity and Access Management
80
86
  export * from "./iam/permissions/get-user-permissions.js";
81
87
  export * from "./iam/policies/create-policy.js";
@@ -0,0 +1,32 @@
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
+ import { type LegacyScenarioAdapterState } from "../../contracts/legacy-scenario.js";
3
+ /**
4
+ * The input for fetching legacy scenario adapter state
5
+ */
6
+ export interface LegacyScenarioAdapterFetchStateInput {
7
+ /** The adapter ID */
8
+ adapterId: string;
9
+ /** The organization ID */
10
+ organizationId: string;
11
+ }
12
+ /**
13
+ * The output for fetching legacy scenario adapter state
14
+ */
15
+ export interface LegacyScenarioAdapterFetchStateOutput {
16
+ /** The adapter state */
17
+ state: LegacyScenarioAdapterState;
18
+ }
19
+ /**
20
+ * Fetch the deployment state of a legacy scenario adapter
21
+ */
22
+ export declare class LegacyScenarioAdapterFetchStateCommand extends GraphQlCommand<LegacyScenarioAdapterFetchStateInput, LegacyScenarioAdapterFetchStateOutput> {
23
+ /**
24
+ * Get the body for the request
25
+ */
26
+ protected getBody(): Record<string, unknown>;
27
+ /**
28
+ * Parse the response
29
+ */
30
+ protected parseResponse(rawResponse: unknown): LegacyScenarioAdapterFetchStateOutput;
31
+ }
32
+ //# sourceMappingURL=legacy-scenario-adapter.fetch-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy-scenario-adapter.fetch-state.d.ts","sourceRoot":"","sources":["../../../src/commands/legacy-scenario/legacy-scenario-adapter.fetch-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,KAAK,0BAA0B,EAAoC,MAAM,oCAAoC,CAAA;AAKtH;;GAEG;AACH,MAAM,WAAW,oCAAoC;IACnD,qBAAqB;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,0BAA0B;IAC1B,cAAc,EAAE,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACpD,wBAAwB;IACxB,KAAK,EAAE,0BAA0B,CAAA;CAClC;AAcD;;GAEG;AACH,qBAAa,sCAAuC,SAAQ,cAAc,CACxE,oCAAoC,EACpC,qCAAqC,CACtC;IACC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAUrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,qCAAqC;CA4B9F"}
@@ -0,0 +1,50 @@
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
+ import { LegacyScenarioAdapterStateSchema } from "../../contracts/legacy-scenario.js";
3
+ import { InvalidResponseException } from "../../exceptions/invalid-response.js";
4
+ import { NotFoundException } from "../../exceptions/not-found.js";
5
+ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
6
+ const QUERY = `
7
+ query GetAdapterDeploymentState($adapterId: ID!, $organizationId: ID!) {
8
+ adapter(search: { id: $adapterId, organizationId: $organizationId }) {
9
+ state {
10
+ kubernetes {
11
+ status
12
+ }
13
+ }
14
+ }
15
+ }
16
+ `;
17
+ /**
18
+ * Fetch the deployment state of a legacy scenario adapter
19
+ */
20
+ export class LegacyScenarioAdapterFetchStateCommand extends GraphQlCommand {
21
+ /**
22
+ * Get the body for the request
23
+ */
24
+ getBody() {
25
+ return {
26
+ query: QUERY,
27
+ variables: {
28
+ adapterId: this.input.adapterId,
29
+ organizationId: this.input.organizationId,
30
+ },
31
+ };
32
+ }
33
+ /**
34
+ * Parse the response
35
+ */
36
+ parseResponse(rawResponse) {
37
+ const response = rawResponse;
38
+ if (response.errors && response.errors.length > 0) {
39
+ throw new InvalidResponseException(response.errors.map((e) => e.message).join(", "), { graphql: response.errors.map((e) => e.message).join(", ") });
40
+ }
41
+ if (!response.data?.adapter) {
42
+ throw new NotFoundException("Legacy Scenario Adapter", {
43
+ id: this.input.adapterId,
44
+ organizationId: this.input.organizationId,
45
+ });
46
+ }
47
+ const state = parseResponseHelper(LegacyScenarioAdapterStateSchema, response.data.adapter.state);
48
+ return { state };
49
+ }
50
+ }
@@ -0,0 +1,43 @@
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
+ /**
3
+ * The input for restarting a legacy scenario adapter
4
+ */
5
+ export interface LegacyScenarioAdapterRestartInput {
6
+ /** The adapter ID */
7
+ adapterId: string;
8
+ /**
9
+ * The event ID to restart from.
10
+ * This should be a UUID v1 generated from the restart timestamp (milliseconds).
11
+ */
12
+ afterEventId: string;
13
+ /**
14
+ * The time bucket to restart from.
15
+ * Format: YYYYMMDDHHmm (year, month, day, hour, minute)
16
+ */
17
+ timeBucket: string;
18
+ }
19
+ /**
20
+ * The output for restarting a legacy scenario adapter
21
+ */
22
+ export interface LegacyScenarioAdapterRestartOutput {
23
+ /** Whether the restart was initiated successfully */
24
+ success: boolean;
25
+ }
26
+ /**
27
+ * Restart a legacy scenario adapter from a specific point in time
28
+ */
29
+ export declare class LegacyScenarioAdapterRestartCommand extends GraphQlCommand<LegacyScenarioAdapterRestartInput, LegacyScenarioAdapterRestartOutput> {
30
+ /**
31
+ * Whether the command should retry on failure
32
+ */
33
+ protected retryOnFailure: boolean;
34
+ /**
35
+ * Get the body for the request
36
+ */
37
+ protected getBody(): Record<string, unknown>;
38
+ /**
39
+ * Parse the response
40
+ */
41
+ protected parseResponse(rawResponse: unknown): LegacyScenarioAdapterRestartOutput;
42
+ }
43
+ //# sourceMappingURL=legacy-scenario-adapter.restart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy-scenario-adapter.restart.d.ts","sourceRoot":"","sources":["../../../src/commands/legacy-scenario/legacy-scenario-adapter.restart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAGhE;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,qBAAqB;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,kCAAkC;IACjD,qDAAqD;IACrD,OAAO,EAAE,OAAO,CAAA;CACjB;AAcD;;GAEG;AACH,qBAAa,mCAAoC,SAAQ,cAAc,CACrE,iCAAiC,EACjC,kCAAkC,CACnC;IACC;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAWrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,kCAAkC;CAyB3F"}
@@ -0,0 +1,50 @@
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
+ import { InvalidResponseException } from "../../exceptions/invalid-response.js";
3
+ const MUTATION = `
4
+ mutation RestartAdapter(
5
+ $adapterId: ID!
6
+ $afterEventId: String!
7
+ $timeBucket: String!
8
+ ) {
9
+ adapter(id: $adapterId) {
10
+ reset(input: { afterEventId: $afterEventId, timeBucket: $timeBucket })
11
+ }
12
+ }
13
+ `;
14
+ /**
15
+ * Restart a legacy scenario adapter from a specific point in time
16
+ */
17
+ export class LegacyScenarioAdapterRestartCommand extends GraphQlCommand {
18
+ /**
19
+ * Whether the command should retry on failure
20
+ */
21
+ retryOnFailure = false;
22
+ /**
23
+ * Get the body for the request
24
+ */
25
+ getBody() {
26
+ return {
27
+ query: MUTATION,
28
+ variables: {
29
+ adapterId: this.input.adapterId,
30
+ afterEventId: this.input.afterEventId,
31
+ timeBucket: this.input.timeBucket,
32
+ },
33
+ };
34
+ }
35
+ /**
36
+ * Parse the response
37
+ */
38
+ parseResponse(rawResponse) {
39
+ const response = rawResponse;
40
+ if (response.errors && response.errors.length > 0) {
41
+ throw new InvalidResponseException(response.errors.map((e) => e.message).join(", "), { graphql: response.errors.map((e) => e.message).join(", ") });
42
+ }
43
+ if (response.data?.adapter?.reset === undefined) {
44
+ throw new InvalidResponseException("Invalid response from restart adapter mutation", {});
45
+ }
46
+ return {
47
+ success: response.data.adapter.reset ?? false,
48
+ };
49
+ }
50
+ }
@@ -0,0 +1,35 @@
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
+ /**
3
+ * The input for the legacy scenario delete command
4
+ */
5
+ export interface LegacyScenarioDeleteInput {
6
+ /** The organization ID */
7
+ organizationId: string;
8
+ /** The scenario ID */
9
+ scenarioId: string;
10
+ }
11
+ /**
12
+ * The output for the legacy scenario delete command
13
+ */
14
+ export interface LegacyScenarioDeleteOutput {
15
+ /** Whether the deletion was successful */
16
+ success: boolean;
17
+ }
18
+ /**
19
+ * Delete a legacy scenario
20
+ */
21
+ export declare class LegacyScenarioDeleteCommand extends GraphQlCommand<LegacyScenarioDeleteInput, LegacyScenarioDeleteOutput> {
22
+ /**
23
+ * Whether the command should retry on failure
24
+ */
25
+ protected retryOnFailure: boolean;
26
+ /**
27
+ * Get the body for the request
28
+ */
29
+ protected getBody(): Record<string, unknown>;
30
+ /**
31
+ * Parse the response
32
+ */
33
+ protected parseResponse(rawResponse: unknown): LegacyScenarioDeleteOutput;
34
+ }
35
+ //# sourceMappingURL=legacy-scenario.delete.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy-scenario.delete.d.ts","sourceRoot":"","sources":["../../../src/commands/legacy-scenario/legacy-scenario.delete.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAGhE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,0BAA0B;IAC1B,cAAc,EAAE,MAAM,CAAA;IACtB,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,0CAA0C;IAC1C,OAAO,EAAE,OAAO,CAAA;CACjB;AAUD;;GAEG;AACH,qBAAa,2BAA4B,SAAQ,cAAc,CAAC,yBAAyB,EAAE,0BAA0B,CAAC;IACpH;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAUrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,0BAA0B;CAyBnF"}
@@ -0,0 +1,45 @@
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
+ import { InvalidResponseException } from "../../exceptions/invalid-response.js";
3
+ const MUTATION = `
4
+ mutation DeleteScenario($organizationId: ID!, $scenarioId: ID!) {
5
+ organization(id: $organizationId) {
6
+ deleteScenario(scenarioId: $scenarioId)
7
+ }
8
+ }
9
+ `;
10
+ /**
11
+ * Delete a legacy scenario
12
+ */
13
+ export class LegacyScenarioDeleteCommand extends GraphQlCommand {
14
+ /**
15
+ * Whether the command should retry on failure
16
+ */
17
+ retryOnFailure = false;
18
+ /**
19
+ * Get the body for the request
20
+ */
21
+ getBody() {
22
+ return {
23
+ query: MUTATION,
24
+ variables: {
25
+ organizationId: this.input.organizationId,
26
+ scenarioId: this.input.scenarioId,
27
+ },
28
+ };
29
+ }
30
+ /**
31
+ * Parse the response
32
+ */
33
+ parseResponse(rawResponse) {
34
+ const response = rawResponse;
35
+ if (response.errors && response.errors.length > 0) {
36
+ throw new InvalidResponseException(response.errors.map((e) => e.message).join(", "), { graphql: response.errors.map((e) => e.message).join(", ") });
37
+ }
38
+ if (response.data?.organization?.deleteScenario === undefined) {
39
+ throw new InvalidResponseException("Invalid response from delete scenario mutation", {});
40
+ }
41
+ return {
42
+ success: response.data.organization.deleteScenario,
43
+ };
44
+ }
45
+ }
@@ -0,0 +1,23 @@
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
+ import { type LegacyScenario } from "../../contracts/legacy-scenario.js";
3
+ /**
4
+ * The input for the legacy scenario fetch command
5
+ */
6
+ export interface LegacyScenarioFetchInput {
7
+ /** The scenario ID */
8
+ scenarioId: string;
9
+ }
10
+ /**
11
+ * Fetch a legacy scenario by ID
12
+ */
13
+ export declare class LegacyScenarioFetchCommand extends GraphQlCommand<LegacyScenarioFetchInput, LegacyScenario> {
14
+ /**
15
+ * Get the body for the request
16
+ */
17
+ protected getBody(): Record<string, unknown>;
18
+ /**
19
+ * Parse the response
20
+ */
21
+ protected parseResponse(rawResponse: unknown): LegacyScenario;
22
+ }
23
+ //# sourceMappingURL=legacy-scenario.fetch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy-scenario.fetch.d.ts","sourceRoot":"","sources":["../../../src/commands/legacy-scenario/legacy-scenario.fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,KAAK,cAAc,EAAwB,MAAM,oCAAoC,CAAA;AAK9F;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,sBAAsB;IACtB,UAAU,EAAE,MAAM,CAAA;CACnB;AA0BD;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,cAAc,CAAC,wBAAwB,EAAE,cAAc,CAAC;IACtG;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IASrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,cAAc;CAqBvE"}
@@ -0,0 +1,57 @@
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
+ import { LegacyScenarioSchema } from "../../contracts/legacy-scenario.js";
3
+ import { InvalidResponseException } from "../../exceptions/invalid-response.js";
4
+ import { NotFoundException } from "../../exceptions/not-found.js";
5
+ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
6
+ const QUERY = `
7
+ query GetScenarioById($scenarioId: ID!) {
8
+ scenario(id: $scenarioId) {
9
+ id
10
+ name
11
+ description
12
+ flowcoreUserId
13
+ organizationId
14
+ deploymentState
15
+ createdAt
16
+ updatedAt
17
+ nodes {
18
+ id
19
+ type
20
+ name
21
+ description
22
+ data
23
+ parents
24
+ children
25
+ }
26
+ }
27
+ }
28
+ `;
29
+ /**
30
+ * Fetch a legacy scenario by ID
31
+ */
32
+ export class LegacyScenarioFetchCommand extends GraphQlCommand {
33
+ /**
34
+ * Get the body for the request
35
+ */
36
+ getBody() {
37
+ return {
38
+ query: QUERY,
39
+ variables: {
40
+ scenarioId: this.input.scenarioId,
41
+ },
42
+ };
43
+ }
44
+ /**
45
+ * Parse the response
46
+ */
47
+ parseResponse(rawResponse) {
48
+ const response = rawResponse;
49
+ if (response.errors && response.errors.length > 0) {
50
+ throw new InvalidResponseException(response.errors.map((e) => e.message).join(", "), { graphql: response.errors.map((e) => e.message).join(", ") });
51
+ }
52
+ if (!response.data?.scenario) {
53
+ throw new NotFoundException("Legacy Scenario", { id: this.input.scenarioId });
54
+ }
55
+ return parseResponseHelper(LegacyScenarioSchema, response.data.scenario);
56
+ }
57
+ }
@@ -0,0 +1,32 @@
1
+ import { GraphQlCommand } from "../../common/command-graphql.js";
2
+ import { type LegacyScenarioListItem } from "../../contracts/legacy-scenario.js";
3
+ /**
4
+ * The input for the legacy scenario list command
5
+ */
6
+ export interface LegacyScenarioListInput {
7
+ /** The organization ID */
8
+ organizationId: string;
9
+ }
10
+ /**
11
+ * The output for the legacy scenario list command
12
+ */
13
+ export interface LegacyScenarioListOutput {
14
+ /** The organization ID */
15
+ organizationId: string;
16
+ /** The scenarios in the organization */
17
+ scenarios: LegacyScenarioListItem[];
18
+ }
19
+ /**
20
+ * List all legacy scenarios in an organization
21
+ */
22
+ export declare class LegacyScenarioListCommand extends GraphQlCommand<LegacyScenarioListInput, LegacyScenarioListOutput> {
23
+ /**
24
+ * Get the body for the request
25
+ */
26
+ protected getBody(): Record<string, unknown>;
27
+ /**
28
+ * Parse the response
29
+ */
30
+ protected parseResponse(rawResponse: unknown): LegacyScenarioListOutput;
31
+ }
32
+ //# sourceMappingURL=legacy-scenario.list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy-scenario.list.d.ts","sourceRoot":"","sources":["../../../src/commands/legacy-scenario/legacy-scenario.list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAChE,OAAO,EAAE,KAAK,sBAAsB,EAAgC,MAAM,oCAAoC,CAAA;AAI9G;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,0BAA0B;IAC1B,cAAc,EAAE,MAAM,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,0BAA0B;IAC1B,cAAc,EAAE,MAAM,CAAA;IACtB,wCAAwC;IACxC,SAAS,EAAE,sBAAsB,EAAE,CAAA;CACpC;AAyBD;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,cAAc,CAAC,uBAAuB,EAAE,wBAAwB,CAAC;IAC9G;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IASrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,wBAAwB;CA6BjF"}
@@ -0,0 +1,59 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { GraphQlCommand } from "../../common/command-graphql.js";
3
+ import { LegacyScenarioListItemSchema } from "../../contracts/legacy-scenario.js";
4
+ import { InvalidResponseException } from "../../exceptions/invalid-response.js";
5
+ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
6
+ const LegacyScenarioListOutputSchema = Type.Object({
7
+ organizationId: Type.String(),
8
+ scenarios: Type.Array(LegacyScenarioListItemSchema),
9
+ });
10
+ const QUERY = `
11
+ query GetScenariosInOrganization($organizationId: ID!) {
12
+ organization(search: { id: $organizationId }) {
13
+ id
14
+ scenarios {
15
+ id
16
+ name
17
+ description
18
+ flowcoreUserId
19
+ deploymentState
20
+ createdAt
21
+ updatedAt
22
+ lastDeployed
23
+ }
24
+ }
25
+ }
26
+ `;
27
+ /**
28
+ * List all legacy scenarios in an organization
29
+ */
30
+ export class LegacyScenarioListCommand extends GraphQlCommand {
31
+ /**
32
+ * Get the body for the request
33
+ */
34
+ getBody() {
35
+ return {
36
+ query: QUERY,
37
+ variables: {
38
+ organizationId: this.input.organizationId,
39
+ },
40
+ };
41
+ }
42
+ /**
43
+ * Parse the response
44
+ */
45
+ parseResponse(rawResponse) {
46
+ const response = rawResponse;
47
+ if (response.errors && response.errors.length > 0) {
48
+ throw new InvalidResponseException(response.errors.map((e) => e.message).join(", "), { graphql: response.errors.map((e) => e.message).join(", ") });
49
+ }
50
+ if (!response.data?.organization) {
51
+ throw new InvalidResponseException("Organization not found in response", {});
52
+ }
53
+ const output = {
54
+ organizationId: response.data.organization.id,
55
+ scenarios: response.data.organization.scenarios ?? [],
56
+ };
57
+ return parseResponseHelper(LegacyScenarioListOutputSchema, output);
58
+ }
59
+ }
@@ -6,4 +6,6 @@ export type { FlowType } from "./flow-type.js";
6
6
  export type { FlowcoreEvent, IngestEventInput } from "./event.js";
7
7
  export type { Tenant } from "./tenant.js";
8
8
  export type { Permission } from "./permission.js";
9
+ export type { LegacyScenario, LegacyScenarioAdapterState, LegacyScenarioListItem, LegacyScenarioNode, } from "./legacy-scenario.js";
10
+ export { LegacyScenarioAdapterKubernetesStatus, LegacyScenarioDeploymentState, LegacyScenarioNodeType, } from "./legacy-scenario.js";
9
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA;AAChD,cAAc,2BAA2B,CAAA;AACzC,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,YAAY,EACV,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,gCAAgC,EAChC,sCAAsC,EACtC,gCAAgC,EAChC,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,iBAAiB,CAAA;AACxB,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AACjE,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAA;AAChD,cAAc,2BAA2B,CAAA;AACzC,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,YAAY,EACV,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,gCAAgC,EAChC,sCAAsC,EACtC,gCAAgC,EAChC,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,iBAAiB,CAAA;AACxB,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AACjE,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,YAAY,EACV,cAAc,EACd,0BAA0B,EAC1B,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,qCAAqC,EACrC,6BAA6B,EAC7B,sBAAsB,GACvB,MAAM,sBAAsB,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export * from "./ai-agent-coordinator-stream.js";
2
2
  export * from "./ai-agent-coordinator.js";
3
+ export { LegacyScenarioAdapterKubernetesStatus, LegacyScenarioDeploymentState, LegacyScenarioNodeType, } from "./legacy-scenario.js";
@@ -0,0 +1,108 @@
1
+ import { type Static, type TLiteral, type TObject, type TOptional, type TString, type TUnion, Type } from "@sinclair/typebox";
2
+ /**
3
+ * Deployment states for Legacy Scenarios
4
+ */
5
+ export declare const LegacyScenarioDeploymentState: {
6
+ readonly NOT_DEPLOYED: "NOT_DEPLOYED";
7
+ readonly DEPLOYED: "DEPLOYED";
8
+ readonly PARTIALLY_DEPLOYED: "PARTIALLY_DEPLOYED";
9
+ readonly DELETING: "DELETING";
10
+ };
11
+ type LegacyScenarioDeploymentStateTypeBox = TUnion<[
12
+ TLiteral<typeof LegacyScenarioDeploymentState.NOT_DEPLOYED>,
13
+ TLiteral<typeof LegacyScenarioDeploymentState.DEPLOYED>,
14
+ TLiteral<typeof LegacyScenarioDeploymentState.PARTIALLY_DEPLOYED>,
15
+ TLiteral<typeof LegacyScenarioDeploymentState.DELETING>
16
+ ]>;
17
+ export type LegacyScenarioDeploymentState = Static<LegacyScenarioDeploymentStateTypeBox>;
18
+ /**
19
+ * Kubernetes statuses for Legacy Scenario adapters
20
+ */
21
+ export declare const LegacyScenarioAdapterKubernetesStatus: {
22
+ readonly CREATED: "CREATED";
23
+ readonly UPDATED: "UPDATED";
24
+ readonly INITIALIZING: "INITIALIZING";
25
+ readonly READY: "READY";
26
+ readonly DELETED: "DELETED";
27
+ };
28
+ export type LegacyScenarioAdapterKubernetesStatusTypeBox = TUnion<[
29
+ TLiteral<typeof LegacyScenarioAdapterKubernetesStatus.CREATED>,
30
+ TLiteral<typeof LegacyScenarioAdapterKubernetesStatus.UPDATED>,
31
+ TLiteral<typeof LegacyScenarioAdapterKubernetesStatus.INITIALIZING>,
32
+ TLiteral<typeof LegacyScenarioAdapterKubernetesStatus.READY>,
33
+ TLiteral<typeof LegacyScenarioAdapterKubernetesStatus.DELETED>
34
+ ]>;
35
+ export type LegacyScenarioAdapterKubernetesStatus = Static<LegacyScenarioAdapterKubernetesStatusTypeBox>;
36
+ /**
37
+ * Node types in Legacy Scenarios
38
+ */
39
+ export declare const LegacyScenarioNodeType: {
40
+ readonly Adapter: "Adapter";
41
+ readonly DataCore: "DataCore";
42
+ };
43
+ export type LegacyScenarioNodeType = (typeof LegacyScenarioNodeType)[keyof typeof LegacyScenarioNodeType];
44
+ /**
45
+ * The schema for a Legacy Scenario node
46
+ */
47
+ export declare const LegacyScenarioNodeSchema: TObject<{
48
+ id: TString;
49
+ type: TString;
50
+ name: TString;
51
+ description: TOptional<TString>;
52
+ data: TOptional<TString>;
53
+ parents: ReturnType<typeof Type.Array<TString>>;
54
+ children: ReturnType<typeof Type.Array<TString>>;
55
+ }>;
56
+ /**
57
+ * The type for a Legacy Scenario node
58
+ */
59
+ export type LegacyScenarioNode = Static<typeof LegacyScenarioNodeSchema>;
60
+ /**
61
+ * The schema for a Legacy Scenario (list view)
62
+ */
63
+ export declare const LegacyScenarioListItemSchema: TObject<{
64
+ id: TString;
65
+ name: TString;
66
+ description: TOptional<TString>;
67
+ flowcoreUserId: TString;
68
+ deploymentState: LegacyScenarioDeploymentStateTypeBox;
69
+ createdAt: TString;
70
+ updatedAt: TString;
71
+ lastDeployed: TOptional<TString>;
72
+ }>;
73
+ /**
74
+ * The type for a Legacy Scenario list item
75
+ */
76
+ export type LegacyScenarioListItem = Static<typeof LegacyScenarioListItemSchema>;
77
+ /**
78
+ * The schema for a Legacy Scenario (full view with nodes)
79
+ */
80
+ export declare const LegacyScenarioSchema: TObject<{
81
+ id: TString;
82
+ name: TString;
83
+ description: TOptional<TString>;
84
+ flowcoreUserId: TString;
85
+ organizationId: TString;
86
+ deploymentState: TString;
87
+ createdAt: TString;
88
+ updatedAt: TString;
89
+ nodes: ReturnType<typeof Type.Array<typeof LegacyScenarioNodeSchema>>;
90
+ }>;
91
+ /**
92
+ * The type for a Legacy Scenario
93
+ */
94
+ export type LegacyScenario = Static<typeof LegacyScenarioSchema>;
95
+ /**
96
+ * The schema for adapter state
97
+ */
98
+ export declare const LegacyScenarioAdapterStateSchema: TObject<{
99
+ kubernetes: TObject<{
100
+ status: LegacyScenarioAdapterKubernetesStatusTypeBox;
101
+ }>;
102
+ }>;
103
+ /**
104
+ * The type for adapter state
105
+ */
106
+ export type LegacyScenarioAdapterState = Static<typeof LegacyScenarioAdapterStateSchema>;
107
+ export {};
108
+ //# sourceMappingURL=legacy-scenario.d.ts.map