veryfront 0.1.90 → 0.1.91

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 (36) hide show
  1. package/esm/deno.js +1 -1
  2. package/esm/src/jobs/schemas.d.ts +30 -30
  3. package/esm/src/platform/adapters/veryfront-api-client/client.d.ts +3 -1
  4. package/esm/src/platform/adapters/veryfront-api-client/client.d.ts.map +1 -1
  5. package/esm/src/platform/adapters/veryfront-api-client/client.js +6 -0
  6. package/esm/src/platform/adapters/veryfront-api-client/index.d.ts +2 -2
  7. package/esm/src/platform/adapters/veryfront-api-client/index.d.ts.map +1 -1
  8. package/esm/src/platform/adapters/veryfront-api-client/index.js +1 -1
  9. package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts +24 -0
  10. package/esm/src/platform/adapters/veryfront-api-client/operations.d.ts.map +1 -1
  11. package/esm/src/platform/adapters/veryfront-api-client/operations.js +65 -3
  12. package/esm/src/platform/adapters/veryfront-api-client/schemas/api.schema.d.ts +28 -0
  13. package/esm/src/platform/adapters/veryfront-api-client/schemas/api.schema.d.ts.map +1 -1
  14. package/esm/src/platform/adapters/veryfront-api-client/schemas/api.schema.js +13 -0
  15. package/esm/src/platform/adapters/veryfront-api-client/schemas/index.d.ts +1 -1
  16. package/esm/src/platform/adapters/veryfront-api-client/schemas/index.d.ts.map +1 -1
  17. package/esm/src/platform/adapters/veryfront-api-client/schemas/index.js +1 -1
  18. package/esm/src/sandbox/index.d.ts +1 -1
  19. package/esm/src/sandbox/index.d.ts.map +1 -1
  20. package/esm/src/sandbox/index.js +1 -1
  21. package/esm/src/sandbox/sandbox.d.ts +58 -0
  22. package/esm/src/sandbox/sandbox.d.ts.map +1 -1
  23. package/esm/src/sandbox/sandbox.js +111 -0
  24. package/esm/src/server/handlers/dev/styles-css.handler.d.ts +5 -0
  25. package/esm/src/server/handlers/dev/styles-css.handler.d.ts.map +1 -1
  26. package/esm/src/server/handlers/dev/styles-css.handler.js +121 -1
  27. package/package.json +1 -1
  28. package/src/deno.js +1 -1
  29. package/src/src/platform/adapters/veryfront-api-client/client.ts +17 -0
  30. package/src/src/platform/adapters/veryfront-api-client/index.ts +6 -0
  31. package/src/src/platform/adapters/veryfront-api-client/operations.ts +110 -3
  32. package/src/src/platform/adapters/veryfront-api-client/schemas/api.schema.ts +16 -0
  33. package/src/src/platform/adapters/veryfront-api-client/schemas/index.ts +2 -0
  34. package/src/src/sandbox/index.ts +13 -1
  35. package/src/src/sandbox/sandbox.ts +183 -0
  36. package/src/src/server/handlers/dev/styles-css.handler.ts +179 -1
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.90",
3
+ "version": "0.1.91",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "exclude": [
@@ -756,7 +756,7 @@ export declare const JobSchema: z.ZodObject<{
756
756
  artifacts: unknown[];
757
757
  }>]>>>>;
