@01.software/sdk 0.65.0 → 0.67.0

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 (55) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/README.md +79 -2
  3. package/dist/client.cjs +79 -27
  4. package/dist/client.cjs.map +1 -1
  5. package/dist/client.d.cts +6 -6
  6. package/dist/client.d.ts +6 -6
  7. package/dist/client.js +79 -27
  8. package/dist/client.js.map +1 -1
  9. package/dist/{collection-client-C2sMvfme.d.ts → collection-client-D4HEOoO_.d.ts} +4 -4
  10. package/dist/{collection-client-B7rsTtVj.d.cts → collection-client-jrNFGbrO.d.cts} +4 -4
  11. package/dist/{const-CRxPTDGt.d.ts → const-BU79hCFB.d.ts} +2 -2
  12. package/dist/{const-D6ZRQLxI.d.cts → const-CCQ3MdLE.d.cts} +2 -2
  13. package/dist/{index-1auUEYrl.d.ts → index-CwKxWHIa.d.ts} +3 -3
  14. package/dist/{index-Bbpf5t-l.d.cts → index-DiyhsVHd.d.cts} +3 -3
  15. package/dist/index.cjs +80 -27
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +7 -7
  18. package/dist/index.d.ts +7 -7
  19. package/dist/index.js +80 -27
  20. package/dist/index.js.map +1 -1
  21. package/dist/{payload-types-BnIET0xU.d.cts → payload-types-jdsUXunB.d.cts} +128 -49
  22. package/dist/{payload-types-BnIET0xU.d.ts → payload-types-jdsUXunB.d.ts} +128 -49
  23. package/dist/query.cjs +14 -1
  24. package/dist/query.cjs.map +1 -1
  25. package/dist/query.d.cts +5 -5
  26. package/dist/query.d.ts +5 -5
  27. package/dist/query.js +14 -1
  28. package/dist/query.js.map +1 -1
  29. package/dist/realtime.d.cts +2 -2
  30. package/dist/realtime.d.ts +2 -2
  31. package/dist/server.cjs +96 -3
  32. package/dist/server.cjs.map +1 -1
  33. package/dist/server.d.cts +9 -9
  34. package/dist/server.d.ts +9 -9
  35. package/dist/server.js +96 -3
  36. package/dist/server.js.map +1 -1
  37. package/dist/{types-Dp1oYpD3.d.cts → types-BPwXAFZ7.d.cts} +2 -2
  38. package/dist/{types-D1y4TgQm.d.ts → types-BusejG-v.d.ts} +2 -2
  39. package/dist/{types-Dzn0LD2N.d.cts → types-CvdBV3ri.d.cts} +71 -6
  40. package/dist/{types-DnRC3nLG.d.ts → types-I2k6Laad.d.ts} +71 -6
  41. package/dist/ui/canvas.cjs +5 -1
  42. package/dist/ui/canvas.cjs.map +1 -1
  43. package/dist/ui/canvas.js +5 -1
  44. package/dist/ui/canvas.js.map +1 -1
  45. package/dist/ui/form.d.cts +1 -1
  46. package/dist/ui/form.d.ts +1 -1
  47. package/dist/ui/video.cjs +9 -2
  48. package/dist/ui/video.cjs.map +1 -1
  49. package/dist/ui/video.d.cts +1 -1
  50. package/dist/ui/video.d.ts +1 -1
  51. package/dist/ui/video.js +9 -2
  52. package/dist/ui/video.js.map +1 -1
  53. package/dist/webhook.d.cts +5 -5
  54. package/dist/webhook.d.ts +5 -5
  55. package/package.json +5 -5
