@amerged/ohmyhost-sdk 0.1.10 → 0.1.11

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.
@@ -807,7 +807,7 @@ export type OrganizationAccount = {
807
807
  name: string;
808
808
  workos_organization_id: string;
809
809
  plan: "free" | "paid";
810
- plan_source: "free" | "stripe" | "beta" | "manual";
810
+ plan_source: "free" | "stripe" | "granted" | "manual";
811
811
  paid_until: string | null;
812
812
  available_micros: CreditMicros;
813
813
  monthly_micros: CreditMicros;
@@ -845,6 +845,25 @@ export type ProjectEnvironment = {
845
845
  name: string;
846
846
  };
847
847
 
848
+ export type ProjectHandleAvailability = {
849
+ /**
850
+ * The handle exactly as it was asked about.
851
+ */
852
+ handle: string;
853
+ /**
854
+ * True when a project may take this handle now.
855
+ */
856
+ available: boolean;
857
+ /**
858
+ * Why the handle cannot be used. Absent when it is available.
859
+ */
860
+ reason?: "taken" | "too_short" | "too_long" | "invalid_shape" | "prohibited_word";
861
+ /**
862
+ * Free handles to offer instead, empty when the handle is available.
863
+ */
864
+ alternatives: Array<string>;
865
+ };
866
+
848
867
  export type ProjectStatus = {
849
868
  project_id: Ulid;
850
869
  handle: string;
@@ -1589,7 +1608,7 @@ export type GetFeatureInterestsData = {
1589
1608
  };
1590
1609
  path?: never;
1591
1610
  query?: never;
1592
- url: "/v1/beta/feature-interests";
1611
+ url: "/v1/site/feature-interests";
1593
1612
  };
1594
1613
 
1595
1614
  export type GetFeatureInterestsErrors = {
@@ -1633,7 +1652,7 @@ export type RegisterFeatureInterestData = {
1633
1652
  };
1634
1653
  path?: never;
1635
1654
  query?: never;
1636
- url: "/v1/beta/feature-interests";
1655
+ url: "/v1/site/feature-interests";
1637
1656
  };
1638
1657
 
1639
1658
  export type RegisterFeatureInterestErrors = {
@@ -1683,7 +1702,7 @@ export type GetPublicDeploymentStatsData = {
1683
1702
  body?: never;
1684
1703
  path?: never;
1685
1704
  query?: never;
1686
- url: "/v1/beta/stats";
1705
+ url: "/v1/site/stats";
1687
1706
  };
1688
1707
 
1689
1708
  export type GetPublicDeploymentStatsErrors = {
@@ -3255,6 +3274,60 @@ export type GetProjectStatusResponses = {
3255
3274
 
3256
3275
  export type GetProjectStatusResponse = GetProjectStatusResponses[keyof GetProjectStatusResponses];
3257
3276
 
3277
+ export type GetProjectHandleAvailabilityData = {
3278
+ body?: never;
3279
+ headers?: {
3280
+ /**
3281
+ * Optional caller-provided correlation identifier.
3282
+ */
3283
+ "X-Request-Id"?: string;
3284
+ };
3285
+ path: {
3286
+ /**
3287
+ * The handle a customer would like to use.
3288
+ */
3289
+ handle: string;
3290
+ };
3291
+ query?: never;
3292
+ url: "/v1/project-handles/{handle}";
3293
+ };
3294
+
3295
+ export type GetProjectHandleAvailabilityErrors = {
3296
+ /**
3297
+ * The request failed.
3298
+ */
3299
+ 400: ProblemDetails;
3300
+ /**
3301
+ * The request failed.
3302
+ */
3303
+ 401: ProblemDetails;
3304
+ /**
3305
+ * The request failed.
3306
+ */
3307
+ 403: ProblemDetails;
3308
+ /**
3309
+ * The request failed.
3310
+ */
3311
+ 429: ProblemDetails;
3312
+ /**
3313
+ * The request failed.
3314
+ */
3315
+ 503: ProblemDetails;
3316
+ };
3317
+
3318
+ export type GetProjectHandleAvailabilityError =
3319
+ GetProjectHandleAvailabilityErrors[keyof GetProjectHandleAvailabilityErrors];
3320
+
3321
+ export type GetProjectHandleAvailabilityResponses = {
3322
+ /**
3323
+ * Whether the handle is usable, and alternatives when it is not.
3324
+ */
3325
+ 200: ProjectHandleAvailability;
3326
+ };
3327
+
3328
+ export type GetProjectHandleAvailabilityResponse =
3329
+ GetProjectHandleAvailabilityResponses[keyof GetProjectHandleAvailabilityResponses];
3330
+
3258
3331
  export type CreateProjectDevAccessTicketData = {
3259
3332
  body?: never;
3260
3333
  headers?: {