@usestatemachines/sdk 0.9.1 → 0.11.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.
Files changed (68) hide show
  1. package/README.md +16 -2
  2. package/agents/index.js +2 -2
  3. package/agents/llms.txt +4 -4
  4. package/esm/extensions/client.d.ts +31 -1
  5. package/esm/extensions/client.js +74 -2
  6. package/esm/extensions/errors.d.ts +7 -0
  7. package/esm/extensions/errors.js +46 -2
  8. package/esm/extensions/index.d.ts +2 -2
  9. package/esm/funcs/imports-complete.d.ts +12 -0
  10. package/esm/funcs/imports-complete.js +93 -0
  11. package/esm/funcs/imports-create.d.ts +12 -0
  12. package/esm/funcs/imports-create.js +89 -0
  13. package/esm/funcs/imports-delete.d.ts +12 -0
  14. package/esm/funcs/imports-delete.js +93 -0
  15. package/esm/funcs/imports-get.d.ts +12 -0
  16. package/esm/funcs/imports-get.js +93 -0
  17. package/esm/funcs/imports-list.d.ts +11 -0
  18. package/esm/funcs/imports-list.js +93 -0
  19. package/esm/lib/config.d.ts +2 -2
  20. package/esm/lib/config.js +2 -2
  21. package/esm/models/absent-reason.d.ts +36 -0
  22. package/esm/models/absent-reason.js +44 -0
  23. package/esm/models/absent-record-source.d.ts +13 -0
  24. package/esm/models/absent-record-source.js +14 -0
  25. package/esm/models/absent-record.d.ts +23 -0
  26. package/esm/models/absent-record.js +18 -0
  27. package/esm/models/create-snapshot-from-environment.d.ts +13 -0
  28. package/esm/models/create-snapshot-from-environment.js +12 -0
  29. package/esm/models/create-snapshot-from-import.d.ts +16 -0
  30. package/esm/models/create-snapshot-from-import.js +12 -0
  31. package/esm/models/create-snapshot.d.ts +9 -0
  32. package/esm/models/create-snapshot.js +14 -0
  33. package/esm/models/created-import.d.ts +38 -0
  34. package/esm/models/created-import.js +30 -0
  35. package/esm/models/import-problem.d.ts +40 -0
  36. package/esm/models/import-problem.js +28 -0
  37. package/esm/models/import-status.d.ts +13 -0
  38. package/esm/models/import-status.js +14 -0
  39. package/esm/models/import.d.ts +45 -0
  40. package/esm/models/import.js +36 -0
  41. package/esm/models/index.d.ts +12 -0
  42. package/esm/models/index.js +12 -0
  43. package/esm/models/operations/complete-import.d.ts +11 -0
  44. package/esm/models/operations/complete-import.js +11 -0
  45. package/esm/models/operations/create-import.d.ts +36 -0
  46. package/esm/models/operations/create-import.js +26 -0
  47. package/esm/models/operations/create-snapshot.d.ts +3 -14
  48. package/esm/models/operations/create-snapshot.js +2 -9
  49. package/esm/models/operations/delete-import.d.ts +11 -0
  50. package/esm/models/operations/delete-import.js +11 -0
  51. package/esm/models/operations/get-import.d.ts +11 -0
  52. package/esm/models/operations/get-import.js +11 -0
  53. package/esm/models/operations/index.d.ts +5 -0
  54. package/esm/models/operations/index.js +5 -0
  55. package/esm/models/operations/list-imports.d.ts +30 -0
  56. package/esm/models/operations/list-imports.js +25 -0
  57. package/esm/models/snapshot-app-load.d.ts +20 -0
  58. package/esm/models/snapshot-app-load.js +15 -0
  59. package/esm/models/snapshot-failure-union.d.ts +40 -0
  60. package/esm/models/snapshot-failure-union.js +42 -0
  61. package/esm/models/snapshot.d.ts +15 -19
  62. package/esm/models/snapshot.js +6 -19
  63. package/esm/sdk/imports.d.ts +10 -0
  64. package/esm/sdk/imports.js +27 -0
  65. package/esm/sdk/sdk.d.ts +3 -0
  66. package/esm/sdk/sdk.js +5 -0
  67. package/openapi.json +1253 -187
  68. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ /** @internal */
