@xylex-group/athena 3.0.0 → 3.0.3

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 (70) hide show
  1. package/README.md +24 -10
  2. package/dist/{athena-auth-url-oLux_57a.d.cts → athena-request-headers-C7Jy-c_D.d.ts} +85 -1
  3. package/dist/{athena-auth-url-oLux_57a.d.ts → athena-request-headers-DujFFyMU.d.cts} +85 -1
  4. package/dist/billing.cjs +133 -21
  5. package/dist/billing.cjs.map +1 -1
  6. package/dist/billing.d.cts +41 -1
  7. package/dist/billing.d.ts +41 -1
  8. package/dist/billing.js +133 -21
  9. package/dist/billing.js.map +1 -1
  10. package/dist/browser.cjs +138 -45
  11. package/dist/browser.cjs.map +1 -1
  12. package/dist/browser.d.cts +9 -9
  13. package/dist/browser.d.ts +9 -9
  14. package/dist/browser.js +138 -45
  15. package/dist/browser.js.map +1 -1
  16. package/dist/cli/index.cjs +1038 -57
  17. package/dist/cli/index.cjs.map +1 -1
  18. package/dist/cli/index.d.cts +3 -3
  19. package/dist/cli/index.d.ts +3 -3
  20. package/dist/cli/index.js +1039 -58
  21. package/dist/cli/index.js.map +1 -1
  22. package/dist/index.cjs +977 -54
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.d.cts +9 -9
  25. package/dist/index.d.ts +9 -9
  26. package/dist/index.js +978 -55
  27. package/dist/index.js.map +1 -1
  28. package/dist/{model-form-BKetpu6Q.d.ts → model-form-Dh0sisdL.d.ts} +1 -1
  29. package/dist/{model-form-BEfCGB5b.d.cts → model-form-oOAJUVd4.d.cts} +1 -1
  30. package/dist/{module-Bef_MAPO.d.ts → module-BruTcxe0.d.ts} +17 -5
  31. package/dist/{module-CrrSmpML.d.cts → module-CPG3ULxQ.d.cts} +17 -5
  32. package/dist/{module-8dSMcy0K.d.cts → module-C_ab-MM1.d.cts} +46 -12
  33. package/dist/{module-8dSMcy0K.d.ts → module-C_ab-MM1.d.ts} +46 -12
  34. package/dist/next/client.cjs +9817 -3
  35. package/dist/next/client.cjs.map +1 -1
  36. package/dist/next/client.d.cts +26 -1
  37. package/dist/next/client.d.ts +26 -1
  38. package/dist/next/client.js +9788 -4
  39. package/dist/next/client.js.map +1 -1
  40. package/dist/next/server.cjs +10398 -42
  41. package/dist/next/server.cjs.map +1 -1
  42. package/dist/next/server.d.cts +39 -4
  43. package/dist/next/server.d.ts +39 -4
  44. package/dist/next/server.js +10339 -43
  45. package/dist/next/server.js.map +1 -1
  46. package/dist/{pipeline-Dfsed4VD.d.cts → pipeline-CIzV9f7b.d.cts} +1 -1
  47. package/dist/{pipeline-BXFQbsUW.d.ts → pipeline-DNlc8Ayn.d.ts} +1 -1
  48. package/dist/proxy-request-headers-DGxdoyA0.d.cts +59 -0
  49. package/dist/proxy-request-headers-m4D2Tduy.d.ts +59 -0
  50. package/dist/react.cjs +7 -7
  51. package/dist/react.cjs.map +1 -1
  52. package/dist/react.d.cts +4 -4
  53. package/dist/react.d.ts +4 -4
  54. package/dist/react.js +7 -7
  55. package/dist/react.js.map +1 -1
  56. package/dist/social-providers.cjs +15 -11
  57. package/dist/social-providers.cjs.map +1 -1
  58. package/dist/social-providers.d.cts +17 -57
  59. package/dist/social-providers.d.ts +17 -57
  60. package/dist/social-providers.js +15 -11
  61. package/dist/social-providers.js.map +1 -1
  62. package/dist/{types-jClgDy1J.d.ts → types-B75PdABb.d.ts} +1 -1
  63. package/dist/{types-kO_Ut5wU.d.cts → types-CgCv5o6R.d.cts} +1 -1
  64. package/dist/{types-CK7cBQbC.d.ts → types-D6tZ9aoq.d.ts} +35 -2
  65. package/dist/{types-Z3-rsiM3.d.cts → types-DFr2cL1N.d.cts} +35 -2
  66. package/dist/utils.d.cts +4 -142
  67. package/dist/utils.d.ts +4 -142
  68. package/dist/{v3-client-G8JMOilK.d.cts → v3-client-CWfZHcKL.d.cts} +37 -21
  69. package/dist/{v3-client-CuCNy-JJ.d.ts → v3-client-DZp2NEhK.d.ts} +37 -21
  70. package/package.json +6 -3
