mastra 1.34.1-alpha.3 → 1.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/api/factory-route-metadata.generated.d.ts +740 -0
- package/dist/commands/api/factory-route-metadata.generated.d.ts.map +1 -1
- package/dist/commands/api/index.d.ts +73 -2
- package/dist/commands/api/index.d.ts.map +1 -1
- package/dist/commands/api/route-metadata.generated.d.ts +2 -2
- package/dist/commands/api/route-metadata.generated.d.ts.map +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-cli-mastra.md +13 -4
- package/dist/factory/assets/{CodeDiff.es-C52ce-xn.js → CodeDiff.es-CZqhW1NX.js} +1 -1
- package/dist/factory/assets/{core-CF14269M.js → core-DtoHdJpm.js} +1 -1
- package/dist/factory/assets/index-CoYTK8C9.css +1 -0
- package/dist/factory/assets/{index-C0GZ7CSb.js → index-DTTq3N6t.js} +1 -1
- package/dist/factory/assets/index-DooxkSSm.js +1443 -0
- package/dist/factory/index.html +2 -2
- package/dist/index.js +657 -3
- package/dist/index.js.map +1 -1
- package/dist/studio/assets/{CodeDiff.es-BGRRcOeA.js → CodeDiff.es-D-3pK78A.js} +1 -1
- package/dist/studio/assets/{core-Cq9XrLzh.js → core-QQAS7ifM.js} +1 -1
- package/dist/studio/assets/{index-CEswNJw2.js → index-C7U0QkuV.js} +1 -1
- package/dist/studio/assets/{index-B6qnrGZs.js → index-mdIMRdQn.js} +2 -2
- package/dist/studio/assets/{main-cE1pcfxf.js → main-CS8gBi_K.js} +254 -254
- package/dist/studio/assets/style-mw7_krDJ.css +1 -0
- package/dist/studio/index.html +2 -2
- package/package.json +7 -7
- package/dist/factory/assets/index-6ilvUqwp.js +0 -1366
- package/dist/factory/assets/index-DgfuZZ-Y.css +0 -1
- package/dist/studio/assets/style-C1ooE_6O.css +0 -1
|
@@ -100,6 +100,49 @@ export declare const FACTORY_API_ROUTE_METADATA: {
|
|
|
100
100
|
readonly listProperty: "decisions";
|
|
101
101
|
};
|
|
102
102
|
};
|
|
103
|
+
readonly "GET /web/factory/projects/:id/environment": {
|
|
104
|
+
readonly contractKey: "projectEnvironmentGet";
|
|
105
|
+
readonly method: "GET";
|
|
106
|
+
readonly path: "/web/factory/projects/:id/environment";
|
|
107
|
+
readonly description: "Get the sandbox environment of a Factory project: provider settings and its repositories in order";
|
|
108
|
+
readonly pathParams: readonly ["id"];
|
|
109
|
+
readonly queryParams: readonly [];
|
|
110
|
+
readonly bodyParams: readonly [];
|
|
111
|
+
readonly hasQuery: false;
|
|
112
|
+
readonly hasBody: false;
|
|
113
|
+
readonly responseShape: {
|
|
114
|
+
readonly kind: "single";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly "GET /web/factory/projects/:id/environment/builds": {
|
|
118
|
+
readonly contractKey: "projectEnvironmentBuilds";
|
|
119
|
+
readonly method: "GET";
|
|
120
|
+
readonly path: "/web/factory/projects/:id/environment/builds";
|
|
121
|
+
readonly description: "List the environment template builds of a Factory project, newest first, when the provider keeps history";
|
|
122
|
+
readonly pathParams: readonly ["id"];
|
|
123
|
+
readonly queryParams: readonly [];
|
|
124
|
+
readonly bodyParams: readonly [];
|
|
125
|
+
readonly hasQuery: false;
|
|
126
|
+
readonly hasBody: false;
|
|
127
|
+
readonly responseShape: {
|
|
128
|
+
readonly kind: "object-property";
|
|
129
|
+
readonly listProperty: "builds";
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
readonly "GET /web/factory/projects/:id/environment/builds/:buildId": {
|
|
133
|
+
readonly contractKey: "projectEnvironmentBuildGet";
|
|
134
|
+
readonly method: "GET";
|
|
135
|
+
readonly path: "/web/factory/projects/:id/environment/builds/:buildId";
|
|
136
|
+
readonly description: "Get the live status of one environment template build of a Factory project";
|
|
137
|
+
readonly pathParams: readonly ["id", "buildId"];
|
|
138
|
+
readonly queryParams: readonly [];
|
|
139
|
+
readonly bodyParams: readonly [];
|
|
140
|
+
readonly hasQuery: false;
|
|
141
|
+
readonly hasBody: false;
|
|
142
|
+
readonly responseShape: {
|
|
143
|
+
readonly kind: "single";
|
|
144
|
+
};
|
|
145
|
+
};
|
|
103
146
|
readonly "GET /web/factory/projects/:id/health/thresholds": {
|
|
104
147
|
readonly contractKey: "healthThresholdsGet";
|
|
105
148
|
readonly method: "GET";
|
|
@@ -171,6 +214,20 @@ export declare const FACTORY_API_ROUTE_METADATA: {
|
|
|
171
214
|
readonly kind: "single";
|
|
172
215
|
};
|
|
173
216
|
};
|
|
217
|
+
readonly "PATCH /web/factory/projects/:id/environment": {
|
|
218
|
+
readonly contractKey: "projectEnvironmentUpdate";
|
|
219
|
+
readonly method: "PATCH";
|
|
220
|
+
readonly path: "/web/factory/projects/:id/environment";
|
|
221
|
+
readonly description: "Update the sandbox environment of a Factory project: provider settings, repository order and setup";
|
|
222
|
+
readonly pathParams: readonly ["id"];
|
|
223
|
+
readonly queryParams: readonly [];
|
|
224
|
+
readonly bodyParams: readonly ["buildTriggers", "repositories", "sandboxWorkingDirectory", "settings", "workspaceSetupCommand"];
|
|
225
|
+
readonly hasQuery: false;
|
|
226
|
+
readonly hasBody: true;
|
|
227
|
+
readonly responseShape: {
|
|
228
|
+
readonly kind: "single";
|
|
229
|
+
};
|
|
230
|
+
};
|
|
174
231
|
readonly "PATCH /web/factory/work-items/:id": {
|
|
175
232
|
readonly contractKey: "workItemUpdate";
|
|
176
233
|
readonly method: "PATCH";
|
|
@@ -311,6 +368,20 @@ export declare const FACTORY_API_ROUTE_METADATA: {
|
|
|
311
368
|
readonly kind: "single";
|
|
312
369
|
};
|
|
313
370
|
};
|
|
371
|
+
readonly "POST /web/factory/projects/:id/environment/build": {
|
|
372
|
+
readonly contractKey: "projectEnvironmentBuild";
|
|
373
|
+
readonly method: "POST";
|
|
374
|
+
readonly path: "/web/factory/projects/:id/environment/build";
|
|
375
|
+
readonly description: "Build the sandbox environment template of a Factory project now";
|
|
376
|
+
readonly pathParams: readonly ["id"];
|
|
377
|
+
readonly queryParams: readonly [];
|
|
378
|
+
readonly bodyParams: readonly [];
|
|
379
|
+
readonly hasQuery: false;
|
|
380
|
+
readonly hasBody: false;
|
|
381
|
+
readonly responseShape: {
|
|
382
|
+
readonly kind: "single";
|
|
383
|
+
};
|
|
384
|
+
};
|
|
314
385
|
readonly "POST /web/factory/projects/:id/runs/start": {
|
|
315
386
|
readonly contractKey: "workItemStart";
|
|
316
387
|
readonly method: "POST";
|
|
@@ -695,6 +766,309 @@ export declare const FACTORY_API_ROUTE_SCHEMAS: {
|
|
|
695
766
|
readonly required: readonly ["decisions"];
|
|
696
767
|
};
|
|
697
768
|
};
|
|
769
|
+
readonly "GET /web/factory/projects/:id/environment": {
|
|
770
|
+
readonly path: {
|
|
771
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
772
|
+
readonly type: "object";
|
|
773
|
+
readonly properties: {
|
|
774
|
+
readonly id: {
|
|
775
|
+
readonly type: "string";
|
|
776
|
+
readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
|
|
777
|
+
};
|
|
778
|
+
};
|
|
779
|
+
readonly required: readonly ["id"];
|
|
780
|
+
};
|
|
781
|
+
readonly response: {
|
|
782
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
783
|
+
readonly type: "object";
|
|
784
|
+
readonly properties: {
|
|
785
|
+
readonly environment: {
|
|
786
|
+
readonly type: "object";
|
|
787
|
+
readonly properties: {
|
|
788
|
+
readonly sandbox: {
|
|
789
|
+
readonly type: "object";
|
|
790
|
+
readonly properties: {
|
|
791
|
+
readonly provider: {
|
|
792
|
+
readonly type: "string";
|
|
793
|
+
};
|
|
794
|
+
readonly settingsSchema: {
|
|
795
|
+
readonly type: "object";
|
|
796
|
+
readonly propertyNames: {
|
|
797
|
+
readonly type: "string";
|
|
798
|
+
};
|
|
799
|
+
readonly additionalProperties: {};
|
|
800
|
+
};
|
|
801
|
+
readonly capabilities: {
|
|
802
|
+
readonly type: "object";
|
|
803
|
+
readonly properties: {
|
|
804
|
+
readonly template: {
|
|
805
|
+
readonly type: "boolean";
|
|
806
|
+
};
|
|
807
|
+
readonly builds: {
|
|
808
|
+
readonly type: "object";
|
|
809
|
+
readonly properties: {
|
|
810
|
+
readonly available: {
|
|
811
|
+
readonly type: "boolean";
|
|
812
|
+
};
|
|
813
|
+
readonly history: {
|
|
814
|
+
readonly type: "boolean";
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
readonly required: readonly ["available", "history"];
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
readonly required: readonly ["template", "builds"];
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
readonly required: readonly ["provider", "settingsSchema", "capabilities"];
|
|
824
|
+
};
|
|
825
|
+
readonly settings: {
|
|
826
|
+
readonly type: "object";
|
|
827
|
+
readonly propertyNames: {
|
|
828
|
+
readonly type: "string";
|
|
829
|
+
};
|
|
830
|
+
readonly additionalProperties: {};
|
|
831
|
+
};
|
|
832
|
+
readonly sandboxWorkingDirectory: {
|
|
833
|
+
readonly type: readonly ["string", "null"];
|
|
834
|
+
};
|
|
835
|
+
readonly workspaceSetupCommand: {
|
|
836
|
+
readonly type: readonly ["string", "null"];
|
|
837
|
+
};
|
|
838
|
+
readonly activeTemplateId: {
|
|
839
|
+
readonly type: readonly ["string", "null"];
|
|
840
|
+
};
|
|
841
|
+
readonly activeTemplateHeads: {
|
|
842
|
+
readonly anyOf: readonly [{
|
|
843
|
+
readonly type: "object";
|
|
844
|
+
readonly propertyNames: {
|
|
845
|
+
readonly type: "string";
|
|
846
|
+
};
|
|
847
|
+
readonly additionalProperties: {
|
|
848
|
+
readonly type: "string";
|
|
849
|
+
};
|
|
850
|
+
}, {
|
|
851
|
+
readonly type: "null";
|
|
852
|
+
}];
|
|
853
|
+
};
|
|
854
|
+
readonly repositories: {
|
|
855
|
+
readonly type: "array";
|
|
856
|
+
readonly items: {
|
|
857
|
+
readonly type: "object";
|
|
858
|
+
readonly properties: {
|
|
859
|
+
readonly projectRepositoryId: {
|
|
860
|
+
readonly type: "string";
|
|
861
|
+
};
|
|
862
|
+
readonly connectionId: {
|
|
863
|
+
readonly type: "string";
|
|
864
|
+
};
|
|
865
|
+
readonly repositoryId: {
|
|
866
|
+
readonly type: "string";
|
|
867
|
+
};
|
|
868
|
+
readonly slug: {
|
|
869
|
+
readonly type: readonly ["string", "null"];
|
|
870
|
+
};
|
|
871
|
+
readonly defaultBranch: {
|
|
872
|
+
readonly type: readonly ["string", "null"];
|
|
873
|
+
};
|
|
874
|
+
readonly position: {
|
|
875
|
+
readonly type: "integer";
|
|
876
|
+
readonly minimum: -9007199254740991;
|
|
877
|
+
readonly maximum: 9007199254740991;
|
|
878
|
+
};
|
|
879
|
+
readonly inEnvironment: {
|
|
880
|
+
readonly type: "boolean";
|
|
881
|
+
};
|
|
882
|
+
readonly setupCommand: {
|
|
883
|
+
readonly type: readonly ["string", "null"];
|
|
884
|
+
};
|
|
885
|
+
readonly teardownCommand: {
|
|
886
|
+
readonly type: readonly ["string", "null"];
|
|
887
|
+
};
|
|
888
|
+
readonly lastBuildStatus: {
|
|
889
|
+
readonly type: "string";
|
|
890
|
+
readonly enum: readonly ["unbuilt", "configured", "failed"];
|
|
891
|
+
};
|
|
892
|
+
readonly lastBuildError: {
|
|
893
|
+
readonly type: readonly ["string", "null"];
|
|
894
|
+
};
|
|
895
|
+
readonly lastBuiltAt: {
|
|
896
|
+
readonly type: readonly ["string", "null"];
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
readonly required: readonly ["projectRepositoryId", "connectionId", "repositoryId", "slug", "defaultBranch", "position", "inEnvironment", "setupCommand", "teardownCommand", "lastBuildStatus", "lastBuildError", "lastBuiltAt"];
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
readonly buildTriggers: {
|
|
903
|
+
readonly type: "object";
|
|
904
|
+
readonly properties: {
|
|
905
|
+
readonly schedule: {
|
|
906
|
+
readonly type: "object";
|
|
907
|
+
readonly properties: {
|
|
908
|
+
readonly enabled: {
|
|
909
|
+
readonly type: "boolean";
|
|
910
|
+
};
|
|
911
|
+
readonly cron: {
|
|
912
|
+
readonly type: readonly ["string", "null"];
|
|
913
|
+
};
|
|
914
|
+
readonly timezone: {
|
|
915
|
+
readonly type: readonly ["string", "null"];
|
|
916
|
+
};
|
|
917
|
+
readonly scheduleAvailable: {
|
|
918
|
+
readonly type: "boolean";
|
|
919
|
+
};
|
|
920
|
+
};
|
|
921
|
+
readonly required: readonly ["enabled", "cron", "timezone", "scheduleAvailable"];
|
|
922
|
+
};
|
|
923
|
+
readonly push: {
|
|
924
|
+
readonly type: "object";
|
|
925
|
+
readonly properties: {
|
|
926
|
+
readonly enabled: {
|
|
927
|
+
readonly type: "boolean";
|
|
928
|
+
};
|
|
929
|
+
readonly debounceMinutes: {
|
|
930
|
+
readonly type: "integer";
|
|
931
|
+
readonly minimum: -9007199254740991;
|
|
932
|
+
readonly maximum: 9007199254740991;
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
readonly required: readonly ["enabled", "debounceMinutes"];
|
|
936
|
+
};
|
|
937
|
+
};
|
|
938
|
+
readonly required: readonly ["schedule", "push"];
|
|
939
|
+
};
|
|
940
|
+
readonly build: {
|
|
941
|
+
readonly anyOf: readonly [{
|
|
942
|
+
readonly type: "object";
|
|
943
|
+
readonly properties: {
|
|
944
|
+
readonly buildId: {
|
|
945
|
+
readonly type: "string";
|
|
946
|
+
};
|
|
947
|
+
readonly attemptedAt: {
|
|
948
|
+
readonly type: readonly ["string", "null"];
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
readonly required: readonly ["buildId", "attemptedAt"];
|
|
952
|
+
}, {
|
|
953
|
+
readonly type: "null";
|
|
954
|
+
}];
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
readonly required: readonly ["sandbox", "settings", "sandboxWorkingDirectory", "workspaceSetupCommand", "activeTemplateId", "activeTemplateHeads", "repositories"];
|
|
958
|
+
};
|
|
959
|
+
};
|
|
960
|
+
readonly required: readonly ["environment"];
|
|
961
|
+
};
|
|
962
|
+
};
|
|
963
|
+
readonly "GET /web/factory/projects/:id/environment/builds": {
|
|
964
|
+
readonly path: {
|
|
965
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
966
|
+
readonly type: "object";
|
|
967
|
+
readonly properties: {
|
|
968
|
+
readonly id: {
|
|
969
|
+
readonly type: "string";
|
|
970
|
+
readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
readonly required: readonly ["id"];
|
|
974
|
+
};
|
|
975
|
+
readonly response: {
|
|
976
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
977
|
+
readonly type: "object";
|
|
978
|
+
readonly properties: {
|
|
979
|
+
readonly builds: {
|
|
980
|
+
readonly type: "array";
|
|
981
|
+
readonly items: {
|
|
982
|
+
readonly type: "object";
|
|
983
|
+
readonly properties: {
|
|
984
|
+
readonly buildId: {
|
|
985
|
+
readonly type: "string";
|
|
986
|
+
};
|
|
987
|
+
readonly status: {
|
|
988
|
+
readonly type: "string";
|
|
989
|
+
readonly enum: readonly ["pending", "building", "ready", "failed", "unknown"];
|
|
990
|
+
};
|
|
991
|
+
readonly templateId: {
|
|
992
|
+
readonly type: "string";
|
|
993
|
+
};
|
|
994
|
+
readonly startedAt: {
|
|
995
|
+
readonly type: "string";
|
|
996
|
+
};
|
|
997
|
+
readonly finishedAt: {
|
|
998
|
+
readonly type: "string";
|
|
999
|
+
};
|
|
1000
|
+
readonly error: {
|
|
1001
|
+
readonly type: "string";
|
|
1002
|
+
};
|
|
1003
|
+
readonly logs: {
|
|
1004
|
+
readonly type: "array";
|
|
1005
|
+
readonly items: {
|
|
1006
|
+
readonly type: "string";
|
|
1007
|
+
};
|
|
1008
|
+
};
|
|
1009
|
+
};
|
|
1010
|
+
readonly required: readonly ["buildId", "status"];
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
1013
|
+
};
|
|
1014
|
+
readonly required: readonly ["builds"];
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
readonly "GET /web/factory/projects/:id/environment/builds/:buildId": {
|
|
1018
|
+
readonly path: {
|
|
1019
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
1020
|
+
readonly type: "object";
|
|
1021
|
+
readonly properties: {
|
|
1022
|
+
readonly id: {
|
|
1023
|
+
readonly type: "string";
|
|
1024
|
+
readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
|
|
1025
|
+
};
|
|
1026
|
+
readonly buildId: {
|
|
1027
|
+
readonly type: "string";
|
|
1028
|
+
readonly minLength: 1;
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
readonly required: readonly ["id", "buildId"];
|
|
1032
|
+
};
|
|
1033
|
+
readonly response: {
|
|
1034
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
1035
|
+
readonly type: "object";
|
|
1036
|
+
readonly properties: {
|
|
1037
|
+
readonly build: {
|
|
1038
|
+
readonly type: "object";
|
|
1039
|
+
readonly properties: {
|
|
1040
|
+
readonly buildId: {
|
|
1041
|
+
readonly type: "string";
|
|
1042
|
+
};
|
|
1043
|
+
readonly status: {
|
|
1044
|
+
readonly type: "string";
|
|
1045
|
+
readonly enum: readonly ["pending", "building", "ready", "failed", "unknown"];
|
|
1046
|
+
};
|
|
1047
|
+
readonly templateId: {
|
|
1048
|
+
readonly type: "string";
|
|
1049
|
+
};
|
|
1050
|
+
readonly startedAt: {
|
|
1051
|
+
readonly type: "string";
|
|
1052
|
+
};
|
|
1053
|
+
readonly finishedAt: {
|
|
1054
|
+
readonly type: "string";
|
|
1055
|
+
};
|
|
1056
|
+
readonly error: {
|
|
1057
|
+
readonly type: "string";
|
|
1058
|
+
};
|
|
1059
|
+
readonly logs: {
|
|
1060
|
+
readonly type: "array";
|
|
1061
|
+
readonly items: {
|
|
1062
|
+
readonly type: "string";
|
|
1063
|
+
};
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
1066
|
+
readonly required: readonly ["buildId", "status"];
|
|
1067
|
+
};
|
|
1068
|
+
};
|
|
1069
|
+
readonly required: readonly ["build"];
|
|
1070
|
+
};
|
|
1071
|
+
};
|
|
698
1072
|
readonly "GET /web/factory/projects/:id/health/thresholds": {
|
|
699
1073
|
readonly path: {
|
|
700
1074
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -936,6 +1310,334 @@ export declare const FACTORY_API_ROUTE_SCHEMAS: {
|
|
|
936
1310
|
readonly required: readonly ["project"];
|
|
937
1311
|
};
|
|
938
1312
|
};
|
|
1313
|
+
readonly "PATCH /web/factory/projects/:id/environment": {
|
|
1314
|
+
readonly path: {
|
|
1315
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
1316
|
+
readonly type: "object";
|
|
1317
|
+
readonly properties: {
|
|
1318
|
+
readonly id: {
|
|
1319
|
+
readonly type: "string";
|
|
1320
|
+
readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
|
|
1321
|
+
};
|
|
1322
|
+
};
|
|
1323
|
+
readonly required: readonly ["id"];
|
|
1324
|
+
};
|
|
1325
|
+
readonly body: {
|
|
1326
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
1327
|
+
readonly type: "object";
|
|
1328
|
+
readonly properties: {
|
|
1329
|
+
readonly sandboxWorkingDirectory: {
|
|
1330
|
+
readonly $ref: "#/$defs/__schema0";
|
|
1331
|
+
};
|
|
1332
|
+
readonly settings: {
|
|
1333
|
+
readonly $ref: "#/$defs/__schema3";
|
|
1334
|
+
};
|
|
1335
|
+
readonly workspaceSetupCommand: {
|
|
1336
|
+
readonly $ref: "#/$defs/__schema4";
|
|
1337
|
+
};
|
|
1338
|
+
readonly buildTriggers: {
|
|
1339
|
+
readonly $ref: "#/$defs/__schema5";
|
|
1340
|
+
};
|
|
1341
|
+
readonly repositories: {
|
|
1342
|
+
readonly $ref: "#/$defs/__schema6";
|
|
1343
|
+
};
|
|
1344
|
+
};
|
|
1345
|
+
readonly $defs: {
|
|
1346
|
+
readonly __schema0: {
|
|
1347
|
+
readonly anyOf: readonly [{
|
|
1348
|
+
readonly $ref: "#/$defs/__schema1";
|
|
1349
|
+
}, {
|
|
1350
|
+
readonly $ref: "#/$defs/__schema2";
|
|
1351
|
+
}];
|
|
1352
|
+
};
|
|
1353
|
+
readonly __schema1: {
|
|
1354
|
+
readonly type: "string";
|
|
1355
|
+
readonly maxLength: 1000;
|
|
1356
|
+
};
|
|
1357
|
+
readonly __schema2: {
|
|
1358
|
+
readonly type: "null";
|
|
1359
|
+
};
|
|
1360
|
+
readonly __schema3: {
|
|
1361
|
+
readonly type: "object";
|
|
1362
|
+
readonly propertyNames: {
|
|
1363
|
+
readonly type: "string";
|
|
1364
|
+
};
|
|
1365
|
+
readonly additionalProperties: {
|
|
1366
|
+
readonly anyOf: readonly [{}, {
|
|
1367
|
+
readonly type: "null";
|
|
1368
|
+
}];
|
|
1369
|
+
};
|
|
1370
|
+
};
|
|
1371
|
+
readonly __schema4: {
|
|
1372
|
+
readonly anyOf: readonly [{
|
|
1373
|
+
readonly type: "string";
|
|
1374
|
+
readonly maxLength: 2000;
|
|
1375
|
+
}, {
|
|
1376
|
+
readonly type: "null";
|
|
1377
|
+
}];
|
|
1378
|
+
};
|
|
1379
|
+
readonly __schema5: {
|
|
1380
|
+
readonly type: "object";
|
|
1381
|
+
readonly properties: {
|
|
1382
|
+
readonly schedule: {
|
|
1383
|
+
readonly type: "object";
|
|
1384
|
+
readonly properties: {
|
|
1385
|
+
readonly enabled: {
|
|
1386
|
+
readonly type: "boolean";
|
|
1387
|
+
};
|
|
1388
|
+
readonly cron: {
|
|
1389
|
+
readonly type: "string";
|
|
1390
|
+
readonly minLength: 1;
|
|
1391
|
+
readonly maxLength: 100;
|
|
1392
|
+
};
|
|
1393
|
+
readonly timezone: {
|
|
1394
|
+
readonly type: "string";
|
|
1395
|
+
readonly minLength: 1;
|
|
1396
|
+
readonly maxLength: 100;
|
|
1397
|
+
};
|
|
1398
|
+
};
|
|
1399
|
+
readonly required: readonly ["enabled"];
|
|
1400
|
+
};
|
|
1401
|
+
readonly push: {
|
|
1402
|
+
readonly type: "object";
|
|
1403
|
+
readonly properties: {
|
|
1404
|
+
readonly enabled: {
|
|
1405
|
+
readonly type: "boolean";
|
|
1406
|
+
};
|
|
1407
|
+
readonly debounceMinutes: {
|
|
1408
|
+
readonly type: "integer";
|
|
1409
|
+
readonly minimum: 0;
|
|
1410
|
+
readonly maximum: 1440;
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
};
|
|
1415
|
+
};
|
|
1416
|
+
readonly __schema6: {
|
|
1417
|
+
readonly maxItems: 100;
|
|
1418
|
+
readonly type: "array";
|
|
1419
|
+
readonly items: {
|
|
1420
|
+
readonly $ref: "#/$defs/__schema7";
|
|
1421
|
+
};
|
|
1422
|
+
};
|
|
1423
|
+
readonly __schema7: {
|
|
1424
|
+
readonly type: "object";
|
|
1425
|
+
readonly properties: {
|
|
1426
|
+
readonly projectRepositoryId: {
|
|
1427
|
+
readonly type: "string";
|
|
1428
|
+
readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
|
|
1429
|
+
};
|
|
1430
|
+
readonly position: {
|
|
1431
|
+
readonly type: "integer";
|
|
1432
|
+
readonly minimum: 1;
|
|
1433
|
+
readonly maximum: 9007199254740991;
|
|
1434
|
+
};
|
|
1435
|
+
readonly inEnvironment: {
|
|
1436
|
+
readonly type: "boolean";
|
|
1437
|
+
};
|
|
1438
|
+
readonly setupCommand: {
|
|
1439
|
+
readonly anyOf: readonly [{
|
|
1440
|
+
readonly type: "string";
|
|
1441
|
+
readonly maxLength: 2000;
|
|
1442
|
+
}, {
|
|
1443
|
+
readonly type: "null";
|
|
1444
|
+
}];
|
|
1445
|
+
};
|
|
1446
|
+
readonly teardownCommand: {
|
|
1447
|
+
readonly anyOf: readonly [{
|
|
1448
|
+
readonly type: "string";
|
|
1449
|
+
readonly maxLength: 2000;
|
|
1450
|
+
}, {
|
|
1451
|
+
readonly type: "null";
|
|
1452
|
+
}];
|
|
1453
|
+
};
|
|
1454
|
+
};
|
|
1455
|
+
readonly required: readonly ["projectRepositoryId"];
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
readonly response: {
|
|
1460
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
1461
|
+
readonly type: "object";
|
|
1462
|
+
readonly properties: {
|
|
1463
|
+
readonly environment: {
|
|
1464
|
+
readonly type: "object";
|
|
1465
|
+
readonly properties: {
|
|
1466
|
+
readonly sandbox: {
|
|
1467
|
+
readonly type: "object";
|
|
1468
|
+
readonly properties: {
|
|
1469
|
+
readonly provider: {
|
|
1470
|
+
readonly type: "string";
|
|
1471
|
+
};
|
|
1472
|
+
readonly settingsSchema: {
|
|
1473
|
+
readonly type: "object";
|
|
1474
|
+
readonly propertyNames: {
|
|
1475
|
+
readonly type: "string";
|
|
1476
|
+
};
|
|
1477
|
+
readonly additionalProperties: {};
|
|
1478
|
+
};
|
|
1479
|
+
readonly capabilities: {
|
|
1480
|
+
readonly type: "object";
|
|
1481
|
+
readonly properties: {
|
|
1482
|
+
readonly template: {
|
|
1483
|
+
readonly type: "boolean";
|
|
1484
|
+
};
|
|
1485
|
+
readonly builds: {
|
|
1486
|
+
readonly type: "object";
|
|
1487
|
+
readonly properties: {
|
|
1488
|
+
readonly available: {
|
|
1489
|
+
readonly type: "boolean";
|
|
1490
|
+
};
|
|
1491
|
+
readonly history: {
|
|
1492
|
+
readonly type: "boolean";
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
|
+
readonly required: readonly ["available", "history"];
|
|
1496
|
+
};
|
|
1497
|
+
};
|
|
1498
|
+
readonly required: readonly ["template", "builds"];
|
|
1499
|
+
};
|
|
1500
|
+
};
|
|
1501
|
+
readonly required: readonly ["provider", "settingsSchema", "capabilities"];
|
|
1502
|
+
};
|
|
1503
|
+
readonly settings: {
|
|
1504
|
+
readonly type: "object";
|
|
1505
|
+
readonly propertyNames: {
|
|
1506
|
+
readonly type: "string";
|
|
1507
|
+
};
|
|
1508
|
+
readonly additionalProperties: {};
|
|
1509
|
+
};
|
|
1510
|
+
readonly sandboxWorkingDirectory: {
|
|
1511
|
+
readonly type: readonly ["string", "null"];
|
|
1512
|
+
};
|
|
1513
|
+
readonly workspaceSetupCommand: {
|
|
1514
|
+
readonly type: readonly ["string", "null"];
|
|
1515
|
+
};
|
|
1516
|
+
readonly activeTemplateId: {
|
|
1517
|
+
readonly type: readonly ["string", "null"];
|
|
1518
|
+
};
|
|
1519
|
+
readonly activeTemplateHeads: {
|
|
1520
|
+
readonly anyOf: readonly [{
|
|
1521
|
+
readonly type: "object";
|
|
1522
|
+
readonly propertyNames: {
|
|
1523
|
+
readonly type: "string";
|
|
1524
|
+
};
|
|
1525
|
+
readonly additionalProperties: {
|
|
1526
|
+
readonly type: "string";
|
|
1527
|
+
};
|
|
1528
|
+
}, {
|
|
1529
|
+
readonly type: "null";
|
|
1530
|
+
}];
|
|
1531
|
+
};
|
|
1532
|
+
readonly repositories: {
|
|
1533
|
+
readonly type: "array";
|
|
1534
|
+
readonly items: {
|
|
1535
|
+
readonly type: "object";
|
|
1536
|
+
readonly properties: {
|
|
1537
|
+
readonly projectRepositoryId: {
|
|
1538
|
+
readonly type: "string";
|
|
1539
|
+
};
|
|
1540
|
+
readonly connectionId: {
|
|
1541
|
+
readonly type: "string";
|
|
1542
|
+
};
|
|
1543
|
+
readonly repositoryId: {
|
|
1544
|
+
readonly type: "string";
|
|
1545
|
+
};
|
|
1546
|
+
readonly slug: {
|
|
1547
|
+
readonly type: readonly ["string", "null"];
|
|
1548
|
+
};
|
|
1549
|
+
readonly defaultBranch: {
|
|
1550
|
+
readonly type: readonly ["string", "null"];
|
|
1551
|
+
};
|
|
1552
|
+
readonly position: {
|
|
1553
|
+
readonly type: "integer";
|
|
1554
|
+
readonly minimum: -9007199254740991;
|
|
1555
|
+
readonly maximum: 9007199254740991;
|
|
1556
|
+
};
|
|
1557
|
+
readonly inEnvironment: {
|
|
1558
|
+
readonly type: "boolean";
|
|
1559
|
+
};
|
|
1560
|
+
readonly setupCommand: {
|
|
1561
|
+
readonly type: readonly ["string", "null"];
|
|
1562
|
+
};
|
|
1563
|
+
readonly teardownCommand: {
|
|
1564
|
+
readonly type: readonly ["string", "null"];
|
|
1565
|
+
};
|
|
1566
|
+
readonly lastBuildStatus: {
|
|
1567
|
+
readonly type: "string";
|
|
1568
|
+
readonly enum: readonly ["unbuilt", "configured", "failed"];
|
|
1569
|
+
};
|
|
1570
|
+
readonly lastBuildError: {
|
|
1571
|
+
readonly type: readonly ["string", "null"];
|
|
1572
|
+
};
|
|
1573
|
+
readonly lastBuiltAt: {
|
|
1574
|
+
readonly type: readonly ["string", "null"];
|
|
1575
|
+
};
|
|
1576
|
+
};
|
|
1577
|
+
readonly required: readonly ["projectRepositoryId", "connectionId", "repositoryId", "slug", "defaultBranch", "position", "inEnvironment", "setupCommand", "teardownCommand", "lastBuildStatus", "lastBuildError", "lastBuiltAt"];
|
|
1578
|
+
};
|
|
1579
|
+
};
|
|
1580
|
+
readonly buildTriggers: {
|
|
1581
|
+
readonly type: "object";
|
|
1582
|
+
readonly properties: {
|
|
1583
|
+
readonly schedule: {
|
|
1584
|
+
readonly type: "object";
|
|
1585
|
+
readonly properties: {
|
|
1586
|
+
readonly enabled: {
|
|
1587
|
+
readonly type: "boolean";
|
|
1588
|
+
};
|
|
1589
|
+
readonly cron: {
|
|
1590
|
+
readonly type: readonly ["string", "null"];
|
|
1591
|
+
};
|
|
1592
|
+
readonly timezone: {
|
|
1593
|
+
readonly type: readonly ["string", "null"];
|
|
1594
|
+
};
|
|
1595
|
+
readonly scheduleAvailable: {
|
|
1596
|
+
readonly type: "boolean";
|
|
1597
|
+
};
|
|
1598
|
+
};
|
|
1599
|
+
readonly required: readonly ["enabled", "cron", "timezone", "scheduleAvailable"];
|
|
1600
|
+
};
|
|
1601
|
+
readonly push: {
|
|
1602
|
+
readonly type: "object";
|
|
1603
|
+
readonly properties: {
|
|
1604
|
+
readonly enabled: {
|
|
1605
|
+
readonly type: "boolean";
|
|
1606
|
+
};
|
|
1607
|
+
readonly debounceMinutes: {
|
|
1608
|
+
readonly type: "integer";
|
|
1609
|
+
readonly minimum: -9007199254740991;
|
|
1610
|
+
readonly maximum: 9007199254740991;
|
|
1611
|
+
};
|
|
1612
|
+
};
|
|
1613
|
+
readonly required: readonly ["enabled", "debounceMinutes"];
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
readonly required: readonly ["schedule", "push"];
|
|
1617
|
+
};
|
|
1618
|
+
readonly build: {
|
|
1619
|
+
readonly anyOf: readonly [{
|
|
1620
|
+
readonly type: "object";
|
|
1621
|
+
readonly properties: {
|
|
1622
|
+
readonly buildId: {
|
|
1623
|
+
readonly type: "string";
|
|
1624
|
+
};
|
|
1625
|
+
readonly attemptedAt: {
|
|
1626
|
+
readonly type: readonly ["string", "null"];
|
|
1627
|
+
};
|
|
1628
|
+
};
|
|
1629
|
+
readonly required: readonly ["buildId", "attemptedAt"];
|
|
1630
|
+
}, {
|
|
1631
|
+
readonly type: "null";
|
|
1632
|
+
}];
|
|
1633
|
+
};
|
|
1634
|
+
};
|
|
1635
|
+
readonly required: readonly ["sandbox", "settings", "sandboxWorkingDirectory", "workspaceSetupCommand", "activeTemplateId", "activeTemplateHeads", "repositories"];
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
readonly required: readonly ["environment"];
|
|
1639
|
+
};
|
|
1640
|
+
};
|
|
939
1641
|
readonly "PATCH /web/factory/work-items/:id": {
|
|
940
1642
|
readonly path: {
|
|
941
1643
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -1459,6 +2161,39 @@ export declare const FACTORY_API_ROUTE_SCHEMAS: {
|
|
|
1459
2161
|
readonly required: readonly ["decision"];
|
|
1460
2162
|
};
|
|
1461
2163
|
};
|
|
2164
|
+
readonly "POST /web/factory/projects/:id/environment/build": {
|
|
2165
|
+
readonly path: {
|
|
2166
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
2167
|
+
readonly type: "object";
|
|
2168
|
+
readonly properties: {
|
|
2169
|
+
readonly id: {
|
|
2170
|
+
readonly type: "string";
|
|
2171
|
+
readonly pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$";
|
|
2172
|
+
};
|
|
2173
|
+
};
|
|
2174
|
+
readonly required: readonly ["id"];
|
|
2175
|
+
};
|
|
2176
|
+
readonly response: {
|
|
2177
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
2178
|
+
readonly type: "object";
|
|
2179
|
+
readonly properties: {
|
|
2180
|
+
readonly outcome: {
|
|
2181
|
+
readonly type: "string";
|
|
2182
|
+
readonly enum: readonly ["started", "skipped", "unavailable", "failed"];
|
|
2183
|
+
};
|
|
2184
|
+
readonly buildId: {
|
|
2185
|
+
readonly type: "string";
|
|
2186
|
+
};
|
|
2187
|
+
readonly templateId: {
|
|
2188
|
+
readonly type: "string";
|
|
2189
|
+
};
|
|
2190
|
+
readonly reason: {
|
|
2191
|
+
readonly type: "string";
|
|
2192
|
+
};
|
|
2193
|
+
};
|
|
2194
|
+
readonly required: readonly ["outcome"];
|
|
2195
|
+
};
|
|
2196
|
+
};
|
|
1462
2197
|
readonly "POST /web/factory/projects/:id/runs/start": {
|
|
1463
2198
|
readonly path: {
|
|
1464
2199
|
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
@@ -1930,11 +2665,15 @@ export declare const FACTORY_API_ROUTE_CATALOG: {
|
|
|
1930
2665
|
readonly attentionList: "GET /web/factory/projects/:id/attention";
|
|
1931
2666
|
readonly boardCatalog: "GET /web/factory/projects/:id/boards";
|
|
1932
2667
|
readonly decisionList: "GET /web/factory/projects/:id/decisions";
|
|
2668
|
+
readonly projectEnvironmentGet: "GET /web/factory/projects/:id/environment";
|
|
2669
|
+
readonly projectEnvironmentBuilds: "GET /web/factory/projects/:id/environment/builds";
|
|
2670
|
+
readonly projectEnvironmentBuildGet: "GET /web/factory/projects/:id/environment/builds/:buildId";
|
|
1933
2671
|
readonly healthThresholdsGet: "GET /web/factory/projects/:id/health/thresholds";
|
|
1934
2672
|
readonly metricsGet: "GET /web/factory/projects/:id/metrics";
|
|
1935
2673
|
readonly supervisorHealth: "GET /web/factory/projects/:id/supervisor/health";
|
|
1936
2674
|
readonly workItemList: "GET /web/factory/projects/:id/work-items";
|
|
1937
2675
|
readonly projectUpdate: "PATCH /web/factory/projects/:id";
|
|
2676
|
+
readonly projectEnvironmentUpdate: "PATCH /web/factory/projects/:id/environment";
|
|
1938
2677
|
readonly workItemUpdate: "PATCH /web/factory/work-items/:id";
|
|
1939
2678
|
readonly projectCreate: "POST /web/factory/projects";
|
|
1940
2679
|
readonly projectApplyDefaultModel: "POST /web/factory/projects/:id/apply-default-model";
|
|
@@ -1945,6 +2684,7 @@ export declare const FACTORY_API_ROUTE_CATALOG: {
|
|
|
1945
2684
|
readonly decisionApprove: "POST /web/factory/projects/:id/decisions/:decisionId/approve";
|
|
1946
2685
|
readonly decisionDismiss: "POST /web/factory/projects/:id/decisions/:decisionId/dismiss";
|
|
1947
2686
|
readonly decisionRetry: "POST /web/factory/projects/:id/decisions/:decisionId/retry";
|
|
2687
|
+
readonly projectEnvironmentBuild: "POST /web/factory/projects/:id/environment/build";
|
|
1948
2688
|
readonly workItemStart: "POST /web/factory/projects/:id/runs/start";
|
|
1949
2689
|
readonly supervisorSession: "POST /web/factory/projects/:id/supervisor/session";
|
|
1950
2690
|
readonly workItemCreate: "POST /web/factory/projects/:id/work-items";
|