@townco/fly 0.1.23 → 0.1.25

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.
Files changed (38) hide show
  1. package/dist/api/client.gen.js +4 -0
  2. package/dist/api/index.d.ts +2 -0
  3. package/dist/api/index.js +2 -0
  4. package/dist/{sdk.gen.d.ts → api/sdk.gen.d.ts} +2 -2
  5. package/dist/{sdk.gen.js → api/sdk.gen.js} +2 -2
  6. package/dist/{types.gen.d.ts → api/types.gen.d.ts} +10 -3
  7. package/dist/hey-api.d.ts +1 -1
  8. package/dist/hey-api.js +3 -2
  9. package/dist/index.d.ts +1 -2
  10. package/dist/index.js +1 -2
  11. package/package.json +14 -5
  12. package/dist/client.gen.js +0 -3
  13. /package/dist/{client → api/client}/client.gen.d.ts +0 -0
  14. /package/dist/{client → api/client}/client.gen.js +0 -0
  15. /package/dist/{client → api/client}/index.d.ts +0 -0
  16. /package/dist/{client → api/client}/index.js +0 -0
  17. /package/dist/{client → api/client}/types.gen.d.ts +0 -0
  18. /package/dist/{client → api/client}/types.gen.js +0 -0
  19. /package/dist/{client → api/client}/utils.gen.d.ts +0 -0
  20. /package/dist/{client → api/client}/utils.gen.js +0 -0
  21. /package/dist/{client.gen.d.ts → api/client.gen.d.ts} +0 -0
  22. /package/dist/{core → api/core}/auth.gen.d.ts +0 -0
  23. /package/dist/{core → api/core}/auth.gen.js +0 -0
  24. /package/dist/{core → api/core}/bodySerializer.gen.d.ts +0 -0
  25. /package/dist/{core → api/core}/bodySerializer.gen.js +0 -0
  26. /package/dist/{core → api/core}/params.gen.d.ts +0 -0
  27. /package/dist/{core → api/core}/params.gen.js +0 -0
  28. /package/dist/{core → api/core}/pathSerializer.gen.d.ts +0 -0
  29. /package/dist/{core → api/core}/pathSerializer.gen.js +0 -0
  30. /package/dist/{core → api/core}/queryKeySerializer.gen.d.ts +0 -0
  31. /package/dist/{core → api/core}/queryKeySerializer.gen.js +0 -0
  32. /package/dist/{core → api/core}/serverSentEvents.gen.d.ts +0 -0
  33. /package/dist/{core → api/core}/serverSentEvents.gen.js +0 -0
  34. /package/dist/{core → api/core}/types.gen.d.ts +0 -0
  35. /package/dist/{core → api/core}/types.gen.js +0 -0
  36. /package/dist/{core → api/core}/utils.gen.d.ts +0 -0
  37. /package/dist/{core → api/core}/utils.gen.js +0 -0
  38. /package/dist/{types.gen.js → api/types.gen.js} +0 -0
@@ -0,0 +1,4 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { createClientConfig } from "../hey-api";
3
+ import { createClient, createConfig, } from "./client";
4
+ export const client = createClient(createClientConfig(createConfig({ baseUrl: "https://api.machines.dev/v1" })));
@@ -0,0 +1,2 @@
1
+ export * from "./sdk.gen";
2
+ export type * from "./types.gen";
@@ -0,0 +1,2 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export * from "./sdk.gen";
@@ -48,7 +48,7 @@ export declare const appCreateDeployToken: <ThrowOnError extends boolean = false
48
48
  /**
49
49
  * List IP assignments for app
50
50
  */
51
- export declare const appIpAssignmentsList: <ThrowOnError extends boolean = false>(options?: Options<AppIpAssignmentsListData, ThrowOnError>) => import("./client").RequestResult<AppIpAssignmentsListResponses, unknown, ThrowOnError, "fields">;
51
+ export declare const appIpAssignmentsList: <ThrowOnError extends boolean = false>(options: Options<AppIpAssignmentsListData, ThrowOnError>) => import("./client").RequestResult<AppIpAssignmentsListResponses, unknown, ThrowOnError, "fields">;
52
52
  /**
53
53
  * Assign new IP address to app
54
54
  */
@@ -56,7 +56,7 @@ export declare const appIpAssignmentsCreate: <ThrowOnError extends boolean = fal
56
56
  /**
57
57
  * Remove IP assignment from app
58
58
  */
59
- export declare const appIpAssignmentsDelete: <ThrowOnError extends boolean = false>(options?: Options<AppIpAssignmentsDeleteData, ThrowOnError>) => import("./client").RequestResult<AppIpAssignmentsDeleteResponses, unknown, ThrowOnError, "fields">;
59
+ export declare const appIpAssignmentsDelete: <ThrowOnError extends boolean = false>(options: Options<AppIpAssignmentsDeleteData, ThrowOnError>) => import("./client").RequestResult<AppIpAssignmentsDeleteResponses, unknown, ThrowOnError, "fields">;
60
60
  /**
61
61
  * List Machines
62
62
  *
@@ -55,7 +55,7 @@ export const appCreateDeployToken = (options) => (options.client ?? client).post
55
55
  /**
56
56
  * List IP assignments for app
57
57
  */
