autumn-js 1.3.31 → 1.3.32

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 (68) hide show
  1. package/dist/backend/adapters/express.js +51 -11
  2. package/dist/backend/adapters/express.mjs +8 -8
  3. package/dist/backend/adapters/fetch.js +51 -11
  4. package/dist/backend/adapters/fetch.mjs +8 -8
  5. package/dist/backend/adapters/hono.js +51 -11
  6. package/dist/backend/adapters/hono.mjs +8 -8
  7. package/dist/backend/adapters/index.js +51 -11
  8. package/dist/backend/adapters/index.mjs +11 -11
  9. package/dist/backend/adapters/next.js +51 -11
  10. package/dist/backend/adapters/next.mjs +8 -8
  11. package/dist/backend/{chunk-5O5HYYLC.mjs → chunk-4ZTDDMTF.mjs} +1 -1
  12. package/dist/backend/{chunk-2AWRLLRG.mjs → chunk-6V2J4NU5.mjs} +6 -6
  13. package/dist/backend/{chunk-J5ZGSPT5.mjs → chunk-GKWJ3V2B.mjs} +1 -1
  14. package/dist/backend/{chunk-RG47OAHK.mjs → chunk-GSZMTPZW.mjs} +1 -1
  15. package/dist/backend/{chunk-QBDF7PFS.mjs → chunk-HRNHS5CH.mjs} +51 -11
  16. package/dist/backend/{chunk-GGLNYY74.mjs → chunk-LGGW6YZU.mjs} +1 -1
  17. package/dist/backend/{chunk-GKS25SWN.mjs → chunk-ZO23CKLL.mjs} +4 -4
  18. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  19. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.js +51 -11
  21. package/dist/backend/core/handlers/coreHandler.mjs +6 -6
  22. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  23. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.mjs +4 -4
  25. package/dist/backend/core/handlers/handleRouteByName.js +51 -11
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +51 -11
  30. package/dist/backend/core/handlers/index.mjs +10 -10
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +51 -11
  34. package/dist/backend/core/index.mjs +9 -9
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.mjs +1 -1
  38. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  40. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  43. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  44. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  45. package/dist/backend/core/types/index.d.mts +1 -1
  46. package/dist/backend/core/types/index.d.ts +1 -1
  47. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  48. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  49. package/dist/backend/core/utils/index.mjs +3 -3
  50. package/dist/backend/index.d.mts +2 -2
  51. package/dist/backend/index.d.ts +2 -2
  52. package/dist/backend/index.js +51 -11
  53. package/dist/backend/index.mjs +9 -9
  54. package/dist/backend/{routeTypes-B3vMnHPK.d.mts → routeTypes-B8u_xPju.d.mts} +50 -7
  55. package/dist/backend/{routeTypes-oP9lNejq.d.ts → routeTypes-CmQqxy8j.d.ts} +50 -7
  56. package/dist/better-auth/{chunk-IVHOI3OR.mjs → chunk-BFT6LWQE.mjs} +51 -11
  57. package/dist/better-auth/index.js +51 -11
  58. package/dist/better-auth/index.mjs +1 -1
  59. package/dist/better-auth/utils/handleBetterAuthRoute.js +51 -11
  60. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  61. package/dist/better-auth/utils/index.js +51 -11
  62. package/dist/better-auth/utils/index.mjs +1 -1
  63. package/dist/sdk/index.d.mts +60 -9
  64. package/dist/sdk/index.d.ts +60 -9
  65. package/dist/sdk/index.js +70 -12
  66. package/dist/sdk/index.mjs +67 -13
  67. package/package.json +2 -2
  68. package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
@@ -38999,10 +38999,40 @@ var PreviewSyncWebhooksWebhookRequest$outboundSchema = z88.object({
38999
38999
  description: z88.optional(z88.string()),
39000
39000
  disabled: z88.optional(z88.boolean())
39001
39001
  });
