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.
- package/dist/backend/adapters/express.js +51 -11
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +51 -11
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +51 -11
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +51 -11
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +51 -11
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-5O5HYYLC.mjs → chunk-4ZTDDMTF.mjs} +1 -1
- package/dist/backend/{chunk-2AWRLLRG.mjs → chunk-6V2J4NU5.mjs} +6 -6
- package/dist/backend/{chunk-J5ZGSPT5.mjs → chunk-GKWJ3V2B.mjs} +1 -1
- package/dist/backend/{chunk-RG47OAHK.mjs → chunk-GSZMTPZW.mjs} +1 -1
- package/dist/backend/{chunk-QBDF7PFS.mjs → chunk-HRNHS5CH.mjs} +51 -11
- package/dist/backend/{chunk-GGLNYY74.mjs → chunk-LGGW6YZU.mjs} +1 -1
- package/dist/backend/{chunk-GKS25SWN.mjs → chunk-ZO23CKLL.mjs} +4 -4
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +51 -11
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +51 -11
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +51 -11
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +51 -11
- package/dist/backend/core/index.mjs +9 -9
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +51 -11
- package/dist/backend/index.mjs +9 -9
- package/dist/backend/{routeTypes-B3vMnHPK.d.mts → routeTypes-B8u_xPju.d.mts} +50 -7
- package/dist/backend/{routeTypes-oP9lNejq.d.ts → routeTypes-CmQqxy8j.d.ts} +50 -7
- package/dist/better-auth/{chunk-IVHOI3OR.mjs → chunk-BFT6LWQE.mjs} +51 -11
- package/dist/better-auth/index.js +51 -11
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +51 -11
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +51 -11
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/sdk/index.d.mts +60 -9
- package/dist/sdk/index.d.ts +60 -9
- package/dist/sdk/index.js +70 -12
- package/dist/sdk/index.mjs +67 -13
- package/package.json +2 -2
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-LGGW6YZU.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
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-
|
|
17
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
17
|
+
import "../chunk-I7CD6EB6.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Autumn
|
|
3
|
+
} from "./chunk-HRNHS5CH.mjs";
|
|
4
|
+
import {
|
|
5
|
+
executeRoute
|
|
6
|
+
} from "./chunk-MOHYGUMA.mjs";
|
|
1
7
|
import {
|
|
2
8
|
buildRouter
|
|
3
9
|
} from "./chunk-UAR3TMWI.mjs";
|
|
4
|
-
import {
|
|
5
|
-
Autumn
|
|
6
|
-
} from "./chunk-QBDF7PFS.mjs";
|
|
7
10
|
import {
|
|
8
11
|
routeConfigs
|
|
9
12
|
} from "./chunk-IQQQ5P6R.mjs";
|
|
10
|
-
import {
|
|
11
|
-
executeRoute
|
|
12
|
-
} from "./chunk-IXUCY7AU.mjs";
|
|
13
13
|
import {
|
|
14
14
|
secretKeyCheck
|
|
15
15
|
} from "./chunk-VZIMT7AO.mjs";
|
|
@@ -38916,10 +38916,40 @@ var PreviewSyncWebhooksWebhookRequest$outboundSchema = z88.object({
|
|
|
38916
38916
|
description: z88.optional(z88.string()),
|
|
38917
38917
|
disabled: z88.optional(z88.boolean())
|
|
38918
38918
|
});
|
|
38919
|
-
var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.
|
|
38920
|
-
|
|
38921
|
-
z88.
|
|
38922
|
-
|
|
38919
|
+
var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.pipe(
|
|
38920
|
+
z88.object({
|
|
38921
|
+
webhooks: z88.array(
|
|
38922
|
+
z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
|
|
38923
|
+
),
|
|
38924
|
+
skipDeletions: z88._default(z88.boolean(), true)
|
|
38925
|
+
}),
|
|
38926
|
+
z88.transform((v) => {
|
|
38927
|
+
return remap(v, {
|
|
38928
|
+
skipDeletions: "skip_deletions"
|
|
38929
|
+
});
|
|
38930
|
+
})
|
|
38931
|
+
);
|
|
38932
|
+
var ChangeWebhook3$inboundSchema = z88.pipe(
|
|
38933
|
+
z88.object({
|
|
38934
|
+
id: string5(),
|
|
38935
|
+
url: string5(),
|
|
38936
|
+
description: nullable(string5()),
|
|
38937
|
+
events: z88.array(string5()),
|
|
38938
|
+
disabled: boolean2(),
|
|
38939
|
+
created_at: number2(),
|
|
38940
|
+
updated_at: number2()
|
|
38941
|
+
}),
|
|
38942
|
+
z88.transform((v) => {
|
|
38943
|
+
return remap(v, {
|
|
38944
|
+
"created_at": "createdAt",
|
|
38945
|
+
"updated_at": "updatedAt"
|
|
38946
|
+
});
|
|
38947
|
+
})
|
|
38948
|
+
);
|
|
38949
|
+
var Change5$inboundSchema = z88.object({
|
|
38950
|
+
action: literal3("delete"),
|
|
38951
|
+
id: string5(),
|
|
38952
|
+
webhook: z88.lazy(() => ChangeWebhook3$inboundSchema)
|
|
38923
38953
|
});
|
|
38924
38954
|
var ChangeWebhook2$inboundSchema = z88.pipe(
|
|
38925
38955
|
z88.object({
|
|
@@ -39049,7 +39079,8 @@ var ChangeUnion$inboundSchema = discriminatedUnion("action", {
|
|
|
39049
39079
|
create: z88.lazy(() => Change1$inboundSchema),
|
|
39050
39080
|
update: z88.lazy(() => Change2$inboundSchema),
|
|
39051
39081
|
adopt: z88.lazy(() => Change3$inboundSchema),
|
|
39052
|
-
unmanaged: z88.lazy(() => Change4$inboundSchema)
|
|
39082
|
+
unmanaged: z88.lazy(() => Change4$inboundSchema),
|
|
39083
|
+
delete: z88.lazy(() => Change5$inboundSchema)
|
|
39053
39084
|
});
|
|
39054
39085
|
var PreviewSyncWebhooksError$inboundSchema = z88.object({
|
|
39055
39086
|
id: string5(),
|
|
@@ -39060,7 +39091,8 @@ var PreviewSyncWebhooksResponse$inboundSchema = z88.object({
|
|
|
39060
39091
|
create: z88.lazy(() => Change1$inboundSchema),
|
|
39061
39092
|
update: z88.lazy(() => Change2$inboundSchema),
|
|
39062
39093
|
adopt: z88.lazy(() => Change3$inboundSchema),
|
|
39063
|
-
unmanaged: z88.lazy(() => Change4$inboundSchema)
|
|
39094
|
+
unmanaged: z88.lazy(() => Change4$inboundSchema),
|
|
39095
|
+
delete: z88.lazy(() => Change5$inboundSchema)
|
|
39064
39096
|
})),
|
|
39065
39097
|
errors: z88.array(z88.lazy(() => PreviewSyncWebhooksError$inboundSchema))
|
|
39066
39098
|
});
|
|
@@ -44582,9 +44614,17 @@ var SyncWebhooksWebhookRequest$outboundSchema = z102.object({
|
|
|
44582
44614
|
description: z102.optional(z102.string()),
|
|
44583
44615
|
disabled: z102.optional(z102.boolean())
|
|
44584
44616
|
});
|
|
44585
|
-
var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.
|
|
44586
|
-
|
|
44587
|
-
|
|
44617
|
+
var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.pipe(
|
|
44618
|
+
z102.object({
|
|
44619
|
+
webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema)),
|
|
44620
|
+
skipDeletions: z102._default(z102.boolean(), true)
|
|
44621
|
+
}),
|
|
44622
|
+
z102.transform((v) => {
|
|
44623
|
+
return remap(v, {
|
|
44624
|
+
skipDeletions: "skip_deletions"
|
|
44625
|
+
});
|
|
44626
|
+
})
|
|
44627
|
+
);
|
|
44588
44628
|
var SyncWebhooksWebhookResponse$inboundSchema = z102.pipe(
|
|
44589
44629
|
z102.object({
|
|
44590
44630
|
id: string5(),
|
|
@@ -62739,7 +62779,7 @@ var Webhooks = class extends ClientSDK {
|
|
|
62739
62779
|
));
|
|
62740
62780
|
}
|
|
62741
62781
|
/**
|
|
62742
|
-
* Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create or
|
|
62782
|
+
* 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.
|
|
62743
62783
|
*/
|
|
62744
62784
|
async previewSync(request, options) {
|
|
62745
62785
|
return unwrapAsync(webhooksPreviewSync(
|
|
@@ -62749,7 +62789,7 @@ var Webhooks = class extends ClientSDK {
|
|
|
62749
62789
|
));
|
|
62750
62790
|
}
|
|
62751
62791
|
/**
|
|
62752
|
-
* Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone
|
|
62792
|
+
* 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.
|
|
62753
62793
|
*/
|
|
62754
62794
|
async sync(request, options) {
|
|
62755
62795
|
return unwrapAsync(webhooksSync(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Autumn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HRNHS5CH.mjs";
|
|
4
|
+
import {
|
|
5
|
+
executeRoute
|
|
6
|
+
} from "./chunk-MOHYGUMA.mjs";
|
|
4
7
|
import {
|
|
5
8
|
routeConfigs
|
|
6
9
|
} from "./chunk-IQQQ5P6R.mjs";
|
|
7
|
-
import {
|
|
8
|
-
executeRoute
|
|
9
|
-
} from "./chunk-IXUCY7AU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
secretKeyCheck
|
|
12
12
|
} from "./chunk-VZIMT7AO.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
|
|
2
2
|
import '../../authTypes-TPWTIfcM.mjs';
|
|
3
|
-
import '../../routeTypes-
|
|
3
|
+
import '../../routeTypes-B8u_xPju.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
6
6
|
import '../types/responseTypes.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
|
|
2
2
|
import '../../authTypes-TPWTIfcM.js';
|
|
3
|
-
import '../../routeTypes-
|
|
3
|
+
import '../../routeTypes-CmQqxy8j.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
6
6
|
import '../types/responseTypes.js';
|
|
@@ -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.
|
|
39003
|
-
|
|
39004
|
-
z88.
|
|
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.
|
|
44669
|
-
|
|
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
|
|
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
|
|
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,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreHandler
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-6V2J4NU5.mjs";
|
|
4
|
+
import "../../chunk-HRNHS5CH.mjs";
|
|
5
|
+
import "../../chunk-MOHYGUMA.mjs";
|
|
6
|
+
import "../../chunk-TBQ27LIK.mjs";
|
|
7
|
+
import "../../chunk-J44WR3QZ.mjs";
|
|
4
8
|
import "../../chunk-TSF4YCUO.mjs";
|
|
5
9
|
import "../../chunk-UAR3TMWI.mjs";
|
|
6
|
-
import "../../chunk-QBDF7PFS.mjs";
|
|
7
10
|
import "../../chunk-IQQQ5P6R.mjs";
|
|
8
|
-
import "../../chunk-IXUCY7AU.mjs";
|
|
9
11
|
import "../../chunk-OTXV5FY7.mjs";
|
|
10
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
11
12
|
import "../../chunk-VZIMT7AO.mjs";
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-J44WR3QZ.mjs";
|
|
13
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
14
14
|
import "../../chunk-N7NFYY54.mjs";
|
|
15
15
|
export {
|
|
16
16
|
createCoreHandler
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-
|
|
1
|
+
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-B8u_xPju.mjs';
|
|
2
2
|
import { A as AuthResult } from '../../authTypes-TPWTIfcM.mjs';
|
|
3
3
|
import { BackendResult } from '../types/responseTypes.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-
|
|
1
|
+
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-CmQqxy8j.js';
|
|
2
2
|
import { A as AuthResult } from '../../authTypes-TPWTIfcM.js';
|
|
3
3
|
import { BackendResult } from '../types/responseTypes.js';
|
|
4
4
|
import 'zod/v4';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeRoute
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-OTXV5FY7.mjs";
|
|
5
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
6
|
-
import "../../chunk-VZIMT7AO.mjs";
|
|
3
|
+
} from "../../chunk-MOHYGUMA.mjs";
|
|
7
4
|
import "../../chunk-TBQ27LIK.mjs";
|
|
8
5
|
import "../../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../../chunk-OTXV5FY7.mjs";
|
|
7
|
+
import "../../chunk-VZIMT7AO.mjs";
|
|
8
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
9
9
|
import "../../chunk-N7NFYY54.mjs";
|
|
10
10
|
export {
|
|
11
11
|
executeRoute
|
|
@@ -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.
|
|
39003
|
-
|
|
39004
|
-
z88.
|
|
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.
|
|
44669
|
-
|
|
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
|
|
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
|
|
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,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleRouteByName
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-ZO23CKLL.mjs";
|
|
4
|
+
import "../../chunk-HRNHS5CH.mjs";
|
|
5
|
+
import "../../chunk-MOHYGUMA.mjs";
|
|
6
|
+
import "../../chunk-TBQ27LIK.mjs";
|
|
7
|
+
import "../../chunk-J44WR3QZ.mjs";
|
|
5
8
|
import "../../chunk-IQQQ5P6R.mjs";
|
|
6
|
-
import "../../chunk-IXUCY7AU.mjs";
|
|
7
9
|
import "../../chunk-OTXV5FY7.mjs";
|
|
8
|
-
import "../../chunk-I7CD6EB6.mjs";
|
|
9
10
|
import "../../chunk-VZIMT7AO.mjs";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-J44WR3QZ.mjs";
|
|
11
|
+
import "../../chunk-I7CD6EB6.mjs";
|
|
12
12
|
import "../../chunk-N7NFYY54.mjs";
|
|
13
13
|
export {
|
|
14
14
|
handleRouteByName
|
|
@@ -5,7 +5,7 @@ export { handleRouteByName } from './handleRouteByName.mjs';
|
|
|
5
5
|
export { resolveIdentity } from './resolveIdentity.mjs';
|
|
6
6
|
import '../types/handlerTypes.mjs';
|
|
7
7
|
import '../../authTypes-TPWTIfcM.mjs';
|
|
8
|
-
import '../../routeTypes-
|
|
8
|
+
import '../../routeTypes-B8u_xPju.mjs';
|
|
9
9
|
import 'zod/v4';
|
|
10
10
|
import '../utils/sanitizeBody.mjs';
|
|
11
11
|
import '../types/responseTypes.mjs';
|
|
@@ -5,7 +5,7 @@ export { handleRouteByName } from './handleRouteByName.js';
|
|
|
5
5
|
export { resolveIdentity } from './resolveIdentity.js';
|
|
6
6
|
import '../types/handlerTypes.js';
|
|
7
7
|
import '../../authTypes-TPWTIfcM.js';
|
|
8
|
-
import '../../routeTypes-
|
|
8
|
+
import '../../routeTypes-CmQqxy8j.js';
|
|
9
9
|
import 'zod/v4';
|
|
10
10
|
import '../utils/sanitizeBody.js';
|
|
11
11
|
import '../types/responseTypes.js';
|
|
@@ -39003,10 +39003,40 @@ var PreviewSyncWebhooksWebhookRequest$outboundSchema = z88.object({
|
|
|
39003
39003
|
description: z88.optional(z88.string()),
|
|
39004
39004
|
disabled: z88.optional(z88.boolean())
|
|
39005
39005
|
});
|
|
39006
|
-
var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.
|
|
39007
|
-
|
|
39008
|
-
z88.
|
|
39009
|
-
|
|
39006
|
+
var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.pipe(
|
|
39007
|
+
z88.object({
|
|
39008
|
+
webhooks: z88.array(
|
|
39009
|
+
z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
|
|
39010
|
+
),
|
|
39011
|
+
skipDeletions: z88._default(z88.boolean(), true)
|
|
39012
|
+
}),
|
|
39013
|
+
z88.transform((v) => {
|
|
39014
|
+
return remap(v, {
|
|
39015
|
+
skipDeletions: "skip_deletions"
|
|
39016
|
+
});
|
|
39017
|
+
})
|
|
39018
|
+
);
|
|
39019
|
+
var ChangeWebhook3$inboundSchema = z88.pipe(
|
|
39020
|
+
z88.object({
|
|
39021
|
+
id: string5(),
|
|
39022
|
+
url: string5(),
|
|
39023
|
+
description: nullable(string5()),
|
|
39024
|
+
events: z88.array(string5()),
|
|
39025
|
+
disabled: boolean2(),
|
|
39026
|
+
created_at: number2(),
|
|
39027
|
+
updated_at: number2()
|
|
39028
|
+
}),
|
|
39029
|
+
z88.transform((v) => {
|
|
39030
|
+
return remap(v, {
|
|
39031
|
+
"created_at": "createdAt",
|
|
39032
|
+
"updated_at": "updatedAt"
|
|
39033
|
+
});
|
|
39034
|
+
})
|
|
39035
|
+
);
|
|
39036
|
+
var Change5$inboundSchema = z88.object({
|
|
39037
|
+
action: literal3("delete"),
|
|
39038
|
+
id: string5(),
|
|
39039
|
+
webhook: z88.lazy(() => ChangeWebhook3$inboundSchema)
|
|
39010
39040
|
});
|
|
39011
39041
|
var ChangeWebhook2$inboundSchema = z88.pipe(
|
|
39012
39042
|
z88.object({
|
|
@@ -39136,7 +39166,8 @@ var ChangeUnion$inboundSchema = discriminatedUnion("action", {
|
|
|
39136
39166
|
create: z88.lazy(() => Change1$inboundSchema),
|
|
39137
39167
|
update: z88.lazy(() => Change2$inboundSchema),
|
|
39138
39168
|
adopt: z88.lazy(() => Change3$inboundSchema),
|
|
39139
|
-
unmanaged: z88.lazy(() => Change4$inboundSchema)
|
|
39169
|
+
unmanaged: z88.lazy(() => Change4$inboundSchema),
|
|
39170
|
+
delete: z88.lazy(() => Change5$inboundSchema)
|
|
39140
39171
|
});
|
|
39141
39172
|
var PreviewSyncWebhooksError$inboundSchema = z88.object({
|
|
39142
39173
|
id: string5(),
|
|
@@ -39147,7 +39178,8 @@ var PreviewSyncWebhooksResponse$inboundSchema = z88.object({
|
|
|
39147
39178
|
create: z88.lazy(() => Change1$inboundSchema),
|
|
39148
39179
|
update: z88.lazy(() => Change2$inboundSchema),
|
|
39149
39180
|
adopt: z88.lazy(() => Change3$inboundSchema),
|
|
39150
|
-
unmanaged: z88.lazy(() => Change4$inboundSchema)
|
|
39181
|
+
unmanaged: z88.lazy(() => Change4$inboundSchema),
|
|
39182
|
+
delete: z88.lazy(() => Change5$inboundSchema)
|
|
39151
39183
|
})),
|
|
39152
39184
|
errors: z88.array(z88.lazy(() => PreviewSyncWebhooksError$inboundSchema))
|
|
39153
39185
|
});
|
|
@@ -44669,9 +44701,17 @@ var SyncWebhooksWebhookRequest$outboundSchema = z102.object({
|
|
|
44669
44701
|
description: z102.optional(z102.string()),
|
|
44670
44702
|
disabled: z102.optional(z102.boolean())
|
|
44671
44703
|
});
|
|
44672
|
-
var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.
|
|
44673
|
-
|
|
44674
|
-
|
|
44704
|
+
var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.pipe(
|
|
44705
|
+
z102.object({
|
|
44706
|
+
webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema)),
|
|
44707
|
+
skipDeletions: z102._default(z102.boolean(), true)
|
|
44708
|
+
}),
|
|
44709
|
+
z102.transform((v) => {
|
|
44710
|
+
return remap(v, {
|
|
44711
|
+
skipDeletions: "skip_deletions"
|
|
44712
|
+
});
|
|
44713
|
+
})
|
|
44714
|
+
);
|
|
44675
44715
|
var SyncWebhooksWebhookResponse$inboundSchema = z102.pipe(
|
|
44676
44716
|
z102.object({
|
|
44677
44717
|
id: string5(),
|
|
@@ -62798,7 +62838,7 @@ var Webhooks = class extends ClientSDK {
|
|
|
62798
62838
|
));
|
|
62799
62839
|
}
|
|
62800
62840
|
/**
|
|
62801
|
-
* Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create or
|
|
62841
|
+
* 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.
|
|
62802
62842
|
*/
|
|
62803
62843
|
async previewSync(request, options) {
|
|
62804
62844
|
return unwrapAsync(webhooksPreviewSync(
|
|
@@ -62808,7 +62848,7 @@ var Webhooks = class extends ClientSDK {
|
|
|
62808
62848
|
));
|
|
62809
62849
|
}
|
|
62810
62850
|
/**
|
|
62811
|
-
* Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone
|
|
62851
|
+
* 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.
|
|
62812
62852
|
*/
|
|
62813
62853
|
async sync(request, options) {
|
|
62814
62854
|
return unwrapAsync(webhooksSync(
|