6
+ export const GetImportRequest$outboundSchema = z.object({
7
+ importId: z.string(),
8
+ });
9
+ export function getImportRequestToJSON(getImportRequest) {
10
+ return JSON.stringify(GetImportRequest$outboundSchema.parse(getImportRequest));
11
+ }
@@ -1,9 +1,13 @@
1
+ export * from "./complete-import.js";
1
2
  export * from "./create-credentials.js";
2
3
  export * from "./create-environment.js";
4
+ export * from "./create-import.js";
3
5
  export * from "./create-snapshot.js";
4
6
  export * from "./delete-environment.js";
7
+ export * from "./delete-import.js";
5
8
  export * from "./delete-snapshot.js";
6
9
  export * from "./get-environment.js";
10
+ export * from "./get-import.js";
7
11
  export * from "./get-request-body.js";
8
12
  export * from "./get-request-stats.js";
9
13
  export * from "./get-request.js";
@@ -14,6 +18,7 @@ export * from "./list-apps.js";
14
18
  export * from "./list-audit-events.js";
15
19
  export * from "./list-environment-creators.js";
16
20
  export * from "./list-environments.js";
21
+ export * from "./list-imports.js";
17
22
  export * from "./list-requests.js";
18
23
  export * from "./list-snapshot-creators.js";
19
24
  export * from "./list-snapshots.js";
@@ -1,12 +1,16 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
+ export * from "./complete-import.js";
4
5
  export * from "./create-credentials.js";
5
6
  export * from "./create-environment.js";
7
+ export * from "./create-import.js";
6
8
  export * from "./create-snapshot.js";
7
9
  export * from "./delete-environment.js";
10
+ export * from "./delete-import.js";
8
11
  export * from "./delete-snapshot.js";
9
12
  export * from "./get-environment.js";
13
+ export * from "./get-import.js";
10
14
  export * from "./get-request-body.js";
11
15
  export * from "./get-request-stats.js";
12
16
  export * from "./get-request.js";
@@ -17,6 +21,7 @@ export * from "./list-apps.js";
17
21
  export * from "./list-audit-events.js";
18
22
  export * from "./list-environment-creators.js";
19
23
  export * from "./list-environments.js";
24
+ export * from "./list-imports.js";
20
25
  export * from "./list-requests.js";
21
26
  export * from "./list-snapshot-creators.js";
22
27
  export * from "./list-snapshots.js";
