@@ -27,12 +27,18 @@ actions:
27
27
- " lang " : " typescript"
28
28
" label " : " GetApp"
29
29
" source " : " import { HathoraCloud } from \" @hathora/cloud-sdk-typescript\" ;\n\n const hathoraCloud = new HathoraCloud({\n hathoraDevToken: \" <YOUR_BEARER_TOKEN_HERE>\" ,\n orgId: \" org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\" ,\n appId: \" app-af469a92-5b45-4565-b3c4-b79878de67d2\" ,\n });\n\n async function run() {\n const result = await hathoraCloud.appsV2.getApp(\" app-af469a92-5b45-4565-b3c4-b79878de67d2\" );\n\n // Handle the result\n console.log(result);\n }\n\n run();"
30
+ - target : $["paths"]["/apps/v2/apps/{appId}"]["patch"]
31
+ update :
32
+ " x-codeSamples " :
33
+ - " lang " : " typescript"
34
+ " label " : " PatchApp"
35
+ " source " : " import { HathoraCloud } from \" @hathora/cloud-sdk-typescript\" ;\n\n const hathoraCloud = new HathoraCloud({\n hathoraDevToken: \" <YOUR_BEARER_TOKEN_HERE>\" ,\n orgId: \" org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\" ,\n appId: \" app-af469a92-5b45-4565-b3c4-b79878de67d2\" ,\n });\n\n async function run() {\n const result = await hathoraCloud.appsV2.patchApp({\n serviceConfig: {\n staticProcessAllocation: [],\n },\n }, \" app-af469a92-5b45-4565-b3c4-b79878de67d2\" );\n\n // Handle the result\n console.log(result);\n }\n\n run();"
30
36
- target : $["paths"]["/apps/v2/apps/{appId}"]["post"]
31
37
update :
32
38
" x-codeSamples " :
33
39
- " lang " : " typescript"
34
40
" label " : " UpdateApp"
35
- " source " : " import { HathoraCloud } from \" @hathora/cloud-sdk-typescript\" ;\n\n const hathoraCloud = new HathoraCloud({\n hathoraDevToken: \" <YOUR_BEARER_TOKEN_HERE>\" ,\n orgId: \" org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\" ,\n appId: \" app-af469a92-5b45-4565-b3c4-b79878de67d2\" ,\n });\n\n async function run() {\n const result = await hathoraCloud.appsV2.updateApp({\n authConfiguration: {},\n appName: \" minecraft\" ,\n }, \" app-af469a92-5b45-4565-b3c4-b79878de67d2\" );\n\n // Handle the result\n console.log(result);\n }\n\n run();"
41
+ " source " : " import { HathoraCloud } from \" @hathora/cloud-sdk-typescript\" ;\n\n const hathoraCloud = new HathoraCloud({\n hathoraDevToken: \" <YOUR_BEARER_TOKEN_HERE>\" ,\n orgId: \" org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\" ,\n appId: \" app-af469a92-5b45-4565-b3c4-b79878de67d2\" ,\n });\n\n async function run() {\n const result = await hathoraCloud.appsV2.updateApp({\n serviceConfig: { \n staticProcessAllocation: [], \n }, \n authConfiguration: {},\n appName: \" minecraft\" ,\n }, \" app-af469a92-5b45-4565-b3c4-b79878de67d2\" );\n\n // Handle the result\n console.log(result);\n }\n\n run();"
36
42
- target : $["paths"]["/auth/v1/{appId}/login/anonymous"]["post"]
37
43
update :
38
44
" x-codeSamples " :
@@ -93,6 +99,12 @@ actions:
93
99
- " lang " : " typescript"
94
100
" label " : " CreateBuild"
95
101
" source " : " import { HathoraCloud } from \" @hathora/cloud-sdk-typescript\" ;\n\n const hathoraCloud = new HathoraCloud({\n hathoraDevToken: \" <YOUR_BEARER_TOKEN_HERE>\" ,\n orgId: \" org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\" ,\n appId: \" app-af469a92-5b45-4565-b3c4-b79878de67d2\" ,\n });\n\n async function run() {\n const result = await hathoraCloud.buildsV3.createBuild({\n buildId: \" bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5\" ,\n buildTag: \" 0.1.14-14c793\" ,\n buildSizeInBytes: 5387.85,\n }, \" org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\" );\n\n // Handle the result\n console.log(result);\n }\n\n run();"
102
+ - target : $["paths"]["/builds/v3/builds/registry"]["post"]
103
+ update :
104
+ " x-codeSamples " :
105
+ - " lang " : " typescript"
106
+ " label " : " CreateBuildRegistry"
107
+ " source " : " import { HathoraCloud } from \" @hathora/cloud-sdk-typescript\" ;\n\n const hathoraCloud = new HathoraCloud({\n hathoraDevToken: \" <YOUR_BEARER_TOKEN_HERE>\" ,\n orgId: \" org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\" ,\n appId: \" app-af469a92-5b45-4565-b3c4-b79878de67d2\" ,\n });\n\n async function run() {\n const result = await hathoraCloud.buildsV3.createBuildRegistry({\n buildId: \" bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5\" ,\n buildTag: \" 0.1.14-14c793\" ,\n }, \" org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\" );\n\n // Handle the result\n console.log(result);\n }\n\n run();"
96
108
- target : $["paths"]["/builds/v3/builds/{buildId}"]["delete"]
97
109
update :
98
110
" x-codeSamples " :
@@ -111,6 +123,12 @@ actions:
111
123
- " lang " : " typescript"
112
124
" label " : " RunBuild"
113
125
" source " : " import { HathoraCloud } from \" @hathora/cloud-sdk-typescript\" ;\n\n const hathoraCloud = new HathoraCloud({\n hathoraDevToken: \" <YOUR_BEARER_TOKEN_HERE>\" ,\n orgId: \" org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\" ,\n appId: \" app-af469a92-5b45-4565-b3c4-b79878de67d2\" ,\n });\n\n async function run() {\n const result = await hathoraCloud.buildsV3.runBuild(\" bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5\" , \" org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\" );\n\n // Handle the result\n console.log(result);\n }\n\n run();"
126
+ - target : $["paths"]["/builds/v3/builds/{buildId}/runRegistry"]["post"]
127
+ update :
128
+ " x-codeSamples " :
129
+ - " lang " : " typescript"
130
+ " label " : " RunBuildRegistry"
131
+ " source " : " import { HathoraCloud } from \" @hathora/cloud-sdk-typescript\" ;\n\n const hathoraCloud = new HathoraCloud({\n hathoraDevToken: \" <YOUR_BEARER_TOKEN_HERE>\" ,\n orgId: \" org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\" ,\n appId: \" app-af469a92-5b45-4565-b3c4-b79878de67d2\" ,\n });\n\n async function run() {\n const result = await hathoraCloud.buildsV3.runBuildRegistry(\" bld-6d4c6a71-2d75-4b42-94e1-f312f57f33c5\" , {\n image: \" https://loremflickr.com/1435/2196?lock=7778272511635490\" ,\n }, \" org-6f706e83-0ec1-437a-9a46-7d4281eb2f39\" );\n\n // Handle the result\n console.log(result);\n }\n\n run();"
114
132
- target : $["paths"]["/deployments/v3/apps/{appId}/deployments"]["get"]
115
133
update :
116
134
" x-codeSamples " :
0 commit comments