@@ -1,4 +1,4 @@
1
- export { A as AthenaBillingCallOptions, a as AthenaBillingClientConfig, f as AthenaBillingEnvelope, b as AthenaBillingError, g as AthenaBillingHttpMethod, h as AthenaBillingJson, c as AthenaBillingModule, B as BillingConnectionRefInput, i as BillingCreateConnectionInput, j as BillingEnsureCustomerInput, k as BillingListQuery, l as BillingProvisionSinksInput, m as BillingReconcileInput, n as BillingUpdateConnectionInput, o as BillingUpdateCustomerInput, d as billingSdkManifest, e as createBillingModule } from './module-8dSMcy0K.cjs';
1
+ export { A as AthenaBillingCallOptions, a as AthenaBillingClientConfig, f as AthenaBillingEnvelope, b as AthenaBillingError, g as AthenaBillingHttpMethod, h as AthenaBillingJson, c as AthenaBillingModule, B as BillingConnectionRefInput, i as BillingCreateConnectionInput, j as BillingEnsureCustomerInput, k as BillingListQuery, l as BillingProvisionSinksInput, m as BillingReconcileInput, n as BillingUpdateConnectionInput, o as BillingUpdateCustomerInput, d as billingSdkManifest, e as createBillingModule } from './module-C_ab-MM1.cjs';
2
2
 
