@toshicloud/sdk 0.0.0-stage → 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 (45) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +250 -2
  3. package/dist/client.d.ts +153 -0
  4. package/dist/client.js +92 -0
  5. package/dist/errors.d.ts +28 -0
  6. package/dist/errors.js +77 -0
  7. package/dist/execute.d.ts +7 -0
  8. package/dist/execute.js +380 -0
  9. package/dist/gen/toshi/workspace/v1/artifacts_pb.d.ts +843 -0
  10. package/dist/gen/toshi/workspace/v1/artifacts_pb.js +96 -0
  11. package/dist/gen/toshi/workspace/v1/channels_pb.d.ts +2713 -0
  12. package/dist/gen/toshi/workspace/v1/channels_pb.js +336 -0
  13. package/dist/gen/toshi/workspace/v1/display_pb.d.ts +1166 -0
  14. package/dist/gen/toshi/workspace/v1/display_pb.js +214 -0
  15. package/dist/gen/toshi/workspace/v1/projects_pb.d.ts +1540 -0
  16. package/dist/gen/toshi/workspace/v1/projects_pb.js +207 -0
  17. package/dist/gen/toshi/workspace/v1/recordings_pb.d.ts +1024 -0
  18. package/dist/gen/toshi/workspace/v1/recordings_pb.js +201 -0
  19. package/dist/gen/toshi/workspace/v1/secrets_pb.d.ts +1214 -0
  20. package/dist/gen/toshi/workspace/v1/secrets_pb.js +182 -0
  21. package/dist/gen/toshi/workspace/v1/volumes_pb.d.ts +444 -0
  22. package/dist/gen/toshi/workspace/v1/volumes_pb.js +107 -0
  23. package/dist/gen/toshi/workspace/v1/webhook_pb.d.ts +1018 -0
  24. package/dist/gen/toshi/workspace/v1/webhook_pb.js +153 -0
  25. package/dist/gen/toshi/workspace/v1/workloads_pb.d.ts +2858 -0
  26. package/dist/gen/toshi/workspace/v1/workloads_pb.js +261 -0
  27. package/dist/gen/toshi/workspace/v1/workspace_pb.d.ts +5380 -0
  28. package/dist/gen/toshi/workspace/v1/workspace_pb.js +855 -0
  29. package/dist/index.d.ts +15 -0
  30. package/dist/index.js +14 -0
  31. package/dist/interceptors.d.ts +10 -0
  32. package/dist/interceptors.js +159 -0
  33. package/dist/output.d.ts +7 -0
  34. package/dist/output.js +77 -0
  35. package/dist/retry.d.ts +42 -0
  36. package/dist/retry.js +254 -0
  37. package/dist/run.d.ts +10 -0
  38. package/dist/run.js +175 -0
  39. package/dist/stream.d.ts +21 -0
  40. package/dist/stream.js +84 -0
  41. package/dist/wait.d.ts +13 -0
  42. package/dist/wait.js +41 -0
  43. package/dist/watch.d.ts +16 -0
  44. package/dist/watch.js +277 -0
  45. package/package.json +47 -4
