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
|
@@ -45574,9 +45574,48 @@ type PreviewSyncWebhooksWebhookRequest = {
|
|
|
45574
45574
|
};
|
|
45575
45575
|
type PreviewSyncWebhooksSyncWebhooksParams = {
|
|
45576
45576
|
/**
|
|
45577
|
-
* The webhooks to create or update. Webhooks not listed are left alone
|
|
45577
|
+
* The webhooks to create or update. Webhooks not listed are left alone unless `skip_deletions` is false.
|
|
45578
45578
|
*/
|
|
45579
45579
|
webhooks: Array<PreviewSyncWebhooksWebhookRequest>;
|
|
45580
|
+
/**
|
|
45581
|
+
* When false, `webhooks` is the environment's complete set: every webhook not listed is deleted, including ones made in the dashboard. Defaults true, which leaves unlisted webhooks alone.
|
|
45582
|
+
*/
|
|
45583
|
+
skipDeletions?: boolean | undefined;
|
|
45584
|
+
};
|
|
45585
|
+
type ChangeWebhook3 = {
|
|
45586
|
+
/**
|
|
45587
|
+
* The webhook's ID. Webhooks made in the dashboard show their `ep_…` ID.
|
|
45588
|
+
*/
|
|
45589
|
+
id: string;
|
|
45590
|
+
/**
|
|
45591
|
+
* The URL Autumn sends events to.
|
|
45592
|
+
*/
|
|
45593
|
+
url: string;
|
|
45594
|
+
/**
|
|
45595
|
+
* A note for your own reference.
|
|
45596
|
+
*/
|
|
45597
|
+
description: string | null;
|
|
45598
|
+
/**
|
|
45599
|
+
* The events sent to this webhook, as `WebhookEventType` names; a type newer than your client is returned as-is. Empty means the webhook receives every event.
|
|
45600
|
+
*/
|
|
45601
|
+
events: Array<string>;
|
|
45602
|
+
/**
|
|
45603
|
+
* When true, no events are sent to the webhook.
|
|
45604
|
+
*/
|
|
45605
|
+
disabled: boolean;
|
|
45606
|
+
/**
|
|
45607
|
+
* When the webhook was created, ms since epoch.
|
|
45608
|
+
*/
|
|
45609
|
+
createdAt: number;
|
|
45610
|
+
/**
|
|
45611
|
+
* When the webhook was last changed, ms since epoch.
|
|
45612
|
+
*/
|
|
45613
|
+
updatedAt: number;
|
|
45614
|
+
};
|
|
45615
|
+
type Change5 = {
|
|
45616
|
+
action: "delete";
|
|
45617
|
+
id: string;
|
|
45618
|
+
webhook: ChangeWebhook3;
|
|
45580
45619
|
};
|
|
45581
45620
|
type ChangeWebhook2 = {
|
|
45582
45621
|
/**
|
|
@@ -45789,9 +45828,9 @@ type PreviewSyncWebhooksError = {
|
|
|
45789
45828
|
*/
|
|
45790
45829
|
type PreviewSyncWebhooksResponse = {
|
|
45791
45830
|
/**
|
|
45792
|
-
* What `webhooks.sync` would do. `adopt` takes over a webhook made in the dashboard with the same URL, keeping its signing secret. `unmanaged` webhooks exist but aren't listed, so sync leaves them alone.
|
|
45831
|
+
* What `webhooks.sync` would do. `adopt` takes over a webhook made in the dashboard with the same URL, keeping its signing secret. `unmanaged` webhooks exist but aren't listed, so sync leaves them alone. `delete` webhooks aren't listed and `skip_deletions` is false, so sync deletes them.
|
|
45793
45832
|
*/
|
|
45794
|
-
changes: Array<Change1 | Change2 | Change3 | Change4 | Unknown<"action">>;
|
|
45833
|
+
changes: Array<Change1 | Change2 | Change3 | Change4 | Change5 | Unknown<"action">>;
|
|
45795
45834
|
/**
|
|
45796
45835
|
* Listed webhooks `webhooks.sync` would refuse, e.g. when several dashboard webhooks share the URL.
|
|
45797
45836
|
*/
|
|
@@ -52130,9 +52169,13 @@ type SyncWebhooksWebhookRequest = {
|
|
|
52130
52169
|
};
|
|
52131
52170
|
type SyncWebhooksSyncWebhooksParams = {
|
|
52132
52171
|
/**
|
|
52133
|
-
* The webhooks to create or update. Webhooks not listed are left alone
|
|
52172
|
+
* The webhooks to create or update. Webhooks not listed are left alone unless `skip_deletions` is false.
|
|
52134
52173
|
*/
|
|
52135
52174
|
webhooks: Array<SyncWebhooksWebhookRequest>;
|
|
52175
|
+
/**
|
|
52176
|
+
* When false, `webhooks` is the environment's complete set: every webhook not listed is deleted, including ones made in the dashboard. Defaults true, which leaves unlisted webhooks alone.
|
|
52177
|
+
*/
|
|
52178
|
+
skipDeletions?: boolean | undefined;
|
|
52136
52179
|
};
|
|
52137
52180
|
type SyncWebhooksWebhookResponse = {
|
|
52138
52181
|
/**
|
|
@@ -52188,7 +52231,7 @@ type SyncWebhooksResponse = {
|
|
|
52188
52231
|
*/
|
|
52189
52232
|
secrets: Array<Secret>;
|
|
52190
52233
|
/**
|
|
52191
|
-
* Webhooks that couldn't be created or
|
|
52234
|
+
* Webhooks that couldn't be created, updated or deleted. The others were still applied; the request fails only when none could be.
|
|
52192
52235
|
*/
|
|
52193
52236
|
errors: Array<SyncWebhooksError>;
|
|
52194
52237
|
};
|
|
@@ -64357,11 +64400,11 @@ declare class Webhooks extends ClientSDK {
|
|
|
64357
64400
|
*/
|
|
64358
64401
|
delete(request: DeleteWebhookParams, options?: RequestOptions): Promise<DeleteWebhookResponse>;
|
|
64359
64402
|
/**
|
|
64360
|
-
* Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create or
|
|
64403
|
+
* 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.
|
|
64361
64404
|
*/
|
|
64362
64405
|
previewSync(request: PreviewSyncWebhooksSyncWebhooksParams, options?: RequestOptions): Promise<PreviewSyncWebhooksResponse>;
|
|
64363
64406
|
/**
|
|
64364
|
-
* Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone
|
|
64407
|
+
* 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.
|
|
64365
64408
|
*/
|
|
64366
64409
|
sync(request: SyncWebhooksSyncWebhooksParams, options?: RequestOptions): Promise<SyncWebhooksResponse>;
|
|
64367
64410
|
}
|
|
@@ -38981,10 +38981,40 @@ var PreviewSyncWebhooksWebhookRequest$outboundSchema = z88.object({
|
|
|
38981
38981
|
description: z88.optional(z88.string()),
|
|
38982
38982
|
disabled: z88.optional(z88.boolean())
|
|
38983
38983
|
});
|
|
38984
|
-
var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.
|
|
38985
|
-
|
|
38986
|
-
z88.
|
|
38987
|
-
|
|
38984
|
+
var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z88.pipe(
|
|
38985
|
+
z88.object({
|
|
38986
|
+
webhooks: z88.array(
|
|
38987
|
+
z88.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
|
|
38988
|
+
),
|
|
38989
|
+
skipDeletions: z88._default(z88.boolean(), true)
|
|
38990
|
+
}),
|
|
38991
|
+
z88.transform((v) => {
|
|
38992
|
+
return remap(v, {
|
|
38993
|
+
skipDeletions: "skip_deletions"
|
|
38994
|
+
});
|
|
38995
|
+
})
|
|
38996
|
+
);
|
|
38997
|
+
var ChangeWebhook3$inboundSchema = z88.pipe(
|
|
38998
|
+
z88.object({
|
|
38999
|
+
id: string5(),
|
|
39000
|
+
url: string5(),
|
|
39001
|
+
description: nullable(string5()),
|
|
39002
|
+
events: z88.array(string5()),
|
|
39003
|
+
disabled: boolean2(),
|
|
39004
|
+
created_at: number2(),
|
|
39005
|
+
updated_at: number2()
|
|
39006
|
+
}),
|
|
39007
|
+
z88.transform((v) => {
|
|
39008
|
+
return remap(v, {
|
|
39009
|
+
"created_at": "createdAt",
|
|
39010
|
+
"updated_at": "updatedAt"
|
|
39011
|
+
});
|
|
39012
|
+
})
|
|
39013
|
+
);
|
|
39014
|
+
var Change5$inboundSchema = z88.object({
|
|
39015
|
+
action: literal3("delete"),
|
|
39016
|
+
id: string5(),
|
|
39017
|
+
webhook: z88.lazy(() => ChangeWebhook3$inboundSchema)
|
|
38988
39018
|
});
|
|
38989
39019
|
var ChangeWebhook2$inboundSchema = z88.pipe(
|
|
38990
39020
|
z88.object({
|
|
@@ -39114,7 +39144,8 @@ var ChangeUnion$inboundSchema = discriminatedUnion("action", {
|
|
|
39114
39144
|
create: z88.lazy(() => Change1$inboundSchema),
|
|
39115
39145
|
update: z88.lazy(() => Change2$inboundSchema),
|
|
39116
39146
|
adopt: z88.lazy(() => Change3$inboundSchema),
|
|
39117
|
-
unmanaged: z88.lazy(() => Change4$inboundSchema)
|
|
39147
|
+
unmanaged: z88.lazy(() => Change4$inboundSchema),
|
|
39148
|
+
delete: z88.lazy(() => Change5$inboundSchema)
|
|
39118
39149
|
});
|
|
39119
39150
|
var PreviewSyncWebhooksError$inboundSchema = z88.object({
|
|
39120
39151
|
id: string5(),
|
|
@@ -39125,7 +39156,8 @@ var PreviewSyncWebhooksResponse$inboundSchema = z88.object({
|
|
|
39125
39156
|
create: z88.lazy(() => Change1$inboundSchema),
|
|
39126
39157
|
update: z88.lazy(() => Change2$inboundSchema),
|
|
39127
39158
|
adopt: z88.lazy(() => Change3$inboundSchema),
|
|
39128
|
-
unmanaged: z88.lazy(() => Change4$inboundSchema)
|
|
39159
|
+
unmanaged: z88.lazy(() => Change4$inboundSchema),
|
|
39160
|
+
delete: z88.lazy(() => Change5$inboundSchema)
|
|
39129
39161
|
})),
|
|
39130
39162
|
errors: z88.array(z88.lazy(() => PreviewSyncWebhooksError$inboundSchema))
|
|
39131
39163
|
});
|
|
@@ -44647,9 +44679,17 @@ var SyncWebhooksWebhookRequest$outboundSchema = z102.object({
|
|
|
44647
44679
|
description: z102.optional(z102.string()),
|
|
44648
44680
|
disabled: z102.optional(z102.boolean())
|
|
44649
44681
|
});
|
|
44650
|
-
var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.
|
|
44651
|
-
|
|
44652
|
-
|
|
44682
|
+
var SyncWebhooksSyncWebhooksParams$outboundSchema = z102.pipe(
|
|
44683
|
+
z102.object({
|
|
44684
|
+
webhooks: z102.array(z102.lazy(() => SyncWebhooksWebhookRequest$outboundSchema)),
|
|
44685
|
+
skipDeletions: z102._default(z102.boolean(), true)
|
|
44686
|
+
}),
|
|
44687
|
+
z102.transform((v) => {
|
|
44688
|
+
return remap(v, {
|
|
44689
|
+
skipDeletions: "skip_deletions"
|
|
44690
|
+
});
|
|
44691
|
+
})
|
|
44692
|
+
);
|
|
44653
44693
|
var SyncWebhooksWebhookResponse$inboundSchema = z102.pipe(
|
|
44654
44694
|
z102.object({
|
|
44655
44695
|
id: string5(),
|
|
@@ -62776,7 +62816,7 @@ var Webhooks = class extends ClientSDK {
|
|
|
62776
62816
|
));
|
|
62777
62817
|
}
|
|
62778
62818
|
/**
|
|
62779
|
-
* Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create or
|
|
62819
|
+
* 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.
|
|
62780
62820
|
*/
|
|
62781
62821
|
async previewSync(request, options) {
|
|
62782
62822
|
return unwrapAsync(webhooksPreviewSync(
|
|
@@ -62786,7 +62826,7 @@ var Webhooks = class extends ClientSDK {
|
|
|
62786
62826
|
));
|
|
62787
62827
|
}
|
|
62788
62828
|
/**
|
|
62789
|
-
* Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone
|
|
62829
|
+
* 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.
|
|
62790
62830
|
*/
|
|
62791
62831
|
async sync(request, options) {
|
|
62792
62832
|
return unwrapAsync(webhooksSync(
|
|
@@ -45829,10 +45829,40 @@ var PreviewSyncWebhooksWebhookRequest$outboundSchema = z107.object({
|
|
|
45829
45829
|
description: z107.optional(z107.string()),
|
|
45830
45830
|
disabled: z107.optional(z107.boolean())
|
|
45831
45831
|
});
|
|
45832
|
-
var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z107.
|
|
45833
|
-
|
|
45834
|
-
z107.
|
|
45835
|
-
|
|
45832
|
+
var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z107.pipe(
|
|
45833
|
+
z107.object({
|
|
45834
|
+
webhooks: z107.array(
|
|
45835
|
+
z107.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
|
|
45836
|
+
),
|
|
45837
|
+
skipDeletions: z107._default(z107.boolean(), true)
|
|
45838
|
+
}),
|
|
45839
|
+
z107.transform((v) => {
|
|
45840
|
+
return remap(v, {
|
|
45841
|
+
skipDeletions: "skip_deletions"
|
|
45842
|
+
});
|
|
45843
|
+
})
|
|
45844
|
+
);
|
|
45845
|
+
var ChangeWebhook3$inboundSchema = z107.pipe(
|
|
45846
|
+
z107.object({
|
|
45847
|
+
id: string5(),
|
|
45848
|
+
url: string5(),
|
|
45849
|
+
description: nullable(string5()),
|
|
45850
|
+
events: z107.array(string5()),
|
|
45851
|
+
disabled: boolean2(),
|
|
45852
|
+
created_at: number2(),
|
|
45853
|
+
updated_at: number2()
|
|
45854
|
+
}),
|
|
45855
|
+
z107.transform((v) => {
|
|
45856
|
+
return remap(v, {
|
|
45857
|
+
"created_at": "createdAt",
|
|
45858
|
+
"updated_at": "updatedAt"
|
|
45859
|
+
});
|
|
45860
|
+
})
|
|
45861
|
+
);
|
|
45862
|
+
var Change5$inboundSchema = z107.object({
|
|
45863
|
+
action: literal3("delete"),
|
|
45864
|
+
id: string5(),
|
|
45865
|
+
webhook: z107.lazy(() => ChangeWebhook3$inboundSchema)
|
|
45836
45866
|
});
|
|
45837
45867
|
var ChangeWebhook2$inboundSchema = z107.pipe(
|
|
45838
45868
|
z107.object({
|
|
@@ -45962,7 +45992,8 @@ var ChangeUnion$inboundSchema = discriminatedUnion("action", {
|
|
|
45962
45992
|
create: z107.lazy(() => Change1$inboundSchema),
|
|
45963
45993
|
update: z107.lazy(() => Change2$inboundSchema),
|
|
45964
45994
|
adopt: z107.lazy(() => Change3$inboundSchema),
|
|
45965
|
-
unmanaged: z107.lazy(() => Change4$inboundSchema)
|
|
45995
|
+
unmanaged: z107.lazy(() => Change4$inboundSchema),
|
|
45996
|
+
delete: z107.lazy(() => Change5$inboundSchema)
|
|
45966
45997
|
});
|
|
45967
45998
|
var PreviewSyncWebhooksError$inboundSchema = z107.object({
|
|
45968
45999
|
id: string5(),
|
|
@@ -45973,7 +46004,8 @@ var PreviewSyncWebhooksResponse$inboundSchema = z107.object({
|
|
|
45973
46004
|
create: z107.lazy(() => Change1$inboundSchema),
|
|
45974
46005
|
update: z107.lazy(() => Change2$inboundSchema),
|
|
45975
46006
|
adopt: z107.lazy(() => Change3$inboundSchema),
|
|
45976
|
-
unmanaged: z107.lazy(() => Change4$inboundSchema)
|
|
46007
|
+
unmanaged: z107.lazy(() => Change4$inboundSchema),
|
|
46008
|
+
delete: z107.lazy(() => Change5$inboundSchema)
|
|
45977
46009
|
})),
|
|
45978
46010
|
errors: z107.array(z107.lazy(() => PreviewSyncWebhooksError$inboundSchema))
|
|
45979
46011
|
});
|
|
@@ -51495,9 +51527,17 @@ var SyncWebhooksWebhookRequest$outboundSchema = z121.object({
|
|
|
51495
51527
|
description: z121.optional(z121.string()),
|
|
51496
51528
|
disabled: z121.optional(z121.boolean())
|
|
51497
51529
|
});
|
|
51498
|
-
var SyncWebhooksSyncWebhooksParams$outboundSchema = z121.
|
|
51499
|
-
|
|
51500
|
-
|
|
51530
|
+
var SyncWebhooksSyncWebhooksParams$outboundSchema = z121.pipe(
|
|
51531
|
+
z121.object({
|
|
51532
|
+
webhooks: z121.array(z121.lazy(() => SyncWebhooksWebhookRequest$outboundSchema)),
|
|
51533
|
+
skipDeletions: z121._default(z121.boolean(), true)
|
|
51534
|
+
}),
|
|
51535
|
+
z121.transform((v) => {
|
|
51536
|
+
return remap(v, {
|
|
51537
|
+
skipDeletions: "skip_deletions"
|
|
51538
|
+
});
|
|
51539
|
+
})
|
|
51540
|
+
);
|
|
51501
51541
|
var SyncWebhooksWebhookResponse$inboundSchema = z121.pipe(
|
|
51502
51542
|
z121.object({
|
|
51503
51543
|
id: string5(),
|
|
@@ -69624,7 +69664,7 @@ var Webhooks = class extends ClientSDK {
|
|
|
69624
69664
|
));
|
|
69625
69665
|
}
|
|
69626
69666
|
/**
|
|
69627
|
-
* Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create or
|
|
69667
|
+
* 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.
|
|
69628
69668
|
*/
|
|
69629
69669
|
async previewSync(request, options) {
|
|
69630
69670
|
return unwrapAsync(webhooksPreviewSync(
|
|
@@ -69634,7 +69674,7 @@ var Webhooks = class extends ClientSDK {
|
|
|
69634
69674
|
));
|
|
69635
69675
|
}
|
|
69636
69676
|
/**
|
|
69637
|
-
* Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone
|
|
69677
|
+
* 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.
|
|
69638
69678
|
*/
|
|
69639
69679
|
async sync(request, options) {
|
|
69640
69680
|
return unwrapAsync(webhooksSync(
|
|
@@ -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.
|
|
39004
|
-
|
|
39005
|
-
z88.
|
|
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.
|
|
44670
|
-
|
|
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
|
|
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
|
|
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(
|
|
@@ -45833,10 +45833,40 @@ var PreviewSyncWebhooksWebhookRequest$outboundSchema = z107.object({
|
|
|
45833
45833
|
description: z107.optional(z107.string()),
|
|
45834
45834
|
disabled: z107.optional(z107.boolean())
|
|
45835
45835
|
});
|
|
45836
|
-
var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z107.
|
|
45837
|
-
|
|
45838
|
-
z107.
|
|
45839
|
-
|
|
45836
|
+
var PreviewSyncWebhooksSyncWebhooksParams$outboundSchema = z107.pipe(
|
|
45837
|
+
z107.object({
|
|
45838
|
+
webhooks: z107.array(
|
|
45839
|
+
z107.lazy(() => PreviewSyncWebhooksWebhookRequest$outboundSchema)
|
|
45840
|
+
),
|
|
45841
|
+
skipDeletions: z107._default(z107.boolean(), true)
|
|
45842
|
+
}),
|
|
45843
|
+
z107.transform((v) => {
|
|
45844
|
+
return remap(v, {
|
|
45845
|
+
skipDeletions: "skip_deletions"
|
|
45846
|
+
});
|
|
45847
|
+
})
|
|
45848
|
+
);
|
|
45849
|
+
var ChangeWebhook3$inboundSchema = z107.pipe(
|
|
45850
|
+
z107.object({
|
|
45851
|
+
id: string5(),
|
|
45852
|
+
url: string5(),
|
|
45853
|
+
description: nullable(string5()),
|
|
45854
|
+
events: z107.array(string5()),
|
|
45855
|
+
disabled: boolean2(),
|
|
45856
|
+
created_at: number2(),
|
|
45857
|
+
updated_at: number2()
|
|
45858
|
+
}),
|
|
45859
|
+
z107.transform((v) => {
|
|
45860
|
+
return remap(v, {
|
|
45861
|
+
"created_at": "createdAt",
|
|
45862
|
+
"updated_at": "updatedAt"
|
|
45863
|
+
});
|
|
45864
|
+
})
|
|
45865
|
+
);
|
|
45866
|
+
var Change5$inboundSchema = z107.object({
|
|
45867
|
+
action: literal3("delete"),
|
|
45868
|
+
id: string5(),
|
|
45869
|
+
webhook: z107.lazy(() => ChangeWebhook3$inboundSchema)
|
|
45840
45870
|
});
|
|
45841
45871
|
var ChangeWebhook2$inboundSchema = z107.pipe(
|
|
45842
45872
|
z107.object({
|
|
@@ -45966,7 +45996,8 @@ var ChangeUnion$inboundSchema = discriminatedUnion("action", {
|
|
|
45966
45996
|
create: z107.lazy(() => Change1$inboundSchema),
|
|
45967
45997
|
update: z107.lazy(() => Change2$inboundSchema),
|
|
45968
45998
|
adopt: z107.lazy(() => Change3$inboundSchema),
|
|
45969
|
-
unmanaged: z107.lazy(() => Change4$inboundSchema)
|
|
45999
|
+
unmanaged: z107.lazy(() => Change4$inboundSchema),
|
|
46000
|
+
delete: z107.lazy(() => Change5$inboundSchema)
|
|
45970
46001
|
});
|
|
45971
46002
|
var PreviewSyncWebhooksError$inboundSchema = z107.object({
|
|
45972
46003
|
id: string5(),
|
|
@@ -45977,7 +46008,8 @@ var PreviewSyncWebhooksResponse$inboundSchema = z107.object({
|
|
|
45977
46008
|
create: z107.lazy(() => Change1$inboundSchema),
|
|
45978
46009
|
update: z107.lazy(() => Change2$inboundSchema),
|
|
45979
46010
|
adopt: z107.lazy(() => Change3$inboundSchema),
|
|
45980
|
-
unmanaged: z107.lazy(() => Change4$inboundSchema)
|
|
46011
|
+
unmanaged: z107.lazy(() => Change4$inboundSchema),
|
|
46012
|
+
delete: z107.lazy(() => Change5$inboundSchema)
|
|
45981
46013
|
})),
|
|
45982
46014
|
errors: z107.array(z107.lazy(() => PreviewSyncWebhooksError$inboundSchema))
|
|
45983
46015
|
});
|
|
@@ -51499,9 +51531,17 @@ var SyncWebhooksWebhookRequest$outboundSchema = z121.object({
|
|
|
51499
51531
|
description: z121.optional(z121.string()),
|
|
51500
51532
|
disabled: z121.optional(z121.boolean())
|
|
51501
51533
|
});
|
|
51502
|
-
var SyncWebhooksSyncWebhooksParams$outboundSchema = z121.
|
|
51503
|
-
|
|
51504
|
-
|
|
51534
|
+
var SyncWebhooksSyncWebhooksParams$outboundSchema = z121.pipe(
|
|
51535
|
+
z121.object({
|
|
51536
|
+
webhooks: z121.array(z121.lazy(() => SyncWebhooksWebhookRequest$outboundSchema)),
|
|
51537
|
+
skipDeletions: z121._default(z121.boolean(), true)
|
|
51538
|
+
}),
|
|
51539
|
+
z121.transform((v) => {
|
|
51540
|
+
return remap(v, {
|
|
51541
|
+
skipDeletions: "skip_deletions"
|
|
51542
|
+
});
|
|
51543
|
+
})
|
|
51544
|
+
);
|
|
51505
51545
|
var SyncWebhooksWebhookResponse$inboundSchema = z121.pipe(
|
|
51506
51546
|
z121.object({
|
|
51507
51547
|
id: string5(),
|
|
@@ -69628,7 +69668,7 @@ var Webhooks = class extends ClientSDK {
|
|
|
69628
69668
|
));
|
|
69629
69669
|
}
|
|
69630
69670
|
/**
|
|
69631
|
-
* Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create or
|
|
69671
|
+
* 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.
|
|
69632
69672
|
*/
|
|
69633
69673
|
async previewSync(request, options) {
|
|
69634
69674
|
return unwrapAsync(webhooksPreviewSync(
|
|
@@ -69638,7 +69678,7 @@ var Webhooks = class extends ClientSDK {
|
|
|
69638
69678
|
));
|
|
69639
69679
|
}
|
|
69640
69680
|
/**
|
|
69641
|
-
* Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone
|
|
69681
|
+
* 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.
|
|
69642
69682
|
*/
|
|
69643
69683
|
async sync(request, options) {
|
|
69644
69684
|
return unwrapAsync(webhooksSync(
|