hcloud-sdk 22.45.1 → 22.47.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.
package/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
- ## [22.45.1](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.45.0...v22.45.1) (2026-10-02)
1
+ ## [22.47.0](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/compare/v22.46.0...v22.47.0) (2026-10-05)
2
2
 
3
- ### Bug Fixes
3
+ ### Features
4
4
 
5
- * response of shareWithUsers, which also holds the email cooldown property ([5a4e8ae](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/5a4e8ae380c4958f53c075ed04d615191619cbbc))
5
+ * add pool execute subject ([9024875](https://github.com/moovit-sp-gmbh/hcloud-sdk-js/commit/9024875f030bd8ef190b1f9f8aa3fb9fb7efc697))
@@ -28,6 +28,7 @@ declare enum NatsSubject {
28
28
  HIGH5_SPACES = "hcloud.high5.organization.${base64orgName}.spaces",
29
29
  HIGH5_SPACE_PERMISSIONS = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.permissions",
30
30
  HIGH5_STREAM_EXECUTE = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}",
31
+ HIGH5_STREAM_EXECUTE_POOL = "hcloud.high5.organization.${organizationId}.spaces.${spaceId}.stream.execute.pool.${base64poolName}",
31
32
  HIGH5_STREAM_CANCEL = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}",// eslint-disable-line @typescript-eslint/no-duplicate-enum-values
32
33
  HIGH5_STREAM_DEBUG_STOPPED = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}.${executionId}.stopped",
33
34
  HIGH5_STREAM_DEBUG_COMMAND = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}.${executionSecret}.command",
@@ -154,6 +155,7 @@ interface NatsObject extends NatsNameObject, NatsIdObject, NatsMemberObject, Nat
154
155
  [NatsSubject.HIGH5_SPACES]: NatsNameObject;
155
156
  [NatsSubject.HIGH5_SPACE_PERMISSIONS]: NatsIdObject;
156
157
  [NatsSubject.HIGH5_STREAM_EXECUTE]: High5ExecuteOnAgentRequest | High5ExecutionCancelRequest;
158
+ [NatsSubject.HIGH5_STREAM_EXECUTE_POOL]: High5ExecuteOnAgentRequest | High5ExecutionCancelRequest;
157
159
  [NatsSubject.HIGH5_STREAM_CANCEL]: High5ExecuteOnAgentRequest | High5ExecutionCancelRequest;
158
160
  [NatsSubject.HIGH5_EVENTS]: NatsNameObject;
159
161
  [NatsSubject.HIGH5_STREAMS]: NatsIdObject;
@@ -304,6 +306,7 @@ declare class NatsSubjects {
304
306
  Execution: {
305
307
  new (): {};
306
308
  EXECUTE: (organizationId: string, email: string) => string;
309
+ EXECUTE_POOL: (organizationId: string, spaceId: string, poolName: string) => string;
307
310
  CANCEL: (organizationId: string, email: string) => string;
308
311
  DEBUG: (organizationId: string, email: string) => {
309
312
  STOPPED: (executionId: string) => string;
@@ -31,6 +31,7 @@ var NatsSubject;
31
31
  NatsSubject["HIGH5_SPACES"] = "hcloud.high5.organization.${base64orgName}.spaces";
32
32
  NatsSubject["HIGH5_SPACE_PERMISSIONS"] = "hcloud.high5.organization.${base64orgName}.spaces.${base64spaceName}.permissions";
33
33
  NatsSubject["HIGH5_STREAM_EXECUTE"] = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}";
34
+ NatsSubject["HIGH5_STREAM_EXECUTE_POOL"] = "hcloud.high5.organization.${organizationId}.spaces.${spaceId}.stream.execute.pool.${base64poolName}";
34
35
  NatsSubject["HIGH5_STREAM_CANCEL"] = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}";
35
36
  NatsSubject["HIGH5_STREAM_DEBUG_STOPPED"] = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}.${executionId}.stopped";
36
37
  NatsSubject["HIGH5_STREAM_DEBUG_COMMAND"] = "hcloud.high5.organization.${organizationId}.stream.execute.${base64email}.${executionSecret}.command";
@@ -248,6 +249,9 @@ NatsSubjects.High5 = (_f = class {
248
249
  _g.EXECUTE = (organizationId, email) => {
249
250
  return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_EXECUTE, { organizationId, email });
250
251
  },
252
+ _g.EXECUTE_POOL = (organizationId, spaceId, poolName) => {
253
+ return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_EXECUTE_POOL, { organizationId, spaceId, poolName });
254
+ },
251
255
  _g.CANCEL = (organizationId, email) => {
252
256
  return NatsSubjects.replace(NatsSubject.HIGH5_STREAM_CANCEL, { organizationId, email });
253
257
  },
@@ -1,5 +1,6 @@
1
1
  import Base, { MaybeRaw } from "../../../Base";
2
2
  import { High5QueuePollRequest } from "../../../interfaces/high5/execution";
3
+ import { High5ExecutionResponse } from "../../../interfaces/high5/space/execution";
3
4
  import { High5OrganizationExecutionLogs } from "./log/index";
4
5
  import { High5OrganizationExecutionStates } from "./status/index";
5
6
  export declare class High5OrganizationExecute extends Base {
@@ -25,5 +26,15 @@ export declare class High5OrganizationExecute extends Base {
25
26
  cancelExecution<R extends boolean = false>(orgName: string, spaceName: string, high5ExecutionId: string, raw?: {
26
27
  raw: R;
27
28
  }): Promise<MaybeRaw<R, void>>;
29
+ /**
30
+ * Rerun a stream execution with the same payload
31
+ * @param orgName Name of the Organization
32
+ * @param spaceName Name of the Space
33
+ * @param high5ExecutionId ID of the stream execution
34
+ * @returns 200 High5ExecutionResponse
35
+ */
36
+ rerunExecution<R extends boolean = false>(orgName: string, spaceName: string, high5ExecutionId: string, raw?: {
37
+ raw: R;
38
+ }): Promise<MaybeRaw<R, High5ExecutionResponse>>;
28
39
  protected getEndpoint(endpoint: string): string;
29
40
  }
@@ -53,6 +53,19 @@ class High5OrganizationExecute extends Base_1.default {
53
53
  return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
54
54
  });
55
55
  }
56
+ /**
57
+ * Rerun a stream execution with the same payload
58
+ * @param orgName Name of the Organization
59
+ * @param spaceName Name of the Space
60
+ * @param high5ExecutionId ID of the stream execution
61
+ * @returns 200 High5ExecutionResponse
62
+ */
63
+ rerunExecution(orgName, spaceName, high5ExecutionId, raw) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ const resp = yield this.axios.post(this.getEndpoint(`/v1/org/${orgName}/spaces/${spaceName}/execution/${high5ExecutionId}/rerun`));
66
+ return ((raw === null || raw === void 0 ? void 0 : raw.raw) ? resp : undefined);
67
+ });
68
+ }
56
69
  getEndpoint(endpoint) {
57
70
  return `${this.options.server}/api/high5${endpoint}`;
58
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hcloud-sdk",
3
- "version": "22.45.1",
3
+ "version": "22.47.0",
4
4
  "description": "hcloud platform sdk",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -52,7 +52,7 @@
52
52
  "typescript": "^5.8.3"
53
53
  },
54
54
  "dependencies": {
55
- "axios": "^1.13.2",
55
+ "axios": "^1.20.0",
56
56
  "nats": "^2.29.3",
57
57
  "nats.ws": "^1.30.3"
58
58
  }