@@ -0,0 +1,30 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
4
+ import * as models from "../index.js";
5
+ export type ListImportsRequest = {
6
+ limit?: number | undefined;
7
+ cursor?: string | undefined;
8
+ workspaceId?: string | undefined;
9
+ status?: Array<models.ImportStatus> | undefined;
10
+ };
11
+ /**
12
+ * The workspace's imports, newest first
13
+ */
14
+ export type ListImportsResponse = {
15
+ data: Array<models.Import>;
16
+ nextCursor: string | null;
17
+ };
18
+ /** @internal */
19
+ export type ListImportsRequest$Outbound = {
20
+ limit: number;
21
+ cursor?: string | undefined;
22
+ workspaceId?: string | undefined;
23
+ status?: Array<string> | undefined;
24
+ };
25
+ /** @internal */
26
+ export declare const ListImportsRequest$outboundSchema: z.ZodMiniType<ListImportsRequest$Outbound, ListImportsRequest>;
27
+ export declare function listImportsRequestToJSON(listImportsRequest: ListImportsRequest): string;
28
+ /** @internal */
29
+ export declare const ListImportsResponse$inboundSchema: z.ZodMiniType<ListImportsResponse, unknown>;
30
+ export declare function listImportsResponseFromJSON(jsonString: string): SafeParseResult<ListImportsResponse, SDKValidationError>;
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { safeParse } from "../../lib/schemas.js";
6
+ import * as types from "../../types/primitives.js";
7
+ import * as models from "../index.js";
8
+ /** @internal */
9
+ export const ListImportsRequest$outboundSchema = z.object({
10
+ limit: z._default(z.int(), 50),
11
+ cursor: z.optional(z.string()),
12
+ workspaceId: z.optional(z.string()),
13
+ status: z.optional(z.array(models.ImportStatus$outboundSchema)),
14
+ });
15
+ export function listImportsRequestToJSON(listImportsRequest) {
16
+ return JSON.stringify(ListImportsRequest$outboundSchema.parse(listImportsRequest));
17
+ }
18
+ /** @internal */
19
+ export const ListImportsResponse$inboundSchema = z.object({
20
+ data: z.array(models.Import$inboundSchema),
21
+ nextCursor: types.nullable(types.string()),
22
+ });
23
+ export function listImportsResponseFromJSON(jsonString) {
24
+ return safeParse(jsonString, (x) => ListImportsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListImportsResponse' from JSON`);
25
+ }
@@ -0,0 +1,20 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AbsentRecord } from "./absent-record.js";
4
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
+ /**
6
+ * What the load of the snapshot's import left out of the app. Null for a snapshot of an environment, and until the app's load ends.
7
+ */
8
+ export type SnapshotAppLoad = {
9
+ /**
10
+ * The first records of the import that did not load, in the order of the import.
11
+ */
12
+ absent: Array<AbsentRecord>;
13
+ /**
14
+ * How many records of the import did not load. It is larger than the length of `absent` when they did not all fit.
15
+ */
16
+ absentCount: number;
17
+ };
18
+ /** @internal */
19
+ export declare const SnapshotAppLoad$inboundSchema: z.ZodMiniType<SnapshotAppLoad, unknown>;
20
+ export declare function snapshotAppLoadFromJSON(jsonString: string): SafeParseResult<SnapshotAppLoad, SDKValidationError>;
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import * as types from "../types/primitives.js";
7
+ import { AbsentRecord$inboundSchema } from "./absent-record.js";
8
+ /** @internal */
9
+ export const SnapshotAppLoad$inboundSchema = z.object({
10
+ absent: z.array(AbsentRecord$inboundSchema),
11
+ absentCount: types.number(),
12
+ });
13
+ export function snapshotAppLoadFromJSON(jsonString) {
14
+ return safeParse(jsonString, (x) => SnapshotAppLoad$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SnapshotAppLoad' from JSON`);
15
+ }
@@ -0,0 +1,40 @@
1
+ import * as z from "zod/v4-mini";
2
+ import * as discriminatedUnionTypes from "../types/discriminated-union.js";
3
+ import { OpenEnum } from "../types/enums.js";
4
+ import { Result as SafeParseResult } from "../types/fp.js";
5
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
6
+ import { ImportProblem } from "./import-problem.js";
7
+ export type SnapshotFailureInvalidImport = {
8
+ appName?: string | undefined;
9
+ code: "invalid_import";
10
+ message: string;
11
+ /**
12
+ * The first problems that the load of the refusing app found, errors before warnings. It can be empty, such as when the load passed its time limit.
13
+ */
14
+ problems?: Array<ImportProblem> | undefined;
15
+ };
16
+ export declare const SnapshotFailureCodeEnum: {
17
+ readonly Interrupted: "interrupted";
18
+ readonly InternalError: "internal_error";
19
+ };
20
+ export type SnapshotFailureCodeEnum = OpenEnum<typeof SnapshotFailureCodeEnum>;
21
+ export type SnapshotFailure = {
22
+ code: SnapshotFailureCodeEnum;
23
+ message: string;
24
+ };
25
+ export type SnapshotFailureUnion = (SnapshotFailure & {
26
+ code: "interrupted";
27
+ }) | (SnapshotFailure & {
28
+ code: "internal_error";
29
+ }) | SnapshotFailureInvalidImport | discriminatedUnionTypes.Unknown<"code">;
30
+ /** @internal */
31
+ export declare const SnapshotFailureInvalidImport$inboundSchema: z.ZodMiniType<SnapshotFailureInvalidImport, unknown>;
32
+ export declare function snapshotFailureInvalidImportFromJSON(jsonString: string): SafeParseResult<SnapshotFailureInvalidImport, SDKValidationError>;
33
+ /** @internal */
34
+ export declare const SnapshotFailureCodeEnum$inboundSchema: z.ZodMiniType<SnapshotFailureCodeEnum, unknown>;
35
+ /** @internal */
36
+ export declare const SnapshotFailure$inboundSchema: z.ZodMiniType<SnapshotFailure, unknown>;
37
+ export declare function snapshotFailureFromJSON(jsonString: string): SafeParseResult<SnapshotFailure, SDKValidationError>;
38
+ /** @internal */
39
+ export declare const SnapshotFailureUnion$inboundSchema: z.ZodMiniType<SnapshotFailureUnion, unknown>;
40
+ export declare function snapshotFailureUnionFromJSON(jsonString: string): SafeParseResult<SnapshotFailureUnion, SDKValidationError>;
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import { discriminatedUnion } from "../types/discriminated-union.js";
7
+ import * as openEnums from "../types/enums.js";
8
+ import * as types from "../types/primitives.js";
9
+ import { ImportProblem$inboundSchema, } from "./import-problem.js";
10
+ export const SnapshotFailureCodeEnum = {
11
+ Interrupted: "interrupted",
12
+ InternalError: "internal_error",
13
+ };
14
+ /** @internal */
15
+ export const SnapshotFailureInvalidImport$inboundSchema = z.object({
16
+ appName: types.optional(types.string()),
17
+ code: types.literal("invalid_import"),
18
+ message: types.string(),
19
+ problems: types.optional(z.array(ImportProblem$inboundSchema)),
20
+ });
21
+ export function snapshotFailureInvalidImportFromJSON(jsonString) {
22
+ return safeParse(jsonString, (x) => SnapshotFailureInvalidImport$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SnapshotFailureInvalidImport' from JSON`);
23
+ }
24
+ /** @internal */
25
+ export const SnapshotFailureCodeEnum$inboundSchema = openEnums.inboundSchema(SnapshotFailureCodeEnum);
26
+ /** @internal */
27
+ export const SnapshotFailure$inboundSchema = z.object({
28
+ code: SnapshotFailureCodeEnum$inboundSchema,
29
+ message: types.string(),
30
+ });
31
+ export function snapshotFailureFromJSON(jsonString) {
32
+ return safeParse(jsonString, (x) => SnapshotFailure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SnapshotFailure' from JSON`);
33
+ }
34
+ /** @internal */
35
+ export const SnapshotFailureUnion$inboundSchema = discriminatedUnion("code", {
36
+ interrupted: z.intersection(z.lazy(() => SnapshotFailure$inboundSchema), z.object({ code: z.literal("interrupted") })),
37
+ internal_error: z.intersection(z.lazy(() => SnapshotFailure$inboundSchema), z.object({ code: z.literal("internal_error") })),
38
+ invalid_import: z.lazy(() => SnapshotFailureInvalidImport$inboundSchema),
39
+ });
40
+ export function snapshotFailureUnionFromJSON(jsonString) {
41
+ return safeParse(jsonString, (x) => SnapshotFailureUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SnapshotFailureUnion' from JSON`);
42
+ }
@@ -1,11 +1,16 @@
1
1
  import * as z from "zod/v4-mini";
2
- import { OpenEnum } from "../types/enums.js";
3
2
  import { Result as SafeParseResult } from "../types/fp.js";
4
3
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
4
  import { Principal } from "./principal.js";
5
+ import { SnapshotAppLoad } from "./snapshot-app-load.js";
6
+ import { SnapshotFailureUnion } from "./snapshot-failure-union.js";
6
7
  import { SnapshotStatus } from "./snapshot-status.js";
7
8
  export type SnapshotApp = {
8
9
  appId: string;
10
+ /**
11
+ * What the load of the snapshot's import left out of the app. Null for a snapshot of an environment, and until the app's load ends.
12
+ */
13
+ load?: SnapshotAppLoad | null | undefined;
9
14
  name: string;
10
15
  services: {
11
16
  [k: string]: any;
@@ -13,31 +18,27 @@ export type SnapshotApp = {
13
18
  setup: {
14
19
  [k: string]: any;
15
20
  };
16
- sizeBytes: number | null;
17
21
  version: string;
18
22
  versionId: string;
19
23
  };
20
- export declare const SnapshotCode: {
21
- readonly Interrupted: "interrupted";
22
- readonly InternalError: "internal_error";
23
- };
24
- export type SnapshotCode = OpenEnum<typeof SnapshotCode>;
25
- export type Failure = {
26
- code: SnapshotCode;
27
- message: string;
28
- };
29
24
  export type Snapshot = {
30
25
  apps: Array<SnapshotApp>;
31
26
  createdAt: Date;
32
27
  createdBy: Principal;
33
28
  deletedAt: Date | null;
34
- environmentId: string;
29
+ /**
30
+ * The environment that the snapshot copies, or null for a snapshot built from an import.
31
+ */
32
+ environmentId: string | null;
35
33
  environmentName: string | null;
36
- failure: Failure | null;
34
+ failure: SnapshotFailureUnion | null;
37
35
  id: string;
36
+ /**
37
+ * The import that the snapshot was built from, or null for a snapshot of an environment.
38
+ */
39
+ importId?: string | null | undefined;
38
40
  name: string | null;
39
41
  readyAt: Date | null;
40
- sizeBytes: number | null;
41
42
  status: SnapshotStatus;
42
43
  workspaceId: string;
43
44
  };
@@ -45,10 +46,5 @@ export type Snapshot = {
45
46
  export declare const SnapshotApp$inboundSchema: z.ZodMiniType<SnapshotApp, unknown>;
46
47
  export declare function snapshotAppFromJSON(jsonString: string): SafeParseResult<SnapshotApp, SDKValidationError>;
47
48
  /** @internal */
48
- export declare const SnapshotCode$inboundSchema: z.ZodMiniType<SnapshotCode, unknown>;
49
- /** @internal */
50
- export declare const Failure$inboundSchema: z.ZodMiniType<Failure, unknown>;
51
- export declare function failureFromJSON(jsonString: string): SafeParseResult<Failure, SDKValidationError>;
52
- /** @internal */
53
49
  export declare const Snapshot$inboundSchema: z.ZodMiniType<Snapshot, unknown>;
54
50
  export declare function snapshotFromJSON(jsonString: string): SafeParseResult<Snapshot, SDKValidationError>;
@@ -3,22 +3,19 @@
3
3
  */
4
4
  import * as z from "zod/v4-mini";
5
5
  import { safeParse } from "../lib/schemas.js";
6
- import * as openEnums from "../types/enums.js";
7
6
  import * as types from "../types/primitives.js";
8
7
  import { Principal$inboundSchema } from "./principal.js";
8
+ import { SnapshotAppLoad$inboundSchema, } from "./snapshot-app-load.js";
9
+ import { SnapshotFailureUnion$inboundSchema, } from "./snapshot-failure-union.js";
9
10
  import { SnapshotStatus$inboundSchema, } from "./snapshot-status.js";
10
- export const SnapshotCode = {
11
- Interrupted: "interrupted",
12
- InternalError: "internal_error",
13
- };
14
11
  /** @internal */
15
12
  export const SnapshotApp$inboundSchema = z
16
13
  .object({
17
14
  appId: types.string(),
15
+ load: z.optional(z.nullable(SnapshotAppLoad$inboundSchema)),
18
16
  name: types.string(),
19
17
  services: z.record(z.string(), z.any()),
20
18
  setup: z.record(z.string(), z.any()),
21
- sizeBytes: types.nullable(types.number()),
22
19
  version: types.string(),
23
20
  versionId: types.string(),
24
21
  });
@@ -26,29 +23,19 @@ export function snapshotAppFromJSON(jsonString) {
26
23
  return safeParse(jsonString, (x) => SnapshotApp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SnapshotApp' from JSON`);
27
24
  }
28
25
  /** @internal */
29
- export const SnapshotCode$inboundSchema = openEnums.inboundSchema(SnapshotCode);
30
- /** @internal */
31
- export const Failure$inboundSchema = z.object({
32
- code: SnapshotCode$inboundSchema,
33
- message: types.string(),
34
- });
35
- export function failureFromJSON(jsonString) {
36
- return safeParse(jsonString, (x) => Failure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Failure' from JSON`);
37
- }
38
- /** @internal */
39
26
  export const Snapshot$inboundSchema = z
40
27
  .object({
41
28
  apps: z.array(z.lazy(() => SnapshotApp$inboundSchema)),
42
29
  createdAt: types.date(),
43
30
  createdBy: Principal$inboundSchema,
44
31
  deletedAt: types.nullable(types.date()),
45
- environmentId: types.string(),
32
+ environmentId: types.nullable(types.string()),
46
33
  environmentName: types.nullable(types.string()),
47
- failure: types.nullable(z.lazy(() => Failure$inboundSchema)),
34
+ failure: types.nullable(SnapshotFailureUnion$inboundSchema),
48
35
  id: types.string(),
36
+ importId: z.optional(z.nullable(types.string())),
49
37
  name: types.nullable(types.string()),
50
38
  readyAt: types.nullable(types.date()),
51
- sizeBytes: types.nullable(types.number()),
52
39
  status: SnapshotStatus$inboundSchema,
53
40
  workspaceId: types.string(),
54
41
  });
@@ -0,0 +1,10 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as models from "../models/index.js";
3
+ import * as operations from "../models/operations/index.js";
4
+ export declare class Imports extends ClientSDK {
5
+ list(request?: operations.ListImportsRequest | undefined, options?: RequestOptions): Promise<operations.ListImportsResponse>;
6
+ create(request: operations.CreateImportRequest, options?: RequestOptions): Promise<models.CreatedImport>;
7
+ delete(request: operations.DeleteImportRequest, options?: RequestOptions): Promise<models.Import>;
8
+ get(request: operations.GetImportRequest, options?: RequestOptions): Promise<models.Import>;
9
+ complete(request: operations.CompleteImportRequest, options?: RequestOptions): Promise<models.Import>;
10
+ }
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { importsComplete } from "../funcs/imports-complete.js";
5
+ import { importsCreate } from "../funcs/imports-create.js";
6
+ import { importsDelete } from "../funcs/imports-delete.js";
7
+ import { importsGet } from "../funcs/imports-get.js";
8
+ import { importsList } from "../funcs/imports-list.js";
9
+ import { ClientSDK } from "../lib/sdks.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+ export class Imports extends ClientSDK {
12
+ async list(request, options) {
13
+ return unwrapAsync(importsList(this, request, options));
14
+ }
15
+ async create(request, options) {
16
+ return unwrapAsync(importsCreate(this, request, options));
17
+ }
18
+ async delete(request, options) {
19
+ return unwrapAsync(importsDelete(this, request, options));
20
+ }
21
+ async get(request, options) {
22
+ return unwrapAsync(importsGet(this, request, options));
23
+ }
24
+ async complete(request, options) {
25
+ return unwrapAsync(importsComplete(this, request, options));
26
+ }
27
+ }
package/esm/sdk/sdk.d.ts CHANGED
@@ -4,6 +4,7 @@ import * as operations from "../models/operations/index.js";
4
4
  import { Apps } from "./apps.js";
5
5
  import { AuditEvents } from "./audit-events.js";
6
6
  import { Environments } from "./environments.js";
7
+ import { Imports } from "./imports.js";
7
8
  import { Requests } from "./requests.js";
8
9
  import { Snapshots } from "./snapshots.js";
9
10
  import { Workspaces } from "./workspaces.js";
@@ -14,6 +15,8 @@ export declare class StateMachines extends ClientSDK {
14
15
  get auditEvents(): AuditEvents;
15
16
  private _environments?;
16
17
  get environments(): Environments;
18
+ private _imports?;
19
+ get imports(): Imports;
17
20
  private _requests?;
18
21
  get requests(): Requests;
19
22
  private _snapshots?;
package/esm/sdk/sdk.js CHANGED
@@ -10,6 +10,7 @@ import { unwrapAsync } from "../types/fp.js";
10
10
  import { Apps } from "./apps.js";
11
11
  import { AuditEvents } from "./audit-events.js";
12
12
  import { Environments } from "./environments.js";
13
+ import { Imports } from "./imports.js";
13
14
  import { Requests } from "./requests.js";
14
15
  import { Snapshots } from "./snapshots.js";
15
16
  import { Workspaces } from "./workspaces.js";
@@ -26,6 +27,10 @@ export class StateMachines extends ClientSDK {
26
27
  get environments() {
27
28
  return (this._environments ?? (this._environments = new Environments(this._options)));
28
29
  }
30
+ _imports;
31
+ get imports() {
32
+ return (this._imports ?? (this._imports = new Imports(this._options)));
33
+ }
29
34
  _requests;
30
35
  get requests() {
31
36
  return (this._requests ?? (this._requests = new Requests(this._options)));