package/dist/client.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { R as ReadOnlyCollectionClient } from './collection-client-B7rsTtVj.cjs';
2
- import { C as CommerceClient, a as CommunityClient, b as ContentClient, E as EventsClient, c as CustomerNamespace, M as MarketDiscovery, d as CustomerMembershipView, e as CancelMembershipParams, f as CancelMembershipResponse, g as ClientState, h as ClientConfig } from './types-Dzn0LD2N.cjs';
3
- export { A as AddItemParams, i as ApiQueryOptions, j as CancelBrowserPaymentSessionParams, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, u as ClientMetadata, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, F as CustomerSnapshot, G as DebugConfig, H as DeepPartial, I as ExtractArrayType, J as MembershipStatus, K as Money, O as OpenCheckoutPaymentState, P as PayloadFindResponse, L as PayloadMutationResponse, N as PaymentFailureReason, Q as PaymentNextAction, R as PaymentProviderStatus, S as PaymentReconciliationReason, T as PaymentSessionRole, U as PortOneHostedPaymentMethod, V as PortOnePaymentNextAction, W as PortOnePublicPaymentSession, X as ProductUpsertInput, Y as ProductUpsertParams, Z as ProductUpsertResponse, _ as ProductUpsertVariantInput, $ as PublicAttribute, a0 as PublicCaptureEvidence, a1 as PublicCart, a2 as PublicCartItem, a3 as PublicCartItemAdmission, a4 as PublicCartMarket, a5 as PublicCartReference, a6 as PublicCheckout, a7 as PublicCheckoutItem, a8 as PublicMediaAsset, a9 as PublicMediaSize, aa as PublicOrder, ab as PublicOrderAmounts, ac as PublicOrderItem, ad as PublicOrderReference, ae as PublicPaymentSession, af as ReconciliationRequired, ag as RemoveItemParams, ah as RetrieveBrowserPaymentSessionParams, ai as RetrieveCartParams, aj as RetrieveCheckoutParams, ak as RetryConfig, al as RootClient, al as RootClientType, am as RootCollectionClient, an as RootReadOnlyQueryBuilder, ao as ShippingLine, ap as Sort, aq as SpentCheckoutPaymentState, ar as StorefrontContentListOptions, as as StorefrontContentReference, at as StorefrontGalleryItem, au as StorefrontGalleryItemsListOptions, av as StorefrontGalleryItemsSort, aw as StorefrontLink, ax as StorefrontLinksListOptions, ay as StorefrontLinksSort, az as UpdateCartAttributesParams, aA as UpdateDiscountCodesParams, aB as UpdateItemParams, aC as VariantInput, aD as Where } from './types-Dzn0LD2N.cjs';
1
+ import { R as ReadOnlyCollectionClient } from './collection-client-jrNFGbrO.cjs';
2
+ import { C as CommerceClient, a as CommunityClient, b as ContentClient, E as EventsClient, c as CustomerNamespace, M as MarketDiscovery, d as CustomerMembershipView, e as CancelMembershipParams, f as CancelMembershipResponse, g as ClientState, h as ClientConfig } from './types-CvdBV3ri.cjs';
3
+ export { A as AddItemParams, i as ApiQueryOptions, j as CancelBrowserPaymentSessionParams, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, u as ClientMetadata, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, F as CustomerSnapshot, G as DebugConfig, H as DeepPartial, I as ExtractArrayType, J as MembershipStatus, K as Money, O as OpenCheckoutPaymentState, P as PayloadFindResponse, L as PayloadMutationResponse, N as PaymentFailureReason, Q as PaymentNextAction, R as PaymentProviderStatus, S as PaymentReconciliationReason, T as PaymentSessionRole, U as PortOneHostedPaymentMethod, V as PortOnePaymentNextAction, W as PortOnePublicPaymentSession, X as ProductUpsertInput, Y as ProductUpsertParams, Z as ProductUpsertResponse, _ as ProductUpsertVariantInput, $ as PublicAttribute, a0 as PublicCaptureEvidence, a1 as PublicCart, a2 as PublicCartItem, a3 as PublicCartItemAdmission, a4 as PublicCartMarket, a5 as PublicCartReference, a6 as PublicCheckout, a7 as PublicCheckoutItem, a8 as PublicMediaAsset, a9 as PublicMediaSize, aa as PublicOrder, ab as PublicOrderAmounts, ac as PublicOrderItem, ad as PublicOrderReference, ae as PublicPaymentSession, af as ReconciliationRequired, ag as RemoveItemParams, ah as RetrieveBrowserPaymentSessionParams, ai as RetrieveCartParams, aj as RetrieveCheckoutParams, ak as RetryConfig, al as RootClient, al as RootClientType, am as RootCollectionClient, an as RootReadOnlyQueryBuilder, ao as ShippingLine, ap as Sort, aq as SpentCheckoutPaymentState, ar as StorefrontContentListOptions, as as StorefrontContentReference, at as StorefrontGalleryItem, au as StorefrontGalleryItemsListOptions, av as StorefrontGalleryItemsSort, aw as StorefrontLink, ax as StorefrontLinksListOptions, ay as StorefrontLinksSort, az as UpdateCartAttributesParams, aA as UpdateDiscountCodesParams, aB as UpdateItemParams, aC as VariantInput, aD as Where } from './types-CvdBV3ri.cjs';
4
4
  export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.cjs';
