@usestatemachines/sdk 0.2.0 → 0.3.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 (64) hide show
  1. package/README.md +95 -5
  2. package/agents/SKILL.md +10 -3
  3. package/agents/index.js +6 -6
  4. package/agents/llms.txt +8 -2
  5. package/agents/prompt.md +1 -1
  6. package/esm/extensions/apps.d.ts +11 -1
  7. package/esm/extensions/apps.js +16 -0
  8. package/esm/extensions/client.d.ts +36 -3
  9. package/esm/extensions/client.js +96 -11
  10. package/esm/extensions/errors.d.ts +26 -1
  11. package/esm/extensions/errors.js +34 -1
  12. package/esm/extensions/index.d.ts +4 -4
  13. package/esm/extensions/index.js +1 -1
  14. package/esm/extensions/running-environment.d.ts +4 -1
  15. package/esm/extensions/running-environment.js +9 -0
  16. package/esm/extensions/wait.d.ts +10 -3
  17. package/esm/extensions/wait.js +22 -12
  18. package/esm/funcs/environments-list.js +1 -0
  19. package/esm/funcs/snapshots-capture.d.ts +11 -0
  20. package/esm/funcs/snapshots-capture.js +94 -0
  21. package/esm/funcs/snapshots-delete.d.ts +11 -0
  22. package/esm/funcs/snapshots-delete.js +92 -0
  23. package/esm/funcs/snapshots-get.d.ts +11 -0
  24. package/esm/funcs/snapshots-get.js +92 -0
  25. package/esm/funcs/snapshots-list.d.ts +11 -0
  26. package/esm/funcs/snapshots-list.js +98 -0
  27. package/esm/funcs/snapshots-update.d.ts +11 -0
  28. package/esm/funcs/snapshots-update.js +93 -0
  29. package/esm/lib/config.d.ts +2 -2
  30. package/esm/lib/config.js +2 -2
  31. package/esm/models/app-instance-snapshot.d.ts +15 -0
  32. package/esm/models/app-instance-snapshot.js +19 -0
  33. package/esm/models/create-environment-input.d.ts +6 -2
  34. package/esm/models/create-environment-input.js +3 -1
  35. package/esm/models/environment-app.d.ts +1 -0
  36. package/esm/models/environment-app.js +1 -0
  37. package/esm/models/environment-snapshot.d.ts +39 -0
  38. package/esm/models/environment-snapshot.js +41 -0
  39. package/esm/models/environment.d.ts +1 -0
  40. package/esm/models/environment.js +1 -0
  41. package/esm/models/error-response.d.ts +1 -0
  42. package/esm/models/error-response.js +1 -0
  43. package/esm/models/index.d.ts +2 -0
  44. package/esm/models/index.js +2 -0
  45. package/esm/models/operations/capture-snapshot.d.ts +41 -0
  46. package/esm/models/operations/capture-snapshot.js +36 -0
  47. package/esm/models/operations/delete-snapshot.d.ts +23 -0
  48. package/esm/models/operations/delete-snapshot.js +20 -0
  49. package/esm/models/operations/get-snapshot.d.ts +23 -0
  50. package/esm/models/operations/get-snapshot.js +20 -0
  51. package/esm/models/operations/index.d.ts +5 -0
  52. package/esm/models/operations/index.js +5 -0
  53. package/esm/models/operations/list-environments.d.ts +2 -0
  54. package/esm/models/operations/list-environments.js +1 -0
  55. package/esm/models/operations/list-snapshots.d.ts +30 -0
  56. package/esm/models/operations/list-snapshots.js +25 -0
  57. package/esm/models/operations/update-snapshot.d.ts +37 -0
  58. package/esm/models/operations/update-snapshot.js +29 -0
  59. package/esm/sdk/sdk.d.ts +3 -0
  60. package/esm/sdk/sdk.js +5 -0
  61. package/esm/sdk/snapshots.d.ts +9 -0
  62. package/esm/sdk/snapshots.js +27 -0
  63. package/openapi.json +1195 -255
  64. package/package.json +10 -11
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as models from "../index.js";
8
+ /** @internal */
9
+ export const CaptureSnapshotRequestBody$outboundSchema = z.object({
10
+ appInstanceKeys: z.optional(z.array(z.string())),
11
+ environmentId: z.string(),
12
+ name: z.optional(z.string()),
13
+ });
14
+ export function captureSnapshotRequestBodyToJSON(captureSnapshotRequestBody) {
15
+ return JSON.stringify(CaptureSnapshotRequestBody$outboundSchema.parse(captureSnapshotRequestBody));
16
+ }
17
+ /** @internal */
18
+ export const CaptureSnapshotRequest$outboundSchema = z.pipe(z.object({
19
+ workspaceId: z.string(),
20
+ idempotencyKey: z.string(),
21
+ body: z.lazy(() => CaptureSnapshotRequestBody$outboundSchema),
22
+ }), z.transform((v) => {
23
+ return remap$(v, {
24
+ idempotencyKey: "idempotency-key",
25
+ });
26
+ }));
27
+ export function captureSnapshotRequestToJSON(captureSnapshotRequest) {
28
+ return JSON.stringify(CaptureSnapshotRequest$outboundSchema.parse(captureSnapshotRequest));
29
+ }
30
+ /** @internal */
31
+ export const CaptureSnapshotResponse$inboundSchema = z.object({
32
+ data: models.EnvironmentSnapshot$inboundSchema,
33
+ });
34
+ export function captureSnapshotResponseFromJSON(jsonString) {
35
+ return safeParse(jsonString, (x) => CaptureSnapshotResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CaptureSnapshotResponse' from JSON`);
36
+ }
@@ -0,0 +1,23 @@
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 DeleteSnapshotRequest = {
6
+ snapshotId: string;
7
+ };
8
+ /**
9
+ * Environment snapshot removed from the library
10
+ */
11
+ export type DeleteSnapshotResponse = {
12
+ data: models.EnvironmentSnapshot;
13
+ };
14
+ /** @internal */
15
+ export type DeleteSnapshotRequest$Outbound = {
16
+ snapshotId: string;
17
+ };
18
+ /** @internal */
19
+ export declare const DeleteSnapshotRequest$outboundSchema: z.ZodMiniType<DeleteSnapshotRequest$Outbound, DeleteSnapshotRequest>;
20
+ export declare function deleteSnapshotRequestToJSON(deleteSnapshotRequest: DeleteSnapshotRequest): string;
21
+ /** @internal */
22
+ export declare const DeleteSnapshotResponse$inboundSchema: z.ZodMiniType<DeleteSnapshotResponse, unknown>;
23
+ export declare function deleteSnapshotResponseFromJSON(jsonString: string): SafeParseResult<DeleteSnapshotResponse, SDKValidationError>;
@@ -0,0 +1,20 @@
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 models from "../index.js";
7
+ /** @internal */
8
+ export const DeleteSnapshotRequest$outboundSchema = z.object({
9
+ snapshotId: z.string(),
10
+ });
11
+ export function deleteSnapshotRequestToJSON(deleteSnapshotRequest) {
12
+ return JSON.stringify(DeleteSnapshotRequest$outboundSchema.parse(deleteSnapshotRequest));
13
+ }
14
+ /** @internal */
15
+ export const DeleteSnapshotResponse$inboundSchema = z.object({
16
+ data: models.EnvironmentSnapshot$inboundSchema,
17
+ });
18
+ export function deleteSnapshotResponseFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => DeleteSnapshotResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteSnapshotResponse' from JSON`);
20
+ }
@@ -0,0 +1,23 @@
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 GetSnapshotRequest = {
6
+ snapshotId: string;
7
+ };
8
+ /**
9
+ * Environment snapshot and its app instance snapshots
10
+ */
11
+ export type GetSnapshotResponse = {
12
+ data: models.EnvironmentSnapshot;
13
+ };
14
+ /** @internal */
15
+ export type GetSnapshotRequest$Outbound = {
16
+ snapshotId: string;
17
+ };
18
+ /** @internal */
19
+ export declare const GetSnapshotRequest$outboundSchema: z.ZodMiniType<GetSnapshotRequest$Outbound, GetSnapshotRequest>;
20
+ export declare function getSnapshotRequestToJSON(getSnapshotRequest: GetSnapshotRequest): string;
21
+ /** @internal */
22
+ export declare const GetSnapshotResponse$inboundSchema: z.ZodMiniType<GetSnapshotResponse, unknown>;
23
+ export declare function getSnapshotResponseFromJSON(jsonString: string): SafeParseResult<GetSnapshotResponse, SDKValidationError>;
@@ -0,0 +1,20 @@
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 models from "../index.js";
7
+ /** @internal */
8
+ export const GetSnapshotRequest$outboundSchema = z.object({
9
+ snapshotId: z.string(),
10
+ });
11
+ export function getSnapshotRequestToJSON(getSnapshotRequest) {
12
+ return JSON.stringify(GetSnapshotRequest$outboundSchema.parse(getSnapshotRequest));
13
+ }
14
+ /** @internal */
15
+ export const GetSnapshotResponse$inboundSchema = z.object({
16
+ data: models.EnvironmentSnapshot$inboundSchema,
17
+ });
18
+ export function getSnapshotResponseFromJSON(jsonString) {
19
+ return safeParse(jsonString, (x) => GetSnapshotResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetSnapshotResponse' from JSON`);
20
+ }
@@ -1,14 +1,19 @@
1
+ export * from "./capture-snapshot.js";
1
2
  export * from "./create-environment-definition.js";
2
3
  export * from "./create-environments.js";
4
+ export * from "./delete-snapshot.js";
3
5
  export * from "./get-catalog.js";
4
6
  export * from "./get-connection.js";
5
7
  export * from "./get-credential.js";
6
8
  export * from "./get-environment.js";
7
9
  export * from "./get-release.js";
10
+ export * from "./get-snapshot.js";
8
11
  export * from "./get-workspace.js";
9
12
  export * from "./list-environment-events.js";
10
13
  export * from "./list-environments.js";
14
+ export * from "./list-snapshots.js";
11
15
  export * from "./list-workspace-events.js";
12
16
  export * from "./list-workspaces.js";
13
17
  export * from "./reveal-connection.js";
14
18
  export * from "./stop-environment.js";
19
+ export * from "./update-snapshot.js";
@@ -1,17 +1,22 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
+ export * from "./capture-snapshot.js";
4
5
  export * from "./create-environment-definition.js";
5
6
  export * from "./create-environments.js";
7
+ export * from "./delete-snapshot.js";
6
8
  export * from "./get-catalog.js";
7
9
  export * from "./get-connection.js";
8
10
  export * from "./get-credential.js";
9
11
  export * from "./get-environment.js";
10
12
  export * from "./get-release.js";
13
+ export * from "./get-snapshot.js";
11
14
  export * from "./get-workspace.js";
12
15
  export * from "./list-environment-events.js";
13
16
  export * from "./list-environments.js";
17
+ export * from "./list-snapshots.js";
14
18
  export * from "./list-workspace-events.js";
15
19
  export * from "./list-workspaces.js";
16
20
  export * from "./reveal-connection.js";
17
21
  export * from "./stop-environment.js";
22
+ export * from "./update-snapshot.js";
@@ -15,6 +15,7 @@ export type ListEnvironmentsRequest = {
15
15
  limit?: number | undefined;
16
16
  cursor?: string | undefined;
17
17
  status?: Status | undefined;
18
+ snapshotId?: string | undefined;
18
19
  search?: string | undefined;
19
20
  label?: string | Array<string> | undefined;
20
21
  };
@@ -38,6 +39,7 @@ export type ListEnvironmentsRequest$Outbound = {
38
39
  limit: number;
39
40
  cursor?: string | undefined;
40
41
  status: string;
42
+ snapshotId?: string | undefined;
41
43
  search?: string | undefined;
42
44
  label?: string | Array<string> | undefined;
43
45
  };
@@ -24,6 +24,7 @@ export const ListEnvironmentsRequest$outboundSchema = z.object({
24
24
  limit: z._default(z.int(), 50),
25
25
  cursor: z.optional(z.string()),
26
26
  status: z._default(Status$outboundSchema, "all"),
27
+ snapshotId: z.optional(z.string()),
27
28
  search: z.optional(z.string()),
28
29
  label: z.optional(smartUnion([z.string(), z.array(z.string())])),
29
30
  });
@@ -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 ListSnapshotsRequest = {
6
+ workspaceId: string;
7
+ limit?: number | undefined;
8
+ cursor?: string | undefined;
9
+ sourceEnvironmentId?: string | undefined;
10
+ };
11
+ /**
12
+ * Workspace environment snapshots, newest first
13
+ */
14
+ export type ListSnapshotsResponse = {
15
+ data: Array<models.EnvironmentSnapshot>;
16
+ nextCursor: string | null;
17
+ };
18
+ /** @internal */
19
+ export type ListSnapshotsRequest$Outbound = {
20
+ workspaceId: string;
21
+ limit: number;
22
+ cursor?: string | undefined;
23
+ sourceEnvironmentId?: string | undefined;
24
+ };
25
+ /** @internal */
26
+ export declare const ListSnapshotsRequest$outboundSchema: z.ZodMiniType<ListSnapshotsRequest$Outbound, ListSnapshotsRequest>;
27
+ export declare function listSnapshotsRequestToJSON(listSnapshotsRequest: ListSnapshotsRequest): string;
28
+ /** @internal */
29
+ export declare const ListSnapshotsResponse$inboundSchema: z.ZodMiniType<ListSnapshotsResponse, unknown>;
30
+ export declare function listSnapshotsResponseFromJSON(jsonString: string): SafeParseResult<ListSnapshotsResponse, 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 ListSnapshotsRequest$outboundSchema = z.object({
10
+ workspaceId: z.string(),
11
+ limit: z._default(z.int(), 50),
12
+ cursor: z.optional(z.string()),
13
+ sourceEnvironmentId: z.optional(z.string()),
14
+ });
15
+ export function listSnapshotsRequestToJSON(listSnapshotsRequest) {
16
+ return JSON.stringify(ListSnapshotsRequest$outboundSchema.parse(listSnapshotsRequest));
17
+ }
18
+ /** @internal */
19
+ export const ListSnapshotsResponse$inboundSchema = z.object({
20
+ data: z.array(models.EnvironmentSnapshot$inboundSchema),
21
+ nextCursor: types.nullable(types.string()),
22
+ });
23
+ export function listSnapshotsResponseFromJSON(jsonString) {
24
+ return safeParse(jsonString, (x) => ListSnapshotsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSnapshotsResponse' from JSON`);
25
+ }
@@ -0,0 +1,37 @@
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 UpdateSnapshotRequestBody = {
6
+ expectedVersion: number;
7
+ name: string | null;
8
+ };
9
+ export type UpdateSnapshotRequest = {
10
+ snapshotId: string;
11
+ body: UpdateSnapshotRequestBody;
12
+ };
13
+ /**
14
+ * Environment snapshot renamed
15
+ */
16
+ export type UpdateSnapshotResponse = {
17
+ data: models.EnvironmentSnapshot;
18
+ };
19
+ /** @internal */
20
+ export type UpdateSnapshotRequestBody$Outbound = {
21
+ expectedVersion: number;
22
+ name: string | null;
23
+ };
24
+ /** @internal */
25
+ export declare const UpdateSnapshotRequestBody$outboundSchema: z.ZodMiniType<UpdateSnapshotRequestBody$Outbound, UpdateSnapshotRequestBody>;
26
+ export declare function updateSnapshotRequestBodyToJSON(updateSnapshotRequestBody: UpdateSnapshotRequestBody): string;
27
+ /** @internal */
28
+ export type UpdateSnapshotRequest$Outbound = {
29
+ snapshotId: string;
30
+ body: UpdateSnapshotRequestBody$Outbound;
31
+ };
32
+ /** @internal */
33
+ export declare const UpdateSnapshotRequest$outboundSchema: z.ZodMiniType<UpdateSnapshotRequest$Outbound, UpdateSnapshotRequest>;
34
+ export declare function updateSnapshotRequestToJSON(updateSnapshotRequest: UpdateSnapshotRequest): string;
35
+ /** @internal */
36
+ export declare const UpdateSnapshotResponse$inboundSchema: z.ZodMiniType<UpdateSnapshotResponse, unknown>;
37
+ export declare function updateSnapshotResponseFromJSON(jsonString: string): SafeParseResult<UpdateSnapshotResponse, SDKValidationError>;
@@ -0,0 +1,29 @@
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 models from "../index.js";
7
+ /** @internal */
8
+ export const UpdateSnapshotRequestBody$outboundSchema = z.object({
9
+ expectedVersion: z.int(),
10
+ name: z.nullable(z.string()),
11
+ });
12
+ export function updateSnapshotRequestBodyToJSON(updateSnapshotRequestBody) {
13
+ return JSON.stringify(UpdateSnapshotRequestBody$outboundSchema.parse(updateSnapshotRequestBody));
14
+ }
15
+ /** @internal */
16
+ export const UpdateSnapshotRequest$outboundSchema = z.object({
17
+ snapshotId: z.string(),
18
+ body: z.lazy(() => UpdateSnapshotRequestBody$outboundSchema),
19
+ });
20
+ export function updateSnapshotRequestToJSON(updateSnapshotRequest) {
21
+ return JSON.stringify(UpdateSnapshotRequest$outboundSchema.parse(updateSnapshotRequest));
22
+ }
23
+ /** @internal */
24
+ export const UpdateSnapshotResponse$inboundSchema = z.object({
25
+ data: models.EnvironmentSnapshot$inboundSchema,
26
+ });
27
+ export function updateSnapshotResponseFromJSON(jsonString) {
28
+ return safeParse(jsonString, (x) => UpdateSnapshotResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateSnapshotResponse' from JSON`);
29
+ }
package/esm/sdk/sdk.d.ts CHANGED
@@ -3,6 +3,7 @@ import * as operations from "../models/operations/index.js";
3
3
  import { Catalog } from "./catalog.js";
4
4
  import { Credential } from "./credential.js";
5
5
  import { Environments } from "./environments.js";
6
+ import { Snapshots } from "./snapshots.js";
6
7
  import { Workspaces } from "./workspaces.js";
7
8
  export declare class StateMachines extends ClientSDK {
8
9
  private _catalog?;
@@ -11,6 +12,8 @@ export declare class StateMachines extends ClientSDK {
11
12
  get credential(): Credential;
12
13
  private _environments?;
13
14
  get environments(): Environments;
15
+ private _snapshots?;
16
+ get snapshots(): Snapshots;
14
17
  private _workspaces?;
15
18
  get workspaces(): Workspaces;
16
19
  createEnvironmentDefinition(request: operations.CreateEnvironmentDefinitionRequest, options?: RequestOptions): Promise<operations.CreateEnvironmentDefinitionResponse>;
package/esm/sdk/sdk.js CHANGED
@@ -7,6 +7,7 @@ import { unwrapAsync } from "../types/fp.js";
7
7
  import { Catalog } from "./catalog.js";
8
8
  import { Credential } from "./credential.js";
9
9
  import { Environments } from "./environments.js";
10
+ import { Snapshots } from "./snapshots.js";
10
11
  import { Workspaces } from "./workspaces.js";
11
12
  export class StateMachines extends ClientSDK {
12
13
  _catalog;
@@ -21,6 +22,10 @@ export class StateMachines extends ClientSDK {
21
22
  get environments() {
22
23
  return (this._environments ?? (this._environments = new Environments(this._options)));
23
24
  }
25
+ _snapshots;
26
+ get snapshots() {
27
+ return (this._snapshots ?? (this._snapshots = new Snapshots(this._options)));
28
+ }
24
29
  _workspaces;
25
30
  get workspaces() {
26
31
  return (this._workspaces ?? (this._workspaces = new Workspaces(this._options)));
@@ -0,0 +1,9 @@
1
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
+ import * as operations from "../models/operations/index.js";
3
+ export declare class Snapshots extends ClientSDK {
4
+ delete(request: operations.DeleteSnapshotRequest, options?: RequestOptions): Promise<operations.DeleteSnapshotResponse>;
5
+ get(request: operations.GetSnapshotRequest, options?: RequestOptions): Promise<operations.GetSnapshotResponse>;
6
+ update(request: operations.UpdateSnapshotRequest, options?: RequestOptions): Promise<operations.UpdateSnapshotResponse>;
7
+ list(request: operations.ListSnapshotsRequest, options?: RequestOptions): Promise<operations.ListSnapshotsResponse>;
8
+ capture(request: operations.CaptureSnapshotRequest, options?: RequestOptions): Promise<operations.CaptureSnapshotResponse>;
9
+ }
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import { snapshotsCapture } from "../funcs/snapshots-capture.js";
5
+ import { snapshotsDelete } from "../funcs/snapshots-delete.js";
6
+ import { snapshotsGet } from "../funcs/snapshots-get.js";
7
+ import { snapshotsList } from "../funcs/snapshots-list.js";
8
+ import { snapshotsUpdate } from "../funcs/snapshots-update.js";
9
+ import { ClientSDK } from "../lib/sdks.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+ export class Snapshots extends ClientSDK {
12
+ async delete(request, options) {
13
+ return unwrapAsync(snapshotsDelete(this, request, options));
14
+ }
15
+ async get(request, options) {
16
+ return unwrapAsync(snapshotsGet(this, request, options));
17
+ }
18
+ async update(request, options) {
19
+ return unwrapAsync(snapshotsUpdate(this, request, options));
20
+ }
21
+ async list(request, options) {
22
+ return unwrapAsync(snapshotsList(this, request, options));
23
+ }
24
+ async capture(request, options) {
25
+ return unwrapAsync(snapshotsCapture(this, request, options));
26
+ }
27
+ }