@vm0/cli 9.248.1 → 9.249.1
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/{agent-2NW7BBLH.js → agent-PMWDKCSZ.js} +5 -5
- package/{banking-WMZ5X4TD.js → banking-S5RH46G5.js} +3 -3
- package/{chat-Z32JJCZG.js → chat-2ZTZUIWC.js} +4 -4
- package/{chunk-2IFOM533.js → chunk-FF5L22OE.js} +2 -2
- package/{chunk-Y7PXYM7M.js → chunk-HUMR2SA3.js} +2 -2
- package/{chunk-HJMAS7QI.js → chunk-J2I5GYLR.js} +4 -4
- package/{chunk-KU5PTS4H.js → chunk-KQN5YZZP.js} +115 -7
- package/chunk-KQN5YZZP.js.map +1 -0
- package/{chunk-XMCVK5OU.js → chunk-L63QVTYZ.js} +5 -4
- package/{chunk-XMCVK5OU.js.map → chunk-L63QVTYZ.js.map} +1 -1
- package/{chunk-N677KKA5.js → chunk-LKDE4AUC.js} +2 -2
- package/{chunk-D42LBTMI.js → chunk-PLOJYRFL.js} +73 -65
- package/chunk-PLOJYRFL.js.map +1 -0
- package/{chunk-DXYKZPHD.js → chunk-SAW74AR6.js} +2 -2
- package/{computer-use-Z5YA5PCS.js → computer-use-GRK4TZYN.js} +3 -3
- package/{connector-GILJG3H2.js → connector-2SVH4F2N.js} +6 -6
- package/{credit-SHY372FA.js → credit-LGMFDRFK.js} +4 -4
- package/{developer-support-OPEG7JPP.js → developer-support-RYTLIFUN.js} +3 -3
- package/{doctor-QVVF5PHS.js → doctor-CS5TFE6A.js} +3 -3
- package/{feishu-FKRRGMT2.js → feishu-HFQIJDBU.js} +3 -3
- package/{finance-LDOX64UG.js → finance-56HIRALT.js} +3 -3
- package/{generate-CIXTADDH.js → generate-4FEC4YVM.js} +4 -4
- package/{github-27EGMZM4.js → github-AALJ7IEM.js} +3 -3
- package/{goal-MTTP4FTD.js → goal-CFSXEKHU.js} +3 -3
- package/{host-5ACQBWFC.js → host-6NKXFQCO.js} +3 -3
- package/{logs-WME2HGIQ.js → logs-F4KPELTF.js} +4 -4
- package/{mail-BYRRYI5S.js → mail-RZTLZU3I.js} +5 -5
- package/{maps-P7V44O5J.js → maps-QRHGR33R.js} +3 -3
- package/{model-THRT7DHX.js → model-6N5VPIS5.js} +4 -4
- package/{model-provider-HQ2SXXG7.js → model-provider-UZO32ZTC.js} +4 -4
- package/{org-H742KQAG.js → org-26ZL2W2U.js} +3 -3
- package/package.json +1 -1
- package/{phone-ZLDFGYV5.js → phone-QTRZLYIG.js} +3 -3
- package/{preference-MGBOHLDQ.js → preference-JCFTTUBN.js} +3 -3
- package/{resource-FGZYT5IL.js → resource-64R7T4FF.js} +3 -3
- package/{scrape-NCPUXX2W.js → scrape-LVGJ56IS.js} +3 -3
- package/{search-TOPTC26C.js → search-TRISF64L.js} +4 -4
- package/{secret-P3BJRVBS.js → secret-UAJDU3SX.js} +3 -3
- package/{slack-FKK6PVKS.js → slack-PDOPNS5Z.js} +171 -45
- package/slack-PDOPNS5Z.js.map +1 -0
- package/{teams-IIXV5XX6.js → teams-BL36IS5U.js} +3 -3
- package/{telegram-RMSYD7AV.js → telegram-X7YTUVNV.js} +3 -3
- package/{variable-S6I4UDAO.js → variable-EBCBNZSU.js} +3 -3
- package/{video-HADRKBLP.js → video-3HFJJJEE.js} +2 -2
- package/{weather-L7QYR5VW.js → weather-Y37FKFKU.js} +3 -3
- package/{web-FODYCSCR.js → web-ZEWEVAI3.js} +3 -3
- package/{web-search-55SSMXC7.js → web-search-37SGCKB7.js} +3 -3
- package/{whoami-DT3WNKYG.js → whoami-VZI6VS4C.js} +5 -5
- package/{workflow-H2IAFAGI.js → workflow-3WGBRMM5.js} +3 -3
- package/zero.js +39 -39
- package/chunk-D42LBTMI.js.map +0 -1
- package/chunk-KU5PTS4H.js.map +0 -1
- package/slack-FKK6PVKS.js.map +0 -1
- /package/{agent-2NW7BBLH.js.map → agent-PMWDKCSZ.js.map} +0 -0
- /package/{banking-WMZ5X4TD.js.map → banking-S5RH46G5.js.map} +0 -0
- /package/{chat-Z32JJCZG.js.map → chat-2ZTZUIWC.js.map} +0 -0
- /package/{chunk-2IFOM533.js.map → chunk-FF5L22OE.js.map} +0 -0
- /package/{chunk-Y7PXYM7M.js.map → chunk-HUMR2SA3.js.map} +0 -0
- /package/{chunk-HJMAS7QI.js.map → chunk-J2I5GYLR.js.map} +0 -0
- /package/{chunk-N677KKA5.js.map → chunk-LKDE4AUC.js.map} +0 -0
- /package/{chunk-DXYKZPHD.js.map → chunk-SAW74AR6.js.map} +0 -0
- /package/{computer-use-Z5YA5PCS.js.map → computer-use-GRK4TZYN.js.map} +0 -0
- /package/{connector-GILJG3H2.js.map → connector-2SVH4F2N.js.map} +0 -0
- /package/{credit-SHY372FA.js.map → credit-LGMFDRFK.js.map} +0 -0
- /package/{developer-support-OPEG7JPP.js.map → developer-support-RYTLIFUN.js.map} +0 -0
- /package/{doctor-QVVF5PHS.js.map → doctor-CS5TFE6A.js.map} +0 -0
- /package/{feishu-FKRRGMT2.js.map → feishu-HFQIJDBU.js.map} +0 -0
- /package/{finance-LDOX64UG.js.map → finance-56HIRALT.js.map} +0 -0
- /package/{generate-CIXTADDH.js.map → generate-4FEC4YVM.js.map} +0 -0
- /package/{github-27EGMZM4.js.map → github-AALJ7IEM.js.map} +0 -0
- /package/{goal-MTTP4FTD.js.map → goal-CFSXEKHU.js.map} +0 -0
- /package/{host-5ACQBWFC.js.map → host-6NKXFQCO.js.map} +0 -0
- /package/{logs-WME2HGIQ.js.map → logs-F4KPELTF.js.map} +0 -0
- /package/{mail-BYRRYI5S.js.map → mail-RZTLZU3I.js.map} +0 -0
- /package/{maps-P7V44O5J.js.map → maps-QRHGR33R.js.map} +0 -0
- /package/{model-THRT7DHX.js.map → model-6N5VPIS5.js.map} +0 -0
- /package/{model-provider-HQ2SXXG7.js.map → model-provider-UZO32ZTC.js.map} +0 -0
- /package/{org-H742KQAG.js.map → org-26ZL2W2U.js.map} +0 -0
- /package/{phone-ZLDFGYV5.js.map → phone-QTRZLYIG.js.map} +0 -0
- /package/{preference-MGBOHLDQ.js.map → preference-JCFTTUBN.js.map} +0 -0
- /package/{resource-FGZYT5IL.js.map → resource-64R7T4FF.js.map} +0 -0
- /package/{scrape-NCPUXX2W.js.map → scrape-LVGJ56IS.js.map} +0 -0
- /package/{search-TOPTC26C.js.map → search-TRISF64L.js.map} +0 -0
- /package/{secret-P3BJRVBS.js.map → secret-UAJDU3SX.js.map} +0 -0
- /package/{teams-IIXV5XX6.js.map → teams-BL36IS5U.js.map} +0 -0
- /package/{telegram-RMSYD7AV.js.map → telegram-X7YTUVNV.js.map} +0 -0
- /package/{variable-S6I4UDAO.js.map → variable-EBCBNZSU.js.map} +0 -0
- /package/{video-HADRKBLP.js.map → video-3HFJJJEE.js.map} +0 -0
- /package/{weather-L7QYR5VW.js.map → weather-Y37FKFKU.js.map} +0 -0
- /package/{web-FODYCSCR.js.map → web-ZEWEVAI3.js.map} +0 -0
- /package/{web-search-55SSMXC7.js.map → web-search-37SGCKB7.js.map} +0 -0
- /package/{whoami-DT3WNKYG.js.map → whoami-VZI6VS4C.js.map} +0 -0
- /package/{workflow-H2IAFAGI.js.map → workflow-3WGBRMM5.js.map} +0 -0
|
@@ -4,14 +4,14 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
loadConnectorPermissionInfos,
|
|
6
6
|
policyIcon
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-J2I5GYLR.js";
|
|
8
8
|
import {
|
|
9
9
|
isInteractive,
|
|
10
10
|
promptConfirm
|
|
11
11
|
} from "./chunk-JFY6GK7Y.js";
|
|
12
12
|
import {
|
|
13
13
|
permissionGrantsToFirewallPolicies
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FF5L22OE.js";
|
|
15
15
|
import {
|
|
16
16
|
createZeroAgent,
|
|
17
17
|
deleteZeroAgent,
|
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
listZeroUserPermissionGrants,
|
|
24
24
|
updateZeroAgent,
|
|
25
25
|
updateZeroAgentInstructions
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KQN5YZZP.js";
|
|
27
27
|
import "./chunk-LTDQISD7.js";
|
|
28
28
|
import {
|
|
29
29
|
source_default,
|
|
30
30
|
withErrorHandler
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-L63QVTYZ.js";
|
|
32
32
|
import "./chunk-LRHXR7JT.js";
|
|
33
33
|
import {
|
|
34
34
|
Command
|
|
@@ -593,4 +593,4 @@ Notes:
|
|
|
593
593
|
export {
|
|
594
594
|
zeroAgentCommand
|
|
595
595
|
};
|
|
596
|
-
//# sourceMappingURL=agent-
|
|
596
|
+
//# sourceMappingURL=agent-PMWDKCSZ.js.map
|
|
@@ -3,12 +3,12 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
callZeroBanking
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KQN5YZZP.js";
|
|
7
7
|
import "./chunk-LTDQISD7.js";
|
|
8
8
|
import {
|
|
9
9
|
source_default,
|
|
10
10
|
withErrorHandler
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-L63QVTYZ.js";
|
|
12
12
|
import "./chunk-LRHXR7JT.js";
|
|
13
13
|
import {
|
|
14
14
|
Command,
|
|
@@ -113,4 +113,4 @@ Notes:
|
|
|
113
113
|
export {
|
|
114
114
|
zeroBankingCommand
|
|
115
115
|
};
|
|
116
|
-
//# sourceMappingURL=banking-
|
|
116
|
+
//# sourceMappingURL=banking-S5RH46G5.js.map
|
|
@@ -3,18 +3,18 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
formatModelProviderRoute
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HUMR2SA3.js";
|
|
7
7
|
import {
|
|
8
8
|
getZeroChatThread,
|
|
9
9
|
listZeroModelPolicies,
|
|
10
10
|
renameZeroChatThread,
|
|
11
11
|
updateZeroChatThreadModelSelection
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KQN5YZZP.js";
|
|
13
13
|
import "./chunk-LTDQISD7.js";
|
|
14
14
|
import {
|
|
15
15
|
source_default,
|
|
16
16
|
withErrorHandler
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-L63QVTYZ.js";
|
|
18
18
|
import "./chunk-LRHXR7JT.js";
|
|
19
19
|
import {
|
|
20
20
|
Command
|
|
@@ -242,4 +242,4 @@ Examples:
|
|
|
242
242
|
export {
|
|
243
243
|
zeroChatCommand
|
|
244
244
|
};
|
|
245
|
-
//# sourceMappingURL=chat-
|
|
245
|
+
//# sourceMappingURL=chat-2ZTZUIWC.js.map
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
UNKNOWN_PERMISSION_GRANT
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KQN5YZZP.js";
|
|
7
7
|
import {
|
|
8
8
|
init_esm_shims
|
|
9
9
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -130,4 +130,4 @@ export {
|
|
|
130
130
|
resolveFirewallMetadataPolicies,
|
|
131
131
|
permissionGrantsToFirewallPolicies
|
|
132
132
|
};
|
|
133
|
-
//# sourceMappingURL=chunk-
|
|
133
|
+
//# sourceMappingURL=chunk-FF5L22OE.js.map
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
MODEL_PROVIDER_TYPES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-L63QVTYZ.js";
|
|
7
7
|
import {
|
|
8
8
|
init_esm_shims
|
|
9
9
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -40,4 +40,4 @@ export {
|
|
|
40
40
|
formatModelProviderRoute,
|
|
41
41
|
formatModelPolicyStatus
|
|
42
42
|
};
|
|
43
|
-
//# sourceMappingURL=chunk-
|
|
43
|
+
//# sourceMappingURL=chunk-HUMR2SA3.js.map
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from "node:module";
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
resolveFirewallMetadataPolicies
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FF5L22OE.js";
|
|
7
7
|
import {
|
|
8
8
|
getZeroConnectorCatalogPermissions
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KQN5YZZP.js";
|
|
10
10
|
import {
|
|
11
11
|
source_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-L63QVTYZ.js";
|
|
13
13
|
import {
|
|
14
14
|
init_esm_shims
|
|
15
15
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -89,4 +89,4 @@ export {
|
|
|
89
89
|
policyIcon,
|
|
90
90
|
loadConnectorPermissionInfos
|
|
91
91
|
};
|
|
92
|
-
//# sourceMappingURL=chunk-
|
|
92
|
+
//# sourceMappingURL=chunk-J2I5GYLR.js.map
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
updateOrgModelPoliciesRequestSchema,
|
|
22
22
|
upsertModelProviderRequestSchema,
|
|
23
23
|
upsertModelProviderResponseSchema
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-L63QVTYZ.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__esm,
|
|
@@ -3367,8 +3367,30 @@ var attachFileSchema = external_exports.object({
|
|
|
3367
3367
|
contentType: external_exports.string(),
|
|
3368
3368
|
size: external_exports.number()
|
|
3369
3369
|
});
|
|
3370
|
+
var assetMaterializationSchema = external_exports.discriminatedUnion("status", [
|
|
3371
|
+
external_exports.object({ status: external_exports.literal("ready") }),
|
|
3372
|
+
external_exports.object({ status: external_exports.literal("pending") }),
|
|
3373
|
+
external_exports.object({
|
|
3374
|
+
status: external_exports.literal("failed"),
|
|
3375
|
+
error: external_exports.object({
|
|
3376
|
+
code: external_exports.string(),
|
|
3377
|
+
message: external_exports.string(),
|
|
3378
|
+
retryable: external_exports.boolean()
|
|
3379
|
+
})
|
|
3380
|
+
})
|
|
3381
|
+
]);
|
|
3382
|
+
var assetRefSchema = external_exports.object({
|
|
3383
|
+
id: external_exports.string().uuid(),
|
|
3384
|
+
classification: external_exports.enum(["input", "published-output"]),
|
|
3385
|
+
access: external_exports.enum(["private", "published"]),
|
|
3386
|
+
materialization: assetMaterializationSchema,
|
|
3387
|
+
provenance: external_exports.object({
|
|
3388
|
+
provider: external_exports.string()
|
|
3389
|
+
}).optional()
|
|
3390
|
+
});
|
|
3370
3391
|
var resolvedAttachFileSchema = attachFileSchema.extend({
|
|
3371
|
-
url: external_exports.string()
|
|
3392
|
+
url: external_exports.string(),
|
|
3393
|
+
assetRef: assetRefSchema.optional()
|
|
3372
3394
|
});
|
|
3373
3395
|
var chatThreadArtifactGoogleDriveSyncSchema = external_exports.discriminatedUnion("status", [
|
|
3374
3396
|
external_exports.object({
|
|
@@ -3403,6 +3425,7 @@ var artifactItemSchema = external_exports.object({
|
|
|
3403
3425
|
contentType: external_exports.string(),
|
|
3404
3426
|
size: external_exports.number().default(0),
|
|
3405
3427
|
url: external_exports.string(),
|
|
3428
|
+
assetRef: assetRefSchema.optional(),
|
|
3406
3429
|
previewImageUrl: external_exports.string().optional(),
|
|
3407
3430
|
createdAt: external_exports.string(),
|
|
3408
3431
|
updatedAt: external_exports.string(),
|
|
@@ -3642,6 +3665,8 @@ var pagedChatMessageBaseSchema = external_exports.object({
|
|
|
3642
3665
|
error: external_exports.string().optional(),
|
|
3643
3666
|
attachFiles: external_exports.array(resolvedAttachFileSchema).optional(),
|
|
3644
3667
|
generationTemplate: generationTemplateRequestSchema.optional(),
|
|
3668
|
+
/** Server-assigned strict position within the chat thread. */
|
|
3669
|
+
seqId: external_exports.number().int().positive(),
|
|
3645
3670
|
sequenceNumber: external_exports.number().nullable().optional(),
|
|
3646
3671
|
workflowSnapshot: workflowSnapshotSchema.optional(),
|
|
3647
3672
|
createdAt: external_exports.string()
|
|
@@ -4180,6 +4205,7 @@ var chatSearchMessageSchema = external_exports.object({
|
|
|
4180
4205
|
role: external_exports.enum(["user", "assistant"]),
|
|
4181
4206
|
content: external_exports.string(),
|
|
4182
4207
|
createdAt: external_exports.string(),
|
|
4208
|
+
seqId: external_exports.number().int().positive(),
|
|
4183
4209
|
sequenceNumber: external_exports.number().nullable(),
|
|
4184
4210
|
runId: external_exports.string().nullable()
|
|
4185
4211
|
});
|
|
@@ -4223,6 +4249,10 @@ var chatThreadMessagesContract = c14.router({
|
|
|
4223
4249
|
headers: authHeadersSchema,
|
|
4224
4250
|
pathParams: chatThreadThreadIdPathParamsSchema,
|
|
4225
4251
|
query: external_exports.object({
|
|
4252
|
+
sinceSeqId: external_exports.coerce.number().int().positive().optional(),
|
|
4253
|
+
beforeSeqId: external_exports.coerce.number().int().positive().optional(),
|
|
4254
|
+
// Remove after browser clients from the pre-seqId release can no longer
|
|
4255
|
+
// remain active against the current backend.
|
|
4226
4256
|
sinceId: external_exports.string().uuid().optional(),
|
|
4227
4257
|
beforeId: external_exports.string().uuid().optional(),
|
|
4228
4258
|
limit: external_exports.coerce.number().min(1).max(50).default(50)
|
|
@@ -11257,12 +11287,32 @@ var integrationsTelegramBotListContract = c36.router({
|
|
|
11257
11287
|
});
|
|
11258
11288
|
var slackUploadInitBodySchema = external_exports.object({
|
|
11259
11289
|
filename: external_exports.string().min(1, "Filename is required"),
|
|
11260
|
-
length: external_exports.number().int().positive("File length must be a positive integer")
|
|
11290
|
+
length: external_exports.number().int().positive("File length must be a positive integer"),
|
|
11291
|
+
canonical: external_exports.object({
|
|
11292
|
+
operationId: external_exports.string().uuid(),
|
|
11293
|
+
contentType: external_exports.string().min(1).max(200),
|
|
11294
|
+
checksumSha256: external_exports.string().regex(/^[a-f0-9]{64}$/),
|
|
11295
|
+
channel: external_exports.string().min(1, "Channel ID is required"),
|
|
11296
|
+
threadTs: external_exports.string().optional(),
|
|
11297
|
+
title: external_exports.string().optional(),
|
|
11298
|
+
initialComment: external_exports.string().optional()
|
|
11299
|
+
}).optional()
|
|
11261
11300
|
});
|
|
11262
|
-
var
|
|
11301
|
+
var directSlackUploadInitResponseSchema = external_exports.object({
|
|
11263
11302
|
uploadUrl: external_exports.string(),
|
|
11264
11303
|
fileId: external_exports.string()
|
|
11265
11304
|
});
|
|
11305
|
+
var canonicalSlackUploadInitResponseSchema = external_exports.object({
|
|
11306
|
+
kind: external_exports.literal("canonical"),
|
|
11307
|
+
assetId: external_exports.string().uuid(),
|
|
11308
|
+
operationId: external_exports.string().uuid(),
|
|
11309
|
+
uploadUrl: external_exports.string().url().optional(),
|
|
11310
|
+
url: external_exports.string().url()
|
|
11311
|
+
});
|
|
11312
|
+
var slackUploadInitResponseSchema = external_exports.union([
|
|
11313
|
+
directSlackUploadInitResponseSchema,
|
|
11314
|
+
canonicalSlackUploadInitResponseSchema
|
|
11315
|
+
]);
|
|
11266
11316
|
var integrationsSlackUploadInitContract = c36.router({
|
|
11267
11317
|
init: {
|
|
11268
11318
|
method: "POST",
|
|
@@ -11279,6 +11329,47 @@ var integrationsSlackUploadInitContract = c36.router({
|
|
|
11279
11329
|
summary: "Get a pre-signed Slack upload URL via org bot token"
|
|
11280
11330
|
}
|
|
11281
11331
|
});
|
|
11332
|
+
var slackUploadMaterializeBodySchema = external_exports.object({
|
|
11333
|
+
assetId: external_exports.string().uuid(),
|
|
11334
|
+
operationId: external_exports.string().uuid()
|
|
11335
|
+
});
|
|
11336
|
+
var slackUploadMaterializeResponseSchema = external_exports.object({
|
|
11337
|
+
assetId: external_exports.string().uuid(),
|
|
11338
|
+
url: external_exports.string().url(),
|
|
11339
|
+
delivery: external_exports.discriminatedUnion("status", [
|
|
11340
|
+
external_exports.object({
|
|
11341
|
+
status: external_exports.literal("pending"),
|
|
11342
|
+
uploadUrl: external_exports.string(),
|
|
11343
|
+
fileId: external_exports.string()
|
|
11344
|
+
}),
|
|
11345
|
+
external_exports.object({
|
|
11346
|
+
status: external_exports.literal("delivered"),
|
|
11347
|
+
fileId: external_exports.string(),
|
|
11348
|
+
permalink: external_exports.string()
|
|
11349
|
+
}),
|
|
11350
|
+
external_exports.object({
|
|
11351
|
+
status: external_exports.literal("failed"),
|
|
11352
|
+
message: external_exports.string(),
|
|
11353
|
+
retryable: external_exports.boolean()
|
|
11354
|
+
})
|
|
11355
|
+
])
|
|
11356
|
+
});
|
|
11357
|
+
var integrationsSlackUploadMaterializeContract = c36.router({
|
|
11358
|
+
materialize: {
|
|
11359
|
+
method: "POST",
|
|
11360
|
+
path: "/api/zero/integrations/slack/upload-file/materialize",
|
|
11361
|
+
headers: authHeadersSchema,
|
|
11362
|
+
body: slackUploadMaterializeBodySchema,
|
|
11363
|
+
responses: {
|
|
11364
|
+
200: slackUploadMaterializeResponseSchema,
|
|
11365
|
+
400: apiErrorSchema,
|
|
11366
|
+
401: apiErrorSchema,
|
|
11367
|
+
403: apiErrorSchema,
|
|
11368
|
+
404: apiErrorSchema
|
|
11369
|
+
},
|
|
11370
|
+
summary: "Materialize a canonical Slack publication before delivery"
|
|
11371
|
+
}
|
|
11372
|
+
});
|
|
11282
11373
|
var telegramUploadInitBodySchema = external_exports.object({
|
|
11283
11374
|
filename: external_exports.string().min(1, "Filename is required").max(255),
|
|
11284
11375
|
contentType: external_exports.string().min(1, "Content type is required").max(200),
|
|
@@ -11532,11 +11623,18 @@ var slackUploadCompleteBodySchema = external_exports.object({
|
|
|
11532
11623
|
channel: external_exports.string().min(1, "Channel ID is required"),
|
|
11533
11624
|
threadTs: external_exports.string().optional(),
|
|
11534
11625
|
title: external_exports.string().optional(),
|
|
11535
|
-
initialComment: external_exports.string().optional()
|
|
11626
|
+
initialComment: external_exports.string().optional(),
|
|
11627
|
+
canonicalAssetId: external_exports.string().uuid().optional(),
|
|
11628
|
+
operationId: external_exports.string().uuid().optional(),
|
|
11629
|
+
uploadError: external_exports.string().max(2e3).optional()
|
|
11536
11630
|
});
|
|
11537
11631
|
var slackUploadCompleteResponseSchema = external_exports.object({
|
|
11538
11632
|
fileId: external_exports.string(),
|
|
11539
|
-
permalink: external_exports.string()
|
|
11633
|
+
permalink: external_exports.string(),
|
|
11634
|
+
assetId: external_exports.string().uuid().optional(),
|
|
11635
|
+
assetUrl: external_exports.string().url().optional(),
|
|
11636
|
+
deliveryStatus: external_exports.enum(["delivered", "failed"]).optional(),
|
|
11637
|
+
deliveryError: external_exports.string().optional()
|
|
11540
11638
|
});
|
|
11541
11639
|
var integrationsSlackUploadCompleteContract = c36.router({
|
|
11542
11640
|
complete: {
|
|
@@ -11583,6 +11681,15 @@ async function completeSlackFileUpload(body) {
|
|
|
11583
11681
|
}
|
|
11584
11682
|
handleError(result, "Failed to complete Slack file upload");
|
|
11585
11683
|
}
|
|
11684
|
+
async function materializeSlackFileUpload(body) {
|
|
11685
|
+
const config = await getClientConfig();
|
|
11686
|
+
const client = initClient(integrationsSlackUploadMaterializeContract, config);
|
|
11687
|
+
const result = await client.materialize({ body, headers: {} });
|
|
11688
|
+
if (result.status === 200) {
|
|
11689
|
+
return result.body;
|
|
11690
|
+
}
|
|
11691
|
+
handleError(result, "Failed to materialize Slack file upload");
|
|
11692
|
+
}
|
|
11586
11693
|
async function downloadSlackFile(fileId, outPath) {
|
|
11587
11694
|
const baseUrl = await getBaseUrl();
|
|
11588
11695
|
const token = await getActiveToken();
|
|
@@ -12193,6 +12300,7 @@ export {
|
|
|
12193
12300
|
sendSlackMessage,
|
|
12194
12301
|
initSlackFileUpload,
|
|
12195
12302
|
completeSlackFileUpload,
|
|
12303
|
+
materializeSlackFileUpload,
|
|
12196
12304
|
downloadSlackFile,
|
|
12197
12305
|
listTelegramBots,
|
|
12198
12306
|
sendTelegramMessage,
|
|
@@ -12262,4 +12370,4 @@ export {
|
|
|
12262
12370
|
getHostedSiteFiles,
|
|
12263
12371
|
getHostedSiteDeployments
|
|
12264
12372
|
};
|
|
12265
|
-
//# sourceMappingURL=chunk-
|
|
12373
|
+
//# sourceMappingURL=chunk-KQN5YZZP.js.map
|