758
758
  }, "strip", z.ZodTypeAny, {
759
- status: "failed" | "completed" | "submitted" | "working" | "canceled";
759
+ status: "failed" | "completed" | "canceled" | "submitted" | "working";
760
760
  config: Record<string, unknown>;
761
761
  name: string;
762
762
  project_id: string;
@@ -812,12 +812,12 @@ export declare const JobSchema: z.ZodObject<{
812
812
  kind: "artifacts";
813
813
  artifacts: unknown[];
814
814
  } | null;
815
+ exit_code: number | null;
816
+ started_at: string | null;
815
817
  cron_job_id: string | null;
816
818
  context_id: string | null;
817
819
  timeout_seconds: number;
818
820
  backoff_limit: number;
819
- exit_code: number | null;
820
- started_at: string | null;
821
821
  completed_at: string | null;
822
822
  created_by: string | null;
823
823
  failed_reason: string | null;
@@ -836,7 +836,7 @@ export declare const JobSchema: z.ZodObject<{
836
836
  artifact_count: number;
837
837
  } | null;
838
838
  }, {
839
- status: "failed" | "completed" | "submitted" | "working" | "canceled";
839
+ status: "failed" | "completed" | "canceled" | "submitted" | "working";
840
840
  config: Record<string, unknown>;
841
841
  name: string;
842
842
  project_id: string;
@@ -846,12 +846,12 @@ export declare const JobSchema: z.ZodObject<{
846
846
  created_at: string;
847
847
  environment_id: string | null;
848
848
  target: string;
849
+ exit_code: number | null;
850
+ started_at: string | null;
849
851
  cron_job_id: string | null;
850
852
  context_id: string | null;
851
853
  timeout_seconds: number;
852
854
  backoff_limit: number;
853
- exit_code: number | null;
854
- started_at: string | null;
855
855
  completed_at: string | null;
856
856
  created_by: string | null;
857
857
  branch_id?: string | null | undefined;
@@ -977,7 +977,7 @@ export declare const JobListItemSchema: z.ZodObject<{
977
977
  artifact_count: number;
978
978
  }>]>>>>;
979
979
  }, "strip", z.ZodTypeAny, {
980
- status: "failed" | "completed" | "submitted" | "working" | "canceled";
980
+ status: "failed" | "completed" | "canceled" | "submitted" | "working";
981
981
  config: Record<string, unknown>;
982
982
  name: string;
983
983
  project_id: string;
@@ -989,12 +989,12 @@ export declare const JobListItemSchema: z.ZodObject<{
989
989
  created_at: string;
990
990
  environment_id: string | null;
991
991
  target: string;
992
+ exit_code: number | null;
993
+ started_at: string | null;
992
994
  cron_job_id: string | null;
993
995
  context_id: string | null;
994
996
  timeout_seconds: number;
995
997
  backoff_limit: number;
996
- exit_code: number | null;
997
- started_at: string | null;
998
998
  completed_at: string | null;
999
999
  created_by: string | null;
1000
1000
  failure_detail: string | null;
@@ -1012,7 +1012,7 @@ export declare const JobListItemSchema: z.ZodObject<{
1012
1012
  artifact_count: number;
1013
1013
  } | null;
1014
1014
  }, {
1015
- status: "failed" | "completed" | "submitted" | "working" | "canceled";
1015
+ status: "failed" | "completed" | "canceled" | "submitted" | "working";
1016
1016
  config: Record<string, unknown>;
1017
1017
  name: string;
1018
1018
  project_id: string;
@@ -1022,12 +1022,12 @@ export declare const JobListItemSchema: z.ZodObject<{
1022
1022
  created_at: string;
1023
1023
  environment_id: string | null;
1024
1024
  target: string;
1025
+ exit_code: number | null;
1026
+ started_at: string | null;
1025
1027
  cron_job_id: string | null;
1026
1028
  context_id: string | null;
1027
1029
  timeout_seconds: number;
1028
1030
  backoff_limit: number;
1029
- exit_code: number | null;
1030
- started_at: string | null;
1031
1031
  completed_at: string | null;
1032
1032
  created_by: string | null;
1033
1033
  branch_id?: string | null | undefined;
@@ -1109,7 +1109,7 @@ export declare const PaginatedJobsResponseSchema: z.ZodObject<{
1109
1109
  artifact_count: number;
1110
1110
  }>]>>>>;
1111
1111
  }, "strip", z.ZodTypeAny, {
1112
- status: "failed" | "completed" | "submitted" | "working" | "canceled";
1112
+ status: "failed" | "completed" | "canceled" | "submitted" | "working";
1113
1113
  config: Record<string, unknown>;
1114
1114
  name: string;
1115
1115
  project_id: string;
@@ -1121,12 +1121,12 @@ export declare const PaginatedJobsResponseSchema: z.ZodObject<{
1121
1121
  created_at: string;
1122
1122
  environment_id: string | null;
1123
1123
  target: string;
1124
+ exit_code: number | null;
1125
+ started_at: string | null;
1124
1126
  cron_job_id: string | null;
1125
1127
  context_id: string | null;
1126
1128
  timeout_seconds: number;
1127
1129
  backoff_limit: number;
1128
- exit_code: number | null;
1129
- started_at: string | null;
1130
1130
  completed_at: string | null;
1131
1131
  created_by: string | null;
1132
1132
  failure_detail: string | null;
@@ -1144,7 +1144,7 @@ export declare const PaginatedJobsResponseSchema: z.ZodObject<{
1144
1144
  artifact_count: number;
1145
1145
  } | null;
1146
1146
  }, {
1147
- status: "failed" | "completed" | "submitted" | "working" | "canceled";
1147
+ status: "failed" | "completed" | "canceled" | "submitted" | "working";
1148
1148
  config: Record<string, unknown>;
1149
1149
  name: string;
1150
1150
  project_id: string;
@@ -1154,12 +1154,12 @@ export declare const PaginatedJobsResponseSchema: z.ZodObject<{
1154
1154
  created_at: string;
1155
1155
  environment_id: string | null;
1156
1156
  target: string;
1157
+ exit_code: number | null;
1158
+ started_at: string | null;
1157
1159
  cron_job_id: string | null;
1158
1160
  context_id: string | null;
1159
1161
  timeout_seconds: number;
1160
1162
  backoff_limit: number;
1161
- exit_code: number | null;
1162
- started_at: string | null;
1163
1163
  completed_at: string | null;
1164
1164
  created_by: string | null;
1165
1165
  branch_id?: string | null | undefined;
@@ -1197,7 +1197,7 @@ export declare const PaginatedJobsResponseSchema: z.ZodObject<{
1197
1197
  }>;
1198
1198
  }, "strip", z.ZodTypeAny, {
1199
1199
  data: {
1200
- status: "failed" | "completed" | "submitted" | "working" | "canceled";
1200
+ status: "failed" | "completed" | "canceled" | "submitted" | "working";
1201
1201
  config: Record<string, unknown>;
1202
1202
  name: string;
1203
1203
  project_id: string;
@@ -1209,12 +1209,12 @@ export declare const PaginatedJobsResponseSchema: z.ZodObject<{
1209
1209
  created_at: string;
1210
1210
  environment_id: string | null;
1211
1211
  target: string;
1212
+ exit_code: number | null;
1213
+ started_at: string | null;
1212
1214
  cron_job_id: string | null;
1213
1215
  context_id: string | null;
1214
1216
  timeout_seconds: number;
1215
1217
  backoff_limit: number;
1216
- exit_code: number | null;
1217
- started_at: string | null;
1218
1218
  completed_at: string | null;
1219
1219
  created_by: string | null;
1220
1220
  failure_detail: string | null;
@@ -1240,7 +1240,7 @@ export declare const PaginatedJobsResponseSchema: z.ZodObject<{
1240
1240
  };
1241
1241
  }, {
1242
1242
  data: {
1243
- status: "failed" | "completed" | "submitted" | "working" | "canceled";
1243
+ status: "failed" | "completed" | "canceled" | "submitted" | "working";
1244
1244
  config: Record<string, unknown>;
1245
1245
  name: string;
1246
1246
  project_id: string;
@@ -1250,12 +1250,12 @@ export declare const PaginatedJobsResponseSchema: z.ZodObject<{
1250
1250
  created_at: string;
1251
1251
  environment_id: string | null;
1252
1252
  target: string;
1253
+ exit_code: number | null;
1254
+ started_at: string | null;
1253
1255
  cron_job_id: string | null;
1254
1256
  context_id: string | null;
1255
1257
  timeout_seconds: number;
1256
1258
  backoff_limit: number;
1257
- exit_code: number | null;
1258
- started_at: string | null;
1259
1259
  completed_at: string | null;
1260
1260
  created_by: string | null;
1261
1261
  branch_id?: string | null | undefined;
@@ -1438,15 +1438,15 @@ export declare const JobBatchStatusCountsSchema: z.ZodObject<{
1438
1438
  }, "strip", z.ZodTypeAny, {
1439
1439
  failed: number;
1440
1440
  completed: number;
1441
+ canceled: number;
1441
1442
  submitted: number;
1442
1443
  working: number;
1443
- canceled: number;
1444
1444
  }, {
1445
1445
  failed: number;
1446
1446
  completed: number;
1447
+ canceled: number;
1447
1448
  submitted: number;
1448
1449
  working: number;
1449
- canceled: number;
1450
1450
  }>;
1451
1451
  export declare const JobBatchResultSchema: z.ZodNullable<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1452
1452
  kind: z.ZodLiteral<"knowledge_ingest">;
@@ -1661,15 +1661,15 @@ export declare const JobBatchSchema: z.ZodObject<{
1661
1661
  }, "strip", z.ZodTypeAny, {
1662
1662
  failed: number;
1663
1663
  completed: number;
1664
+ canceled: number;
1664
1665
  submitted: number;
1665
1666
  working: number;
1666
- canceled: number;
1667
1667
  }, {
1668
1668
  failed: number;
1669
1669
  completed: number;
1670
+ canceled: number;
1670
1671
  submitted: number;
1671
1672
  working: number;
1672
- canceled: number;
1673
1673
  }>;
1674
1674
  created_at: z.ZodString;
1675
1675
  updated_at: z.ZodString;
@@ -1927,9 +1927,9 @@ export declare const JobBatchSchema: z.ZodObject<{
1927
1927
  status_counts: {
1928
1928
  failed: number;
1929
1929
  completed: number;
1930
+ canceled: number;
1930
1931
  submitted: number;
1931
1932
  working: number;
1932
- canceled: number;
1933
1933
  };
1934
1934
  }, {
1935
1935
  project_id: string;
@@ -1986,9 +1986,9 @@ export declare const JobBatchSchema: z.ZodObject<{
1986
1986
  status_counts: {
1987
1987
  failed: number;
1988
1988
  completed: number;
1989
+ canceled: number;
1989
1990
  submitted: number;
1990
1991
  working: number;
1991
- canceled: number;
1992
1992
  };
1993
1993
  }>;
1994
1994
  export declare const JobTargetDefinitionSchema: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { type FileDetail, type FileListResult, type ListFilesOptions, VeryfrontAPIOperations } from "./operations.js";
1
+ import { type FileDetail, type FileListResult, type ListFilesOptions, type ProjectStyleArtifactResolution, type ResolveStyleArtifactInput, type UpsertStyleArtifactInput, VeryfrontAPIOperations } from "./operations.js";
2
2
  import { type VeryfrontAPIConfig } from "./types.js";
3
3
  /**
4
4
  * File context for API operations.
@@ -115,6 +115,8 @@ export declare class VeryfrontApiClient {
115
115
  } | null;
116
116
  project_name: string;
117
117
  } | null>;
118
+ resolveStyleArtifact(input: ResolveStyleArtifactInput, projectRef?: string): Promise<ProjectStyleArtifactResolution>;
119
+ upsertStyleArtifact(input: UpsertStyleArtifactInput, projectRef?: string): Promise<ProjectStyleArtifactResolution>;
118
120
  getFileById(entityId: string): Promise<{
119
121
  path: string;
120
122
  content: string;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/adapters/veryfront-api-client/client.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAErB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AASvE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzC,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAEZ;IACF,OAAO,CAAC,UAAU,CAAyB;IAC3C,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,kBAAkB,CAAC,CAAS;IACpC,OAAO,CAAC,cAAc,CAAC,CAAc;IACrC,OAAO,CAAC,aAAa,CAAC,CAAgB;IACtC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,mBAAmB,CAA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C,EAAE,MAAM;;;;;;;;;IAiB9E,uBAAuB,CAC3B,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,MAAM,EAClB,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC;CAkBnB"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/adapters/veryfront-api-client/client.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAE9B,KAAK,wBAAwB,EAC7B,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AASvE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzC,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAEZ;IACF,OAAO,CAAC,UAAU,CAAyB;IAC3C,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,kBAAkB,CAAC,CAAS;IACpC,OAAO,CAAC,cAAc,CAAC,CAAc;IACrC,OAAO,CAAC,aAAa,CAAC,CAAgB;IACtC,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,mBAAmB,CAAC,CAAgB;IAC5C,2EAA2E;IAC3E,OAAO,CAAC,iBAAiB,CAAC,CAA4D;gBAE1E,MAAM,EAAE,kBAAkB;IA0BtC,WAAW,IAAI,OAAO;IAItB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIpC,iBAAiB,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AAC,EAAE,MAAM;;;;;;;;;IAiB9E,uBAAuB,CAC3B,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,MAAM,EAClB,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC;CAkBnB"}
@@ -253,6 +253,12 @@ export class VeryfrontApiClient {
253
253
  lookupProjectByDomain(domain) {
254
254
  return this.operations.lookupProjectByDomain(domain);
255
255
  }
256
+ resolveStyleArtifact(input, projectRef = this.getProjectSlug()) {
257
+ return this.operations.resolveStyleArtifact(projectRef, input);
258
+ }
259
+ upsertStyleArtifact(input, projectRef = this.getProjectSlug()) {
260
+ return this.operations.upsertStyleArtifact(projectRef, input);
261
+ }
256
262
  // =============================================================================
257
263
  // Adapter Convenience Methods
258
264
  // =============================================================================
@@ -4,8 +4,8 @@
4
4
  * @module platform/adapters/veryfront-api-client
5
5
  */
6
6
  export { type FileContext, VeryfrontApiClient } from "./client.js";
7
- export { type FileDetail, type FileListResult, type ListFilesOptions, VeryfrontAPIOperations, } from "./operations.js";
7
+ export { type FileDetail, type FileListResult, type ListFilesOptions, type ProjectStyleArtifactResolution, type ResolveStyleArtifactInput, type StyleArtifactSelector, type UpsertStyleArtifactInput, VeryfrontAPIOperations, } from "./operations.js";
8
8
  export { type RequestOptions, requestWithRetry, type RetryConfig } from "./retry-handler.js";
9
9
  export { API_CLIENT_ERROR, type Environment, type LookupDomainResponse, type PageInfo, type Project, type ProjectFile, type VeryfrontAPIConfig, VeryfrontError, } from "./types.js";
10
- export { API_ENDPOINTS, BranchFileDetailSchema, BranchFileListItemSchema, EnvironmentFileDetailSchema, EnvironmentFileListItemSchema, EnvironmentSchema, ListBranchFilesResponseSchema, ListEnvironmentFilesResponseSchema, ListProjectsResponseSchema, ListReleaseFilesResponseSchema, LookupDomainResponseSchema, PageInfoSchema, ProjectFileSchema, ProjectSchema, ReleaseFileDetailSchema, ReleaseFileListItemSchema, } from "./schemas/index.js";
10
+ export { API_ENDPOINTS, BranchFileDetailSchema, BranchFileListItemSchema, EnvironmentFileDetailSchema, EnvironmentFileListItemSchema, EnvironmentSchema, ListBranchFilesResponseSchema, ListEnvironmentFilesResponseSchema, ListProjectsResponseSchema, ListReleaseFilesResponseSchema, LookupDomainResponseSchema, PageInfoSchema, ProjectFileSchema, ProjectSchema, ReleaseFileDetailSchema, ReleaseFileListItemSchema, type StyleArtifactResolveResponse, StyleArtifactResolveResponseSchema, } from "./schemas/index.js";
11
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/adapters/veryfront-api-client/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,WAAW,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,cAAc,EAAE,gBAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EACL,gBAAgB,EAChB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,cAAc,GACf,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,6BAA6B,EAC7B,iBAAiB,EACjB,6BAA6B,EAC7B,kCAAkC,EAClC,0BAA0B,EAC1B,8BAA8B,EAC9B,0BAA0B,EAC1B,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,uBAAuB,EACvB,yBAAyB,GAC1B,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/adapters/veryfront-api-client/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,KAAK,WAAW,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EACL,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,cAAc,EAAE,gBAAgB,EAAE,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC7F,OAAO,EACL,gBAAgB,EAChB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,cAAc,GACf,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,6BAA6B,EAC7B,iBAAiB,EACjB,6BAA6B,EAC7B,kCAAkC,EAClC,0BAA0B,EAC1B,8BAA8B,EAC9B,0BAA0B,EAC1B,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,uBAAuB,EACvB,yBAAyB,EACzB,KAAK,4BAA4B,EACjC,kCAAkC,GACnC,MAAM,oBAAoB,CAAC"}
@@ -7,4 +7,4 @@ export { VeryfrontApiClient } from "./client.js";
7
7
  export { VeryfrontAPIOperations, } from "./operations.js";
8
8
  export { requestWithRetry } from "./retry-handler.js";
9
9
  export { API_CLIENT_ERROR, VeryfrontError, } from "./types.js";
10
- export { API_ENDPOINTS, BranchFileDetailSchema, BranchFileListItemSchema, EnvironmentFileDetailSchema, EnvironmentFileListItemSchema, EnvironmentSchema, ListBranchFilesResponseSchema, ListEnvironmentFilesResponseSchema, ListProjectsResponseSchema, ListReleaseFilesResponseSchema, LookupDomainResponseSchema, PageInfoSchema, ProjectFileSchema, ProjectSchema, ReleaseFileDetailSchema, ReleaseFileListItemSchema, } from "./schemas/index.js";
10
+ export { API_ENDPOINTS, BranchFileDetailSchema, BranchFileListItemSchema, EnvironmentFileDetailSchema, EnvironmentFileListItemSchema, EnvironmentSchema, ListBranchFilesResponseSchema, ListEnvironmentFilesResponseSchema, ListProjectsResponseSchema, ListReleaseFilesResponseSchema, LookupDomainResponseSchema, PageInfoSchema, ProjectFileSchema, ProjectSchema, ReleaseFileDetailSchema, ReleaseFileListItemSchema, StyleArtifactResolveResponseSchema, } from "./schemas/index.js";
@@ -26,6 +26,28 @@ export interface FileDetail {
26
26
  release_id?: string;
27
27
  release_version?: string | null;
28
28
  }
29
+ export interface StyleArtifactSelector {
30
+ branch?: string;
31
+ environmentName?: string;
32
+ releaseId?: string;
33
+ }
34
+ export interface ResolveStyleArtifactInput extends StyleArtifactSelector {
35
+ styleProfileHash: string;
36
+ }
37
+ export interface UpsertStyleArtifactInput extends ResolveStyleArtifactInput {
38
+ artifactHash: string;
39
+ assetPath?: string;
40
+ contentType?: string;
41
+ etag?: string;
42
+ }
43
+ export interface ProjectStyleArtifactResolution {
44
+ status: "ready" | "missing";
45
+ artifactHash?: string;
46
+ assetPath?: string;
47
+ etag?: string;
48
+ contentType?: string;
49
+ updatedAt?: string;
50
+ }
29
51
  export declare class VeryfrontAPIOperations {
30
52
  private apiBaseUrl;
31
53
  private retryConfig;
@@ -53,6 +75,8 @@ export declare class VeryfrontAPIOperations {
53
75
  listAllReleaseFiles(projectRef: string, version?: string, options?: Omit<ListFilesOptions, "cursor">): Promise<ProjectFile[]>;
54
76
  getReleaseFile(projectRef: string, version: string, pathOrId: string): Promise<FileDetail>;
55
77
  lookupProjectByDomain(domain: string): Promise<LookupDomainResponse | null>;
78
+ resolveStyleArtifact(projectRef: string, input: ResolveStyleArtifactInput): Promise<ProjectStyleArtifactResolution>;
79
+ upsertStyleArtifact(projectRef: string, input: UpsertStyleArtifactInput): Promise<ProjectStyleArtifactResolution>;
56
80
  private request;
57
81
  }
58
82
  //# sourceMappingURL=operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../../src/src/platform/adapters/veryfront-api-client/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAoB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAExE,OAAO,EAOL,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,WAAW,EAGjB,MAAM,oBAAoB,CAAC;AAQ5B,MAAM,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC;AAEzC,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IAC/B,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,SAAS,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AA6CD,qBAAa,sBAAsB;IAI/B,OAAO,CAAC,UAAU;IAElB,OAAO,CAAC,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,cAAc,CAAC;IAwBpB,uBAAuB,CAC3B,UAAU,EAAE,MAAM,EAClB,eAAe,SAAe,EAC9B,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAM,GAC7C,OAAO,CAAC,WAAW,EAAE,CAAC;IAkBzB,kBAAkB,CAChB,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM,EACvB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,UAAU,CAAC;IA8BhB,gBAAgB,CACpB,UAAU,EAAE,MAAM,EAClB,OAAO,SAAW,EAClB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,cAAc,CAAC;IAkBpB,mBAAmB,CACvB,UAAU,EAAE,MAAM,EAClB,OAAO,SAAW,EAClB,OAAO,GAAE,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAM,GAC7C,OAAO,CAAC,WAAW,EAAE,CAAC;IAMzB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IA8B1F,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;IAsDrE,oBAAoB,CACxB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,yBAAyB,GAC/B,OAAO,CAAC,8BAA8B,CAAC;IAcpC,mBAAmB,CACvB,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,8BAA8B,CAAC;IA+B1C,OAAO,CAAC,OAAO;CAahB"}
@@ -2,7 +2,7 @@ import { logger as baseLogger } from "../../../utils/index.js";
2
2
  import { z } from "zod";
3
3
  import { requestWithRetry } from "./retry-handler.js";
4
4
  import { API_CLIENT_ERROR } from "./types.js";
5
- import { BranchFileDetailSchema, EnvironmentFileDetailSchema, ListBranchFilesResponseSchema, ListEnvironmentFilesResponseSchema, ListProjectsResponseSchema, ListReleaseFilesResponseSchema, ProjectSchema, ReleaseFileDetailSchema, } from "./schemas/index.js";
5
+ import { BranchFileDetailSchema, EnvironmentFileDetailSchema, ListBranchFilesResponseSchema, ListEnvironmentFilesResponseSchema, ListProjectsResponseSchema, ListReleaseFilesResponseSchema, ProjectSchema, ReleaseFileDetailSchema, StyleArtifactResolveResponseSchema, } from "./schemas/index.js";
6
6
  import { withSpan } from "../../../observability/tracing/otlp-setup.js";
7
7
  import { SpanNames } from "../../../observability/tracing/span-names.js";
8
8
  const logger = baseLogger.component("api");
@@ -31,6 +31,29 @@ function mapProjectFile(file) {
31
31
  updated_at: file.updated_at,
32
32
  };
33
33
  }
34
+ function buildStyleArtifactParams(input) {
35
+ const params = new URLSearchParams({
36
+ style_profile_hash: input.styleProfileHash,
37
+ });
38
+ if (input.branch)
39
+ params.set("branch", input.branch);
40
+ if (input.environmentName)
41
+ params.set("environment_name", input.environmentName);
42
+ if (input.releaseId)
43
+ params.set("release_id", input.releaseId);
44
+ return params;
45
+ }
46
+ function mapStyleArtifactResolution(raw) {
47
+ const response = StyleArtifactResolveResponseSchema.parse(raw);
48
+ return {
49
+ status: response.status,
50
+ artifactHash: response.artifact_hash,
51
+ assetPath: response.asset_path,
52
+ etag: response.etag,
53
+ contentType: response.content_type,
54
+ updatedAt: response.updated_at,
55
+ };
56
+ }
34
57
  async function listAllFiles(list) {
35
58
  const allFiles = [];
36
59
  let cursor;
@@ -265,7 +288,46 @@ export class VeryfrontAPIOperations {
265
288
  }
266
289
  }, { "api.domain": domain });
267
290
  }
268
- request(endpoint) {
269
- return withSpan(SpanNames.API_REQUEST, () => requestWithRetry(`${this.apiBaseUrl}${endpoint}`, this.tokenProvider(), this.retryConfig), { "api.endpoint": endpoint, "api.base_url": this.apiBaseUrl });
291
+ async resolveStyleArtifact(projectRef, input) {
292
+ const params = buildStyleArtifactParams(input);
293
+ const url = `/projects/${encodeURIComponent(projectRef)}/style-artifacts/current?${params}`;
294
+ logger.debug("resolveStyleArtifact", {
295
+ projectRef,
296
+ branch: input.branch,
297
+ environmentName: input.environmentName,
298
+ releaseId: input.releaseId,
299
+ styleProfileHash: input.styleProfileHash,
300
+ });
301
+ return mapStyleArtifactResolution(await this.request(url));
302
+ }
303
+ async upsertStyleArtifact(projectRef, input) {
304
+ const url = `/projects/${encodeURIComponent(projectRef)}/style-artifacts/current`;
305
+ logger.debug("upsertStyleArtifact", {
306
+ projectRef,
307
+ branch: input.branch,
308
+ environmentName: input.environmentName,
309
+ releaseId: input.releaseId,
310
+ styleProfileHash: input.styleProfileHash,
311
+ artifactHash: input.artifactHash,
312
+ });
313
+ return mapStyleArtifactResolution(await this.request(url, {
314
+ method: "PUT",
315
+ headers: {
316
+ "Content-Type": "application/json",
317
+ },
318
+ body: JSON.stringify({
319
+ style_profile_hash: input.styleProfileHash,
320
+ branch: input.branch,
321
+ environment_name: input.environmentName,
322
+ release_id: input.releaseId,
323
+ artifact_hash: input.artifactHash,
324
+ asset_path: input.assetPath,
325
+ content_type: input.contentType,
326
+ etag: input.etag,
327
+ }),
328
+ }));
329
+ }
330
+ request(endpoint, options = {}) {
331
+ return withSpan(SpanNames.API_REQUEST, () => requestWithRetry(`${this.apiBaseUrl}${endpoint}`, this.tokenProvider(), this.retryConfig, options), { "api.endpoint": endpoint, "api.base_url": this.apiBaseUrl });
270
332
  }
271
333
  }
@@ -3352,6 +3352,28 @@ export declare const LookupDomainResponseSchema: z.ZodObject<{
3352
3352
  } | null;
3353
3353
  project_name: string;
3354
3354
  }>;
3355
+ export declare const StyleArtifactResolveResponseSchema: z.ZodObject<{
3356
+ status: z.ZodEnum<["ready", "missing"]>;
3357
+ artifact_hash: z.ZodOptional<z.ZodString>;
3358
+ asset_path: z.ZodOptional<z.ZodString>;
3359
+ etag: z.ZodOptional<z.ZodString>;
3360
+ content_type: z.ZodOptional<z.ZodString>;
3361
+ updated_at: z.ZodOptional<z.ZodString>;
3362
+ }, "strip", z.ZodTypeAny, {
3363
+ status: "ready" | "missing";
3364
+ updated_at?: string | undefined;
3365
+ artifact_hash?: string | undefined;
3366
+ asset_path?: string | undefined;
3367
+ etag?: string | undefined;
3368
+ content_type?: string | undefined;
3369
+ }, {
3370
+ status: "ready" | "missing";
3371
+ updated_at?: string | undefined;
3372
+ artifact_hash?: string | undefined;
3373
+ asset_path?: string | undefined;
3374
+ etag?: string | undefined;
3375
+ content_type?: string | undefined;
3376
+ }>;
3355
3377
  export type Project = z.infer<typeof ProjectSchema>;
3356
3378
  export type ProjectFile = z.infer<typeof ProjectFileSchema>;
3357
3379
  export type PageInfo = z.infer<typeof PageInfoSchema>;
@@ -3366,6 +3388,7 @@ export type ReleaseFileListItem = z.infer<typeof ReleaseFileListItemSchema>;
3366
3388
  export type ListReleaseFilesResponse = z.infer<typeof ListReleaseFilesResponseSchema>;
3367
3389
  export type ReleaseFileDetail = z.infer<typeof ReleaseFileDetailSchema>;
3368
3390
  export type LookupDomainResponse = z.infer<typeof LookupDomainResponseSchema>;
3391
+ export type StyleArtifactResolveResponse = z.infer<typeof StyleArtifactResolveResponseSchema>;
3369
3392
  export declare const API_ENDPOINTS: {
3370
3393
  readonly listProjects: {
3371
3394
  readonly method: "GET";
@@ -3412,5 +3435,10 @@ export declare const API_ENDPOINTS: {
3412
3435
  readonly path: "/projects/{domain}";
3413
3436
  readonly description: "Look up project by custom domain (resolved via project_reference)";
3414
3437
  };
3438
+ readonly resolveStyleArtifact: {
3439
+ readonly method: "GET";
3440
+ readonly path: "/projects/{projectRef}/style-artifacts/current";
3441
+ readonly description: "Resolve metadata for the latest ready style artifact for a branch, environment, or release selector";
3442
+ };
3415
3443
  };
3416
3444
  //# sourceMappingURL=api.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.schema.d.ts","sourceRoot":"","sources":["../../../../../../src/src/platform/adapters/veryfront-api-client/schemas/api.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6CxB,eAAO,MAAM,aAAa;;;;;;;;;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KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDhB,CAAC"}
@@ -122,6 +122,14 @@ export const LookupDomainResponseSchema = z.object({
122
122
  environment: EnvironmentSchema.nullable(),
123
123
  release_id: z.string().uuid().nullable(),
124
124
  });
125
+ export const StyleArtifactResolveResponseSchema = z.object({
126
+ status: z.enum(["ready", "missing"]),
127
+ artifact_hash: z.string().optional(),
128
+ asset_path: z.string().optional(),
129
+ etag: z.string().optional(),
130
+ content_type: z.string().optional(),
131
+ updated_at: z.string().optional(),
132
+ });
125
133
  export const API_ENDPOINTS = {
126
134
  listProjects: {
127
135
  method: "GET",
@@ -168,4 +176,9 @@ export const API_ENDPOINTS = {
168
176
  path: "/projects/{domain}",
169
177
  description: "Look up project by custom domain (resolved via project_reference)",
170
178
  },
179
+ resolveStyleArtifact: {
180
+ method: "GET",
181
+ path: "/projects/{projectRef}/style-artifacts/current",
182
+ description: "Resolve metadata for the latest ready style artifact for a branch, environment, or release selector",
183
+ },
171
184
  };
@@ -3,5 +3,5 @@
3
3
  *
4
4
  * @module platform/adapters/veryfront-api-client/schemas
5
5
  */
6
- export { API_ENDPOINTS, type BranchFileDetail, BranchFileDetailSchema, type BranchFileListItem, BranchFileListItemSchema, type Environment, type EnvironmentFileDetail, EnvironmentFileDetailSchema, type EnvironmentFileListItem, EnvironmentFileListItemSchema, EnvironmentSchema, type ListBranchFilesResponse, ListBranchFilesResponseSchema, type ListEnvironmentFilesResponse, ListEnvironmentFilesResponseSchema, ListProjectsResponseSchema, type ListReleaseFilesResponse, ListReleaseFilesResponseSchema, type LookupDomainResponse, LookupDomainResponseSchema, type PageInfo, PageInfoSchema, type Project, type ProjectFile, ProjectFileSchema, ProjectSchema, type ReleaseFileDetail, ReleaseFileDetailSchema, type ReleaseFileListItem, ReleaseFileListItemSchema, } from "./api.schema.js";
6
+ export { API_ENDPOINTS, type BranchFileDetail, BranchFileDetailSchema, type BranchFileListItem, BranchFileListItemSchema, type Environment, type EnvironmentFileDetail, EnvironmentFileDetailSchema, type EnvironmentFileListItem, EnvironmentFileListItemSchema, EnvironmentSchema, type ListBranchFilesResponse, ListBranchFilesResponseSchema, type ListEnvironmentFilesResponse, ListEnvironmentFilesResponseSchema, ListProjectsResponseSchema, type ListReleaseFilesResponse, ListReleaseFilesResponseSchema, type LookupDomainResponse, LookupDomainResponseSchema, type PageInfo, PageInfoSchema, type Project, type ProjectFile, ProjectFileSchema, ProjectSchema, type ReleaseFileDetail, ReleaseFileDetailSchema, type ReleaseFileListItem, ReleaseFileListItemSchema, type StyleArtifactResolveResponse, StyleArtifactResolveResponseSchema, } from "./api.schema.js";
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/src/platform/adapters/veryfront-api-client/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,aAAa,EACb,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,KAAK,uBAAuB,EAC5B,6BAA6B,EAC7B,iBAAiB,EACjB,KAAK,uBAAuB,EAC5B,6BAA6B,EAC7B,KAAK,4BAA4B,EACjC,kCAAkC,EAClC,0BAA0B,EAC1B,KAAK,wBAAwB,EAC7B,8BAA8B,EAC9B,KAAK,oBAAoB,EACzB,0BAA0B,EAC1B,KAAK,QAAQ,EACb,cAAc,EACd,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,iBAAiB,EACjB,aAAa,EACb,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,mBAAmB,EACxB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/src/platform/adapters/veryfront-api-client/schemas/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,aAAa,EACb,KAAK,gBAAgB,EACrB,sBAAsB,EACtB,KAAK,kBAAkB,EACvB,wBAAwB,EACxB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,2BAA2B,EAC3B,KAAK,uBAAuB,EAC5B,6BAA6B,EAC7B,iBAAiB,EACjB,KAAK,uBAAuB,EAC5B,6BAA6B,EAC7B,KAAK,4BAA4B,EACjC,kCAAkC,EAClC,0BAA0B,EAC1B,KAAK,wBAAwB,EAC7B,8BAA8B,EAC9B,KAAK,oBAAoB,EACzB,0BAA0B,EAC1B,KAAK,QAAQ,EACb,cAAc,EACd,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,iBAAiB,EACjB,aAAa,EACb,KAAK,iBAAiB,EACtB,uBAAuB,EACvB,KAAK,mBAAmB,EACxB,yBAAyB,EACzB,KAAK,4BAA4B,EACjC,kCAAkC,GACnC,MAAM,iBAAiB,CAAC"}
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * @module platform/adapters/veryfront-api-client/schemas
5
5
  */
6
- export { API_ENDPOINTS, BranchFileDetailSchema, BranchFileListItemSchema, EnvironmentFileDetailSchema, EnvironmentFileListItemSchema, EnvironmentSchema, ListBranchFilesResponseSchema, ListEnvironmentFilesResponseSchema, ListProjectsResponseSchema, ListReleaseFilesResponseSchema, LookupDomainResponseSchema, PageInfoSchema, ProjectFileSchema, ProjectSchema, ReleaseFileDetailSchema, ReleaseFileListItemSchema, } from "./api.schema.js";
6
+ export { API_ENDPOINTS, BranchFileDetailSchema, BranchFileListItemSchema, EnvironmentFileDetailSchema, EnvironmentFileListItemSchema, EnvironmentSchema, ListBranchFilesResponseSchema, ListEnvironmentFilesResponseSchema, ListProjectsResponseSchema, ListReleaseFilesResponseSchema, LookupDomainResponseSchema, PageInfoSchema, ProjectFileSchema, ProjectSchema, ReleaseFileDetailSchema, ReleaseFileListItemSchema, StyleArtifactResolveResponseSchema, } from "./api.schema.js";
@@ -17,5 +17,5 @@
17
17
  * @module
18
18
  */
19
19
  import "../../_dnt.polyfills.js";
20
- export { type ExecResult, type ExecStreamEvent, Sandbox, type SandboxOptions } from "./sandbox.js";
20
+ export { type CommandJob, type CommandJobHeartbeatStatus, type CommandJobOutput, type CommandJobStatus, type ExecResult, type ExecStreamEvent, Sandbox, type SandboxListOptions, type SandboxListResult, type SandboxOptions, type SandboxSession, } from "./sandbox.js";
21
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/sandbox/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,eAAe,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/src/sandbox/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,yBAAyB,CAAC;AAGjC,OAAO,EACL,KAAK,UAAU,EACf,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,UAAU,EACf,KAAK,eAAe,EACpB,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,cAAc,CAAC"}
@@ -17,4 +17,4 @@
17
17
  * @module
18
18
  */
19
19
  import "../../_dnt.polyfills.js";
20
- export { Sandbox } from "./sandbox.js";
20
+ export { Sandbox, } from "./sandbox.js";