39002
- var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.object({
39003
- webhooks: z88.array(
39004
- z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
39005
- )
39002
+ var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.pipe(
39003
+ z88.object({
39004
+ webhooks: z88.array(
39005
+ z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
39006
+ ),
39007
+ skipDeletions: z88._default(z88.boolean(), true)
39008
+ }),
39009
+ z88.transform((v) => {
39010
+ return remap(v, {
39011
+ skipDeletions: "skip_deletions"
39012
+ });
39013
+ })
39014
+ );
39015
+ var ChangeWebhook3$inboundSchema = z88.pipe(
39016
+ z88.object({
39017
+ id: string5(),
39018
+ url: string5(),
39019
+ description: nullable(string5()),
39020
+ events: z88.array(string5()),
39021
+ disabled: boolean2(),
39022
+ created_at: number2(),
39023
+ updated_at: number2()
39024
+ }),
39025
+ z88.transform((v) => {
39026
+ return remap(v, {
39027
+ "created_at": "createdAt",
39028
+ "updated_at": "updatedAt"
39029
+ });
39030
+ })
39031
+ );
39032
+ var Change5$inboundSchema = z88.object({
39033
+ action: literal3("delete"),
39034
+ id: string5(),
39035
+ webhook: z88.lazy(() => ChangeWebhook3$inboundSchema)
39006
39036
  });
39007
39037
  var ChangeWebhook2$inboundSchema = z88.pipe(
39008
39038
  z88.object({
@@ -39132,7 +39162,8 @@ var ChangeUnion$inboundSchema = discriminatedUnion("action", {
39132
39162
  create: z88.lazy(() => Change1$inboundSchema),
39133
39163
  update: z88.lazy(() => Change2$inboundSchema),
39134
39164
  adopt: z88.lazy(() => Change3$inboundSchema),
39135
- unmanaged: z88.lazy(() => Change4$inboundSchema)
39165
+ unmanaged: z88.lazy(() => Change4$inboundSchema),
39166
+ delete: z88.lazy(() => Change5$inboundSchema)
39136
39167
  });
39137
39168
  var PreviewSyncWebhooksError$inboundSchema = z88.object({
39138
39169
  id: string5(),
@@ -39143,7 +39174,8 @@ var PreviewSyncWebhooksResponse$inboundSchema = z88.object({
39143
39174
  create: z88.lazy(() => Change1$inboundSchema),
39144
39175
  update: z88.lazy(() => Change2$inboundSchema),
39145
39176
  adopt: z88.lazy(() => Change3$inboundSchema),
39146
- unmanaged: z88.lazy(() => Change4$inboundSchema)
39177
+ unmanaged: z88.lazy(() => Change4$inboundSchema),
39178
+ delete: z88.lazy(() => Change5$inboundSchema)
39147
39179
  })),
39148
39180
  errors: z88.array(z88.lazy(() => PreviewSyncWebhooksError$inboundSchema))
39149
39181
  });
@@ -44665,9 +44697,17 @@ var SyncWebhooksWebhookRequest$outboundSchema = z102.object({
44665
44697
  description: z102.optional(z102.string()),
44666
44698
  disabled: z102.optional(z102.boolean())
44667
44699
  });
44668
- var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.object({
44669
- webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema))
44670
- });
44700
+ var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.pipe(
44701
+ z102.object({
44702
+ webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema)),
44703
+ skipDeletions: z102._default(z102.boolean(), true)
44704
+ }),
44705
+ z102.transform((v) => {
44706
+ return remap(v, {
44707
+ skipDeletions: "skip_deletions"
44708
+ });
44709
+ })
44710
+ );
44671
44711
  var SyncWebhooksWebhookResponse$inboundSchema = z102.pipe(
44672
44712
  z102.object({
44673
44713
  id: string5(),
@@ -62794,7 +62834,7 @@ var Webhooks = class extends ClientSDK {
62794
62834
  ));
62795
62835
  }
62796
62836
  /**
62797
- * Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create or update, and which existing ones it would leave alone because the body doesn't list them.
62837
+ * Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create, update or delete, and which existing ones it would leave alone because the body doesn't list them.
62798
62838
  */
62799
62839
  async previewSync(request, options) {
62800
62840
  return unwrapAsync(webhooksPreviewSync(
@@ -62804,7 +62844,7 @@ var Webhooks = class extends ClientSDK {
62804
62844
  ));
62805
62845
  }
62806
62846
  /**
62807
- * Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone — sync never deletes. Returns the signing secret of each webhook it created, once. Each webhook is applied on its own: failures are listed in `errors` while the rest still apply, and the request fails only when none could be applied.
62847
+ * Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone, unless `skip_deletions` is false: then every webhook not listed is deleted, including ones made in the dashboard. Returns the signing secret of each webhook it created, once. Each webhook is applied on its own: failures are listed in `errors` while the rest still apply, and the request fails only when none could be applied.
62808
62848
  */
62809
62849
  async sync(request, options) {
62810
62850
  return unwrapAsync(webhooksSync(
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-J5ZGSPT5.mjs";
3
+ } from "../chunk-GKWJ3V2B.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-GKS25SWN.mjs";
7
- import "../chunk-2AWRLLRG.mjs";
6
+ import "../chunk-ZO23CKLL.mjs";
7
+ import "../chunk-6V2J4NU5.mjs";
8
+ import "../chunk-HRNHS5CH.mjs";
9
+ import "../chunk-MOHYGUMA.mjs";
10
+ import "../chunk-TBQ27LIK.mjs";
11
+ import "../chunk-J44WR3QZ.mjs";
8
12
  import "../chunk-TSF4YCUO.mjs";
9
13
  import "../chunk-UAR3TMWI.mjs";
10
- import "../chunk-QBDF7PFS.mjs";
11
14
  import "../chunk-IQQQ5P6R.mjs";
12
- import "../chunk-IXUCY7AU.mjs";
13
15
  import "../chunk-OTXV5FY7.mjs";
14
- import "../chunk-I7CD6EB6.mjs";
15
16
  import "../chunk-VZIMT7AO.mjs";
16
- import "../chunk-TBQ27LIK.mjs";
17
- import "../chunk-J44WR3QZ.mjs";
17
+ import "../chunk-I7CD6EB6.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
@@ -38999,10 +38999,40 @@ var PreviewSyncWebhooksWebhookRequest$outboundSchema = z88.object({
38999
38999
  description: z88.optional(z88.string()),
39000
39000
  disabled: z88.optional(z88.boolean())
39001
39001
  });
39002
- var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.object({
39003
- webhooks: z88.array(
39004
- z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
39005
- )
39002
+ var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.pipe(
39003
+ z88.object({
39004
+ webhooks: z88.array(
39005
+ z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
39006
+ ),
39007
+ skipDeletions: z88._default(z88.boolean(), true)
39008
+ }),
39009
+ z88.transform((v) => {
39010
+ return remap(v, {
39011
+ skipDeletions: "skip_deletions"
39012
+ });
39013
+ })
39014
+ );
39015
+ var ChangeWebhook3$inboundSchema = z88.pipe(
39016
+ z88.object({
39017
+ id: string5(),
39018
+ url: string5(),
39019
+ description: nullable(string5()),
39020
+ events: z88.array(string5()),
39021
+ disabled: boolean2(),
39022
+ created_at: number2(),
39023
+ updated_at: number2()
39024
+ }),
39025
+ z88.transform((v) => {
39026
+ return remap(v, {
39027
+ "created_at": "createdAt",
39028
+ "updated_at": "updatedAt"
39029
+ });
39030
+ })
39031
+ );
39032
+ var Change5$inboundSchema = z88.object({
39033
+ action: literal3("delete"),
39034
+ id: string5(),
39035
+ webhook: z88.lazy(() => ChangeWebhook3$inboundSchema)
39006
39036
  });
39007
39037
  var ChangeWebhook2$inboundSchema = z88.pipe(
39008
39038
  z88.object({
@@ -39132,7 +39162,8 @@ var ChangeUnion$inboundSchema = discriminatedUnion("action", {
39132
39162
  create: z88.lazy(() => Change1$inboundSchema),
39133
39163
  update: z88.lazy(() => Change2$inboundSchema),
39134
39164
  adopt: z88.lazy(() => Change3$inboundSchema),
39135
- unmanaged: z88.lazy(() => Change4$inboundSchema)
39165
+ unmanaged: z88.lazy(() => Change4$inboundSchema),
39166
+ delete: z88.lazy(() => Change5$inboundSchema)
39136
39167
  });
39137
39168
  var PreviewSyncWebhooksError$inboundSchema = z88.object({
39138
39169
  id: string5(),
@@ -39143,7 +39174,8 @@ var PreviewSyncWebhooksResponse$inboundSchema = z88.object({
39143
39174
  create: z88.lazy(() => Change1$inboundSchema),
39144
39175
  update: z88.lazy(() => Change2$inboundSchema),
39145
39176
  adopt: z88.lazy(() => Change3$inboundSchema),
39146
- unmanaged: z88.lazy(() => Change4$inboundSchema)
39177
+ unmanaged: z88.lazy(() => Change4$inboundSchema),
39178
+ delete: z88.lazy(() => Change5$inboundSchema)
39147
39179
  })),
39148
39180
  errors: z88.array(z88.lazy(() => PreviewSyncWebhooksError$inboundSchema))
39149
39181
  });
@@ -44665,9 +44697,17 @@ var SyncWebhooksWebhookRequest$outboundSchema = z102.object({
44665
44697
  description: z102.optional(z102.string()),
44666
44698
  disabled: z102.optional(z102.boolean())
44667
44699
  });
44668
- var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.object({
44669
- webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema))
44670
- });
44700
+ var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.pipe(
44701
+ z102.object({
44702
+ webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema)),
44703
+ skipDeletions: z102._default(z102.boolean(), true)
44704
+ }),
44705
+ z102.transform((v) => {
44706
+ return remap(v, {
44707
+ skipDeletions: "skip_deletions"
44708
+ });
44709
+ })
44710
+ );
44671
44711
  var SyncWebhooksWebhookResponse$inboundSchema = z102.pipe(
44672
44712
  z102.object({
44673
44713
  id: string5(),
@@ -62794,7 +62834,7 @@ var Webhooks = class extends ClientSDK {
62794
62834
  ));
62795
62835
  }
62796
62836
  /**
62797
- * Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create or update, and which existing ones it would leave alone because the body doesn't list them.
62837
+ * Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create, update or delete, and which existing ones it would leave alone because the body doesn't list them.
62798
62838
  */
62799
62839
  async previewSync(request, options) {
62800
62840
  return unwrapAsync(webhooksPreviewSync(
@@ -62804,7 +62844,7 @@ var Webhooks = class extends ClientSDK {
62804
62844
  ));
62805
62845
  }
62806
62846
  /**
62807
- * Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone — sync never deletes. Returns the signing secret of each webhook it created, once. Each webhook is applied on its own: failures are listed in `errors` while the rest still apply, and the request fails only when none could be applied.
62847
+ * Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone, unless `skip_deletions` is false: then every webhook not listed is deleted, including ones made in the dashboard. Returns the signing secret of each webhook it created, once. Each webhook is applied on its own: failures are listed in `errors` while the rest still apply, and the request fails only when none could be applied.
62808
62848
  */
62809
62849
  async sync(request, options) {
62810
62850
  return unwrapAsync(webhooksSync(
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-RG47OAHK.mjs";
3
+ } from "../chunk-GSZMTPZW.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-GKS25SWN.mjs";
7
- import "../chunk-2AWRLLRG.mjs";
6
+ import "../chunk-ZO23CKLL.mjs";
7
+ import "../chunk-6V2J4NU5.mjs";
8
+ import "../chunk-HRNHS5CH.mjs";
9
+ import "../chunk-MOHYGUMA.mjs";
10
+ import "../chunk-TBQ27LIK.mjs";
11
+ import "../chunk-J44WR3QZ.mjs";
8
12
  import "../chunk-TSF4YCUO.mjs";
9
13
  import "../chunk-UAR3TMWI.mjs";
10
- import "../chunk-QBDF7PFS.mjs";
11
14
  import "../chunk-IQQQ5P6R.mjs";
12
- import "../chunk-IXUCY7AU.mjs";
13
15
  import "../chunk-OTXV5FY7.mjs";
14
- import "../chunk-I7CD6EB6.mjs";
15
16
  import "../chunk-VZIMT7AO.mjs";
16
- import "../chunk-TBQ27LIK.mjs";
17
- import "../chunk-J44WR3QZ.mjs";
17
+ import "../chunk-I7CD6EB6.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
@@ -38999,10 +38999,40 @@ var PreviewSyncWebhooksWebhookRequest$outboundSchema = z88.object({
38999
38999
  description: z88.optional(z88.string()),
39000
39000
  disabled: z88.optional(z88.boolean())
39001
39001
  });
39002
- var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.object({
39003
- webhooks: z88.array(
39004
- z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
39005
- )
39002
+ var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.pipe(
39003
+ z88.object({
39004
+ webhooks: z88.array(
39005
+ z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
39006
+ ),
39007
+ skipDeletions: z88._default(z88.boolean(), true)
39008
+ }),
39009
+ z88.transform((v) => {
39010
+ return remap(v, {
39011
+ skipDeletions: "skip_deletions"
39012
+ });
39013
+ })
39014
+ );
39015
+ var ChangeWebhook3$inboundSchema = z88.pipe(
39016
+ z88.object({
39017
+ id: string5(),
39018
+ url: string5(),
39019
+ description: nullable(string5()),
39020
+ events: z88.array(string5()),
39021
+ disabled: boolean2(),
39022
+ created_at: number2(),
39023
+ updated_at: number2()
39024
+ }),
39025
+ z88.transform((v) => {
39026
+ return remap(v, {
39027
+ "created_at": "createdAt",
39028
+ "updated_at": "updatedAt"
39029
+ });
39030
+ })
39031
+ );
39032
+ var Change5$inboundSchema = z88.object({
39033
+ action: literal3("delete"),
39034
+ id: string5(),
39035
+ webhook: z88.lazy(() => ChangeWebhook3$inboundSchema)
39006
39036
  });
39007
39037
  var ChangeWebhook2$inboundSchema = z88.pipe(
39008
39038
  z88.object({
@@ -39132,7 +39162,8 @@ var ChangeUnion$inboundSchema = discriminatedUnion("action", {
39132
39162
  create: z88.lazy(() => Change1$inboundSchema),
39133
39163
  update: z88.lazy(() => Change2$inboundSchema),
39134
39164
  adopt: z88.lazy(() => Change3$inboundSchema),
39135
- unmanaged: z88.lazy(() => Change4$inboundSchema)
39165
+ unmanaged: z88.lazy(() => Change4$inboundSchema),
39166
+ delete: z88.lazy(() => Change5$inboundSchema)
39136
39167
  });
39137
39168
  var PreviewSyncWebhooksError$inboundSchema = z88.object({
39138
39169
  id: string5(),
@@ -39143,7 +39174,8 @@ var PreviewSyncWebhooksResponse$inboundSchema = z88.object({
39143
39174
  create: z88.lazy(() => Change1$inboundSchema),
39144
39175
  update: z88.lazy(() => Change2$inboundSchema),
39145
39176
  adopt: z88.lazy(() => Change3$inboundSchema),
39146
- unmanaged: z88.lazy(() => Change4$inboundSchema)
39177
+ unmanaged: z88.lazy(() => Change4$inboundSchema),
39178
+ delete: z88.lazy(() => Change5$inboundSchema)
39147
39179
  })),
39148
39180
  errors: z88.array(z88.lazy(() => PreviewSyncWebhooksError$inboundSchema))
39149
39181
  });
@@ -44665,9 +44697,17 @@ var SyncWebhooksWebhookRequest$outboundSchema = z102.object({
44665
44697
  description: z102.optional(z102.string()),
44666
44698
  disabled: z102.optional(z102.boolean())
44667
44699
  });
44668
- var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.object({
44669
- webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema))
44670
- });
44700
+ var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.pipe(
44701
+ z102.object({
44702
+ webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema)),
44703
+ skipDeletions: z102._default(z102.boolean(), true)
44704
+ }),
44705
+ z102.transform((v) => {
44706
+ return remap(v, {
44707
+ skipDeletions: "skip_deletions"
44708
+ });
44709
+ })
44710
+ );
44671
44711
  var SyncWebhooksWebhookResponse$inboundSchema = z102.pipe(
44672
44712
  z102.object({
44673
44713
  id: string5(),
@@ -62794,7 +62834,7 @@ var Webhooks = class extends ClientSDK {
62794
62834
  ));
62795
62835
  }
62796
62836
  /**
62797
- * Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create or update, and which existing ones it would leave alone because the body doesn't list them.
62837
+ * Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create, update or delete, and which existing ones it would leave alone because the body doesn't list them.
62798
62838
  */
62799
62839
  async previewSync(request, options) {
62800
62840
  return unwrapAsync(webhooksPreviewSync(
@@ -62804,7 +62844,7 @@ var Webhooks = class extends ClientSDK {
62804
62844
  ));
62805
62845
  }
62806
62846
  /**
62807
- * Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone — sync never deletes. Returns the signing secret of each webhook it created, once. Each webhook is applied on its own: failures are listed in `errors` while the rest still apply, and the request fails only when none could be applied.
62847
+ * Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone, unless `skip_deletions` is false: then every webhook not listed is deleted, including ones made in the dashboard. Returns the signing secret of each webhook it created, once. Each webhook is applied on its own: failures are listed in `errors` while the rest still apply, and the request fails only when none could be applied.
62808
62848
  */
62809
62849
  async sync(request, options) {
62810
62850
  return unwrapAsync(webhooksSync(
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-5O5HYYLC.mjs";
3
+ } from "../chunk-4ZTDDMTF.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-GKS25SWN.mjs";
7
- import "../chunk-2AWRLLRG.mjs";
6
+ import "../chunk-ZO23CKLL.mjs";
7
+ import "../chunk-6V2J4NU5.mjs";
8
+ import "../chunk-HRNHS5CH.mjs";
9
+ import "../chunk-MOHYGUMA.mjs";
10
+ import "../chunk-TBQ27LIK.mjs";
11
+ import "../chunk-J44WR3QZ.mjs";
8
12
  import "../chunk-TSF4YCUO.mjs";
9
13
  import "../chunk-UAR3TMWI.mjs";
10
- import "../chunk-QBDF7PFS.mjs";
11
14
  import "../chunk-IQQQ5P6R.mjs";
12
- import "../chunk-IXUCY7AU.mjs";
13
15
  import "../chunk-OTXV5FY7.mjs";
14
- import "../chunk-I7CD6EB6.mjs";
15
16
  import "../chunk-VZIMT7AO.mjs";
16
- import "../chunk-TBQ27LIK.mjs";
17
- import "../chunk-J44WR3QZ.mjs";
17
+ import "../chunk-I7CD6EB6.mjs";
18
18
  import "../chunk-N7NFYY54.mjs";
19
19
  export {
20
20
  autumnHandler
@@ -39002,10 +39002,40 @@ var PreviewSyncWebhooksWebhookRequest$outboundSchema = z88.object({
39002
39002
  description: z88.optional(z88.string()),
39003
39003
  disabled: z88.optional(z88.boolean())
39004
39004
  });
39005
- var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.object({
39006
- webhooks: z88.array(
39007
- z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
39008
- )
39005
+ var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.pipe(
39006
+ z88.object({
39007
+ webhooks: z88.array(
39008
+ z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
39009
+ ),
39010
+ skipDeletions: z88._default(z88.boolean(), true)
39011
+ }),
39012
+ z88.transform((v) => {
39013
+ return remap(v, {
39014
+ skipDeletions: "skip_deletions"
39015
+ });
39016
+ })
39017
+ );
39018
+ var ChangeWebhook3$inboundSchema = z88.pipe(
39019
+ z88.object({
39020
+ id: string5(),
39021
+ url: string5(),
39022
+ description: nullable(string5()),
39023
+ events: z88.array(string5()),
39024
+ disabled: boolean2(),
39025
+ created_at: number2(),
39026
+ updated_at: number2()
39027
+ }),
39028
+ z88.transform((v) => {
39029
+ return remap(v, {
39030
+ "created_at": "createdAt",
39031
+ "updated_at": "updatedAt"
39032
+ });
39033
+ })
39034
+ );
39035
+ var Change5$inboundSchema = z88.object({
39036
+ action: literal3("delete"),
39037
+ id: string5(),
39038
+ webhook: z88.lazy(() => ChangeWebhook3$inboundSchema)
39009
39039
  });
39010
39040
  var ChangeWebhook2$inboundSchema = z88.pipe(
39011
39041
  z88.object({
@@ -39135,7 +39165,8 @@ var ChangeUnion$inboundSchema = discriminatedUnion("action", {
39135
39165
  create: z88.lazy(() => Change1$inboundSchema),
39136
39166
  update: z88.lazy(() => Change2$inboundSchema),
39137
39167
  adopt: z88.lazy(() => Change3$inboundSchema),
39138
- unmanaged: z88.lazy(() => Change4$inboundSchema)
39168
+ unmanaged: z88.lazy(() => Change4$inboundSchema),
39169
+ delete: z88.lazy(() => Change5$inboundSchema)
39139
39170
  });
39140
39171
  var PreviewSyncWebhooksError$inboundSchema = z88.object({
39141
39172
  id: string5(),
@@ -39146,7 +39177,8 @@ var PreviewSyncWebhooksResponse$inboundSchema = z88.object({
39146
39177
  create: z88.lazy(() => Change1$inboundSchema),
39147
39178
  update: z88.lazy(() => Change2$inboundSchema),
39148
39179
  adopt: z88.lazy(() => Change3$inboundSchema),
39149
- unmanaged: z88.lazy(() => Change4$inboundSchema)
39180
+ unmanaged: z88.lazy(() => Change4$inboundSchema),
39181
+ delete: z88.lazy(() => Change5$inboundSchema)
39150
39182
  })),
39151
39183
  errors: z88.array(z88.lazy(() => PreviewSyncWebhooksError$inboundSchema))
39152
39184
  });
@@ -44668,9 +44700,17 @@ var SyncWebhooksWebhookRequest$outboundSchema = z102.object({
44668
44700
  description: z102.optional(z102.string()),
44669
44701
  disabled: z102.optional(z102.boolean())
44670
44702
  });
44671
- var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.object({
44672
- webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema))
44673
- });
44703
+ var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.pipe(
44704
+ z102.object({
44705
+ webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema)),
44706
+ skipDeletions: z102._default(z102.boolean(), true)
44707
+ }),
44708
+ z102.transform((v) => {
44709
+ return remap(v, {
44710
+ skipDeletions: "skip_deletions"
44711
+ });
44712
+ })
44713
+ );
44674
44714
  var SyncWebhooksWebhookResponse$inboundSchema = z102.pipe(
44675
44715
  z102.object({
44676
44716
  id: string5(),
@@ -62797,7 +62837,7 @@ var Webhooks = class extends ClientSDK {
62797
62837
  ));
62798
62838
  }
62799
62839
  /**
62800
- * Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create or update, and which existing ones it would leave alone because the body doesn't list them.
62840
+ * Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create, update or delete, and which existing ones it would leave alone because the body doesn't list them.
62801
62841
  */
62802
62842
  async previewSync(request, options) {
62803
62843
  return unwrapAsync(webhooksPreviewSync(
@@ -62807,7 +62847,7 @@ var Webhooks = class extends ClientSDK {
62807
62847
  ));
62808
62848
  }
62809
62849
  /**
62810
- * Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone — sync never deletes. Returns the signing secret of each webhook it created, once. Each webhook is applied on its own: failures are listed in `errors` while the rest still apply, and the request fails only when none could be applied.
62850
+ * Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone, unless `skip_deletions` is false: then every webhook not listed is deleted, including ones made in the dashboard. Returns the signing secret of each webhook it created, once. Each webhook is applied on its own: failures are listed in `errors` while the rest still apply, and the request fails only when none could be applied.
62811
62851
  */
62812
62852
  async sync(request, options) {
62813
62853
  return unwrapAsync(webhooksSync(
@@ -1,29 +1,29 @@
1
1
  import {
2
2
  autumnHandler
3
- } from "../chunk-J5ZGSPT5.mjs";
3
+ } from "../chunk-GKWJ3V2B.mjs";
4
4
  import {
5
5
  autumnHandler as autumnHandler2
6
- } from "../chunk-RG47OAHK.mjs";
6
+ } from "../chunk-GSZMTPZW.mjs";
7
7
  import {
8
8
  autumnHandler as autumnHandler3
9
- } from "../chunk-5O5HYYLC.mjs";
9
+ } from "../chunk-4ZTDDMTF.mjs";
10
10
  import {
11
11
  autumnHandler as autumnHandler4
12
- } from "../chunk-GGLNYY74.mjs";
12
+ } from "../chunk-LGGW6YZU.mjs";
13
13
  import "../chunk-WYDGEDEU.mjs";
14
14
  import "../chunk-VXND2UDT.mjs";
15
- import "../chunk-GKS25SWN.mjs";
16
- import "../chunk-2AWRLLRG.mjs";
15
+ import "../chunk-ZO23CKLL.mjs";
16
+ import "../chunk-6V2J4NU5.mjs";
17
+ import "../chunk-HRNHS5CH.mjs";
18
+ import "../chunk-MOHYGUMA.mjs";
19
+ import "../chunk-TBQ27LIK.mjs";
20
+ import "../chunk-J44WR3QZ.mjs";
17
21
  import "../chunk-TSF4YCUO.mjs";
18
22
  import "../chunk-UAR3TMWI.mjs";
19
- import "../chunk-QBDF7PFS.mjs";
20
23
  import "../chunk-IQQQ5P6R.mjs";
21
- import "../chunk-IXUCY7AU.mjs";
22
24
  import "../chunk-OTXV5FY7.mjs";
23
- import "../chunk-I7CD6EB6.mjs";
24
25
  import "../chunk-VZIMT7AO.mjs";
25
- import "../chunk-TBQ27LIK.mjs";
26
- import "../chunk-J44WR3QZ.mjs";
26
+ import "../chunk-I7CD6EB6.mjs";
27
27
  import "../chunk-N7NFYY54.mjs";
28
28
  export {
29
29
  autumnHandler as expressAutumnHandler,
@@ -39000,10 +39000,40 @@ var PreviewSyncWebhooksWebhookRequest$outboundSchema = z88.object({
39000
39000
  description: z88.optional(z88.string()),
39001
39001
  disabled: z88.optional(z88.boolean())
39002
39002
  });
39003
- var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.object({
39004
- webhooks: z88.array(
39005
- z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
39006
- )
39003
+ var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.pipe(
39004
+ z88.object({
39005
+ webhooks: z88.array(
39006
+ z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
39007
+ ),
39008
+ skipDeletions: z88._default(z88.boolean(), true)
39009
+ }),
39010
+ z88.transform((v) => {
39011
+ return remap(v, {
39012
+ skipDeletions: "skip_deletions"
39013
+ });
39014
+ })
39015
+ );
39016
+ var ChangeWebhook3$inboundSchema = z88.pipe(
39017
+ z88.object({
39018
+ id: string5(),
39019
+ url: string5(),
39020
+ description: nullable(string5()),
39021
+ events: z88.array(string5()),
39022
+ disabled: boolean2(),
39023
+ created_at: number2(),
39024
+ updated_at: number2()
39025
+ }),
39026
+ z88.transform((v) => {
39027
+ return remap(v, {
39028
+ "created_at": "createdAt",
39029
+ "updated_at": "updatedAt"
39030
+ });
39031
+ })
39032
+ );
39033
+ var Change5$inboundSchema = z88.object({
39034
+ action: literal3("delete"),
39035
+ id: string5(),
39036
+ webhook: z88.lazy(() => ChangeWebhook3$inboundSchema)
39007
39037
  });
39008
39038
  var ChangeWebhook2$inboundSchema = z88.pipe(
39009
39039
  z88.object({
@@ -39133,7 +39163,8 @@ var ChangeUnion$inboundSchema = discriminatedUnion("action", {
39133
39163
  create: z88.lazy(() => Change1$inboundSchema),
39134
39164
  update: z88.lazy(() => Change2$inboundSchema),
39135
39165
  adopt: z88.lazy(() => Change3$inboundSchema),
39136
- unmanaged: z88.lazy(() => Change4$inboundSchema)
39166
+ unmanaged: z88.lazy(() => Change4$inboundSchema),
39167
+ delete: z88.lazy(() => Change5$inboundSchema)
39137
39168
  });
39138
39169
  var PreviewSyncWebhooksError$inboundSchema = z88.object({
39139
39170
  id: string5(),
@@ -39144,7 +39175,8 @@ var PreviewSyncWebhooksResponse$inboundSchema = z88.object({
39144
39175
  create: z88.lazy(() => Change1$inboundSchema),
39145
39176
  update: z88.lazy(() => Change2$inboundSchema),
39146
39177
  adopt: z88.lazy(() => Change3$inboundSchema),
39147
- unmanaged: z88.lazy(() => Change4$inboundSchema)
39178
+ unmanaged: z88.lazy(() => Change4$inboundSchema),
39179
+ delete: z88.lazy(() => Change5$inboundSchema)
39148
39180
  })),
39149
39181
  errors: z88.array(z88.lazy(() => PreviewSyncWebhooksError$inboundSchema))
39150
39182
  });
@@ -44666,9 +44698,17 @@ var SyncWebhooksWebhookRequest$outboundSchema = z102.object({
44666
44698
  description: z102.optional(z102.string()),
44667
44699
  disabled: z102.optional(z102.boolean())
44668
44700
  });
44669
- var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.object({
44670
- webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema))
44671
- });
44701
+ var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.pipe(
44702
+ z102.object({
44703
+ webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema)),
44704
+ skipDeletions: z102._default(z102.boolean(), true)
44705
+ }),
44706
+ z102.transform((v) => {
44707
+ return remap(v, {
44708
+ skipDeletions: "skip_deletions"
44709
+ });
44710
+ })
44711
+ );
44672
44712
  var SyncWebhooksWebhookResponse$inboundSchema = z102.pipe(
44673
44713
  z102.object({
44674
44714
  id: string5(),
@@ -62795,7 +62835,7 @@ var Webhooks = class extends ClientSDK {
62795
62835
  ));
62796
62836
  }
62797
62837
  /**
62798
- * Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create or update, and which existing ones it would leave alone because the body doesn't list them.
62838
+ * Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create, update or delete, and which existing ones it would leave alone because the body doesn't list them.
62799
62839
  */
62800
62840
  async previewSync(request, options) {
62801
62841
  return unwrapAsync(webhooksPreviewSync(
@@ -62805,7 +62845,7 @@ var Webhooks = class extends ClientSDK {
62805
62845
  ));
62806
62846
  }
62807
62847
  /**
62808
- * Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone — sync never deletes. Returns the signing secret of each webhook it created, once. Each webhook is applied on its own: failures are listed in `errors` while the rest still apply, and the request fails only when none could be applied.
62848
+ * Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone, unless `skip_deletions` is false: then every webhook not listed is deleted, including ones made in the dashboard. Returns the signing secret of each webhook it created, once. Each webhook is applied on its own: failures are listed in `errors` while the rest still apply, and the request fails only when none could be applied.
62809
62849
  */
62810
62850
  async sync(request, options) {
62811
62851
  return unwrapAsync(webhooksSync(