@amerged/ohmyhost-sdk 0.1.62 → 0.1.64

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.
@@ -17,8 +17,24 @@ export type Preview = {
17
17
  };
18
18
  export type ConnectionBegin = {
19
19
  provider: "make";
20
+ project_id?: Ulid;
21
+ environment_id?: Ulid;
22
+ };
23
+ export type ConnectionImportRequest = {
20
24
  project_id: Ulid;
21
25
  environment_id: Ulid;
26
+ provider_organization_id: number;
27
+ team_id: number;
28
+ connection_id: number;
29
+ };
30
+ export type ConnectionImport = {
31
+ id: Ulid;
32
+ grant_id: Ulid;
33
+ project_id: Ulid;
34
+ environment_id: Ulid;
35
+ provider_organization_id: number;
36
+ team_id: number;
37
+ connection_id: number;
22
38
  };
23
39
  export type ConnectionHandoff = {
24
40
  request_id: string;
@@ -2257,7 +2273,12 @@ export type ListConnectionsData = {
2257
2273
  path: {
2258
2274
  organization_id: Ulid;
2259
2275
  };
2260
- query?: never;
2276
+ query?: {
2277
+ /**
2278
+ * Select workspace grants; omit for the legacy unfiltered list.
2279
+ */
2280
+ scope?: "workspace";
2281
+ };
2261
2282
  url: "/v1/organizations/{organization_id}/connections";
2262
2283
  };
2263
2284
  export type ListConnectionsErrors = {
@@ -2443,9 +2464,15 @@ export type DiscoverConnectionData = {
2443
2464
  organization_id: Ulid;
2444
2465
  grant_id: string;
2445
2466
  };
2446
- query: {
2447
- project_id: Ulid;
2448
- environment_id: Ulid;
2467
+ query?: {
2468
+ /**
2469
+ * Supply together with environment_id only for a legacy project-bound grant.
2470
+ */
2471
+ project_id?: Ulid;
2472
+ /**
2473
+ * Supply together with project_id only for a legacy project-bound grant.
2474
+ */
2475
+ environment_id?: Ulid;
2449
2476
  provider_organization_id?: number;
2450
2477
  team_id?: number;
2451
2478
  };
@@ -2481,6 +2508,59 @@ export type DiscoverConnectionResponses = {
2481
2508
  200: ConnectionDiscovery;
2482
2509
  };
2483
2510
  export type DiscoverConnectionResponse = DiscoverConnectionResponses[keyof DiscoverConnectionResponses];
2511
+ export type ImportConnectionData = {
2512
+ body: ConnectionImportRequest;
2513
+ headers: {
2514
+ /**
2515
+ * Optional caller-provided correlation identifier.
2516
+ */
2517
+ "X-Request-Id"?: string;
2518
+ /**
2519
+ * Identifies one mutation and its canonical request payload.
2520
+ */
2521
+ "Idempotency-Key": string;
2522
+ };
2523
+ path: {
2524
+ organization_id: Ulid;
2525
+ grant_id: string;
2526
+ };
2527
+ query?: never;
2528
+ url: "/v1/organizations/{organization_id}/connections/{grant_id}/imports";
2529
+ };
2530
+ export type ImportConnectionErrors = {
2531
+ /**
2532
+ * The request failed.
2533
+ */
2534
+ 400: ProblemDetails;
2535
+ /**
2536
+ * The request failed.
2537
+ */
2538
+ 401: ProblemDetails;
2539
+ /**
2540
+ * The resource does not exist or is not visible to the authenticated principal.
2541
+ */
2542
+ 404: ProblemDetails;
2543
+ /**
2544
+ * The request failed.
2545
+ */
2546
+ 409: ProblemDetails;
2547
+ /**
2548
+ * The request failed.
2549
+ */
2550
+ 429: ProblemDetails;
2551
+ /**
2552
+ * The request failed.
2553
+ */
2554
+ 503: ProblemDetails;
2555
+ };
2556
+ export type ImportConnectionError = ImportConnectionErrors[keyof ImportConnectionErrors];
2557
+ export type ImportConnectionResponses = {
2558
+ /**
2559
+ * Imported project connection reference.
2560
+ */
2561
+ 201: ConnectionImport;
2562
+ };
2563
+ export type ImportConnectionResponse = ImportConnectionResponses[keyof ImportConnectionResponses];
2484
2564
  export type DisconnectConnectionData = {
2485
2565
  body?: never;
2486
2566
  headers: {