@amerged/ohmyhost-cli 0.1.67 → 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.
@@ -25,6 +25,78 @@ export type ConnectionBegin = {
25
25
  environment_id?: Ulid;
26
26
  };
27
27
 
28
+ export type MakeActionBindingRequest = {
29
+ project_id: Ulid;
30
+ environment_id: Ulid;
31
+ import_id: Ulid;
32
+ action:
33
+ | {
34
+ kind: "endpoint";
35
+ app_name: string;
36
+ app_version: number;
37
+ endpoint_name: string;
38
+ }
39
+ | {
40
+ kind: "scenario";
41
+ scenario_id: number;
42
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
43
+ /**
44
+ * Origin-relative path prefix the owner permits on the bound Make API Shell.
45
+ */
46
+ path_prefix: string;
47
+ };
48
+ };
49
+
50
+ export type MakeActionBinding = {
51
+ binding_id: Ulid;
52
+ /**
53
+ * Secret capability for this action.
54
+ */
55
+ execution_key: string;
56
+ };
57
+
58
+ export type MakeActionRunRequest = {
59
+ input: {
60
+ [key: string]: unknown;
61
+ };
62
+ };
63
+
64
+ export type MakeActionRunSuccess =
65
+ | {
66
+ state: "completed";
67
+ /**
68
+ * Bounded JSON response envelope returned by Make.
69
+ */
70
+ output: unknown;
71
+ }
72
+ | {
73
+ state: "already_completed";
74
+ };
75
+
76
+ export type MakeActionInvalidRequest = {
77
+ state: "invalid_request";
78
+ };
79
+
80
+ export type MakeActionDenied = {
81
+ state: "denied" | "reconnect_required";
82
+ };
83
+
84
+ export type MakeActionConflict = {
85
+ state: "conflict" | "running";
86
+ };
87
+
88
+ export type MakeActionRateLimited = {
89
+ state: "rate_limited";
90
+ };
91
+
92
+ export type MakeActionUncertain = {
93
+ state: "uncertain";
94
+ };
95
+
96
+ export type MakeActionUnavailable = {
97
+ state: "unavailable";
98
+ };
99
+
28
100
  export type ConnectionImportRequest = {
29
101
  project_id: Ulid;
30
102
  environment_id: Ulid;
@@ -3075,6 +3147,116 @@ export type DiscoverConnectionResponses = {
3075
3147
  export type DiscoverConnectionResponse =
3076
3148
  DiscoverConnectionResponses[keyof DiscoverConnectionResponses];
3077
3149
 
3150
+ export type CreateMakeActionBindingData = {
3151
+ body: MakeActionBindingRequest;
3152
+ headers: {
3153
+ /**
3154
+ * Optional caller-provided correlation identifier.
3155
+ */
3156
+ "X-Request-Id"?: string;
3157
+ /**
3158
+ * Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
3159
+ */
3160
+ "Idempotency-Key": string;
3161
+ };
3162
+ path: {
3163
+ organization_id: Ulid;
3164
+ };
3165
+ query?: never;
3166
+ url: "/v1/organizations/{organization_id}/connections/action-bindings";
3167
+ };
3168
+
3169
+ export type CreateMakeActionBindingErrors = {
3170
+ /**
3171
+ * The request failed.
3172
+ */
3173
+ 400: ProblemDetails;
3174
+ /**
3175
+ * The request failed.
3176
+ */
3177
+ 401: ProblemDetails;
3178
+ /**
3179
+ * The resource does not exist or is not visible to the authenticated principal.
3180
+ */
3181
+ 404: ProblemDetails;
3182
+ /**
3183
+ * The request failed.
3184
+ */
3185
+ 409: ProblemDetails;
3186
+ /**
3187
+ * The request failed.
3188
+ */
3189
+ 429: ProblemDetails;
3190
+ /**
3191
+ * The request failed.
3192
+ */
3193
+ 503: ProblemDetails;
3194
+ };
3195
+
3196
+ export type CreateMakeActionBindingError =
3197
+ CreateMakeActionBindingErrors[keyof CreateMakeActionBindingErrors];
3198
+
3199
+ export type CreateMakeActionBindingResponses = {
3200
+ /**
3201
+ * Created action binding and its secret execution key.
3202
+ */
3203
+ 201: MakeActionBinding;
3204
+ };
3205
+
3206
+ export type CreateMakeActionBindingResponse =
3207
+ CreateMakeActionBindingResponses[keyof CreateMakeActionBindingResponses];
3208
+
3209
+ export type RunMakeActionData = {
3210
+ body: MakeActionRunRequest;
3211
+ headers: {
3212
+ /**
3213
+ * Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
3214
+ */
3215
+ "Idempotency-Key": string;
3216
+ };
3217
+ path?: never;
3218
+ query?: never;
3219
+ url: "/v1/make/actions/run";
3220
+ };
3221
+
3222
+ export type RunMakeActionErrors = {
3223
+ /**
3224
+ * Invalid request.
3225
+ */
3226
+ 400: MakeActionInvalidRequest;
3227
+ /**
3228
+ * Execution denied or reconnection required.
3229
+ */
3230
+ 403: MakeActionDenied;
3231
+ /**
3232
+ * Idempotency conflict or execution still running.
3233
+ */
3234
+ 409: MakeActionConflict;
3235
+ /**
3236
+ * Rate limited.
3237
+ */
3238
+ 429: MakeActionRateLimited;
3239
+ /**
3240
+ * Dispatch outcome is uncertain.
3241
+ */
3242
+ 502: MakeActionUncertain;
3243
+ /**
3244
+ * Execution service unavailable.
3245
+ */
3246
+ 503: MakeActionUnavailable;
3247
+ };
3248
+
3249
+ export type RunMakeActionError = RunMakeActionErrors[keyof RunMakeActionErrors];
3250
+
3251
+ export type RunMakeActionResponses = {
3252
+ /**
3253
+ * The action completed, or the invocation had already completed.
3254
+ */
3255
+ 200: MakeActionRunSuccess;
3256
+ };
3257
+
3258
+ export type RunMakeActionResponse = RunMakeActionResponses[keyof RunMakeActionResponses];
3259
+
3078
3260
  export type ImportConnectionData = {
3079
3261
  body: ConnectionImportRequest;
3080
3262
  headers: {
@@ -6954,7 +7136,7 @@ export type GetProjectExportError = GetProjectExportErrors[keyof GetProjectExpor
6954
7136
 
6955
7137
  export type GetProjectExportResponses = {
6956
7138
  /**
6957
- * Current export state and optional verified SQL ZIP download.
7139
+ * Current export status and archive metadata. Download fields are always null.
6958
7140
  */
6959
7141
  200: ProjectExport;
6960
7142
  };