@ludeo/cloud-common 1.2.260 → 1.2.262-ygbeta1
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/tsconfig.tsbuildinfo +1 -1
- package/dist/v4/contexts/cloud-session-context.d.ts +1 -0
- package/dist/v4/contexts/cloud-session-context.js +5 -0
- package/dist/v4/contexts/cloud-session-context.js.map +1 -1
- package/dist/v4/types/cloud/allocation-data.d.ts +1 -1
- package/dist/v4/types/cloud/allocation-data.js +2 -2
- package/dist/v4/types/cloud/allocation-data.js.map +1 -1
- package/dist/v4/types/site-controller/runtime-artifacts.dto.d.ts +2 -1
- package/dist/v4/types/site-controller/runtime-artifacts.dto.js +5 -1
- package/dist/v4/types/site-controller/runtime-artifacts.dto.js.map +1 -1
- package/dist/v4/types/site-controller/types.d.ts +1 -0
- package/dist/v4/types/site-controller/types.js +5 -0
- package/dist/v4/types/site-controller/types.js.map +1 -1
- package/package.json +1 -1
- package/src/v4/contexts/cloud-session-context.ts +4 -0
- package/src/v4/types/cloud/allocation-data.ts +2 -2
- package/src/v4/types/site-controller/runtime-artifacts.dto.ts +6 -2
- package/src/v4/types/site-controller/types.ts +8 -1
|
@@ -138,4 +138,9 @@ __decorate([
|
|
|
138
138
|
(0, class_validator_1.IsString)(),
|
|
139
139
|
__metadata("design:type", String)
|
|
140
140
|
], CloudSessionContext.prototype, "machineClass", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, class_validator_1.IsOptional)(),
|
|
143
|
+
(0, class_validator_1.IsString)(),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], CloudSessionContext.prototype, "instanceType", void 0);
|
|
141
146
|
//# sourceMappingURL=cloud-session-context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AACzC,uDAAkD;AAClD,oGAAqF;AAErF,MAAa,mBAAmB;
|
|
1
|
+
{"version":3,"file":"cloud-session-context.js","sourceRoot":"","sources":["../../../src/v4/contexts/cloud-session-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,oCAAyC;AACzC,uDAAkD;AAClD,oGAAqF;AAErF,MAAa,mBAAmB;CAoG/B;AApGD,kDAoGC;AAjGC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;gEACoB;AAG7B;IADC,IAAA,4BAAU,GAAE;;4DACY;AAGzB;IADC,IAAA,wBAAM,GAAE;;2DACc;AAGvB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAGhB;IADC,IAAA,4BAAU,GAAE;;oDACI;AAGjB;IADC,IAAA,wBAAM,EAAC,qBAAa,CAAC;;0DACO;AAI7B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;8DACkB;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACc;AAKzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACO;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAGpB;IADC,IAAA,4BAAU,GAAE;;yDACS;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0DACc;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;wDACY;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB;AAGzB;IADC,IAAA,4BAAU,GAAE;;yDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;mDACG;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;uDACW;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;kDACM;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,+BAAa,CAAC;8BACxB,+BAAa;0DAAC;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACW;AAItB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACU"}
|
|
@@ -4,4 +4,4 @@ import { MockAllocationData } from "./mock";
|
|
|
4
4
|
import { LudeoCastAllocationData } from "./ludeocast";
|
|
5
5
|
import { LudeoCastV2AllocationData } from "./ludeocast-v2/allocation-data";
|
|
6
6
|
export type CloudProviderAllocationData = AwsAllocationData | MockAllocationData | LudeoCastAllocationData | LudeoCastV2AllocationData;
|
|
7
|
-
export declare const getAllocationDataType: ({ object, property, }: TypeHelpOptions) => typeof AwsAllocationData | typeof MockAllocationData | typeof
|
|
7
|
+
export declare const getAllocationDataType: ({ object, property, }: TypeHelpOptions) => typeof AwsAllocationData | typeof MockAllocationData | typeof LudeoCastV2AllocationData;
|
|
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getAllocationDataType = void 0;
|
|
4
4
|
const aws_1 = require("./aws");
|
|
5
5
|
const mock_1 = require("./mock");
|
|
6
|
-
const
|
|
6
|
+
const allocation_data_1 = require("./ludeocast-v2/allocation-data");
|
|
7
7
|
const getAllocationDataType = ({ object, property, }) => {
|
|
8
8
|
const allocationData = object[property];
|
|
9
9
|
if ("streamGroupId" in allocationData) {
|
|
10
10
|
return aws_1.AwsAllocationData;
|
|
11
11
|
}
|
|
12
12
|
if ("signalingURI" in allocationData) {
|
|
13
|
-
return
|
|
13
|
+
return allocation_data_1.LudeoCastV2AllocationData;
|
|
14
14
|
}
|
|
15
15
|
return mock_1.MockAllocationData;
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allocation-data.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/allocation-data.ts"],"names":[],"mappings":";;;AAEA,+BAA0C;AAC1C,iCAA4C;
|
|
1
|
+
{"version":3,"file":"allocation-data.js","sourceRoot":"","sources":["../../../../src/v4/types/cloud/allocation-data.ts"],"names":[],"mappings":";;;AAEA,+BAA0C;AAC1C,iCAA4C;AAE5C,oEAA2E;AAQpE,MAAM,qBAAqB,GAAG,CAAC,EACpC,MAAM,EACN,QAAQ,GACQ,EAAE,EAAE;IACpB,MAAM,cAAc,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IACxC,IAAI,eAAe,IAAI,cAAc,EAAE,CAAC;QACtC,OAAO,uBAAiB,CAAC;IAC3B,CAAC;IAED,IAAI,cAAc,IAAI,cAAc,EAAE,CAAC;QACrC,OAAO,2CAAyB,CAAC;IACnC,CAAC;IAED,OAAO,yBAAkB,CAAC;AAC5B,CAAC,CAAC;AAdW,QAAA,qBAAqB,yBAchC"}
|
|
@@ -7,7 +7,8 @@ export declare class ObjectKeyUrlPair {
|
|
|
7
7
|
url: string;
|
|
8
8
|
}
|
|
9
9
|
export declare class RuntimeArtifactsDownloadUrlsRequestDto {
|
|
10
|
-
|
|
10
|
+
artifactPrefix: string;
|
|
11
|
+
latestVersion: string;
|
|
11
12
|
}
|
|
12
13
|
export declare class RuntimeArtifactsUploadUrlsRequestDto {
|
|
13
14
|
objects: RuntimeArtifactUploadObjectDto[];
|
|
@@ -41,7 +41,11 @@ exports.RuntimeArtifactsDownloadUrlsRequestDto = RuntimeArtifactsDownloadUrlsReq
|
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, class_validator_1.IsString)(),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
|
-
], RuntimeArtifactsDownloadUrlsRequestDto.prototype, "
|
|
44
|
+
], RuntimeArtifactsDownloadUrlsRequestDto.prototype, "artifactPrefix", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], RuntimeArtifactsDownloadUrlsRequestDto.prototype, "latestVersion", void 0);
|
|
45
49
|
class RuntimeArtifactsUploadUrlsRequestDto {
|
|
46
50
|
}
|
|
47
51
|
exports.RuntimeArtifactsUploadUrlsRequestDto = RuntimeArtifactsUploadUrlsRequestDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-artifacts.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/runtime-artifacts.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAChE,uGAAwF;AAExF,MAAa,8BAA8B;CAO1C;AAPD,wEAOC;AALC;IADC,IAAA,0BAAQ,GAAE;;2DACC;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACU;AAIvB,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;6CACC;AAGZ;IADC,IAAA,0BAAQ,GAAE;;6CACC;AAGd,MAAa,sCAAsC;
|
|
1
|
+
{"version":3,"file":"runtime-artifacts.dto.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/runtime-artifacts.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAChE,uGAAwF;AAExF,MAAa,8BAA8B;CAO1C;AAPD,wEAOC;AALC;IADC,IAAA,0BAAQ,GAAE;;2DACC;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACU;AAIvB,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;6CACC;AAGZ;IADC,IAAA,0BAAQ,GAAE;;6CACC;AAGd,MAAa,sCAAsC;CAOlD;AAPD,wFAOC;AAJC;IADC,IAAA,0BAAQ,GAAE;;8EACY;AAGvB;IADC,IAAA,0BAAQ,GAAE;;6EACW;AAGxB,MAAa,oCAAoC;CAIhD;AAJD,oFAIC;AADC;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;;qEACf;AAG5C,MAAa,uCAAuC;CAQnD;AARD,0FAQC;AALC;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC;;wEACf;AAI5B;IADC,IAAA,0BAAQ,GAAE;;+EACY;AAGzB,MAAa,qCAAqC;CAIjD;AAJD,sFAIC;AADC;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,mDAAkB,EAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC;;mEAClB"}
|
|
@@ -19,6 +19,7 @@ export declare class ProtonGameCreationPayload {
|
|
|
19
19
|
buildId: string;
|
|
20
20
|
gameVersionId?: string;
|
|
21
21
|
runtimeArtifacts?: RuntimeArtifactsPayload;
|
|
22
|
+
additionalMounts?: Record<string, string>;
|
|
22
23
|
}
|
|
23
24
|
export declare class AndroidGameCreationPayload {
|
|
24
25
|
packageId: string;
|
|
@@ -66,6 +66,11 @@ __decorate([
|
|
|
66
66
|
(0, decorators_1.ValidateNestedType)(() => RuntimeArtifactsPayload),
|
|
67
67
|
__metadata("design:type", RuntimeArtifactsPayload)
|
|
68
68
|
], ProtonGameCreationPayload.prototype, "runtimeArtifacts", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsObject)(),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], ProtonGameCreationPayload.prototype, "additionalMounts", void 0);
|
|
69
74
|
class AndroidGameCreationPayload {
|
|
70
75
|
}
|
|
71
76
|
exports.AndroidGameCreationPayload = AndroidGameCreationPayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAIlF,oDAAyD;AACzD,mEAA2D;AAE3D,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;AACzB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAGD,MAAa,uBAAuB;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/v4/types/site-controller/types.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkF;AAIlF,oDAAyD;AACzD,mEAA2D;AAE3D,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;AACzB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAGD,MAAa,uBAAuB;CAcnC;AAdD,0DAcC;AAZC;IADC,IAAA,0BAAQ,GAAE;;8DACW;AAKtB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAkB,EAAC,GAAG,EAAE,CAAC,wCAAgB,CAAC;;0DACb;AAM9B;IADC,IAAA,0BAAQ,GAAE;;+DACY;AAGzB,MAAa,yBAAyB;CA2BrC;AA3BD,8DA2BC;AAzBC;IADC,IAAA,0BAAQ,GAAE;;kEACa;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iFAC6C;AAIxD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBA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,eAAe,+BAAf,eAAe,QAI1B;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oDAAiC,CAAA;IACjC,kDAA+B,CAAA;AACjC,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@ export type CloudProviderAllocationData =
|
|
|
10
10
|
| MockAllocationData
|
|
11
11
|
| LudeoCastAllocationData
|
|
12
12
|
| LudeoCastV2AllocationData;
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
export const getAllocationDataType = ({
|
|
15
15
|
object,
|
|
16
16
|
property,
|
|
@@ -21,7 +21,7 @@ export const getAllocationDataType = ({
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
if ("signalingURI" in allocationData) {
|
|
24
|
-
return
|
|
24
|
+
return LudeoCastV2AllocationData;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
return MockAllocationData;
|
|
@@ -20,8 +20,12 @@ export class ObjectKeyUrlPair {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export class RuntimeArtifactsDownloadUrlsRequestDto {
|
|
23
|
+
/** Client-relative parent path inside the artifact root (no trailing `latestVersion`; no artifact-folder prefix — adapters add RUNTIME_ARTIFACTS_FOLDER). */
|
|
23
24
|
@IsString()
|
|
24
|
-
|
|
25
|
+
artifactPrefix: string;
|
|
26
|
+
|
|
27
|
+
@IsString()
|
|
28
|
+
latestVersion: string;
|
|
25
29
|
}
|
|
26
30
|
|
|
27
31
|
export class RuntimeArtifactsUploadUrlsRequestDto {
|
|
@@ -35,7 +39,7 @@ export class RuntimeArtifactsDownloadUrlsResponseDto {
|
|
|
35
39
|
@ValidateNestedType(() => ObjectKeyUrlPair)
|
|
36
40
|
objects: ObjectKeyUrlPair[];
|
|
37
41
|
|
|
38
|
-
/** Full object key prefix incl. artifact folder,
|
|
42
|
+
/** Full object key prefix incl. artifact folder, **parent only** (matches request `artifactPrefix` + folder; no `latestVersion` segment). */
|
|
39
43
|
@IsString()
|
|
40
44
|
artifactPrefix: string;
|
|
41
45
|
}
|
|
@@ -21,7 +21,9 @@ export class RuntimeArtifactsPayload {
|
|
|
21
21
|
@ValidateNestedType(() => ObjectKeyUrlPair)
|
|
22
22
|
downloads: ObjectKeyUrlPair[];
|
|
23
23
|
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* Parent prefix under artifact root (**excludes** `latestVersion`; agent joins with {@code latestVersion} for binds / disk layout).
|
|
26
|
+
*/
|
|
25
27
|
@IsString()
|
|
26
28
|
artifactPrefix: string;
|
|
27
29
|
}
|
|
@@ -48,6 +50,11 @@ export class ProtonGameCreationPayload {
|
|
|
48
50
|
@IsOptional()
|
|
49
51
|
@ValidateNestedType(() => RuntimeArtifactsPayload)
|
|
50
52
|
runtimeArtifacts?: RuntimeArtifactsPayload;
|
|
53
|
+
|
|
54
|
+
/** Docker bind mounts `{ hostAbsolutePath: containerAbsolutePath }` (site fills for runtime artifacts, etc.). */
|
|
55
|
+
@IsOptional()
|
|
56
|
+
@IsObject()
|
|
57
|
+
additionalMounts?: Record<string, string>;
|
|
51
58
|
}
|
|
52
59
|
|
|
53
60
|
export class AndroidGameCreationPayload {
|