5
- export { C as Collection, P as PublicCollection } from './const-D6ZRQLxI.cjs';
6
- import './payload-types-BnIET0xU.cjs';
5
+ export { C as Collection, P as PublicCollection } from './const-CCQ3MdLE.cjs';
6
+ import './payload-types-jdsUXunB.cjs';
7
7
  import './metadata.cjs';
8
- import './types-Dp1oYpD3.cjs';
8
+ import './types-BPwXAFZ7.cjs';
9
9
 
10
10
  declare class Client {
11
11
  commerce: CommerceClient;
package/dist/client.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { R as ReadOnlyCollectionClient } from './collection-client-C2sMvfme.js';
2
- import { C as CommerceClient, a as CommunityClient, b as ContentClient, E as EventsClient, c as CustomerNamespace, M as MarketDiscovery, d as CustomerMembershipView, e as CancelMembershipParams, f as CancelMembershipResponse, g as ClientState, h as ClientConfig } from './types-DnRC3nLG.js';
3
- export { A as AddItemParams, i as ApiQueryOptions, j as CancelBrowserPaymentSessionParams, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, u as ClientMetadata, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, F as CustomerSnapshot, G as DebugConfig, H as DeepPartial, I as ExtractArrayType, J as MembershipStatus, K as Money, O as OpenCheckoutPaymentState, P as PayloadFindResponse, L as PayloadMutationResponse, N as PaymentFailureReason, Q as PaymentNextAction, R as PaymentProviderStatus, S as PaymentReconciliationReason, T as PaymentSessionRole, U as PortOneHostedPaymentMethod, V as PortOnePaymentNextAction, W as PortOnePublicPaymentSession, X as ProductUpsertInput, Y as ProductUpsertParams, Z as ProductUpsertResponse, _ as ProductUpsertVariantInput, $ as PublicAttribute, a0 as PublicCaptureEvidence, a1 as PublicCart, a2 as PublicCartItem, a3 as PublicCartItemAdmission, a4 as PublicCartMarket, a5 as PublicCartReference, a6 as PublicCheckout, a7 as PublicCheckoutItem, a8 as PublicMediaAsset, a9 as PublicMediaSize, aa as PublicOrder, ab as PublicOrderAmounts, ac as PublicOrderItem, ad as PublicOrderReference, ae as PublicPaymentSession, af as ReconciliationRequired, ag as RemoveItemParams, ah as RetrieveBrowserPaymentSessionParams, ai as RetrieveCartParams, aj as RetrieveCheckoutParams, ak as RetryConfig, al as RootClient, al as RootClientType, am as RootCollectionClient, an as RootReadOnlyQueryBuilder, ao as ShippingLine, ap as Sort, aq as SpentCheckoutPaymentState, ar as StorefrontContentListOptions, as as StorefrontContentReference, at as StorefrontGalleryItem, au as StorefrontGalleryItemsListOptions, av as StorefrontGalleryItemsSort, aw as StorefrontLink, ax as StorefrontLinksListOptions, ay as StorefrontLinksSort, az as UpdateCartAttributesParams, aA as UpdateDiscountCodesParams, aB as UpdateItemParams, aC as VariantInput, aD as Where } from './types-DnRC3nLG.js';
1
+ import { R as ReadOnlyCollectionClient } from './collection-client-D4HEOoO_.js';
2
+ import { C as CommerceClient, a as CommunityClient, b as ContentClient, E as EventsClient, c as CustomerNamespace, M as MarketDiscovery, d as CustomerMembershipView, e as CancelMembershipParams, f as CancelMembershipResponse, g as ClientState, h as ClientConfig } from './types-I2k6Laad.js';
3
+ export { A as AddItemParams, i as ApiQueryOptions, j as CancelBrowserPaymentSessionParams, k as CartMergeParams, l as CartMergeResult, m as CartMineResult, n as CartMutationResult, o as CheckoutAbandonedReason, p as CheckoutAmounts, q as CheckoutOrderReference, r as CheckoutPaymentSessionRef, s as CheckoutShippingAddress, t as ClearCartParams, u as ClientMetadata, v as ContentClientOptions, w as CreateCartParams, x as CreateCartResult, y as CreateCheckoutParams, z as CreateCheckoutResult, B as CreatePaymentSessionParams, D as CreatePortOnePaymentSessionParams, F as CustomerSnapshot, G as DebugConfig, H as DeepPartial, I as ExtractArrayType, J as MembershipStatus, K as Money, O as OpenCheckoutPaymentState, P as PayloadFindResponse, L as PayloadMutationResponse, N as PaymentFailureReason, Q as PaymentNextAction, R as PaymentProviderStatus, S as PaymentReconciliationReason, T as PaymentSessionRole, U as PortOneHostedPaymentMethod, V as PortOnePaymentNextAction, W as PortOnePublicPaymentSession, X as ProductUpsertInput, Y as ProductUpsertParams, Z as ProductUpsertResponse, _ as ProductUpsertVariantInput, $ as PublicAttribute, a0 as PublicCaptureEvidence, a1 as PublicCart, a2 as PublicCartItem, a3 as PublicCartItemAdmission, a4 as PublicCartMarket, a5 as PublicCartReference, a6 as PublicCheckout, a7 as PublicCheckoutItem, a8 as PublicMediaAsset, a9 as PublicMediaSize, aa as PublicOrder, ab as PublicOrderAmounts, ac as PublicOrderItem, ad as PublicOrderReference, ae as PublicPaymentSession, af as ReconciliationRequired, ag as RemoveItemParams, ah as RetrieveBrowserPaymentSessionParams, ai as RetrieveCartParams, aj as RetrieveCheckoutParams, ak as RetryConfig, al as RootClient, al as RootClientType, am as RootCollectionClient, an as RootReadOnlyQueryBuilder, ao as ShippingLine, ap as Sort, aq as SpentCheckoutPaymentState, ar as StorefrontContentListOptions, as as StorefrontContentReference, at as StorefrontGalleryItem, au as StorefrontGalleryItemsListOptions, av as StorefrontGalleryItemsSort, aw as StorefrontLink, ax as StorefrontLinksListOptions, ay as StorefrontLinksSort, az as UpdateCartAttributesParams, aA as UpdateDiscountCodesParams, aB as UpdateItemParams, aC as VariantInput, aD as Where } from './types-I2k6Laad.js';
4
4
  export { isApiError, isAuthError, isCommerceSDKError, isConfigError, isConflictError, isGoneError, isNetworkError, isNotFoundError, isPermissionError, isRateLimitError, isSDKError, isServiceUnavailableError, isTimeoutError, isUsageLimitError, isValidationError } from './errors.js';
5
- export { C as Collection, P as PublicCollection } from './const-CRxPTDGt.js';
6
- import './payload-types-BnIET0xU.js';
5
+ export { C as Collection, P as PublicCollection } from './const-BU79hCFB.js';
6
+ import './payload-types-jdsUXunB.js';
7
7
  import './metadata.js';
8
- import './types-D1y4TgQm.js';
8
+ import './types-BusejG-v.js';
9
9
 
10
10
  declare class Client {
11
11
  commerce: CommerceClient;
package/dist/client.js CHANGED
@@ -1375,7 +1375,9 @@ var COMMERCE_ENDPOINT_OPERATIONS = {
1375
1375
  ),
1376
1376
  stockCheck: operation("products", "post", "/stock-check"),
1377
1377
  stockSnapshot: operation("products", "get", "/stock"),
1378
- upsert: operation("products", "post", "/upsert")
1378
+ upsert: operation("products", "post", "/upsert"),
1379
+ graphRevision: operation("products", "get", "/:id/graph-revision"),
1380
+ variantsPatch: operation("products", "patch", "/:id/variants")
1379
1381
  },
1380
1382
  orders: {
1381
1383
  create: operation("orders", "post", "/create"),
@@ -1544,6 +1546,14 @@ var CUSTOMER_GROUP_ENDPOINT_OPERATIONS = {
1544
1546
  revoke: operation("customer-groups", "post", "/:id/members/revoke")
1545
1547
  };
1546
1548
  var CUSTOMER_AUTH_ENDPOINT_OPERATIONS = {
1549
+ register: operation("customers", "post", "/register"),
1550
+ login: operation("customers", "post", "/login"),
1551
+ refresh: operation("customers", "post", "/refresh"),
1552
+ me: operation("customers", "get", "/me"),
1553
+ updateProfile: operation("customers", "patch", "/me"),
1554
+ forgotPassword: operation("customers", "post", "/forgot-password"),
1555
+ resetPassword: operation("customers", "post", "/reset-password"),
1556
+ changePassword: operation("customers", "post", "/change-password"),
1547
1557
  revokeRefresh: operation("customers", "post", "/revoke-refresh"),
1548
1558
  withdraw: operation("customers", "post", "/withdraw")
1549
1559
  };
@@ -1553,6 +1563,9 @@ var EMBEDDED_ADMIN_ENDPOINT_OPERATIONS = {
1553
1563
  disable: operation("tenants", "delete", "/embedded-admin-app")
1554
1564
  };
1555
1565
  var EVENTS_ENDPOINT_OPERATIONS = {
1566
+ registrations: {
1567
+ listMine: operation("event-registrations", "get", "/my")
1568
+ },
1556
1569
  events: {
1557
1570
  convertSchedule: operation("events", "post", "/:id/schedule")
1558
1571
  },
@@ -3978,19 +3991,24 @@ var CustomerAuth = class {
3978
3991
  * Register a new customer account
3979
3992
  */
3980
3993
  async register(data) {
3981
- return this.requestJson("/api/customers/register", {
3982
- method: "POST",
3983
- body: JSON.stringify(data)
3984
- });
3994
+ return this.requestJson(
3995
+ resolveOperationPath(CUSTOMER_AUTH_ENDPOINT_OPERATIONS.register),
3996
+ {
3997
+ method: resolveOperationMethod(
3998
+ CUSTOMER_AUTH_ENDPOINT_OPERATIONS.register
3999
+ ),
4000
+ body: JSON.stringify(data)
4001
+ }
4002
+ );
3985
4003
  }
3986
4004
  /**
3987
4005
  * Login with email and password. Stores the token internally.
3988
4006
  */
3989
4007
  async login(data) {
3990
4008
  const result = await this.requestJson(
3991
- "/api/customers/login",
4009
+ resolveOperationPath(CUSTOMER_AUTH_ENDPOINT_OPERATIONS.login),
3992
4010
  {
3993
- method: "POST",
4011
+ method: resolveOperationMethod(CUSTOMER_AUTH_ENDPOINT_OPERATIONS.login),
3994
4012
  body: JSON.stringify(data)
3995
4013
  }
3996
4014
  );
@@ -4236,14 +4254,18 @@ var CustomerAuth = class {
4236
4254
  }
4237
4255
  async _doRefreshToken(intended) {
4238
4256
  const init = intended.refreshToken ? {
4239
- method: "POST",
4257
+ method: resolveOperationMethod(
4258
+ CUSTOMER_AUTH_ENDPOINT_OPERATIONS.refresh
4259
+ ),
4240
4260
  body: JSON.stringify({ refreshToken: intended.refreshToken })
4241
4261
  } : {
4242
- method: "POST",
4262
+ method: resolveOperationMethod(
4263
+ CUSTOMER_AUTH_ENDPOINT_OPERATIONS.refresh
4264
+ ),
4243
4265
  headers: { Authorization: `Bearer ${intended.token}` }
4244
4266
  };
4245
4267
  const result = await this.requestJson(
4246
- "/api/customers/refresh",
4268
+ resolveOperationPath(CUSTOMER_AUTH_ENDPOINT_OPERATIONS.refresh),
4247
4269
  init
4248
4270
  );
4249
4271
  const state = this.classifyCanonicalState(intended);
@@ -4312,9 +4334,9 @@ var CustomerAuth = class {
4312
4334
  if (!token) return null;
4313
4335
  try {
4314
4336
  const data = await this.requestJson(
4315
- "/api/customers/me",
4337
+ resolveOperationPath(CUSTOMER_AUTH_ENDPOINT_OPERATIONS.me),
4316
4338
  {
4317
- method: "GET",
4339
+ method: resolveOperationMethod(CUSTOMER_AUTH_ENDPOINT_OPERATIONS.me),
4318
4340
  headers: { Authorization: `Bearer ${token}` }
4319
4341
  }
4320
4342
  );
@@ -4331,19 +4353,29 @@ var CustomerAuth = class {
4331
4353
  * Request a password reset email
4332
4354
  */
4333
4355
  async forgotPassword(email) {
4334
- await this.requestJson("/api/customers/forgot-password", {
4335
- method: "POST",
4336
- body: JSON.stringify({ email })
4337
- });
4356
+ await this.requestJson(
4357
+ resolveOperationPath(CUSTOMER_AUTH_ENDPOINT_OPERATIONS.forgotPassword),
4358
+ {
4359
+ method: resolveOperationMethod(
4360
+ CUSTOMER_AUTH_ENDPOINT_OPERATIONS.forgotPassword
4361
+ ),
4362
+ body: JSON.stringify({ email })
4363
+ }
4364
+ );
4338
4365
  }
4339
4366
  /**
4340
4367
  * Reset password using a token from the reset email
4341
4368
  */
4342
4369
  async resetPassword(token, password) {
4343
- await this.requestJson("/api/customers/reset-password", {
4344
- method: "POST",
4345
- body: JSON.stringify({ token, password })
4346
- });
4370
+ await this.requestJson(
4371
+ resolveOperationPath(CUSTOMER_AUTH_ENDPOINT_OPERATIONS.resetPassword),
4372
+ {
4373
+ method: resolveOperationMethod(
4374
+ CUSTOMER_AUTH_ENDPOINT_OPERATIONS.resetPassword
4375
+ ),
4376
+ body: JSON.stringify({ token, password })
4377
+ }
4378
+ );
4347
4379
  }
4348
4380
  /**
4349
4381
  * Update the authenticated customer's profile (name, phone, marketingConsent)
@@ -4352,9 +4384,11 @@ var CustomerAuth = class {
4352
4384
  const token = this.getToken();
4353
4385
  if (!token) throw new ApiError("Not authenticated", 401);
4354
4386
  const result = await this.requestJson(
4355
- "/api/customers/me",
4387
+ resolveOperationPath(CUSTOMER_AUTH_ENDPOINT_OPERATIONS.updateProfile),
4356
4388
  {
4357
- method: "PATCH",
4389
+ method: resolveOperationMethod(
4390
+ CUSTOMER_AUTH_ENDPOINT_OPERATIONS.updateProfile
4391
+ ),
4358
4392
  headers: { Authorization: `Bearer ${token}` },
4359
4393
  body: JSON.stringify(data)
4360
4394
  }
@@ -4367,11 +4401,16 @@ var CustomerAuth = class {
4367
4401
  async changePassword(currentPassword, newPassword) {
4368
4402
  const token = this.getToken();
4369
4403
  if (!token) throw new ApiError("Not authenticated", 401);
4370
- await this.requestJson("/api/customers/change-password", {
4371
- method: "POST",
4372
- headers: { Authorization: `Bearer ${token}` },
4373
- body: JSON.stringify({ currentPassword, newPassword })
4374
- });
4404
+ await this.requestJson(
4405
+ resolveOperationPath(CUSTOMER_AUTH_ENDPOINT_OPERATIONS.changePassword),
4406
+ {
4407
+ method: resolveOperationMethod(
4408
+ CUSTOMER_AUTH_ENDPOINT_OPERATIONS.changePassword
4409
+ ),
4410
+ headers: { Authorization: `Bearer ${token}` },
4411
+ body: JSON.stringify({ currentPassword, newPassword })
4412
+ }
4413
+ );
4375
4414
  }
4376
4415
  /**
4377
4416
  * Get the authenticated customer's orders with pagination and optional status filter
@@ -6169,6 +6208,18 @@ var EventsClient = class {
6169
6208
  { useCustomerAuth: false }
6170
6209
  );
6171
6210
  }
6211
+ listMyRegistrations(params = {}) {
6212
+ const query = new URLSearchParams();
6213
+ if (params.page !== void 0) query.set("page", String(params.page));
6214
+ if (params.limit !== void 0) query.set("limit", String(params.limit));
6215
+ const operation2 = EVENTS_ENDPOINT_OPERATIONS.registrations.listMine;
6216
+ return this.execute(
6217
+ resolveOperationPath(operation2, { query }),
6218
+ resolveOperationMethod(operation2),
6219
+ void 0,
6220
+ { useCustomerAuth: true, noStore: true }
6221
+ );
6222
+ }
6172
6223
  register(params) {
6173
6224
  return this.execute(
6174
6225
  "/api/event-registrations/register",
@@ -6199,6 +6250,7 @@ var EventsClient = class {
6199
6250
  try {
6200
6251
  const response = await httpFetch(endpoint, {
6201
6252
  method,
6253
+ ...options.noStore && { cache: "no-store" },
6202
6254
  apiUrl: this.apiUrl,
6203
6255
  publishableKey: this.publishableKey,
6204
6256
  ...useCustomerAuth && token ? { customerToken: token } : {},