3
3
  var consumers = [
4
4
  "openapi.yaml",
@@ -79,6 +79,16 @@ var routes = [
79
79
  path: "/billing/v1/checkouts",
80
80
  surface: "billingV1"
81
81
  },
82
+ {
83
+ method: "GET",
84
+ path: "/billing/v1/products",
85
+ surface: "billingV1"
86
+ },
87
+ {
88
+ method: "GET",
89
+ path: "/billing/v1/prices",
90
+ surface: "billingV1"
91
+ },
82
92
  {
83
93
  method: "GET",
84
94
  path: "/billing/v1/customers",
@@ -204,6 +214,36 @@ var routes = [
204
214
  path: "/billing/v1/subscriptions/{id}/cancel",
205
215
  surface: "billingV1"
206
216
  },
217
+ {
218
+ method: "GET",
219
+ path: "/billing/v1/webhooks",
220
+ surface: "billingV1"
221
+ },
222
+ {
223
+ method: "POST",
224
+ path: "/billing/v1/webhooks",
225
+ surface: "billingV1"
226
+ },
227
+ {
228
+ method: "DELETE",
229
+ path: "/billing/v1/webhooks/{id}",
230
+ surface: "billingV1"
231
+ },
232
+ {
233
+ method: "GET",
234
+ path: "/billing/v1/webhooks/{id}",
235
+ surface: "billingV1"
236
+ },
237
+ {
238
+ method: "PATCH",
239
+ path: "/billing/v1/webhooks/{id}",
240
+ surface: "billingV1"
241
+ },
242
+ {
243
+ method: "POST",
244
+ path: "/billing/v1/webhooks/{id}/test",
245
+ surface: "billingV1"
246
+ },
207
247
  {
208
248
  method: "GET",
209
249
  path: "/debug/billing",
package/dist/billing.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AthenaBillingCallOptions, a as AthenaBillingClientConfig, f as AthenaBillingEnvelope, b as AthenaBillingError, g as AthenaBillingHttpMethod, h as AthenaBillingJson, c as AthenaBillingModule, B as BillingConnectionRefInput, i as BillingCreateConnectionInput, j as BillingEnsureCustomerInput, k as BillingListQuery, l as BillingProvisionSinksInput, m as BillingReconcileInput, n as BillingUpdateConnectionInput, o as BillingUpdateCustomerInput, d as billingSdkManifest, e as createBillingModule } from './module-8dSMcy0K.js';
1
+ export { A as AthenaBillingCallOptions, a as AthenaBillingClientConfig, f as AthenaBillingEnvelope, b as AthenaBillingError, g as AthenaBillingHttpMethod, h as AthenaBillingJson, c as AthenaBillingModule, B as BillingConnectionRefInput, i as BillingCreateConnectionInput, j as BillingEnsureCustomerInput, k as BillingListQuery, l as BillingProvisionSinksInput, m as BillingReconcileInput, n as BillingUpdateConnectionInput, o as BillingUpdateCustomerInput, d as billingSdkManifest, e as createBillingModule } from './module-C_ab-MM1.js';
2
2
 
3
3
  var consumers = [
4
4
  "openapi.yaml",
@@ -79,6 +79,16 @@ var routes = [
79
79
  path: "/billing/v1/checkouts",
80
80
  surface: "billingV1"
81
81
  },
82
+ {
83
+ method: "GET",
84
+ path: "/billing/v1/products",
85
+ surface: "billingV1"
86
+ },
87
+ {
88
+ method: "GET",
89
+ path: "/billing/v1/prices",
90
+ surface: "billingV1"
91
+ },
82
92
  {
83
93
  method: "GET",
84
94
  path: "/billing/v1/customers",
@@ -204,6 +214,36 @@ var routes = [
204
214
  path: "/billing/v1/subscriptions/{id}/cancel",
205
215
  surface: "billingV1"
206
216
  },
217
+ {
218
+ method: "GET",
219
+ path: "/billing/v1/webhooks",
220
+ surface: "billingV1"
221
+ },
222
+ {
223
+ method: "POST",
224
+ path: "/billing/v1/webhooks",
225
+ surface: "billingV1"
226
+ },
227
+ {
228
+ method: "DELETE",
229
+ path: "/billing/v1/webhooks/{id}",
230
+ surface: "billingV1"
231
+ },
232
+ {
233
+ method: "GET",
234
+ path: "/billing/v1/webhooks/{id}",
235
+ surface: "billingV1"
236
+ },
237
+ {
238
+ method: "PATCH",
239
+ path: "/billing/v1/webhooks/{id}",
240
+ surface: "billingV1"
241
+ },
242
+ {
243
+ method: "POST",
244
+ path: "/billing/v1/webhooks/{id}/test",
245
+ surface: "billingV1"
246
+ },
207
247
  {
208
248
  method: "GET",
209
249
  path: "/debug/billing",
package/dist/billing.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // package.json
2
2
  var package_default = {
3
- version: "3.0.0"
3
+ version: "3.0.3"
4
4
  };
5
5
 
6
6
  // src/sdk-version.ts
@@ -316,14 +316,14 @@ function normalizeAthenaGatewayBaseUrl(input, options = {}) {
316
316
  if (candidate === void 0 || candidate === null) {
317
317
  throw invalidBaseUrlError(
318
318
  `${label} must be a non-empty absolute http(s) URL. Received ${describeReceivedValue(input)}.`,
319
- 'Set ATHENA_URL in the explicit env object (or pass createClient({ url, key })) to a full URL such as "https://mirror3.athena-db.com".'
319
+ 'Set ATHENA_URL in the explicit env object (or pass createClient({ url, key })) to a full URL such as "https://mirror2.athena-cluster.com".'
320
320
  );
321
321
  }
322
322
  const trimmed = candidate.trim();
323
323
  if (!trimmed) {
324
324
  throw invalidBaseUrlError(
325
325
  `${label} must be a non-empty absolute http(s) URL. Received ${describeReceivedValue(candidate)}.`,
326
- 'Set ATHENA_URL in the explicit env object (or pass createClient({ url, key })) to a full URL such as "https://mirror3.athena-db.com".'
326
+ 'Set ATHENA_URL in the explicit env object (or pass createClient({ url, key })) to a full URL such as "https://mirror2.athena-cluster.com".'
327
327
  );
328
328
  }
329
329
  let parsed;
@@ -332,13 +332,13 @@ function normalizeAthenaGatewayBaseUrl(input, options = {}) {
332
332
  } catch {
333
333
  throw invalidBaseUrlError(
334
334
  `${label} must be a valid absolute http(s) URL. Received ${describeReceivedValue(candidate)}.`,
335
- 'Use a full URL including the protocol, for example "https://mirror3.athena-db.com".'
335
+ 'Use a full URL including the protocol, for example "https://mirror2.athena-cluster.com".'
336
336
  );
337
337
  }
338
338
  if (parsed.protocol !== "http:" && parsed.protocol !== "https:") {
339
339
  throw invalidBaseUrlError(
340
340
  `${label} must use http or https. Received ${JSON.stringify(trimmed)}.`,
341
- 'Use an Athena gateway URL such as "https://mirror3.athena-db.com".'
341
+ 'Use an Athena gateway URL such as "https://mirror2.athena-cluster.com".'
342
342
  );
343
343
  }
344
344
  if (parsed.search || parsed.hash) {
@@ -373,6 +373,8 @@ var billingSdkManifest = {
373
373
  methods: [
374
374
  { name: "getCapabilities", method: "GET", path: "/billing/v1/capabilities" },
375
375
  { name: "createCheckout", method: "POST", path: "/billing/v1/checkouts" },
376
+ { name: "listProducts", method: "GET", path: "/billing/v1/products" },
377
+ { name: "listPrices", method: "GET", path: "/billing/v1/prices" },
376
378
  { name: "listCustomers", method: "GET", path: "/billing/v1/customers" },
377
379
  { name: "createCustomer", method: "POST", path: "/billing/v1/customers" },
378
380
  { name: "getCustomer", method: "GET", path: "/billing/v1/customers/{id}" },
@@ -398,6 +400,12 @@ var billingSdkManifest = {
398
400
  { name: "cancelSubscription", method: "POST", path: "/billing/v1/subscriptions/{id}/cancel" },
399
401
  { name: "listInvoices", method: "GET", path: "/billing/v1/invoices" },
400
402
  { name: "getInvoice", method: "GET", path: "/billing/v1/invoices/{id}" },
403
+ { name: "listWebhooks", method: "GET", path: "/billing/v1/webhooks" },
404
+ { name: "createWebhook", method: "POST", path: "/billing/v1/webhooks" },
405
+ { name: "getWebhook", method: "GET", path: "/billing/v1/webhooks/{id}" },
406
+ { name: "updateWebhook", method: "PATCH", path: "/billing/v1/webhooks/{id}" },
407
+ { name: "deleteWebhook", method: "DELETE", path: "/billing/v1/webhooks/{id}" },
408
+ { name: "testWebhook", method: "POST", path: "/billing/v1/webhooks/{id}/test" },
401
409
  {
402
410
  name: "listConnections",
403
411
  method: "GET",
@@ -566,6 +574,25 @@ function createBillingModule(config) {
566
574
  createCheckout(body, options) {
567
575
  return call("POST", "/billing/v1/checkouts", body, options);
568
576
  },
577
+ listProducts(input, options) {
578
+ return call(
579
+ "GET",
580
+ appendQuery("/billing/v1/products", connectionQuery(input)),
581
+ void 0,
582
+ options
583
+ );
584
+ },
585
+ listPrices(input, options) {
586
+ return call(
587
+ "GET",
588
+ appendQuery("/billing/v1/prices", {
589
+ ...connectionQuery(input),
590
+ ...input.productId ? { productId: input.productId } : {}
591
+ }),
592
+ void 0,
593
+ options
594
+ );
595
+ },
569
596
  listCustomers(input, options) {
570
597
  return call(
571
598
  "GET",
@@ -712,10 +739,7 @@ function createBillingModule(config) {
712
739
  getRefund(id, input, options) {
713
740
  return call(
714
741
  "GET",
715
- appendQuery(withPathParam("/billing/v1/refunds/{id}", "id", id), {
716
- ...connectionQuery(input),
717
- ...input.paymentId ? { paymentId: input.paymentId } : {}
718
- }),
742
+ appendQuery(withPathParam("/billing/v1/refunds/{id}", "id", id), connectionQuery(input)),
719
743
  void 0,
720
744
  options
721
745
  );
@@ -723,10 +747,7 @@ function createBillingModule(config) {
723
747
  cancelRefund(id, input, options) {
724
748
  return call(
725
749
  "POST",
726
- appendQuery(withPathParam("/billing/v1/refunds/{id}/cancel", "id", id), {
727
- ...connectionQuery(input),
728
- ...input.paymentId ? { paymentId: input.paymentId } : {}
729
- }),
750
+ appendQuery(withPathParam("/billing/v1/refunds/{id}/cancel", "id", id), connectionQuery(input)),
730
751
  {},
731
752
  options
732
753
  );
@@ -745,10 +766,10 @@ function createBillingModule(config) {
745
766
  getSubscription(id, input, options) {
746
767
  return call(
747
768
  "GET",
748
- appendQuery(withPathParam("/billing/v1/subscriptions/{id}", "id", id), {
749
- ...connectionQuery(input),
750
- ...input.customerId ? { customerId: input.customerId } : {}
751
- }),
769
+ appendQuery(
770
+ withPathParam("/billing/v1/subscriptions/{id}", "id", id),
771
+ connectionQuery(input)
772
+ ),
752
773
  void 0,
753
774
  options
754
775
  );
@@ -764,10 +785,10 @@ function createBillingModule(config) {
764
785
  cancelSubscription(id, input, options) {
765
786
  return call(
766
787
  "POST",
767
- appendQuery(withPathParam("/billing/v1/subscriptions/{id}/cancel", "id", id), {
768
- ...connectionQuery(input),
769
- customerId: input.customerId
770
- }),
788
+ appendQuery(
789
+ withPathParam("/billing/v1/subscriptions/{id}/cancel", "id", id),
790
+ connectionQuery(input)
791
+ ),
771
792
  {},
772
793
  options
773
794
  );
@@ -791,6 +812,57 @@ function createBillingModule(config) {
791
812
  options
792
813
  );
793
814
  },
815
+ listWebhooks(input, options) {
816
+ return call(
817
+ "GET",
818
+ appendQuery("/billing/v1/webhooks", connectionQuery(input)),
819
+ void 0,
820
+ options
821
+ );
822
+ },
823
+ createWebhook(input, body, options) {
824
+ return call(
825
+ "POST",
826
+ appendQuery("/billing/v1/webhooks", connectionQuery(input)),
827
+ body,
828
+ options
829
+ );
830
+ },
831
+ getWebhook(id, input, options) {
832
+ return call(
833
+ "GET",
834
+ appendQuery(withPathParam("/billing/v1/webhooks/{id}", "id", id), connectionQuery(input)),
835
+ void 0,
836
+ options
837
+ );
838
+ },
839
+ updateWebhook(id, input, body, options) {
840
+ return call(
841
+ "PATCH",
842
+ appendQuery(withPathParam("/billing/v1/webhooks/{id}", "id", id), connectionQuery(input)),
843
+ body,
844
+ options
845
+ );
846
+ },
847
+ deleteWebhook(id, input, options) {
848
+ return call(
849
+ "DELETE",
850
+ appendQuery(withPathParam("/billing/v1/webhooks/{id}", "id", id), connectionQuery(input)),
851
+ void 0,
852
+ options
853
+ );
854
+ },
855
+ testWebhook(id, input, options) {
856
+ return call(
857
+ "POST",
858
+ appendQuery(
859
+ withPathParam("/billing/v1/webhooks/{id}/test", "id", id),
860
+ connectionQuery(input)
861
+ ),
862
+ {},
863
+ options
864
+ );
865
+ },
794
866
  listConnections(clientName, options) {
795
867
  return call(
796
868
  "GET",
@@ -1049,6 +1121,16 @@ var live_http_routes_default = {
1049
1121
  path: "/billing/v1/checkouts",
1050
1122
  surface: "billingV1"
1051
1123
  },
1124
+ {
1125
+ method: "GET",
1126
+ path: "/billing/v1/products",
1127
+ surface: "billingV1"
1128
+ },
1129
+ {
1130
+ method: "GET",
1131
+ path: "/billing/v1/prices",
1132
+ surface: "billingV1"
1133
+ },
1052
1134
  {
1053
1135
  method: "GET",
1054
1136
  path: "/billing/v1/customers",
@@ -1174,6 +1256,36 @@ var live_http_routes_default = {
1174
1256
  path: "/billing/v1/subscriptions/{id}/cancel",
1175
1257
  surface: "billingV1"
1176
1258
  },
1259
+ {
1260
+ method: "GET",
1261
+ path: "/billing/v1/webhooks",
1262
+ surface: "billingV1"
1263
+ },
1264
+ {
1265
+ method: "POST",
1266
+ path: "/billing/v1/webhooks",
1267
+ surface: "billingV1"
1268
+ },
1269
+ {
1270
+ method: "DELETE",
1271
+ path: "/billing/v1/webhooks/{id}",
1272
+ surface: "billingV1"
1273
+ },
1274
+ {
1275
+ method: "GET",
1276
+ path: "/billing/v1/webhooks/{id}",
1277
+ surface: "billingV1"
1278
+ },
1279
+ {
1280
+ method: "PATCH",
1281
+ path: "/billing/v1/webhooks/{id}",
1282
+ surface: "billingV1"
1283
+ },
1284
+ {
1285
+ method: "POST",
1286
+ path: "/billing/v1/webhooks/{id}/test",
1287
+ surface: "billingV1"
1288
+ },
1177
1289
  {
1178
1290
  method: "GET",
1179
1291
  path: "/debug/billing",