58
- export const appIpAssignmentsList = (options) => (options?.client ?? client).get({ url: "/apps/{app_name}/ip_assignments", ...options });
58
+ export const appIpAssignmentsList = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/ip_assignments", ...options });
59
59
  /**
60
60
  * Assign new IP address to app
61
61
  */
@@ -70,7 +70,7 @@ export const appIpAssignmentsCreate = (options) => (options.client ?? client).po
70
70
  /**
71
71
  * Remove IP assignment from app
72
72
  */
73
- export const appIpAssignmentsDelete = (options) => (options?.client ?? client).delete({ url: "/apps/{app_name}/ip_assignments/{ip}", ...options });
73
+ export const appIpAssignmentsDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/ip_assignments/{ip}", ...options });
74
74
  /**
75
75
  * List Machines
76
76
  *
@@ -1124,7 +1124,9 @@ export type AppCreateDeployTokenResponses = {
1124
1124
  export type AppCreateDeployTokenResponse = AppCreateDeployTokenResponses[keyof AppCreateDeployTokenResponses];
1125
1125
  export type AppIpAssignmentsListData = {
1126
1126
  body?: never;
1127
- path?: never;
1127
+ path: {
1128
+ app_name: string;
1129
+ };
1128
1130
  query?: never;
1129
1131
  url: "/apps/{app_name}/ip_assignments";
1130
1132
  };
@@ -1140,7 +1142,9 @@ export type AppIpAssignmentsCreateData = {
1140
1142
  * Assign IP request
1141
1143
  */
1142
1144
  body: AssignIpRequest;
1143
- path?: never;
1145
+ path: {
1146
+ app_name: string;
1147
+ };
1144
1148
  query?: never;
1145
1149
  url: "/apps/{app_name}/ip_assignments";
1146
1150
  };
@@ -1153,7 +1157,10 @@ export type AppIpAssignmentsCreateResponses = {
1153
1157
  export type AppIpAssignmentsCreateResponse = AppIpAssignmentsCreateResponses[keyof AppIpAssignmentsCreateResponses];
1154
1158
  export type AppIpAssignmentsDeleteData = {
1155
1159
  body?: never;
1156
- path?: never;
1160
+ path: {
1161
+ app_name: string;
1162
+ ip: string;
1163
+ };
1157
1164
  query?: never;
1158
1165
  url: "/apps/{app_name}/ip_assignments/{ip}";
1159
1166
  };
package/dist/hey-api.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import type { CreateClientConfig } from "@/client.gen";
1
+ import type { CreateClientConfig } from "@/api/client.gen";
2
2
  export declare const createClientConfig: CreateClientConfig;
package/dist/hey-api.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { parseEnv } from "@townco/env";
2
2
  export const createClientConfig = (config) => ({
3
3
  ...config,
4
- baseUrl: "https://api.supabase.com",
5
- auth: () => parseEnv().SUPABASE_ACCESS_TOKEN,
4
+ // Fly API spec lacks securitySchemes, so auth callback won't work.
5
+ // Set Authorization header directly instead.
6
+ headers: { Authorization: `Bearer ${parseEnv("FLY_TOKEN").FLY_TOKEN}` },
6
7
  });
package/dist/index.d.ts CHANGED
@@ -1,2 +1 @@
1
- export * from "./sdk.gen";
2
- export type * from "./types.gen";
1
+ export * from "./api";
package/dist/index.js CHANGED
@@ -1,2 +1 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- export * from "./sdk.gen";
1
+ export * from "./api";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@townco/fly",
3
3
  "type": "module",
4
- "version": "0.1.23",
4
+ "version": "0.1.25",
5
5
  "description": "flyapi",
6
6
  "license": "UNLICENSED",
7
7
  "main": "./dist/index.js",
@@ -17,17 +17,26 @@
17
17
  }
18
18
  },
19
19
  "devDependencies": {
20
+ "@biomejs/biome": "^2.3.8",
20
21
  "@hey-api/client-fetch": "^0.13.1",
21
22
  "@hey-api/openapi-ts": "^0.88.0",
22
- "@townco/tsconfig": "0.1.70",
23
+ "@optique/core": "^0.7.2",
24
+ "@optique/run": "^0.7.2",
25
+ "@townco/core": "0.0.53",
26
+ "@townco/tsconfig": "0.1.72",
27
+ "@types/node": "^24.10.1",
28
+ "openapi-types": "^12.1.3",
29
+ "ts-pattern": "^5.9.0",
23
30
  "typescript": "^5.9.3"
24
31
  },
25
32
  "scripts": {
26
- "gen": "openapi-ts",
27
33
  "build": "tsc",
28
- "check": "tsc --noEmit"
34
+ "check": "tsc --noEmit",
35
+ "fetch-spec": "bun spectool",
36
+ "gen": "turbo gen:api",
37
+ "gen:api": "openapi-ts"
29
38
  },
30
39
  "dependencies": {
31
- "@townco/env": "0.1.23"
40
+ "@townco/env": "0.1.25"
32
41
  }
33
42
  }
@@ -1,3 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
- import { createClient, createConfig, } from "./client";
3
- export const client = createClient(createConfig({ baseUrl: "https://api.machines.dev/v1" }));
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes