@amerged/ohmyhost-sdk 0.1.68 → 0.1.69

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.
@@ -20,6 +20,64 @@ export type ConnectionBegin = {
20
20
  project_id?: Ulid;
21
21
  environment_id?: Ulid;
22
22
  };
23
+ export type MakeActionBindingRequest = {
24
+ project_id: Ulid;
25
+ environment_id: Ulid;
26
+ import_id: Ulid;
27
+ action: {
28
+ kind: "endpoint";
29
+ app_name: string;
30
+ app_version: number;
31
+ endpoint_name: string;
32
+ } | {
33
+ kind: "scenario";
34
+ scenario_id: number;
35
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
36
+ /**
37
+ * Origin-relative path prefix the owner permits on the bound Make API Shell.
38
+ */
39
+ path_prefix: string;
40
+ };
41
+ };
42
+ export type MakeActionBinding = {
43
+ binding_id: Ulid;
44
+ /**
45
+ * Secret capability for this action.
46
+ */
47
+ execution_key: string;
48
+ };
49
+ export type MakeActionRunRequest = {
50
+ input: {
51
+ [key: string]: unknown;
52
+ };
53
+ };
54
+ export type MakeActionRunSuccess = {
55
+ state: "completed";
56
+ /**
57
+ * Bounded JSON response envelope returned by Make.
58
+ */
59
+ output: unknown;
60
+ } | {
61
+ state: "already_completed";
62
+ };
63
+ export type MakeActionInvalidRequest = {
64
+ state: "invalid_request";
65
+ };
66
+ export type MakeActionDenied = {
67
+ state: "denied" | "reconnect_required";
68
+ };
69
+ export type MakeActionConflict = {
70
+ state: "conflict" | "running";
71
+ };
72
+ export type MakeActionRateLimited = {
73
+ state: "rate_limited";
74
+ };
75
+ export type MakeActionUncertain = {
76
+ state: "uncertain";
77
+ };
78
+ export type MakeActionUnavailable = {
79
+ state: "unavailable";
80
+ };
23
81
  export type ConnectionImportRequest = {
24
82
  project_id: Ulid;
25
83
  environment_id: Ulid;
@@ -2509,6 +2567,104 @@ export type DiscoverConnectionResponses = {
2509
2567
  200: ConnectionDiscovery;
2510
2568
  };
2511
2569
  export type DiscoverConnectionResponse = DiscoverConnectionResponses[keyof DiscoverConnectionResponses];
2570
+ export type CreateMakeActionBindingData = {
2571
+ body: MakeActionBindingRequest;
2572
+ headers: {
2573
+ /**
2574
+ * Optional caller-provided correlation identifier.
2575
+ */
2576
+ "X-Request-Id"?: string;
2577
+ /**
2578
+ * Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
2579
+ */
2580
+ "Idempotency-Key": string;
2581
+ };
2582
+ path: {
2583
+ organization_id: Ulid;
2584
+ };
2585
+ query?: never;
2586
+ url: "/v1/organizations/{organization_id}/connections/action-bindings";
2587
+ };
2588
+ export type CreateMakeActionBindingErrors = {
2589
+ /**
2590
+ * The request failed.
2591
+ */
2592
+ 400: ProblemDetails;
2593
+ /**
2594
+ * The request failed.
2595
+ */
2596
+ 401: ProblemDetails;
2597
+ /**
2598
+ * The resource does not exist or is not visible to the authenticated principal.
2599
+ */
2600
+ 404: ProblemDetails;
2601
+ /**
2602
+ * The request failed.
2603
+ */
2604
+ 409: ProblemDetails;
2605
+ /**
2606
+ * The request failed.
2607
+ */
2608
+ 429: ProblemDetails;
2609
+ /**
2610
+ * The request failed.
2611
+ */
2612
+ 503: ProblemDetails;
2613
+ };
2614
+ export type CreateMakeActionBindingError = CreateMakeActionBindingErrors[keyof CreateMakeActionBindingErrors];
2615
+ export type CreateMakeActionBindingResponses = {
2616
+ /**
2617
+ * Created action binding and its secret execution key.
2618
+ */
2619
+ 201: MakeActionBinding;
2620
+ };
2621
+ export type CreateMakeActionBindingResponse = CreateMakeActionBindingResponses[keyof CreateMakeActionBindingResponses];
2622
+ export type RunMakeActionData = {
2623
+ body: MakeActionRunRequest;
2624
+ headers: {
2625
+ /**
2626
+ * Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
2627
+ */
2628
+ "Idempotency-Key": string;
2629
+ };
2630
+ path?: never;
2631
+ query?: never;
2632
+ url: "/v1/make/actions/run";
2633
+ };
2634
+ export type RunMakeActionErrors = {
2635
+ /**
2636
+ * Invalid request.
2637
+ */
2638
+ 400: MakeActionInvalidRequest;
2639
+ /**
2640
+ * Execution denied or reconnection required.
2641
+ */
2642
+ 403: MakeActionDenied;
2643
+ /**
2644
+ * Idempotency conflict or execution still running.
2645
+ */
2646
+ 409: MakeActionConflict;
2647
+ /**
2648
+ * Rate limited.
2649
+ */
2650
+ 429: MakeActionRateLimited;
2651
+ /**
2652
+ * Dispatch outcome is uncertain.
2653
+ */
2654
+ 502: MakeActionUncertain;
2655
+ /**
2656
+ * Execution service unavailable.
2657
+ */
2658
+ 503: MakeActionUnavailable;
2659
+ };
2660
+ export type RunMakeActionError = RunMakeActionErrors[keyof RunMakeActionErrors];
2661
+ export type RunMakeActionResponses = {
2662
+ /**
2663
+ * The action completed, or the invocation had already completed.
2664
+ */
2665
+ 200: MakeActionRunSuccess;
2666
+ };
2667
+ export type RunMakeActionResponse = RunMakeActionResponses[keyof RunMakeActionResponses];
2512
2668
  export type ImportConnectionData = {
2513
2669
  body: ConnectionImportRequest;
2514
2670
  headers: {
@@ -5977,7 +6133,7 @@ export type GetProjectExportErrors = {
5977
6133
  export type GetProjectExportError = GetProjectExportErrors[keyof GetProjectExportErrors];
5978
6134
  export type GetProjectExportResponses = {
5979
6135
  /**
5980
- * Current export state and optional verified SQL ZIP download.
6136
+ * Current export status and archive metadata. Download fields are always null.
5981
6137
  */
5982
6138
  200: ProjectExport;
5983
6139
  };