@@ -0,0 +1,96 @@
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=ts,json_types=true,import_extension=js"
2
+ // @generated from file toshi/workspace/v1/artifacts.proto (package toshi.workspace.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
6
+ import { file_toshi_workspace_v1_recordings } from "./recordings_pb.js";
7
+ /**
8
+ * Describes the file toshi/workspace/v1/artifacts.proto.
9
+ */
10
+ export const file_toshi_workspace_v1_artifacts = /*@__PURE__*/ fileDesc("CiJ0b3NoaS93b3Jrc3BhY2UvdjEvYXJ0aWZhY3RzLnByb3RvEhJ0b3NoaS53b3Jrc3BhY2UudjEi9wIKCEFydGlmYWN0EgoKAmlkGAEgASgJEhIKCnByb2plY3RfaWQYAiABKAkSFgoOZW52aXJvbm1lbnRfaWQYAyABKAkSEwoLd29ya2xvYWRfaWQYBCABKAkSFAoMZXhlY3V0aW9uX2lkGAUgASgJEgwKBGtpbmQYBiABKAkSDAoEbmFtZRgHIAEoCRIUCgxjb250ZW50X3R5cGUYCCABKAkSEgoKcGFydF9jb3VudBgJIAEoAxISCgpwYXJ0X3NpemVzGAogAygDEhIKCmluZGV4X3NpemUYCyABKAMSDQoFc3RhdGUYDCABKAkSEgoKZW5jcnlwdGlvbh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WRSZXF1ZXN0GioudG9zaGkud29ya3NwYWNlLnYxLkNvbXBsZXRlVXBsb2FkUmVzcG9uc2Uy2AIKD0FydGlmYWN0U2VydmljZRJkCg1MaXN0QXJ0aWZhY3RzEigudG9zaGkud29ya3NwYWNlLnYxLkxpc3RBcnRpZmFjdHNSZXF1ZXN0GikudG9zaGkud29ya3NwYWNlLnYxLkxpc3RBcnRpZmFjdHNSZXNwb25zZRJeCgtHZXRBcnRpZmFjdBImLnRvc2hpLndvcmtzcGFjZS52MS5HZXRBcnRpZmFjdFJlcXVlc3QaJy50b3NoaS53b3Jrc3BhY2UudjEuR2V0QXJ0aWZhY3RSZXNwb25zZRJ/ChZHZXRBcnRpZmFjdERvd25sb2FkVVJMEjEudG9zaGkud29ya3NwYWNlLnYxLkdldEFydGlmYWN0RG93bmxvYWRVUkxSZXF1ZXN0GjIudG9zaGkud29ya3NwYWNlLnYxLkdldEFydGlmYWN0RG93bmxvYWRVUkxSZXNwb25zZUItWitnaXRodWIuY29tL3Rvc2hpY2xvdWQvdG9zaGktYXBpL3dvcmtzcGFjZXYxYgZwcm90bzM", [file_google_protobuf_timestamp, file_toshi_workspace_v1_recordings]);
11
+ /**
12
+ * Describes the message toshi.workspace.v1.Artifact.
13
+ * Use `create(ArtifactSchema)` to create a new message.
14
+ */
15
+ export const ArtifactSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 0);
16
+ /**
17
+ * Describes the message toshi.workspace.v1.Upload.
18
+ * Use `create(UploadSchema)` to create a new message.
19
+ */
20
+ export const UploadSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 1);
21
+ /**
22
+ * Describes the message toshi.workspace.v1.ReserveUploadRequest.
23
+ * Use `create(ReserveUploadRequestSchema)` to create a new message.
24
+ */
25
+ export const ReserveUploadRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 2);
26
+ /**
27
+ * Describes the message toshi.workspace.v1.ReserveUploadResponse.
28
+ * Use `create(ReserveUploadResponseSchema)` to create a new message.
29
+ */
30
+ export const ReserveUploadResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 3);
31
+ /**
32
+ * Describes the message toshi.workspace.v1.CompleteUploadRequest.
33
+ * Use `create(CompleteUploadRequestSchema)` to create a new message.
34
+ */
35
+ export const CompleteUploadRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 4);
36
+ /**
37
+ * Describes the message toshi.workspace.v1.CompleteUploadResponse.
38
+ * Use `create(CompleteUploadResponseSchema)` to create a new message.
39
+ */
40
+ export const CompleteUploadResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 5);
41
+ /**
42
+ * Describes the message toshi.workspace.v1.ListArtifactsRequest.
43
+ * Use `create(ListArtifactsRequestSchema)` to create a new message.
44
+ */
45
+ export const ListArtifactsRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 6);
46
+ /**
47
+ * Describes the message toshi.workspace.v1.ListArtifactsResponse.
48
+ * Use `create(ListArtifactsResponseSchema)` to create a new message.
49
+ */
50
+ export const ListArtifactsResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 7);
51
+ /**
52
+ * Describes the message toshi.workspace.v1.GetArtifactRequest.
53
+ * Use `create(GetArtifactRequestSchema)` to create a new message.
54
+ */
55
+ export const GetArtifactRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 8);
56
+ /**
57
+ * Describes the message toshi.workspace.v1.GetArtifactResponse.
58
+ * Use `create(GetArtifactResponseSchema)` to create a new message.
59
+ */
60
+ export const GetArtifactResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 9);
61
+ /**
62
+ * Describes the message toshi.workspace.v1.GetArtifactDownloadURLRequest.
63
+ * Use `create(GetArtifactDownloadURLRequestSchema)` to create a new message.
64
+ */
65
+ export const GetArtifactDownloadURLRequestSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 10);
66
+ /**
67
+ * Describes the message toshi.workspace.v1.GetArtifactDownloadURLResponse.
68
+ * Use `create(GetArtifactDownloadURLResponseSchema)` to create a new message.
69
+ */
70
+ export const GetArtifactDownloadURLResponseSchema = /*@__PURE__*/ messageDesc(file_toshi_workspace_v1_artifacts, 11);
71
+ /**
72
+ * ArtifactUploadService is how a job uploads what it recorded:
73
+ * it reserves an artifact, uploads each part to a presigned URL, and
74
+ * completes the upload. The caller is the workload itself: every call
75
+ * carries a workload identity token for the audience
76
+ * "toshi:artifacts", and the tenant, project, environment, workload and
77
+ * execution of the artifact are the token's claims, never the request's.
78
+ * A token of another audience, a display token, an expired token, or one
79
+ * that names no workload is refused with UNAUTHENTICATED. A workspace that
80
+ * is suspended or being deleted is refused with FAILED_PRECONDITION.
81
+ *
82
+ * The data key and the presigned URLs are the only values either call
83
+ * hands out. Neither ever appears in a log line, an audit row or an error.
84
+ *
85
+ * @generated from service toshi.workspace.v1.ArtifactUploadService
86
+ */
87
+ export const ArtifactUploadService = /*@__PURE__*/ serviceDesc(file_toshi_workspace_v1_artifacts, 0);
88
+ /**
89
+ * ArtifactService is how a workspace lists, reads and downloads what its
90
+ * workloads uploaded. The caller is a workspace's API token or a dashboard
91
+ * session, as for the Workspace API's other services. A credential limited
92
+ * to a project or an environment sees only its own.
93
+ *
94
+ * @generated from service toshi.workspace.v1.ArtifactService
95
+ */
96
+ export const ArtifactService = /*@__PURE__*/ serviceDesc(file_toshi_workspace_v1_artifacts, 1);