letsfg 1.0.6 → 1.1.1

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.
package/README.md CHANGED
@@ -74,7 +74,7 @@ letsfg book off_xxx -p '{"id":"pas_xxx","given_name":"John",...}' -e john@exampl
74
74
 
75
75
  ### `searchLocal(origin, destination, dateFrom, options?)`
76
76
 
77
- Search 75 airline connectors locally (no API key needed). Requires Python + `letsfg` installed.
77
+ Search 150+ airline connectors locally (no API key needed). Requires Python + `letsfg` installed.
78
78
 
79
79
  ```typescript
80
80
  import { searchLocal } from 'letsfg';
@@ -238,7 +238,7 @@ var LetsFG = class {
238
238
  return this.post("/api/v1/bookings/unlock", { offer_id: offerId });
239
239
  }
240
240
  /**
241
- * Book a flight — FREE after unlock.
241
+ * Book a flight — charges ticket price via Stripe.
242
242
  * Creates a real airline reservation with PNR.
243
243
  *
244
244
  * Always provide idempotencyKey to prevent double-bookings on retry.
@@ -256,7 +256,7 @@ var LetsFG = class {
256
256
  return this.post("/api/v1/bookings/book", body);
257
257
  }
258
258
  /**
259
- * Set up payment method (legacy use linkGithub instead).
259
+ * Set up payment method (required before booking).
260
260
  */
261
261
  async setupPayment(token = "tok_visa") {
262
262
  this.requireApiKey();
@@ -336,7 +336,7 @@ var LetsFG = class {
336
336
  */
337
337
  async linkGithub(githubUsername) {
338
338
  this.requireApiKey();
339
- return this.post(`/api/v1/agents/link-github?github_username=${encodeURIComponent(githubUsername)}`, {});
339
+ return this.post("/api/v1/agents/link-github", { github_username: githubUsername });
340
340
  }
341
341
  /**
342
342
  * Get current agent profile and usage stats.
package/dist/cli.js CHANGED
@@ -210,7 +210,7 @@ var LetsFG = class {
210
210
  return this.post("/api/v1/bookings/unlock", { offer_id: offerId });
211
211
  }
212
212
  /**
213
- * Book a flight — FREE after unlock.
213
+ * Book a flight — charges ticket price via Stripe.
214
214
  * Creates a real airline reservation with PNR.
215
215
  *
216
216
  * Always provide idempotencyKey to prevent double-bookings on retry.
@@ -228,7 +228,7 @@ var LetsFG = class {
228
228
  return this.post("/api/v1/bookings/book", body);
229
229
  }
230
230
  /**
231
- * Set up payment method (legacy use linkGithub instead).
231
+ * Set up payment method (required before booking).
232
232
  */
233
233
  async setupPayment(token = "tok_visa") {
234
234
  this.requireApiKey();
@@ -308,7 +308,7 @@ var LetsFG = class {
308
308
  */
309
309
  async linkGithub(githubUsername) {
310
310
  this.requireApiKey();
311
- return this.post(`/api/v1/agents/link-github?github_username=${encodeURIComponent(githubUsername)}`, {});
311
+ return this.post("/api/v1/agents/link-github", { github_username: githubUsername });
312
312
  }
313
313
  /**
314
314
  * Get current agent profile and usage stats.
package/dist/cli.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  LetsFG,
4
4
  LetsFGError,
5
5
  offerSummary
6
- } from "./chunk-ES56QTBU.mjs";
6
+ } from "./chunk-R2DLDQIL.mjs";
7
7
 
8
8
  // src/cli.ts
9
9
  function getFlag(args, flag, alias) {
package/dist/index.d.mts CHANGED
@@ -223,14 +223,14 @@ declare class LetsFG {
223
223
  */
224
224
  unlock(offerId: string): Promise<UnlockResult>;
225
225
  /**
226
- * Book a flight — FREE after unlock.
226
+ * Book a flight — charges ticket price via Stripe.
227
227
  * Creates a real airline reservation with PNR.
228
228
  *
229
229
  * Always provide idempotencyKey to prevent double-bookings on retry.
230
230
  */
231
231
  book(offerId: string, passengers: Passenger[], contactEmail: string, contactPhone?: string, idempotencyKey?: string): Promise<BookingResult>;
232
232
  /**
233
- * Set up payment method (legacy use linkGithub instead).
233
+ * Set up payment method (required before booking).
234
234
  */
235
235
  setupPayment(token?: string): Promise<Record<string, unknown>>;
236
236
  /**
package/dist/index.d.ts CHANGED
@@ -223,14 +223,14 @@ declare class LetsFG {
223
223
  */
224
224
  unlock(offerId: string): Promise<UnlockResult>;
225
225
  /**
226
- * Book a flight — FREE after unlock.
226
+ * Book a flight — charges ticket price via Stripe.
227
227
  * Creates a real airline reservation with PNR.
228
228
  *
229
229
  * Always provide idempotencyKey to prevent double-bookings on retry.
230
230
  */
231
231
  book(offerId: string, passengers: Passenger[], contactEmail: string, contactPhone?: string, idempotencyKey?: string): Promise<BookingResult>;
232
232
  /**
233
- * Set up payment method (legacy use linkGithub instead).
233
+ * Set up payment method (required before booking).
234
234
  */
235
235
  setupPayment(token?: string): Promise<Record<string, unknown>>;
236
236
  /**
package/dist/index.js CHANGED
@@ -288,7 +288,7 @@ var LetsFG = class {
288
288
  return this.post("/api/v1/bookings/unlock", { offer_id: offerId });
289
289
  }
290
290
  /**
291
- * Book a flight — FREE after unlock.
291
+ * Book a flight — charges ticket price via Stripe.
292
292
  * Creates a real airline reservation with PNR.
293
293
  *
294
294
  * Always provide idempotencyKey to prevent double-bookings on retry.
@@ -306,7 +306,7 @@ var LetsFG = class {
306
306
  return this.post("/api/v1/bookings/book", body);
307
307
  }
308
308
  /**
309
- * Set up payment method (legacy use linkGithub instead).
309
+ * Set up payment method (required before booking).
310
310
  */
311
311
  async setupPayment(token = "tok_visa") {
312
312
  this.requireApiKey();
@@ -386,7 +386,7 @@ var LetsFG = class {
386
386
  */
387
387
  async linkGithub(githubUsername) {
388
388
  this.requireApiKey();
389
- return this.post(`/api/v1/agents/link-github?github_username=${encodeURIComponent(githubUsername)}`, {});
389
+ return this.post("/api/v1/agents/link-github", { github_username: githubUsername });
390
390
  }
391
391
  /**
392
392
  * Get current agent profile and usage stats.
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  offerSummary,
15
15
  searchLocal,
16
16
  systemInfo
17
- } from "./chunk-ES56QTBU.mjs";
17
+ } from "./chunk-R2DLDQIL.mjs";
18
18
  export {
19
19
  AuthenticationError,
20
20
  BoostedTravel,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "letsfg",
3
- "version": "1.0.6",
4
- "description": "Agent-native flight search & booking. 75 airline connectors run locally + enterprise GDS/NDC APIs. Built for autonomous AI agents.",
3
+ "version": "1.1.1",
4
+ "description": "Agent-native flight search & booking. 102 airline connectors run locally + enterprise GDS/NDC APIs. Built for autonomous AI agents.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",