@amerged/ohmyhost-cli 0.1.71 → 0.1.73

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,40 @@ export type ConnectionBegin = {
25
25
  environment_id?: Ulid;
26
26
  };
27
27
 
28
+ export type MakeCredentialRequestCreate = {
29
+ provider_organization_id: number;
30
+ team_id: number;
31
+ selections: Array<MakeCredentialSelection>;
32
+ };
33
+
34
+ export type MakeCredentialSelection = unknown & {
35
+ /**
36
+ * A Make standard app identifier.
37
+ */
38
+ app_name: string;
39
+ app_version: number;
40
+ module_ids?: Array<string>;
41
+ endpoint_names?: Array<string>;
42
+ };
43
+
44
+ export type MakeCredentialRequestResult = {
45
+ state: "created" | "running" | "uncertain" | "reconnect_required";
46
+ request_id?: string;
47
+ provider_status?: string;
48
+ /**
49
+ * Private Make link available only on create or replay.
50
+ */
51
+ authorization_url?: string;
52
+ expires_at?: string | null;
53
+ };
54
+
55
+ export type MakeCredentialRequestStatus = {
56
+ state: "created" | "running" | "uncertain" | "reconnect_required";
57
+ request_id?: string;
58
+ provider_status?: string;
59
+ expires_at?: string | null;
60
+ };
61
+
28
62
  export type MakeActionBindingRequest = {
29
63
  project_id: Ulid;
30
64
  environment_id: Ulid;
@@ -2310,6 +2344,7 @@ export type OperationFailure = {
2310
2344
  code:
2311
2345
  | "operation_failed"
2312
2346
  | "operation_abandoned"
2347
+ | "native_auth_launch_unavailable"
2313
2348
  | "authorization_changed"
2314
2349
  | "source_commit_conflict"
2315
2350
  | "source_snapshot_invalid"
@@ -3147,6 +3182,119 @@ export type DiscoverConnectionResponses = {
3147
3182
  export type DiscoverConnectionResponse =
3148
3183
  DiscoverConnectionResponses[keyof DiscoverConnectionResponses];
3149
3184
 
3185
+ export type CreateMakeCredentialRequestData = {
3186
+ body: MakeCredentialRequestCreate;
3187
+ headers: {
3188
+ /**
3189
+ * Optional caller-provided correlation identifier.
3190
+ */
3191
+ "X-Request-Id"?: string;
3192
+ /**
3193
+ * Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
3194
+ */
3195
+ "Idempotency-Key": string;
3196
+ };
3197
+ path: {
3198
+ organization_id: Ulid;
3199
+ grant_id: Ulid;
3200
+ };
3201
+ query?: never;
3202
+ url: "/v1/organizations/{organization_id}/connections/{grant_id}/credential-requests";
3203
+ };
3204
+
3205
+ export type CreateMakeCredentialRequestErrors = {
3206
+ /**
3207
+ * The request failed.
3208
+ */
3209
+ 400: ProblemDetails;
3210
+ /**
3211
+ * The request failed.
3212
+ */
3213
+ 401: ProblemDetails;
3214
+ /**
3215
+ * The resource does not exist or is not visible to the authenticated principal.
3216
+ */
3217
+ 404: ProblemDetails;
3218
+ /**
3219
+ * The request failed.
3220
+ */
3221
+ 409: ProblemDetails;
3222
+ /**
3223
+ * The request failed.
3224
+ */
3225
+ 429: ProblemDetails;
3226
+ /**
3227
+ * The request failed.
3228
+ */
3229
+ 503: ProblemDetails;
3230
+ };
3231
+
3232
+ export type CreateMakeCredentialRequestError =
3233
+ CreateMakeCredentialRequestErrors[keyof CreateMakeCredentialRequestErrors];
3234
+
3235
+ export type CreateMakeCredentialRequestResponses = {
3236
+ /**
3237
+ * Credential Request result and its private Make link when available.
3238
+ */
3239
+ 200: MakeCredentialRequestResult;
3240
+ };
3241
+
3242
+ export type CreateMakeCredentialRequestResponse =
3243
+ CreateMakeCredentialRequestResponses[keyof CreateMakeCredentialRequestResponses];
3244
+
3245
+ export type GetMakeCredentialRequestData = {
3246
+ body?: never;
3247
+ headers?: {
3248
+ /**
3249
+ * Optional caller-provided correlation identifier.
3250
+ */
3251
+ "X-Request-Id"?: string;
3252
+ };
3253
+ path: {
3254
+ organization_id: Ulid;
3255
+ grant_id: Ulid;
3256
+ request_id: string;
3257
+ };
3258
+ query?: never;
3259
+ url: "/v1/organizations/{organization_id}/connections/{grant_id}/credential-requests/{request_id}";
3260
+ };
3261
+
3262
+ export type GetMakeCredentialRequestErrors = {
3263
+ /**
3264
+ * The request failed.
3265
+ */
3266
+ 400: ProblemDetails;
3267
+ /**
3268
+ * The request failed.
3269
+ */
3270
+ 401: ProblemDetails;
3271
+ /**
3272
+ * The resource does not exist or is not visible to the authenticated principal.
3273
+ */
3274
+ 404: ProblemDetails;
3275
+ /**
3276
+ * The request failed.
3277
+ */
3278
+ 429: ProblemDetails;
3279
+ /**
3280
+ * The request failed.
3281
+ */
3282
+ 503: ProblemDetails;
3283
+ };
3284
+
3285
+ export type GetMakeCredentialRequestError =
3286
+ GetMakeCredentialRequestErrors[keyof GetMakeCredentialRequestErrors];
3287
+
3288
+ export type GetMakeCredentialRequestResponses = {
3289
+ /**
3290
+ * Current Credential Request status.
3291
+ */
3292
+ 200: MakeCredentialRequestStatus;
3293
+ };
3294
+
3295
+ export type GetMakeCredentialRequestResponse =
3296
+ GetMakeCredentialRequestResponses[keyof GetMakeCredentialRequestResponses];
3297
+
3150
3298
  export type CreateMakeActionBindingData = {
3151
3299
  body: MakeActionBindingRequest;
3152
3300
  headers: {