@vm0/cli 9.247.1 → 9.248.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-3O7DLCI6.js → agent-2NW7BBLH.js} +5 -5
- package/{banking-N7TH3M6W.js → banking-WMZ5X4TD.js} +3 -3
- package/{chat-OBBQFVCB.js → chat-Z32JJCZG.js} +4 -4
- package/{chunk-Q7VOF4A7.js → chunk-2IFOM533.js} +2 -2
- package/{chunk-QRHGYCWC.js → chunk-D42LBTMI.js} +12 -11
- package/chunk-D42LBTMI.js.map +1 -0
- package/{chunk-OMHLRPHF.js → chunk-DXYKZPHD.js} +2 -2
- package/{chunk-VU77IVUB.js → chunk-HJMAS7QI.js} +4 -4
- package/{chunk-GKHJ3S5D.js → chunk-KU5PTS4H.js} +278 -54
- package/chunk-KU5PTS4H.js.map +1 -0
- package/{chunk-H2K5IOKP.js → chunk-N677KKA5.js} +2 -2
- package/{chunk-HURTTXSE.js → chunk-XMCVK5OU.js} +2 -2
- package/{chunk-DZD2Q43U.js → chunk-Y7PXYM7M.js} +2 -2
- package/{computer-use-DDLC5V5I.js → computer-use-Z5YA5PCS.js} +3 -3
- package/{connector-B5FZ7XAI.js → connector-GILJG3H2.js} +6 -6
- package/{credit-TQO2WBDH.js → credit-SHY372FA.js} +4 -4
- package/{developer-support-MD4JFNGZ.js → developer-support-OPEG7JPP.js} +3 -3
- package/{doctor-5MTAY24M.js → doctor-QVVF5PHS.js} +3 -3
- package/feishu-FKRRGMT2.js +118 -0
- package/feishu-FKRRGMT2.js.map +1 -0
- package/finance-LDOX64UG.js +127 -0
- package/finance-LDOX64UG.js.map +1 -0
- package/{generate-SM3OV5ZY.js → generate-CIXTADDH.js} +4 -4
- package/{github-WXLSVDOU.js → github-27EGMZM4.js} +3 -3
- package/{goal-PWPTJOJN.js → goal-MTTP4FTD.js} +3 -3
- package/{host-T577B7RC.js → host-5ACQBWFC.js} +3 -3
- package/{logs-FEVPNDNK.js → logs-WME2HGIQ.js} +4 -4
- package/{mail-TFOXDOES.js → mail-BYRRYI5S.js} +5 -5
- package/{maps-T4DRJFI4.js → maps-P7V44O5J.js} +3 -3
- package/{model-RBM5HPKS.js → model-THRT7DHX.js} +4 -4
- package/{model-provider-FF4FXASQ.js → model-provider-HQ2SXXG7.js} +4 -4
- package/{org-3QDTGZ2T.js → org-H742KQAG.js} +3 -3
- package/package.json +1 -1
- package/{phone-2HDY74SX.js → phone-ZLDFGYV5.js} +3 -3
- package/{preference-HQRO26MP.js → preference-MGBOHLDQ.js} +3 -3
- package/{resource-G6DNQIC7.js → resource-FGZYT5IL.js} +3 -3
- package/{scrape-YFDOJTOR.js → scrape-NCPUXX2W.js} +3 -3
- package/{search-BARFJYS3.js → search-TOPTC26C.js} +4 -4
- package/{secret-EYV5LULE.js → secret-P3BJRVBS.js} +3 -3
- package/{slack-GRHTZFLV.js → slack-FKK6PVKS.js} +3 -3
- package/{teams-IJX57ZTA.js → teams-IIXV5XX6.js} +3 -3
- package/{telegram-SDYOW52Z.js → telegram-RMSYD7AV.js} +3 -3
- package/{variable-YDBXBWEI.js → variable-S6I4UDAO.js} +3 -3
- package/{video-447INHV3.js → video-HADRKBLP.js} +2 -2
- package/{weather-2RRPLFNE.js → weather-L7QYR5VW.js} +3 -3
- package/{web-Q27RVDI3.js → web-FODYCSCR.js} +3 -3
- package/{web-search-ZCWKTFQE.js → web-search-55SSMXC7.js} +3 -3
- package/{whoami-KXICC7YZ.js → whoami-DT3WNKYG.js} +5 -5
- package/{workflow-ZTBOMB6B.js → workflow-H2IAFAGI.js} +3 -3
- package/zero.js +55 -37
- package/zero.js.map +1 -1
- package/chunk-GKHJ3S5D.js.map +0 -1
- package/chunk-QRHGYCWC.js.map +0 -1
- /package/{agent-3O7DLCI6.js.map → agent-2NW7BBLH.js.map} +0 -0
- /package/{banking-N7TH3M6W.js.map → banking-WMZ5X4TD.js.map} +0 -0
- /package/{chat-OBBQFVCB.js.map → chat-Z32JJCZG.js.map} +0 -0
- /package/{chunk-Q7VOF4A7.js.map → chunk-2IFOM533.js.map} +0 -0
- /package/{chunk-OMHLRPHF.js.map → chunk-DXYKZPHD.js.map} +0 -0
- /package/{chunk-VU77IVUB.js.map → chunk-HJMAS7QI.js.map} +0 -0
- /package/{chunk-H2K5IOKP.js.map → chunk-N677KKA5.js.map} +0 -0
- /package/{chunk-HURTTXSE.js.map → chunk-XMCVK5OU.js.map} +0 -0
- /package/{chunk-DZD2Q43U.js.map → chunk-Y7PXYM7M.js.map} +0 -0
- /package/{computer-use-DDLC5V5I.js.map → computer-use-Z5YA5PCS.js.map} +0 -0
- /package/{connector-B5FZ7XAI.js.map → connector-GILJG3H2.js.map} +0 -0
- /package/{credit-TQO2WBDH.js.map → credit-SHY372FA.js.map} +0 -0
- /package/{developer-support-MD4JFNGZ.js.map → developer-support-OPEG7JPP.js.map} +0 -0
- /package/{doctor-5MTAY24M.js.map → doctor-QVVF5PHS.js.map} +0 -0
- /package/{generate-SM3OV5ZY.js.map → generate-CIXTADDH.js.map} +0 -0
- /package/{github-WXLSVDOU.js.map → github-27EGMZM4.js.map} +0 -0
- /package/{goal-PWPTJOJN.js.map → goal-MTTP4FTD.js.map} +0 -0
- /package/{host-T577B7RC.js.map → host-5ACQBWFC.js.map} +0 -0
- /package/{logs-FEVPNDNK.js.map → logs-WME2HGIQ.js.map} +0 -0
- /package/{mail-TFOXDOES.js.map → mail-BYRRYI5S.js.map} +0 -0
- /package/{maps-T4DRJFI4.js.map → maps-P7V44O5J.js.map} +0 -0
- /package/{model-RBM5HPKS.js.map → model-THRT7DHX.js.map} +0 -0
- /package/{model-provider-FF4FXASQ.js.map → model-provider-HQ2SXXG7.js.map} +0 -0
- /package/{org-3QDTGZ2T.js.map → org-H742KQAG.js.map} +0 -0
- /package/{phone-2HDY74SX.js.map → phone-ZLDFGYV5.js.map} +0 -0
- /package/{preference-HQRO26MP.js.map → preference-MGBOHLDQ.js.map} +0 -0
- /package/{resource-G6DNQIC7.js.map → resource-FGZYT5IL.js.map} +0 -0
- /package/{scrape-YFDOJTOR.js.map → scrape-NCPUXX2W.js.map} +0 -0
- /package/{search-BARFJYS3.js.map → search-TOPTC26C.js.map} +0 -0
- /package/{secret-EYV5LULE.js.map → secret-P3BJRVBS.js.map} +0 -0
- /package/{slack-GRHTZFLV.js.map → slack-FKK6PVKS.js.map} +0 -0
- /package/{teams-IJX57ZTA.js.map → teams-IIXV5XX6.js.map} +0 -0
- /package/{telegram-SDYOW52Z.js.map → telegram-RMSYD7AV.js.map} +0 -0
- /package/{variable-YDBXBWEI.js.map → variable-S6I4UDAO.js.map} +0 -0
- /package/{video-447INHV3.js.map → video-HADRKBLP.js.map} +0 -0
- /package/{weather-2RRPLFNE.js.map → weather-L7QYR5VW.js.map} +0 -0
- /package/{web-Q27RVDI3.js.map → web-FODYCSCR.js.map} +0 -0
- /package/{web-search-ZCWKTFQE.js.map → web-search-55SSMXC7.js.map} +0 -0
- /package/{whoami-KXICC7YZ.js.map → whoami-DT3WNKYG.js.map} +0 -0
- /package/{workflow-ZTBOMB6B.js.map → workflow-H2IAFAGI.js.map} +0 -0
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
updateOrgModelPoliciesRequestSchema,
|
|
22
22
|
upsertModelProviderRequestSchema,
|
|
23
23
|
upsertModelProviderResponseSchema
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XMCVK5OU.js";
|
|
25
25
|
import {
|
|
26
26
|
__commonJS,
|
|
27
27
|
__esm,
|
|
@@ -9197,6 +9197,149 @@ async function callZeroWebSearch(body) {
|
|
|
9197
9197
|
handleError(result, "Failed to search the web");
|
|
9198
9198
|
}
|
|
9199
9199
|
|
|
9200
|
+
// ../../packages/api-contracts/src/contracts/zero-finance.ts
|
|
9201
|
+
init_esm_shims();
|
|
9202
|
+
var c31 = initContract();
|
|
9203
|
+
var ZERO_FINANCE_DEFAULT_RANGE = "1y";
|
|
9204
|
+
var ZERO_FINANCE_DEFAULT_INTERVAL = "1d";
|
|
9205
|
+
var ZERO_FINANCE_MAX_QUERY_CHARS = 512;
|
|
9206
|
+
var ZERO_FINANCE_MAX_SYMBOL_CHARS = 64;
|
|
9207
|
+
var zeroFinanceRangeSchema = external_exports.enum([
|
|
9208
|
+
"1d",
|
|
9209
|
+
"5d",
|
|
9210
|
+
"1mo",
|
|
9211
|
+
"3mo",
|
|
9212
|
+
"6mo",
|
|
9213
|
+
"1y",
|
|
9214
|
+
"2y",
|
|
9215
|
+
"5y",
|
|
9216
|
+
"10y",
|
|
9217
|
+
"ytd",
|
|
9218
|
+
"max"
|
|
9219
|
+
]);
|
|
9220
|
+
var zeroFinanceIntervalSchema = external_exports.enum([
|
|
9221
|
+
"1m",
|
|
9222
|
+
"2m",
|
|
9223
|
+
"5m",
|
|
9224
|
+
"15m",
|
|
9225
|
+
"30m",
|
|
9226
|
+
"60m",
|
|
9227
|
+
"1d",
|
|
9228
|
+
"1wk",
|
|
9229
|
+
"1mo"
|
|
9230
|
+
]);
|
|
9231
|
+
var zeroFinanceSearchRequestSchema = external_exports.object({
|
|
9232
|
+
query: external_exports.string().trim().min(1).max(ZERO_FINANCE_MAX_QUERY_CHARS)
|
|
9233
|
+
});
|
|
9234
|
+
var zeroFinanceSymbolSchema = external_exports.string().trim().min(1).max(ZERO_FINANCE_MAX_SYMBOL_CHARS);
|
|
9235
|
+
var zeroFinanceProfileRequestSchema = external_exports.object({
|
|
9236
|
+
symbol: zeroFinanceSymbolSchema
|
|
9237
|
+
});
|
|
9238
|
+
var zeroFinanceQuoteRequestSchema = external_exports.object({
|
|
9239
|
+
symbol: zeroFinanceSymbolSchema
|
|
9240
|
+
});
|
|
9241
|
+
var zeroFinanceChartRequestSchema = external_exports.object({
|
|
9242
|
+
symbol: zeroFinanceSymbolSchema,
|
|
9243
|
+
range: zeroFinanceRangeSchema.default(ZERO_FINANCE_DEFAULT_RANGE),
|
|
9244
|
+
interval: zeroFinanceIntervalSchema.default(ZERO_FINANCE_DEFAULT_INTERVAL)
|
|
9245
|
+
});
|
|
9246
|
+
var zeroFinanceOperationSchema = external_exports.enum([
|
|
9247
|
+
"search",
|
|
9248
|
+
"profile",
|
|
9249
|
+
"quote",
|
|
9250
|
+
"chart"
|
|
9251
|
+
]);
|
|
9252
|
+
var zeroFinanceResponseSchema = external_exports.object({
|
|
9253
|
+
operation: zeroFinanceOperationSchema,
|
|
9254
|
+
provider: external_exports.literal("apidojo"),
|
|
9255
|
+
billingCategory: external_exports.literal("request"),
|
|
9256
|
+
billingQuantity: external_exports.literal(1),
|
|
9257
|
+
creditsCharged: external_exports.number().int().nonnegative(),
|
|
9258
|
+
result: external_exports.unknown()
|
|
9259
|
+
});
|
|
9260
|
+
var financeResponses = {
|
|
9261
|
+
200: zeroFinanceResponseSchema,
|
|
9262
|
+
400: apiErrorSchema,
|
|
9263
|
+
401: apiErrorSchema,
|
|
9264
|
+
402: apiErrorSchema,
|
|
9265
|
+
403: apiErrorSchema,
|
|
9266
|
+
502: apiErrorSchema,
|
|
9267
|
+
503: apiErrorSchema
|
|
9268
|
+
};
|
|
9269
|
+
var zeroFinanceContract = c31.router({
|
|
9270
|
+
search: {
|
|
9271
|
+
method: "POST",
|
|
9272
|
+
path: "/api/zero/finance/search",
|
|
9273
|
+
headers: authHeadersSchema,
|
|
9274
|
+
body: zeroFinanceSearchRequestSchema,
|
|
9275
|
+
responses: financeResponses,
|
|
9276
|
+
summary: "Search financial instruments through managed Zero Finance"
|
|
9277
|
+
},
|
|
9278
|
+
profile: {
|
|
9279
|
+
method: "POST",
|
|
9280
|
+
path: "/api/zero/finance/profile",
|
|
9281
|
+
headers: authHeadersSchema,
|
|
9282
|
+
body: zeroFinanceProfileRequestSchema,
|
|
9283
|
+
responses: financeResponses,
|
|
9284
|
+
summary: "Fetch a company profile through managed Zero Finance"
|
|
9285
|
+
},
|
|
9286
|
+
quote: {
|
|
9287
|
+
method: "POST",
|
|
9288
|
+
path: "/api/zero/finance/quote",
|
|
9289
|
+
headers: authHeadersSchema,
|
|
9290
|
+
body: zeroFinanceQuoteRequestSchema,
|
|
9291
|
+
responses: financeResponses,
|
|
9292
|
+
summary: "Fetch a market quote through managed Zero Finance"
|
|
9293
|
+
},
|
|
9294
|
+
chart: {
|
|
9295
|
+
method: "POST",
|
|
9296
|
+
path: "/api/zero/finance/chart",
|
|
9297
|
+
headers: authHeadersSchema,
|
|
9298
|
+
body: zeroFinanceChartRequestSchema,
|
|
9299
|
+
responses: financeResponses,
|
|
9300
|
+
summary: "Fetch market chart data through managed Zero Finance"
|
|
9301
|
+
}
|
|
9302
|
+
});
|
|
9303
|
+
|
|
9304
|
+
// src/lib/api/domains/zero-finance.ts
|
|
9305
|
+
init_esm_shims();
|
|
9306
|
+
async function callZeroFinanceSearch(body) {
|
|
9307
|
+
const config = await getClientConfig();
|
|
9308
|
+
const client = initClient(zeroFinanceContract, config);
|
|
9309
|
+
const result = await client.search({ headers: {}, body });
|
|
9310
|
+
if (result.status === 200) {
|
|
9311
|
+
return result.body;
|
|
9312
|
+
}
|
|
9313
|
+
handleError(result, "Failed to search financial instruments");
|
|
9314
|
+
}
|
|
9315
|
+
async function callZeroFinanceProfile(body) {
|
|
9316
|
+
const config = await getClientConfig();
|
|
9317
|
+
const client = initClient(zeroFinanceContract, config);
|
|
9318
|
+
const result = await client.profile({ headers: {}, body });
|
|
9319
|
+
if (result.status === 200) {
|
|
9320
|
+
return result.body;
|
|
9321
|
+
}
|
|
9322
|
+
handleError(result, "Failed to fetch finance profile");
|
|
9323
|
+
}
|
|
9324
|
+
async function callZeroFinanceQuote(body) {
|
|
9325
|
+
const config = await getClientConfig();
|
|
9326
|
+
const client = initClient(zeroFinanceContract, config);
|
|
9327
|
+
const result = await client.quote({ headers: {}, body });
|
|
9328
|
+
if (result.status === 200) {
|
|
9329
|
+
return result.body;
|
|
9330
|
+
}
|
|
9331
|
+
handleError(result, "Failed to fetch finance quote");
|
|
9332
|
+
}
|
|
9333
|
+
async function callZeroFinanceChart(body) {
|
|
9334
|
+
const config = await getClientConfig();
|
|
9335
|
+
const client = initClient(zeroFinanceContract, config);
|
|
9336
|
+
const result = await client.chart({ headers: {}, body });
|
|
9337
|
+
if (result.status === 200) {
|
|
9338
|
+
return result.body;
|
|
9339
|
+
}
|
|
9340
|
+
handleError(result, "Failed to fetch finance chart");
|
|
9341
|
+
}
|
|
9342
|
+
|
|
9200
9343
|
// src/lib/api/domains/zero-banking.ts
|
|
9201
9344
|
init_esm_shims();
|
|
9202
9345
|
function authenticatedJsonHeaders3(token) {
|
|
@@ -9317,8 +9460,8 @@ var setVariableRequestSchema = external_exports.object({
|
|
|
9317
9460
|
});
|
|
9318
9461
|
|
|
9319
9462
|
// ../../packages/api-contracts/src/contracts/zero-secrets.ts
|
|
9320
|
-
var
|
|
9321
|
-
var zeroSecretsContract =
|
|
9463
|
+
var c32 = initContract();
|
|
9464
|
+
var zeroSecretsContract = c32.router({
|
|
9322
9465
|
list: {
|
|
9323
9466
|
method: "GET",
|
|
9324
9467
|
path: "/api/zero/secrets",
|
|
@@ -9345,7 +9488,7 @@ var zeroSecretsContract = c31.router({
|
|
|
9345
9488
|
summary: "Create or update a secret"
|
|
9346
9489
|
}
|
|
9347
9490
|
});
|
|
9348
|
-
var zeroSecretsByNameContract =
|
|
9491
|
+
var zeroSecretsByNameContract = c32.router({
|
|
9349
9492
|
delete: {
|
|
9350
9493
|
method: "DELETE",
|
|
9351
9494
|
path: "/api/zero/secrets/:name",
|
|
@@ -9354,7 +9497,7 @@ var zeroSecretsByNameContract = c31.router({
|
|
|
9354
9497
|
name: secretNameSchema
|
|
9355
9498
|
}),
|
|
9356
9499
|
responses: {
|
|
9357
|
-
204:
|
|
9500
|
+
204: c32.noBody(),
|
|
9358
9501
|
401: apiErrorSchema,
|
|
9359
9502
|
404: apiErrorSchema,
|
|
9360
9503
|
500: apiErrorSchema
|
|
@@ -9362,7 +9505,7 @@ var zeroSecretsByNameContract = c31.router({
|
|
|
9362
9505
|
summary: "Delete a secret by name"
|
|
9363
9506
|
}
|
|
9364
9507
|
});
|
|
9365
|
-
var zeroVariablesContract =
|
|
9508
|
+
var zeroVariablesContract = c32.router({
|
|
9366
9509
|
list: {
|
|
9367
9510
|
method: "GET",
|
|
9368
9511
|
path: "/api/zero/variables",
|
|
@@ -9389,7 +9532,7 @@ var zeroVariablesContract = c31.router({
|
|
|
9389
9532
|
summary: "Create or update a variable"
|
|
9390
9533
|
}
|
|
9391
9534
|
});
|
|
9392
|
-
var zeroVariablesByNameContract =
|
|
9535
|
+
var zeroVariablesByNameContract = c32.router({
|
|
9393
9536
|
delete: {
|
|
9394
9537
|
method: "DELETE",
|
|
9395
9538
|
path: "/api/zero/variables/:name",
|
|
@@ -9398,7 +9541,7 @@ var zeroVariablesByNameContract = c31.router({
|
|
|
9398
9541
|
name: variableNameSchema
|
|
9399
9542
|
}),
|
|
9400
9543
|
responses: {
|
|
9401
|
-
204:
|
|
9544
|
+
204: c32.noBody(),
|
|
9402
9545
|
401: apiErrorSchema,
|
|
9403
9546
|
404: apiErrorSchema,
|
|
9404
9547
|
500: apiErrorSchema
|
|
@@ -9539,9 +9682,9 @@ init_esm_shims();
|
|
|
9539
9682
|
|
|
9540
9683
|
// ../../packages/api-contracts/src/contracts/zero-model-providers.ts
|
|
9541
9684
|
init_esm_shims();
|
|
9542
|
-
var
|
|
9685
|
+
var c33 = initContract();
|
|
9543
9686
|
var orgUpsertModelProviderRequestSchema = upsertModelProviderRequestSchema.omit({ selectedModel: true });
|
|
9544
|
-
var zeroModelProvidersMainContract =
|
|
9687
|
+
var zeroModelProvidersMainContract = c33.router({
|
|
9545
9688
|
list: {
|
|
9546
9689
|
method: "GET",
|
|
9547
9690
|
path: "/api/zero/model-providers",
|
|
@@ -9570,7 +9713,7 @@ var zeroModelProvidersMainContract = c32.router({
|
|
|
9570
9713
|
summary: "Create or update an org-level model provider (admin only)"
|
|
9571
9714
|
}
|
|
9572
9715
|
});
|
|
9573
|
-
var zeroModelProvidersByTypeContract =
|
|
9716
|
+
var zeroModelProvidersByTypeContract = c33.router({
|
|
9574
9717
|
delete: {
|
|
9575
9718
|
method: "DELETE",
|
|
9576
9719
|
path: "/api/zero/model-providers/:type",
|
|
@@ -9579,7 +9722,7 @@ var zeroModelProvidersByTypeContract = c32.router({
|
|
|
9579
9722
|
type: modelProviderTypeSchema
|
|
9580
9723
|
}),
|
|
9581
9724
|
responses: {
|
|
9582
|
-
204:
|
|
9725
|
+
204: c33.noBody(),
|
|
9583
9726
|
401: apiErrorSchema,
|
|
9584
9727
|
403: apiErrorSchema,
|
|
9585
9728
|
404: apiErrorSchema,
|
|
@@ -9625,7 +9768,7 @@ init_esm_shims();
|
|
|
9625
9768
|
|
|
9626
9769
|
// ../../packages/api-contracts/src/contracts/zero-workflows.ts
|
|
9627
9770
|
init_esm_shims();
|
|
9628
|
-
var
|
|
9771
|
+
var c34 = initContract();
|
|
9629
9772
|
var zeroWorkflowVisibilitySchema = external_exports.enum(["public", "private"]);
|
|
9630
9773
|
var zeroWorkflowNameSchema = external_exports.string().min(2).max(64).regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]$/);
|
|
9631
9774
|
var RESERVED_SKILL_FILE = "SKILL.md";
|
|
@@ -10268,7 +10411,7 @@ var zeroWorkflowConnectorReadinessResponseSchema = external_exports.object({
|
|
|
10268
10411
|
connectors: external_exports.array(zeroWorkflowConnectorReadinessEntrySchema)
|
|
10269
10412
|
}).strict();
|
|
10270
10413
|
var workflowIdParams = external_exports.object({ workflowId: external_exports.string().uuid() });
|
|
10271
|
-
var zeroWorkflowsCollectionContract =
|
|
10414
|
+
var zeroWorkflowsCollectionContract = c34.router({
|
|
10272
10415
|
list: {
|
|
10273
10416
|
method: "GET",
|
|
10274
10417
|
path: "/api/zero/workflows",
|
|
@@ -10297,7 +10440,7 @@ var zeroWorkflowsCollectionContract = c33.router({
|
|
|
10297
10440
|
summary: "Create a workflow under an agent"
|
|
10298
10441
|
}
|
|
10299
10442
|
});
|
|
10300
|
-
var zeroWorkflowsDetailContract =
|
|
10443
|
+
var zeroWorkflowsDetailContract = c34.router({
|
|
10301
10444
|
get: {
|
|
10302
10445
|
method: "GET",
|
|
10303
10446
|
path: "/api/zero/workflows/:workflowId",
|
|
@@ -10332,9 +10475,9 @@ var zeroWorkflowsDetailContract = c33.router({
|
|
|
10332
10475
|
path: "/api/zero/workflows/:workflowId",
|
|
10333
10476
|
headers: authHeadersSchema,
|
|
10334
10477
|
pathParams: workflowIdParams,
|
|
10335
|
-
body:
|
|
10478
|
+
body: c34.noBody(),
|
|
10336
10479
|
responses: {
|
|
10337
|
-
204:
|
|
10480
|
+
204: c34.noBody(),
|
|
10338
10481
|
401: apiErrorSchema,
|
|
10339
10482
|
403: apiErrorSchema,
|
|
10340
10483
|
404: apiErrorSchema
|
|
@@ -10362,7 +10505,7 @@ var zeroWorkflowsDetailContract = c33.router({
|
|
|
10362
10505
|
path: "/api/zero/workflows/:workflowId/chat-thread",
|
|
10363
10506
|
headers: authHeadersSchema,
|
|
10364
10507
|
pathParams: workflowIdParams,
|
|
10365
|
-
body:
|
|
10508
|
+
body: c34.noBody(),
|
|
10366
10509
|
responses: {
|
|
10367
10510
|
200: zeroWorkflowChatThreadResponseSchema,
|
|
10368
10511
|
401: apiErrorSchema,
|
|
@@ -10376,7 +10519,7 @@ var zeroWorkflowsDetailContract = c33.router({
|
|
|
10376
10519
|
path: "/api/zero/workflows/:workflowId/run",
|
|
10377
10520
|
headers: authHeadersSchema,
|
|
10378
10521
|
pathParams: workflowIdParams,
|
|
10379
|
-
body:
|
|
10522
|
+
body: c34.noBody(),
|
|
10380
10523
|
responses: {
|
|
10381
10524
|
200: zeroWorkflowRunResponseSchema,
|
|
10382
10525
|
400: apiErrorSchema,
|
|
@@ -10393,7 +10536,7 @@ var zeroWorkflowsDetailContract = c33.router({
|
|
|
10393
10536
|
path: "/api/zero/workflows/:workflowId/connector-readiness",
|
|
10394
10537
|
headers: authHeadersSchema,
|
|
10395
10538
|
pathParams: workflowIdParams,
|
|
10396
|
-
body:
|
|
10539
|
+
body: c34.noBody(),
|
|
10397
10540
|
responses: {
|
|
10398
10541
|
200: zeroWorkflowConnectorReadinessResponseSchema,
|
|
10399
10542
|
400: apiErrorSchema,
|
|
@@ -10406,13 +10549,13 @@ var zeroWorkflowsDetailContract = c33.router({
|
|
|
10406
10549
|
summary: "Detect the built-in connectors a workflow may need and report their readiness"
|
|
10407
10550
|
}
|
|
10408
10551
|
});
|
|
10409
|
-
var zeroWorkflowVisibilityContract =
|
|
10552
|
+
var zeroWorkflowVisibilityContract = c34.router({
|
|
10410
10553
|
publish: {
|
|
10411
10554
|
method: "POST",
|
|
10412
10555
|
path: "/api/zero/workflows/:workflowId/publish",
|
|
10413
10556
|
headers: authHeadersSchema,
|
|
10414
10557
|
pathParams: workflowIdParams,
|
|
10415
|
-
body:
|
|
10558
|
+
body: c34.noBody(),
|
|
10416
10559
|
responses: {
|
|
10417
10560
|
200: zeroWorkflowSummarySchema,
|
|
10418
10561
|
400: apiErrorSchema,
|
|
@@ -10428,7 +10571,7 @@ var zeroWorkflowVisibilityContract = c33.router({
|
|
|
10428
10571
|
path: "/api/zero/workflows/:workflowId/demote",
|
|
10429
10572
|
headers: authHeadersSchema,
|
|
10430
10573
|
pathParams: workflowIdParams,
|
|
10431
|
-
body:
|
|
10574
|
+
body: c34.noBody(),
|
|
10432
10575
|
responses: {
|
|
10433
10576
|
200: zeroWorkflowSummarySchema,
|
|
10434
10577
|
400: apiErrorSchema,
|
|
@@ -10446,7 +10589,7 @@ var zeroWorkflowWebhookSecretResponseSchema = external_exports.object({
|
|
|
10446
10589
|
webhookUrl: external_exports.url(),
|
|
10447
10590
|
webhookSecret: external_exports.string().min(1)
|
|
10448
10591
|
});
|
|
10449
|
-
var zeroWorkflowAutomationsContract =
|
|
10592
|
+
var zeroWorkflowAutomationsContract = c34.router({
|
|
10450
10593
|
listWorkspace: {
|
|
10451
10594
|
method: "GET",
|
|
10452
10595
|
path: "/api/zero/workflow-automations",
|
|
@@ -10535,9 +10678,9 @@ var zeroWorkflowAutomationsContract = c33.router({
|
|
|
10535
10678
|
path: "/api/zero/workflow-automations/:id",
|
|
10536
10679
|
headers: authHeadersSchema,
|
|
10537
10680
|
pathParams: automationIdParams,
|
|
10538
|
-
body:
|
|
10681
|
+
body: c34.noBody(),
|
|
10539
10682
|
responses: {
|
|
10540
|
-
204:
|
|
10683
|
+
204: c34.noBody(),
|
|
10541
10684
|
401: apiErrorSchema,
|
|
10542
10685
|
403: apiErrorSchema,
|
|
10543
10686
|
404: apiErrorSchema
|
|
@@ -10549,7 +10692,7 @@ var zeroWorkflowAutomationsContract = c33.router({
|
|
|
10549
10692
|
path: "/api/zero/workflow-automations/:id/enable",
|
|
10550
10693
|
headers: authHeadersSchema,
|
|
10551
10694
|
pathParams: automationIdParams,
|
|
10552
|
-
body:
|
|
10695
|
+
body: c34.noBody(),
|
|
10553
10696
|
responses: {
|
|
10554
10697
|
200: zeroWorkflowAutomationSummarySchema,
|
|
10555
10698
|
400: apiErrorSchema,
|
|
@@ -10566,7 +10709,7 @@ var zeroWorkflowAutomationsContract = c33.router({
|
|
|
10566
10709
|
path: "/api/zero/workflow-automations/:id/disable",
|
|
10567
10710
|
headers: authHeadersSchema,
|
|
10568
10711
|
pathParams: automationIdParams,
|
|
10569
|
-
body:
|
|
10712
|
+
body: c34.noBody(),
|
|
10570
10713
|
responses: {
|
|
10571
10714
|
200: zeroWorkflowAutomationSummarySchema,
|
|
10572
10715
|
401: apiErrorSchema,
|
|
@@ -10580,7 +10723,7 @@ var zeroWorkflowAutomationsContract = c33.router({
|
|
|
10580
10723
|
path: "/api/zero/workflow-automations/:id/run",
|
|
10581
10724
|
headers: authHeadersSchema,
|
|
10582
10725
|
pathParams: automationIdParams,
|
|
10583
|
-
body:
|
|
10726
|
+
body: c34.noBody(),
|
|
10584
10727
|
responses: {
|
|
10585
10728
|
201: zeroWorkflowRunResponseSchema,
|
|
10586
10729
|
400: apiErrorSchema,
|
|
@@ -10596,7 +10739,7 @@ var zeroWorkflowAutomationsContract = c33.router({
|
|
|
10596
10739
|
path: "/api/zero/workflow-automations/:id/webhook-secret",
|
|
10597
10740
|
headers: authHeadersSchema,
|
|
10598
10741
|
pathParams: automationIdParams,
|
|
10599
|
-
body:
|
|
10742
|
+
body: c34.noBody(),
|
|
10600
10743
|
responses: {
|
|
10601
10744
|
200: zeroWorkflowWebhookSecretResponseSchema,
|
|
10602
10745
|
401: apiErrorSchema,
|
|
@@ -10711,7 +10854,7 @@ init_esm_shims();
|
|
|
10711
10854
|
|
|
10712
10855
|
// ../../packages/api-contracts/src/contracts/zero-mail.ts
|
|
10713
10856
|
init_esm_shims();
|
|
10714
|
-
var
|
|
10857
|
+
var c35 = initContract();
|
|
10715
10858
|
var zeroMailProviderSchema = external_exports.enum(["gmail", "outlook"]);
|
|
10716
10859
|
var zeroMailDraftStatusSchema = external_exports.enum(["draft", "sent", "deleted"]);
|
|
10717
10860
|
var zeroMailAttachmentSchema = external_exports.object({
|
|
@@ -10757,7 +10900,7 @@ var zeroMailLinkResponseSchema = zeroMailDraftResponseSchema.pick({
|
|
|
10757
10900
|
var zeroMailDraftPathParamsSchema = external_exports.object({
|
|
10758
10901
|
mailDraftId: external_exports.string().uuid()
|
|
10759
10902
|
});
|
|
10760
|
-
var zeroMailContract =
|
|
10903
|
+
var zeroMailContract = c35.router({
|
|
10761
10904
|
linkDraft: {
|
|
10762
10905
|
method: "POST",
|
|
10763
10906
|
path: "/api/zero/mail/drafts/link",
|
|
@@ -10795,9 +10938,9 @@ var zeroMailContract = c34.router({
|
|
|
10795
10938
|
path: "/api/zero/mail/drafts/:mailDraftId",
|
|
10796
10939
|
headers: authHeadersSchema,
|
|
10797
10940
|
pathParams: zeroMailDraftPathParamsSchema,
|
|
10798
|
-
body:
|
|
10941
|
+
body: c35.noBody(),
|
|
10799
10942
|
responses: {
|
|
10800
|
-
204:
|
|
10943
|
+
204: c35.noBody(),
|
|
10801
10944
|
401: apiErrorSchema,
|
|
10802
10945
|
403: apiErrorSchema,
|
|
10803
10946
|
404: apiErrorSchema,
|
|
@@ -10810,7 +10953,7 @@ var zeroMailContract = c34.router({
|
|
|
10810
10953
|
path: "/api/zero/mail/drafts/:mailDraftId/send",
|
|
10811
10954
|
headers: authHeadersSchema,
|
|
10812
10955
|
pathParams: zeroMailDraftPathParamsSchema,
|
|
10813
|
-
body:
|
|
10956
|
+
body: c35.noBody(),
|
|
10814
10957
|
responses: {
|
|
10815
10958
|
200: zeroMailDraftResponseSchema,
|
|
10816
10959
|
400: apiErrorSchema,
|
|
@@ -10848,7 +10991,7 @@ import { pipeline } from "stream/promises";
|
|
|
10848
10991
|
|
|
10849
10992
|
// ../../packages/api-contracts/src/contracts/integrations.ts
|
|
10850
10993
|
init_esm_shims();
|
|
10851
|
-
var
|
|
10994
|
+
var c36 = initContract();
|
|
10852
10995
|
var sendSlackMessageBodySchema = external_exports.object({
|
|
10853
10996
|
channel: external_exports.string().min(1, "Channel ID is required").optional(),
|
|
10854
10997
|
user: external_exports.string().min(1, "User ID is required").optional(),
|
|
@@ -10866,7 +11009,7 @@ var sendSlackMessageResponseSchema = external_exports.object({
|
|
|
10866
11009
|
ts: external_exports.string().optional(),
|
|
10867
11010
|
channel: external_exports.string().optional()
|
|
10868
11011
|
});
|
|
10869
|
-
var integrationsSlackMessageContract =
|
|
11012
|
+
var integrationsSlackMessageContract = c36.router({
|
|
10870
11013
|
sendMessage: {
|
|
10871
11014
|
method: "POST",
|
|
10872
11015
|
path: "/api/zero/integrations/slack/message",
|
|
@@ -10882,6 +11025,62 @@ var integrationsSlackMessageContract = c35.router({
|
|
|
10882
11025
|
summary: "Send a Slack message via org bot token"
|
|
10883
11026
|
}
|
|
10884
11027
|
});
|
|
11028
|
+
var feishuCardSchema = external_exports.record(external_exports.string(), external_exports.unknown());
|
|
11029
|
+
var sendFeishuMessageBodySchema = external_exports.object({
|
|
11030
|
+
installationId: external_exports.string().uuid().optional(),
|
|
11031
|
+
chat: external_exports.string().min(1, "Chat ID is required").optional(),
|
|
11032
|
+
user: external_exports.string().min(1, "Feishu open ID is required").optional(),
|
|
11033
|
+
replyToMessageId: external_exports.string().min(1, "Message ID is required").optional(),
|
|
11034
|
+
replyInThread: external_exports.boolean().optional(),
|
|
11035
|
+
text: external_exports.string().min(1, "Message text is required").optional(),
|
|
11036
|
+
card: feishuCardSchema.optional()
|
|
11037
|
+
}).refine(
|
|
11038
|
+
(body) => {
|
|
11039
|
+
return [body.chat, body.user, body.replyToMessageId].filter(Boolean).length === 1;
|
|
11040
|
+
},
|
|
11041
|
+
{
|
|
11042
|
+
message: "Exactly one of chat, user, or replyToMessageId is required",
|
|
11043
|
+
path: ["chat"]
|
|
11044
|
+
}
|
|
11045
|
+
).refine(
|
|
11046
|
+
(body) => {
|
|
11047
|
+
return Boolean(body.text) !== Boolean(body.card);
|
|
11048
|
+
},
|
|
11049
|
+
{
|
|
11050
|
+
message: "Exactly one of text or card is required",
|
|
11051
|
+
path: ["text"]
|
|
11052
|
+
}
|
|
11053
|
+
).refine(
|
|
11054
|
+
(body) => {
|
|
11055
|
+
return !body.replyInThread || Boolean(body.replyToMessageId);
|
|
11056
|
+
},
|
|
11057
|
+
{
|
|
11058
|
+
message: "replyInThread requires replyToMessageId",
|
|
11059
|
+
path: ["replyInThread"]
|
|
11060
|
+
}
|
|
11061
|
+
);
|
|
11062
|
+
var sendFeishuMessageResponseSchema = external_exports.object({
|
|
11063
|
+
ok: external_exports.literal(true),
|
|
11064
|
+
messageId: external_exports.string(),
|
|
11065
|
+
chatId: external_exports.string().nullable()
|
|
11066
|
+
});
|
|
11067
|
+
var integrationsFeishuMessageContract = c36.router({
|
|
11068
|
+
sendMessage: {
|
|
11069
|
+
method: "POST",
|
|
11070
|
+
path: "/api/zero/integrations/feishu/message",
|
|
11071
|
+
headers: authHeadersSchema,
|
|
11072
|
+
body: sendFeishuMessageBodySchema,
|
|
11073
|
+
responses: {
|
|
11074
|
+
200: sendFeishuMessageResponseSchema,
|
|
11075
|
+
400: apiErrorSchema,
|
|
11076
|
+
401: apiErrorSchema,
|
|
11077
|
+
403: apiErrorSchema,
|
|
11078
|
+
404: apiErrorSchema,
|
|
11079
|
+
502: apiErrorSchema
|
|
11080
|
+
},
|
|
11081
|
+
summary: "Send a Feishu message via an organization custom app"
|
|
11082
|
+
}
|
|
11083
|
+
});
|
|
10885
11084
|
var sendTelegramMessageBodySchema = external_exports.object({
|
|
10886
11085
|
botId: external_exports.string().min(1, "Bot ID is required"),
|
|
10887
11086
|
chatId: external_exports.string().min(1, "Chat ID is required"),
|
|
@@ -10894,7 +11093,7 @@ var sendTelegramMessageResponseSchema = external_exports.object({
|
|
|
10894
11093
|
messageId: external_exports.number().int(),
|
|
10895
11094
|
chatId: external_exports.string()
|
|
10896
11095
|
});
|
|
10897
|
-
var integrationsTelegramMessageContract =
|
|
11096
|
+
var integrationsTelegramMessageContract = c36.router({
|
|
10898
11097
|
sendMessage: {
|
|
10899
11098
|
method: "POST",
|
|
10900
11099
|
path: "/api/zero/integrations/telegram/message",
|
|
@@ -10953,7 +11152,7 @@ var sendTeamsMessageResponseSchema = external_exports.object({
|
|
|
10953
11152
|
activityId: external_exports.string().optional(),
|
|
10954
11153
|
conversationId: external_exports.string()
|
|
10955
11154
|
});
|
|
10956
|
-
var integrationsTeamsMessageContract =
|
|
11155
|
+
var integrationsTeamsMessageContract = c36.router({
|
|
10957
11156
|
sendMessage: {
|
|
10958
11157
|
method: "POST",
|
|
10959
11158
|
path: "/api/zero/integrations/teams/message",
|
|
@@ -10981,7 +11180,7 @@ var sendPhoneMessageResponseSchema = external_exports.object({
|
|
|
10981
11180
|
channel: external_exports.string().nullable(),
|
|
10982
11181
|
toNumber: external_exports.string()
|
|
10983
11182
|
});
|
|
10984
|
-
var integrationsPhoneMessageContract =
|
|
11183
|
+
var integrationsPhoneMessageContract = c36.router({
|
|
10985
11184
|
sendMessage: {
|
|
10986
11185
|
method: "POST",
|
|
10987
11186
|
path: "/api/zero/integrations/phone/message",
|
|
@@ -11001,14 +11200,14 @@ var integrationsPhoneMessageContract = c35.router({
|
|
|
11001
11200
|
var phoneDownloadFileQuerySchema = external_exports.object({
|
|
11002
11201
|
file_id: external_exports.string().min(1, "file_id query parameter is required")
|
|
11003
11202
|
});
|
|
11004
|
-
var integrationsPhoneDownloadFileContract =
|
|
11203
|
+
var integrationsPhoneDownloadFileContract = c36.router({
|
|
11005
11204
|
download: {
|
|
11006
11205
|
method: "GET",
|
|
11007
11206
|
path: "/api/zero/integrations/phone/download-file",
|
|
11008
11207
|
headers: authHeadersSchema,
|
|
11009
11208
|
query: phoneDownloadFileQuerySchema,
|
|
11010
11209
|
responses: {
|
|
11011
|
-
200:
|
|
11210
|
+
200: c36.type(),
|
|
11012
11211
|
400: apiErrorSchema,
|
|
11013
11212
|
401: apiErrorSchema,
|
|
11014
11213
|
403: apiErrorSchema,
|
|
@@ -11043,7 +11242,7 @@ var telegramBotListItemSchema = external_exports.object({
|
|
|
11043
11242
|
var listTelegramBotsResponseSchema = external_exports.object({
|
|
11044
11243
|
bots: external_exports.array(telegramBotListItemSchema)
|
|
11045
11244
|
});
|
|
11046
|
-
var integrationsTelegramBotListContract =
|
|
11245
|
+
var integrationsTelegramBotListContract = c36.router({
|
|
11047
11246
|
listBots: {
|
|
11048
11247
|
method: "GET",
|
|
11049
11248
|
path: "/api/zero/integrations/telegram/bots",
|
|
@@ -11064,7 +11263,7 @@ var slackUploadInitResponseSchema = external_exports.object({
|
|
|
11064
11263
|
uploadUrl: external_exports.string(),
|
|
11065
11264
|
fileId: external_exports.string()
|
|
11066
11265
|
});
|
|
11067
|
-
var integrationsSlackUploadInitContract =
|
|
11266
|
+
var integrationsSlackUploadInitContract = c36.router({
|
|
11068
11267
|
init: {
|
|
11069
11268
|
method: "POST",
|
|
11070
11269
|
path: "/api/zero/integrations/slack/upload-file/init",
|
|
@@ -11093,7 +11292,7 @@ var telegramUploadInitResponseSchema = external_exports.object({
|
|
|
11093
11292
|
contentType: external_exports.string(),
|
|
11094
11293
|
size: external_exports.number().int().nonnegative()
|
|
11095
11294
|
});
|
|
11096
|
-
var integrationsTelegramUploadInitContract =
|
|
11295
|
+
var integrationsTelegramUploadInitContract = c36.router({
|
|
11097
11296
|
init: {
|
|
11098
11297
|
method: "POST",
|
|
11099
11298
|
path: "/api/zero/integrations/telegram/upload-file/init",
|
|
@@ -11121,7 +11320,7 @@ var teamsUploadInitResponseSchema = external_exports.object({
|
|
|
11121
11320
|
contentType: external_exports.string(),
|
|
11122
11321
|
size: external_exports.number().int().nonnegative()
|
|
11123
11322
|
});
|
|
11124
|
-
var integrationsTeamsUploadInitContract =
|
|
11323
|
+
var integrationsTeamsUploadInitContract = c36.router({
|
|
11125
11324
|
init: {
|
|
11126
11325
|
method: "POST",
|
|
11127
11326
|
path: "/api/zero/integrations/teams/upload-file/init",
|
|
@@ -11153,7 +11352,7 @@ var telegramUploadCompleteResponseSchema = external_exports.object({
|
|
|
11153
11352
|
size: external_exports.number().int().nonnegative(),
|
|
11154
11353
|
url: external_exports.string()
|
|
11155
11354
|
});
|
|
11156
|
-
var integrationsTelegramUploadCompleteContract =
|
|
11355
|
+
var integrationsTelegramUploadCompleteContract = c36.router({
|
|
11157
11356
|
complete: {
|
|
11158
11357
|
method: "POST",
|
|
11159
11358
|
path: "/api/zero/integrations/telegram/upload-file/complete",
|
|
@@ -11185,7 +11384,7 @@ var teamsUploadCompleteResponseSchema = external_exports.object({
|
|
|
11185
11384
|
size: external_exports.number().int().nonnegative(),
|
|
11186
11385
|
url: external_exports.string()
|
|
11187
11386
|
});
|
|
11188
|
-
var integrationsTeamsUploadCompleteContract =
|
|
11387
|
+
var integrationsTeamsUploadCompleteContract = c36.router({
|
|
11189
11388
|
complete: {
|
|
11190
11389
|
method: "POST",
|
|
11191
11390
|
path: "/api/zero/integrations/teams/upload-file/complete",
|
|
@@ -11215,7 +11414,7 @@ var githubUploadInitResponseSchema = external_exports.object({
|
|
|
11215
11414
|
contentType: external_exports.string(),
|
|
11216
11415
|
size: external_exports.number().int().nonnegative()
|
|
11217
11416
|
});
|
|
11218
|
-
var integrationsGithubUploadInitContract =
|
|
11417
|
+
var integrationsGithubUploadInitContract = c36.router({
|
|
11219
11418
|
init: {
|
|
11220
11419
|
method: "POST",
|
|
11221
11420
|
path: "/api/zero/integrations/github/upload-file/init",
|
|
@@ -11249,7 +11448,7 @@ var githubUploadCompleteResponseSchema = external_exports.object({
|
|
|
11249
11448
|
size: external_exports.number().int().nonnegative(),
|
|
11250
11449
|
url: external_exports.string()
|
|
11251
11450
|
});
|
|
11252
|
-
var integrationsGithubUploadCompleteContract =
|
|
11451
|
+
var integrationsGithubUploadCompleteContract = c36.router({
|
|
11253
11452
|
complete: {
|
|
11254
11453
|
method: "POST",
|
|
11255
11454
|
path: "/api/zero/integrations/github/upload-file/complete",
|
|
@@ -11280,7 +11479,7 @@ var phoneUploadInitResponseSchema = external_exports.object({
|
|
|
11280
11479
|
contentType: external_exports.string(),
|
|
11281
11480
|
size: external_exports.number().int().nonnegative()
|
|
11282
11481
|
});
|
|
11283
|
-
var integrationsPhoneUploadInitContract =
|
|
11482
|
+
var integrationsPhoneUploadInitContract = c36.router({
|
|
11284
11483
|
init: {
|
|
11285
11484
|
method: "POST",
|
|
11286
11485
|
path: "/api/zero/integrations/phone/upload-file/init",
|
|
@@ -11311,7 +11510,7 @@ var phoneUploadCompleteResponseSchema = external_exports.object({
|
|
|
11311
11510
|
size: external_exports.number().int().nonnegative(),
|
|
11312
11511
|
url: external_exports.string()
|
|
11313
11512
|
});
|
|
11314
|
-
var integrationsPhoneUploadCompleteContract =
|
|
11513
|
+
var integrationsPhoneUploadCompleteContract = c36.router({
|
|
11315
11514
|
complete: {
|
|
11316
11515
|
method: "POST",
|
|
11317
11516
|
path: "/api/zero/integrations/phone/upload-file/complete",
|
|
@@ -11339,7 +11538,7 @@ var slackUploadCompleteResponseSchema = external_exports.object({
|
|
|
11339
11538
|
fileId: external_exports.string(),
|
|
11340
11539
|
permalink: external_exports.string()
|
|
11341
11540
|
});
|
|
11342
|
-
var integrationsSlackUploadCompleteContract =
|
|
11541
|
+
var integrationsSlackUploadCompleteContract = c36.router({
|
|
11343
11542
|
complete: {
|
|
11344
11543
|
method: "POST",
|
|
11345
11544
|
path: "/api/zero/integrations/slack/upload-file/complete",
|
|
@@ -11596,6 +11795,18 @@ async function downloadTeamsFile(fileId, outPath) {
|
|
|
11596
11795
|
return { path: outPath, mimetype, size };
|
|
11597
11796
|
}
|
|
11598
11797
|
|
|
11798
|
+
// src/lib/api/domains/integrations-feishu.ts
|
|
11799
|
+
init_esm_shims();
|
|
11800
|
+
async function sendFeishuMessage(body) {
|
|
11801
|
+
const config = await getClientConfig();
|
|
11802
|
+
const client = initClient(integrationsFeishuMessageContract, config);
|
|
11803
|
+
const result = await client.sendMessage({ body, headers: {} });
|
|
11804
|
+
if (result.status === 200) {
|
|
11805
|
+
return result.body;
|
|
11806
|
+
}
|
|
11807
|
+
handleError(result, "Failed to send Feishu message");
|
|
11808
|
+
}
|
|
11809
|
+
|
|
11599
11810
|
// src/lib/api/domains/integrations-github.ts
|
|
11600
11811
|
init_esm_shims();
|
|
11601
11812
|
import { createWriteStream as createWriteStream4 } from "fs";
|
|
@@ -11992,6 +12203,7 @@ export {
|
|
|
11992
12203
|
initTeamsFileUpload,
|
|
11993
12204
|
completeTeamsFileUpload,
|
|
11994
12205
|
downloadTeamsFile,
|
|
12206
|
+
sendFeishuMessage,
|
|
11995
12207
|
initGithubFileUpload,
|
|
11996
12208
|
completeGithubFileUpload,
|
|
11997
12209
|
downloadGithubFile,
|
|
@@ -12032,10 +12244,22 @@ export {
|
|
|
12032
12244
|
zeroWebSearchDomainSchema,
|
|
12033
12245
|
zeroWebSearchRequestSchema,
|
|
12034
12246
|
callZeroWebSearch,
|
|
12247
|
+
ZERO_FINANCE_DEFAULT_RANGE,
|
|
12248
|
+
ZERO_FINANCE_DEFAULT_INTERVAL,
|
|
12249
|
+
zeroFinanceRangeSchema,
|
|
12250
|
+
zeroFinanceIntervalSchema,
|
|
12251
|
+
zeroFinanceSearchRequestSchema,
|
|
12252
|
+
zeroFinanceProfileRequestSchema,
|
|
12253
|
+
zeroFinanceQuoteRequestSchema,
|
|
12254
|
+
zeroFinanceChartRequestSchema,
|
|
12255
|
+
callZeroFinanceSearch,
|
|
12256
|
+
callZeroFinanceProfile,
|
|
12257
|
+
callZeroFinanceQuote,
|
|
12258
|
+
callZeroFinanceChart,
|
|
12035
12259
|
callZeroBanking,
|
|
12036
12260
|
prepareHostedSite,
|
|
12037
12261
|
completeHostedSite,
|
|
12038
12262
|
getHostedSiteFiles,
|
|
12039
12263
|
getHostedSiteDeployments
|
|
12040
12264
|
};
|
|
12041
|
-
//# sourceMappingURL=chunk-
|
|
12265
|
+
//# sourceMappingURL=chunk-KU5PTS4H.js.map
|