@vm0/cli 9.232.4 → 9.233.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-6RZ5TXG7.js → agent-2NMGNWDY.js} +6 -6
- package/{banking-SQEP3SMH.js → banking-U6Q7CB7W.js} +4 -4
- package/{chat-RSFQKHCF.js → chat-U7VZIM6V.js} +6 -10
- package/chat-U7VZIM6V.js.map +1 -0
- package/{chunk-SUKOQSNM.js → chunk-3A4GGGLV.js} +4 -4
- package/{chunk-N5NDVXNC.js → chunk-7OLFWYPM.js} +2 -2
- package/{chunk-LC2TTEQI.js → chunk-AFOVQYFE.js} +317 -191
- package/chunk-AFOVQYFE.js.map +1 -0
- package/{chunk-2IMM4DX2.js → chunk-DHDXIAXW.js} +2 -2
- package/{chunk-MJGSJ3S6.js → chunk-JDZGXLVL.js} +2 -2
- package/{chunk-KJBGSPFK.js → chunk-KDG6XFHW.js} +472 -88
- package/chunk-KDG6XFHW.js.map +1 -0
- package/{chunk-JROCRGI2.js → chunk-QKGEAA34.js} +2 -2
- package/{chunk-V35DQCUN.js → chunk-TTDAWRVQ.js} +7 -3
- package/chunk-TTDAWRVQ.js.map +1 -0
- package/{chunk-CHL4TD4C.js → chunk-UHGN6PPB.js} +2 -2
- package/{chunk-HHUKGPZD.js → chunk-VZW6OC4W.js} +10 -10
- package/{chunk-HHUKGPZD.js.map → chunk-VZW6OC4W.js.map} +1 -1
- package/{chunk-VY6UIVFW.js → chunk-X4YTOQOA.js} +3 -3
- package/{chunk-5CMNI5NW.js → chunk-XE54WSEQ.js} +2 -2
- package/{computer-use-G7ENRPDN.js → computer-use-ZCLSIGLJ.js} +3 -3
- package/{connector-B4K6FZIP.js → connector-ETKTX2KV.js} +5 -5
- package/{credit-6K2DA6YX.js → credit-MQAHSYLZ.js} +5 -5
- package/{developer-support-BGAXGXX5.js → developer-support-ZUMQC64X.js} +4 -4
- package/{doctor-Y4PROHYE.js → doctor-ZM7UY6ZW.js} +16 -11
- package/doctor-ZM7UY6ZW.js.map +1 -0
- package/{generate-E22D7QYC.js → generate-6QJGYI76.js} +6 -6
- package/{github-M2CEDDHF.js → github-NDNMIH6Q.js} +4 -4
- package/{goal-LPZNMOCN.js → goal-XKGPSNAL.js} +4 -4
- package/{host-JJKKXKMY.js → host-2EWKDEYZ.js} +4 -4
- package/index.js +20 -20
- package/{logs-VQIBA6VG.js → logs-5REMR6RD.js} +9 -9
- package/{maps-GG4S36MJ.js → maps-555AR6ME.js} +4 -4
- package/{memory-73F5VWEZ.js → memory-2R7WM2PK.js} +4 -4
- package/{model-B4FVQXJH.js → model-FZIOCYE3.js} +5 -5
- package/{model-provider-A6NGRH43.js → model-provider-FGDSSIPM.js} +5 -5
- package/nintendo-store.generated-EPABCSLJ.js +16 -0
- package/nintendo-store.generated-EPABCSLJ.js.map +1 -0
- package/nintendo-store.generated-G6NIV5EQ.js +16 -0
- package/nintendo-store.generated-G6NIV5EQ.js.map +1 -0
- package/{org-KH44A56S.js → org-KIW6QO5A.js} +4 -4
- package/package.json +2 -2
- package/{phone-K4BCONX5.js → phone-U42UFRQE.js} +4 -4
- package/{preference-36IPIPCT.js → preference-2G6GDSOW.js} +4 -4
- package/{relationship-5VBZE6DS.js → relationship-IX7DCMRM.js} +4 -4
- package/{resource-FW4CH7Z2.js → resource-MBJUI57Q.js} +5 -5
- package/{search-MV2Y36DY.js → search-2NPVE5ZR.js} +9 -9
- package/{secret-WI424CFS.js → secret-Z5PJSYSX.js} +5 -5
- package/{slack-MBABKLM6.js → slack-DKKHC6GK.js} +4 -4
- package/{telegram-T3DOY5MC.js → telegram-WNEVFJCX.js} +4 -4
- package/{variable-DS3GBB3J.js → variable-AJFNE5OI.js} +4 -4
- package/{video-GFOWVP6A.js → video-6WNC7Q3C.js} +2 -2
- package/{web-HNDBWVY7.js → web-HBAHFN6M.js} +3 -3
- package/{whoami-DDN6LTUP.js → whoami-QJJRQIOA.js} +6 -6
- package/{workflow-MK2RRATX.js → workflow-CRNKBUZ7.js} +4 -4
- package/zero.js +33 -33
- package/chat-RSFQKHCF.js.map +0 -1
- package/chunk-KJBGSPFK.js.map +0 -1
- package/chunk-LC2TTEQI.js.map +0 -1
- package/chunk-V35DQCUN.js.map +0 -1
- package/doctor-Y4PROHYE.js.map +0 -1
- /package/{agent-6RZ5TXG7.js.map → agent-2NMGNWDY.js.map} +0 -0
- /package/{banking-SQEP3SMH.js.map → banking-U6Q7CB7W.js.map} +0 -0
- /package/{chunk-SUKOQSNM.js.map → chunk-3A4GGGLV.js.map} +0 -0
- /package/{chunk-N5NDVXNC.js.map → chunk-7OLFWYPM.js.map} +0 -0
- /package/{chunk-2IMM4DX2.js.map → chunk-DHDXIAXW.js.map} +0 -0
- /package/{chunk-MJGSJ3S6.js.map → chunk-JDZGXLVL.js.map} +0 -0
- /package/{chunk-JROCRGI2.js.map → chunk-QKGEAA34.js.map} +0 -0
- /package/{chunk-CHL4TD4C.js.map → chunk-UHGN6PPB.js.map} +0 -0
- /package/{chunk-VY6UIVFW.js.map → chunk-X4YTOQOA.js.map} +0 -0
- /package/{chunk-5CMNI5NW.js.map → chunk-XE54WSEQ.js.map} +0 -0
- /package/{computer-use-G7ENRPDN.js.map → computer-use-ZCLSIGLJ.js.map} +0 -0
- /package/{connector-B4K6FZIP.js.map → connector-ETKTX2KV.js.map} +0 -0
- /package/{credit-6K2DA6YX.js.map → credit-MQAHSYLZ.js.map} +0 -0
- /package/{developer-support-BGAXGXX5.js.map → developer-support-ZUMQC64X.js.map} +0 -0
- /package/{generate-E22D7QYC.js.map → generate-6QJGYI76.js.map} +0 -0
- /package/{github-M2CEDDHF.js.map → github-NDNMIH6Q.js.map} +0 -0
- /package/{goal-LPZNMOCN.js.map → goal-XKGPSNAL.js.map} +0 -0
- /package/{host-JJKKXKMY.js.map → host-2EWKDEYZ.js.map} +0 -0
- /package/{logs-VQIBA6VG.js.map → logs-5REMR6RD.js.map} +0 -0
- /package/{maps-GG4S36MJ.js.map → maps-555AR6ME.js.map} +0 -0
- /package/{memory-73F5VWEZ.js.map → memory-2R7WM2PK.js.map} +0 -0
- /package/{model-B4FVQXJH.js.map → model-FZIOCYE3.js.map} +0 -0
- /package/{model-provider-A6NGRH43.js.map → model-provider-FGDSSIPM.js.map} +0 -0
- /package/{org-KH44A56S.js.map → org-KIW6QO5A.js.map} +0 -0
- /package/{phone-K4BCONX5.js.map → phone-U42UFRQE.js.map} +0 -0
- /package/{preference-36IPIPCT.js.map → preference-2G6GDSOW.js.map} +0 -0
- /package/{relationship-5VBZE6DS.js.map → relationship-IX7DCMRM.js.map} +0 -0
- /package/{resource-FW4CH7Z2.js.map → resource-MBJUI57Q.js.map} +0 -0
- /package/{search-MV2Y36DY.js.map → search-2NPVE5ZR.js.map} +0 -0
- /package/{secret-WI424CFS.js.map → secret-Z5PJSYSX.js.map} +0 -0
- /package/{slack-MBABKLM6.js.map → slack-DKKHC6GK.js.map} +0 -0
- /package/{telegram-T3DOY5MC.js.map → telegram-WNEVFJCX.js.map} +0 -0
- /package/{variable-DS3GBB3J.js.map → variable-AJFNE5OI.js.map} +0 -0
- /package/{video-GFOWVP6A.js.map → video-6WNC7Q3C.js.map} +0 -0
- /package/{web-HNDBWVY7.js.map → web-HBAHFN6M.js.map} +0 -0
- /package/{whoami-DDN6LTUP.js.map → whoami-QJJRQIOA.js.map} +0 -0
- /package/{workflow-MK2RRATX.js.map → workflow-CRNKBUZ7.js.map} +0 -0
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
headersWithCliClientHeaders,
|
|
15
15
|
initClient,
|
|
16
16
|
initContract
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JDZGXLVL.js";
|
|
18
18
|
import {
|
|
19
19
|
init_esm_shims
|
|
20
20
|
} from "./chunk-DIRAZ3YX.js";
|
|
@@ -5400,7 +5400,6 @@ var zeroGoalsContract = c14.router({
|
|
|
5400
5400
|
|
|
5401
5401
|
// ../../packages/api-contracts/src/contracts/chat-threads.ts
|
|
5402
5402
|
var c15 = initContract();
|
|
5403
|
-
var MODEL_FIRST_SELECTION_PROVIDER_ID = "00000000-0000-4000-8000-000000000000";
|
|
5404
5403
|
var attachFileSchema = external_exports.object({
|
|
5405
5404
|
id: external_exports.string(),
|
|
5406
5405
|
filename: external_exports.string(),
|
|
@@ -5442,9 +5441,11 @@ var artifactItemSchema = external_exports.object({
|
|
|
5442
5441
|
filename: external_exports.string(),
|
|
5443
5442
|
contentType: external_exports.string(),
|
|
5444
5443
|
url: external_exports.string(),
|
|
5444
|
+
previewImageUrl: external_exports.string().optional(),
|
|
5445
5445
|
createdAt: external_exports.string(),
|
|
5446
5446
|
artifactKind: hostedArtifactKindSchema.optional(),
|
|
5447
|
-
googleDriveSync: chatThreadArtifactGoogleDriveSyncSchema.optional()
|
|
5447
|
+
googleDriveSync: chatThreadArtifactGoogleDriveSyncSchema.optional(),
|
|
5448
|
+
isFavorited: external_exports.boolean().optional()
|
|
5448
5449
|
});
|
|
5449
5450
|
var artifactsListQuerySchema = external_exports.object({
|
|
5450
5451
|
limit: external_exports.coerce.number().int().positive().max(1e4).optional(),
|
|
@@ -5463,6 +5464,9 @@ var artifactsListResponseSchema = external_exports.object({
|
|
|
5463
5464
|
*/
|
|
5464
5465
|
nextCursor: external_exports.string().nullable()
|
|
5465
5466
|
});
|
|
5467
|
+
var artifactFavoriteBodySchema = external_exports.object({
|
|
5468
|
+
artifactUrl: external_exports.string().min(1)
|
|
5469
|
+
});
|
|
5466
5470
|
var htmlArtifactEditSnapshotQuerySchema = external_exports.object({
|
|
5467
5471
|
url: external_exports.string().url()
|
|
5468
5472
|
});
|
|
@@ -5705,21 +5709,106 @@ var chatThreadDraftSchema = external_exports.object({
|
|
|
5705
5709
|
draftContent: external_exports.string().nullable(),
|
|
5706
5710
|
draftAttachments: external_exports.array(persistedAttachmentSchema).nullable()
|
|
5707
5711
|
});
|
|
5708
|
-
var
|
|
5709
|
-
|
|
5710
|
-
selectedModel: external_exports.string().min(1)
|
|
5711
|
-
}).superRefine((value, ctx) => {
|
|
5712
|
-
if (value.modelProviderId === MODEL_FIRST_SELECTION_PROVIDER_ID && !isSupportedRunModel(value.selectedModel)) {
|
|
5712
|
+
var selectedModelRequestSchema = external_exports.string().min(1).superRefine((value, ctx) => {
|
|
5713
|
+
if (!isSupportedRunModel(value)) {
|
|
5713
5714
|
ctx.addIssue({
|
|
5714
5715
|
code: external_exports.ZodIssueCode.custom,
|
|
5715
|
-
path: ["selectedModel"],
|
|
5716
5716
|
message: "Invalid model selection"
|
|
5717
5717
|
});
|
|
5718
5718
|
}
|
|
5719
5719
|
});
|
|
5720
|
+
function isRecord(value) {
|
|
5721
|
+
return typeof value === "object" && value !== null;
|
|
5722
|
+
}
|
|
5723
|
+
function legacyModelSelectionModel(value) {
|
|
5724
|
+
if (value === null) {
|
|
5725
|
+
return null;
|
|
5726
|
+
}
|
|
5727
|
+
if (!isRecord(value)) {
|
|
5728
|
+
return void 0;
|
|
5729
|
+
}
|
|
5730
|
+
const selectedModel = value.selectedModel;
|
|
5731
|
+
return typeof selectedModel === "string" ? selectedModel : void 0;
|
|
5732
|
+
}
|
|
5733
|
+
function normalizeLegacyModelSelectionInput(value, options) {
|
|
5734
|
+
if (!isRecord(value) || "model" in value || !("modelSelection" in value)) {
|
|
5735
|
+
return value;
|
|
5736
|
+
}
|
|
5737
|
+
const legacyModelSelection = legacyModelSelectionModel(value.modelSelection);
|
|
5738
|
+
if (legacyModelSelection === void 0 || legacyModelSelection === null && !options.allowNull) {
|
|
5739
|
+
return value;
|
|
5740
|
+
}
|
|
5741
|
+
return { ...value, model: legacyModelSelection };
|
|
5742
|
+
}
|
|
5743
|
+
var chatThreadCreateBodySchema = external_exports.preprocess(
|
|
5744
|
+
(value) => {
|
|
5745
|
+
return normalizeLegacyModelSelectionInput(value, { allowNull: false });
|
|
5746
|
+
},
|
|
5747
|
+
external_exports.object({
|
|
5748
|
+
agentId: external_exports.string().min(1),
|
|
5749
|
+
clientThreadId: external_exports.string().uuid().optional(),
|
|
5750
|
+
eventId: chatThreadEventIdSchema.optional(),
|
|
5751
|
+
/**
|
|
5752
|
+
* Selected model id. The API resolves the effective model provider from org
|
|
5753
|
+
* policy and available credentials.
|
|
5754
|
+
*/
|
|
5755
|
+
model: selectedModelRequestSchema,
|
|
5756
|
+
title: external_exports.string().optional()
|
|
5757
|
+
})
|
|
5758
|
+
);
|
|
5759
|
+
var chatThreadModelSelectionUpdateBodySchema = external_exports.preprocess(
|
|
5760
|
+
(value) => {
|
|
5761
|
+
return normalizeLegacyModelSelectionInput(value, { allowNull: true });
|
|
5762
|
+
},
|
|
5763
|
+
external_exports.object({
|
|
5764
|
+
/**
|
|
5765
|
+
* Selected model id, or null to clear the thread's selected model.
|
|
5766
|
+
*/
|
|
5767
|
+
model: selectedModelRequestSchema.nullable(),
|
|
5768
|
+
codexServiceTier: codexServiceTierSchema.nullable().optional(),
|
|
5769
|
+
eventId: chatThreadEventIdSchema.optional()
|
|
5770
|
+
})
|
|
5771
|
+
);
|
|
5720
5772
|
var chatRunOptionsRequestSchema = external_exports.object({
|
|
5721
5773
|
codexServiceTier: codexServiceTierSchema.optional()
|
|
5722
5774
|
});
|
|
5775
|
+
var chatMessageNormalSendBodySchema = external_exports.preprocess(
|
|
5776
|
+
(value) => {
|
|
5777
|
+
return normalizeLegacyModelSelectionInput(value, { allowNull: false });
|
|
5778
|
+
},
|
|
5779
|
+
external_exports.object({
|
|
5780
|
+
agentId: external_exports.string().min(1),
|
|
5781
|
+
prompt: external_exports.string().min(1),
|
|
5782
|
+
threadId: external_exports.string().optional(),
|
|
5783
|
+
clientThreadId: external_exports.string().uuid().optional(),
|
|
5784
|
+
chatThreadEventId: chatThreadEventIdSchema.optional(),
|
|
5785
|
+
// Client-generated UUID for the sort touch created by direct user sends.
|
|
5786
|
+
// Lets event-sourced clients reconcile optimistic sidebar recency by id.
|
|
5787
|
+
chatThreadSortEventId: chatThreadEventIdSchema.optional(),
|
|
5788
|
+
/**
|
|
5789
|
+
* Selected model id. The API resolves the effective provider from org
|
|
5790
|
+
* policy and available credentials. Existing threads may omit it to
|
|
5791
|
+
* reuse the thread's persisted model.
|
|
5792
|
+
*/
|
|
5793
|
+
model: selectedModelRequestSchema.optional(),
|
|
5794
|
+
runOptions: chatRunOptionsRequestSchema.optional(),
|
|
5795
|
+
generationTemplate: generationTemplateRequestSchema.optional(),
|
|
5796
|
+
computerUseHostId: external_exports.string().uuid().nullable().optional(),
|
|
5797
|
+
// Optional for backward compatibility: older clients that omit this field
|
|
5798
|
+
// still trigger title generation (server guards with !== false, not === true).
|
|
5799
|
+
hasTextContent: external_exports.boolean().optional(),
|
|
5800
|
+
attachFiles: external_exports.array(attachFileSchema).optional(),
|
|
5801
|
+
// Client-generated UUID used as the user message's primary key.
|
|
5802
|
+
// Lets the client render an optimistic row and reconcile with the
|
|
5803
|
+
// server row by id — no temp-id swap, no React remount.
|
|
5804
|
+
clientMessageId: external_exports.string().uuid().optional(),
|
|
5805
|
+
// Preview evaluation escape hatch: when enabled, the request asks the
|
|
5806
|
+
// runner to bypass preview mock CLIs and use the real agent runtime.
|
|
5807
|
+
realAgentInPreview: external_exports.boolean().optional(),
|
|
5808
|
+
revokesMessageId: external_exports.string().min(1).optional(),
|
|
5809
|
+
interruptsRunId: external_exports.undefined().optional()
|
|
5810
|
+
})
|
|
5811
|
+
);
|
|
5723
5812
|
var chatThreadsContract = c15.router({
|
|
5724
5813
|
snapshot: {
|
|
5725
5814
|
method: "GET",
|
|
@@ -5767,13 +5856,7 @@ var chatThreadsContract = c15.router({
|
|
|
5767
5856
|
method: "POST",
|
|
5768
5857
|
path: "/api/zero/chat-threads",
|
|
5769
5858
|
headers: authHeadersSchema,
|
|
5770
|
-
body:
|
|
5771
|
-
agentId: external_exports.string().min(1),
|
|
5772
|
-
clientThreadId: external_exports.string().uuid().optional(),
|
|
5773
|
-
eventId: chatThreadEventIdSchema.optional(),
|
|
5774
|
-
modelSelection: modelSelectionRequestSchema,
|
|
5775
|
-
title: external_exports.string().optional()
|
|
5776
|
-
}),
|
|
5859
|
+
body: chatThreadCreateBodySchema,
|
|
5777
5860
|
responses: {
|
|
5778
5861
|
201: external_exports.object({
|
|
5779
5862
|
id: external_exports.string(),
|
|
@@ -6017,11 +6100,7 @@ var chatThreadModelSelectionContract = c15.router({
|
|
|
6017
6100
|
path: "/api/zero/chat-threads/:id/model-selection",
|
|
6018
6101
|
headers: authHeadersSchema,
|
|
6019
6102
|
pathParams: chatThreadIdPathParamsSchema,
|
|
6020
|
-
body:
|
|
6021
|
-
modelSelection: modelSelectionRequestSchema.nullable(),
|
|
6022
|
-
codexServiceTier: codexServiceTierSchema.nullable().optional(),
|
|
6023
|
-
eventId: chatThreadEventIdSchema.optional()
|
|
6024
|
-
}),
|
|
6103
|
+
body: chatThreadModelSelectionUpdateBodySchema,
|
|
6025
6104
|
responses: {
|
|
6026
6105
|
204: c15.noBody(),
|
|
6027
6106
|
400: apiErrorSchema,
|
|
@@ -6058,42 +6137,7 @@ var chatMessagesContract = c15.router({
|
|
|
6058
6137
|
path: "/api/zero/chat/messages",
|
|
6059
6138
|
headers: authHeadersSchema,
|
|
6060
6139
|
body: external_exports.union([
|
|
6061
|
-
|
|
6062
|
-
agentId: external_exports.string().min(1),
|
|
6063
|
-
prompt: external_exports.string().min(1),
|
|
6064
|
-
threadId: external_exports.string().optional(),
|
|
6065
|
-
clientThreadId: external_exports.string().uuid().optional(),
|
|
6066
|
-
chatThreadEventId: chatThreadEventIdSchema.optional(),
|
|
6067
|
-
// Client-generated UUID for the sort touch created by direct user sends.
|
|
6068
|
-
// Lets event-sourced clients reconcile optimistic sidebar recency by id.
|
|
6069
|
-
chatThreadSortEventId: chatThreadEventIdSchema.optional(),
|
|
6070
|
-
modelProvider: external_exports.string().optional(),
|
|
6071
|
-
/**
|
|
6072
|
-
* Per-run model override. This does not mutate the thread's selected
|
|
6073
|
-
* model; thread model changes are persisted through
|
|
6074
|
-
* `chatThreadModelSelectionContract.update`.
|
|
6075
|
-
*
|
|
6076
|
-
* When omitted, the run resolves from the thread's persisted
|
|
6077
|
-
* `selected_model`.
|
|
6078
|
-
*/
|
|
6079
|
-
modelSelection: modelSelectionRequestSchema.nullable().optional(),
|
|
6080
|
-
runOptions: chatRunOptionsRequestSchema.optional(),
|
|
6081
|
-
generationTemplate: generationTemplateRequestSchema.optional(),
|
|
6082
|
-
computerUseHostId: external_exports.string().uuid().nullable().optional(),
|
|
6083
|
-
// Optional for backward compatibility: older clients that omit this field
|
|
6084
|
-
// still trigger title generation (server guards with !== false, not === true).
|
|
6085
|
-
hasTextContent: external_exports.boolean().optional(),
|
|
6086
|
-
attachFiles: external_exports.array(attachFileSchema).optional(),
|
|
6087
|
-
// Client-generated UUID used as the user message's primary key.
|
|
6088
|
-
// Lets the client render an optimistic row and reconcile with the
|
|
6089
|
-
// server row by id — no temp-id swap, no React remount.
|
|
6090
|
-
clientMessageId: external_exports.string().uuid().optional(),
|
|
6091
|
-
// Preview evaluation escape hatch: when enabled, the request asks the
|
|
6092
|
-
// runner to bypass preview mock CLIs and use the real agent runtime.
|
|
6093
|
-
realAgentInPreview: external_exports.boolean().optional(),
|
|
6094
|
-
revokesMessageId: external_exports.string().min(1).optional(),
|
|
6095
|
-
interruptsRunId: external_exports.undefined().optional()
|
|
6096
|
-
}),
|
|
6140
|
+
chatMessageNormalSendBodySchema,
|
|
6097
6141
|
external_exports.object({
|
|
6098
6142
|
agentId: external_exports.string().min(1),
|
|
6099
6143
|
threadId: external_exports.string().min(1),
|
|
@@ -6103,8 +6147,7 @@ var chatMessagesContract = c15.router({
|
|
|
6103
6147
|
clientThreadId: external_exports.undefined().optional(),
|
|
6104
6148
|
chatThreadEventId: external_exports.undefined().optional(),
|
|
6105
6149
|
chatThreadSortEventId: external_exports.undefined().optional(),
|
|
6106
|
-
|
|
6107
|
-
modelSelection: external_exports.undefined().optional(),
|
|
6150
|
+
model: external_exports.undefined().optional(),
|
|
6108
6151
|
runOptions: external_exports.undefined().optional(),
|
|
6109
6152
|
generationTemplate: external_exports.undefined().optional(),
|
|
6110
6153
|
computerUseHostId: external_exports.undefined().optional(),
|
|
@@ -6122,8 +6165,7 @@ var chatMessagesContract = c15.router({
|
|
|
6122
6165
|
clientThreadId: external_exports.undefined().optional(),
|
|
6123
6166
|
chatThreadEventId: external_exports.undefined().optional(),
|
|
6124
6167
|
chatThreadSortEventId: external_exports.undefined().optional(),
|
|
6125
|
-
|
|
6126
|
-
modelSelection: external_exports.undefined().optional(),
|
|
6168
|
+
model: external_exports.undefined().optional(),
|
|
6127
6169
|
runOptions: external_exports.undefined().optional(),
|
|
6128
6170
|
generationTemplate: external_exports.undefined().optional(),
|
|
6129
6171
|
computerUseHostId: external_exports.undefined().optional(),
|
|
@@ -6346,6 +6388,34 @@ var artifactsContract = c15.router({
|
|
|
6346
6388
|
403: apiErrorSchema
|
|
6347
6389
|
},
|
|
6348
6390
|
summary: "List generated artifacts for the caller's current organization (keyset-paginated)"
|
|
6391
|
+
},
|
|
6392
|
+
favorite: {
|
|
6393
|
+
method: "POST",
|
|
6394
|
+
path: "/api/zero/artifacts/favorite",
|
|
6395
|
+
headers: authHeadersSchema,
|
|
6396
|
+
body: artifactFavoriteBodySchema,
|
|
6397
|
+
responses: {
|
|
6398
|
+
204: c15.noBody(),
|
|
6399
|
+
400: apiErrorSchema,
|
|
6400
|
+
401: apiErrorSchema,
|
|
6401
|
+
403: apiErrorSchema,
|
|
6402
|
+
404: apiErrorSchema
|
|
6403
|
+
},
|
|
6404
|
+
summary: "Favorite a generated artifact for the caller"
|
|
6405
|
+
},
|
|
6406
|
+
unfavorite: {
|
|
6407
|
+
method: "POST",
|
|
6408
|
+
path: "/api/zero/artifacts/unfavorite",
|
|
6409
|
+
headers: authHeadersSchema,
|
|
6410
|
+
body: artifactFavoriteBodySchema,
|
|
6411
|
+
responses: {
|
|
6412
|
+
204: c15.noBody(),
|
|
6413
|
+
400: apiErrorSchema,
|
|
6414
|
+
401: apiErrorSchema,
|
|
6415
|
+
403: apiErrorSchema,
|
|
6416
|
+
404: apiErrorSchema
|
|
6417
|
+
},
|
|
6418
|
+
summary: "Remove a generated artifact favorite for the caller"
|
|
6349
6419
|
}
|
|
6350
6420
|
});
|
|
6351
6421
|
|
|
@@ -8434,25 +8504,65 @@ var gumroad = {
|
|
|
8434
8504
|
}
|
|
8435
8505
|
};
|
|
8436
8506
|
|
|
8437
|
-
// ../../packages/connectors/src/connectors/nintendo-
|
|
8507
|
+
// ../../packages/connectors/src/connectors/nintendo-store.ts
|
|
8438
8508
|
init_esm_shims();
|
|
8439
|
-
var
|
|
8440
|
-
"nintendo-
|
|
8441
|
-
label: "Nintendo
|
|
8509
|
+
var nintendoStore = {
|
|
8510
|
+
"nintendo-store": {
|
|
8511
|
+
label: "Nintendo Store",
|
|
8442
8512
|
category: "data-automation-infrastructure",
|
|
8443
|
-
tags: ["gaming", "
|
|
8444
|
-
helpText: "
|
|
8513
|
+
tags: ["gaming", "player", "nintendo", "store", "catalog", "playtime"],
|
|
8514
|
+
helpText: "Connect your Nintendo Account to access Nintendo Store catalog, wishlist, points, and play activity data.",
|
|
8445
8515
|
authMethods: {
|
|
8446
8516
|
api: {
|
|
8447
|
-
featureFlag: "
|
|
8448
|
-
label: "
|
|
8449
|
-
helpText: "
|
|
8517
|
+
featureFlag: "nintendoStoreConnector" /* NintendoStoreConnector */,
|
|
8518
|
+
label: "Nintendo sign-in",
|
|
8519
|
+
helpText: "Sign in with Nintendo. After signing in, right-click the redirect button and copy its link address, then paste the full `npf...://auth` redirect URL or the `session_token_code` value.",
|
|
8520
|
+
client: {
|
|
8521
|
+
clientRegistration: "static",
|
|
8522
|
+
clientType: "public",
|
|
8523
|
+
clientId: "5c38e31cd085304b"
|
|
8524
|
+
},
|
|
8450
8525
|
storage: {
|
|
8451
|
-
secrets: [
|
|
8452
|
-
|
|
8526
|
+
secrets: [
|
|
8527
|
+
"NINTENDO_STORE_SESSION_TOKEN",
|
|
8528
|
+
"NINTENDO_STORE_ACCESS_TOKEN",
|
|
8529
|
+
"NINTENDO_STORE_ID_TOKEN"
|
|
8530
|
+
],
|
|
8531
|
+
variables: ["NINTENDO_STORE_ACCOUNT_ID", "NINTENDO_STORE_LOCALE"]
|
|
8532
|
+
},
|
|
8533
|
+
grant: {
|
|
8534
|
+
kind: "external-code",
|
|
8535
|
+
scopes: [
|
|
8536
|
+
"openid",
|
|
8537
|
+
"user",
|
|
8538
|
+
"user.mii",
|
|
8539
|
+
"user.email",
|
|
8540
|
+
"user.links[].id"
|
|
8541
|
+
],
|
|
8542
|
+
outputs: {
|
|
8543
|
+
sessionToken: "$secrets.NINTENDO_STORE_SESSION_TOKEN",
|
|
8544
|
+
accessToken: "$secrets.NINTENDO_STORE_ACCESS_TOKEN",
|
|
8545
|
+
idToken: "$secrets.NINTENDO_STORE_ID_TOKEN",
|
|
8546
|
+
accountId: "$vars.NINTENDO_STORE_ACCOUNT_ID",
|
|
8547
|
+
locale: "$vars.NINTENDO_STORE_LOCALE"
|
|
8548
|
+
}
|
|
8549
|
+
},
|
|
8550
|
+
access: {
|
|
8551
|
+
kind: "refresh-token",
|
|
8552
|
+
inputs: {
|
|
8553
|
+
sessionToken: "$secrets.NINTENDO_STORE_SESSION_TOKEN"
|
|
8554
|
+
},
|
|
8555
|
+
outputs: {
|
|
8556
|
+
accessToken: "$secrets.NINTENDO_STORE_ACCESS_TOKEN",
|
|
8557
|
+
idToken: "$secrets.NINTENDO_STORE_ID_TOKEN",
|
|
8558
|
+
locale: "$vars.NINTENDO_STORE_LOCALE"
|
|
8559
|
+
},
|
|
8560
|
+
refreshableSecrets: ["NINTENDO_STORE_ACCESS_TOKEN"],
|
|
8561
|
+
envBindings: {
|
|
8562
|
+
NINTENDO_STORE_TOKEN: "$secrets.NINTENDO_STORE_ACCESS_TOKEN",
|
|
8563
|
+
NINTENDO_STORE_LOCALE: "$vars.NINTENDO_STORE_LOCALE"
|
|
8564
|
+
}
|
|
8453
8565
|
},
|
|
8454
|
-
grant: { kind: "none" },
|
|
8455
|
-
access: { kind: "none" },
|
|
8456
8566
|
revoke: { kind: "none" }
|
|
8457
8567
|
}
|
|
8458
8568
|
}
|
|
@@ -20865,7 +20975,7 @@ var CONNECTOR_TYPES_DEF = defineConnectors({
|
|
|
20865
20975
|
...googleCloud,
|
|
20866
20976
|
...googleMaps,
|
|
20867
20977
|
...gumroad,
|
|
20868
|
-
...
|
|
20978
|
+
...nintendoStore,
|
|
20869
20979
|
...playstation,
|
|
20870
20980
|
...spotify,
|
|
20871
20981
|
...steam,
|
|
@@ -22238,6 +22348,9 @@ var secretConnectorMetadataMapSchema = external_exports.record(
|
|
|
22238
22348
|
var storedExecutionContextSchema = external_exports.object({
|
|
22239
22349
|
storageManifest: storageManifestSchema.nullable(),
|
|
22240
22350
|
environment: external_exports.record(external_exports.string(), external_exports.string()).nullable(),
|
|
22351
|
+
// Connector-owned runtime vars used by proxy/firewall template resolution.
|
|
22352
|
+
// User-provided run vars stay in agent_runs.vars and are merged at claim time.
|
|
22353
|
+
vars: external_exports.record(external_exports.string(), external_exports.string()).nullable().optional(),
|
|
22241
22354
|
resumeSession: storedResumeSessionSchema.nullable(),
|
|
22242
22355
|
// AES-256-GCM encrypted Record<string, string>. Keys are the runtime secret
|
|
22243
22356
|
// names used by `${{ secrets.NAME }}`; connector/model-provider keys are env
|
|
@@ -23718,12 +23831,12 @@ async function updateZeroChatThreadModelSelection(options) {
|
|
|
23718
23831
|
const client = initClient(chatThreadModelSelectionContract, config);
|
|
23719
23832
|
const result = await client.update({
|
|
23720
23833
|
params: { id: options.threadId },
|
|
23721
|
-
body: {
|
|
23834
|
+
body: { model: options.model }
|
|
23722
23835
|
});
|
|
23723
23836
|
if (result.status === 204) {
|
|
23724
23837
|
return {
|
|
23725
23838
|
threadId: options.threadId,
|
|
23726
|
-
selectedModel: options.
|
|
23839
|
+
selectedModel: options.model
|
|
23727
23840
|
};
|
|
23728
23841
|
}
|
|
23729
23842
|
handleError(result, "Failed to update chat thread model");
|
|
@@ -24229,7 +24342,11 @@ var computerUseHostListResponseSchema = external_exports.object({
|
|
|
24229
24342
|
var computerUseHostDeleteResponseSchema = external_exports.object({
|
|
24230
24343
|
ok: external_exports.literal(true)
|
|
24231
24344
|
});
|
|
24232
|
-
var computerUseAuthorizationSourceSchema = external_exports.enum([
|
|
24345
|
+
var computerUseAuthorizationSourceSchema = external_exports.enum([
|
|
24346
|
+
"chat",
|
|
24347
|
+
"slack",
|
|
24348
|
+
"teams"
|
|
24349
|
+
]);
|
|
24233
24350
|
var computerUseAuthorizationRequestCreateBodySchema = external_exports.object({});
|
|
24234
24351
|
var computerUseAuthorizationRequestCreateResponseSchema = external_exports.object({
|
|
24235
24352
|
authorizationUrl: external_exports.string().url(),
|
|
@@ -24732,7 +24849,7 @@ function authenticatedJsonHeaders(token) {
|
|
|
24732
24849
|
}
|
|
24733
24850
|
return headers;
|
|
24734
24851
|
}
|
|
24735
|
-
function
|
|
24852
|
+
function isRecord2(value) {
|
|
24736
24853
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
24737
24854
|
}
|
|
24738
24855
|
async function parseErrorBody(response) {
|
|
@@ -24740,7 +24857,7 @@ async function parseErrorBody(response) {
|
|
|
24740
24857
|
let code = response.status === 404 ? "NOT_FOUND" : "UNKNOWN";
|
|
24741
24858
|
try {
|
|
24742
24859
|
const body = await response.json();
|
|
24743
|
-
if (
|
|
24860
|
+
if (isRecord2(body) && isRecord2(body.error)) {
|
|
24744
24861
|
if (typeof body.error.message === "string") {
|
|
24745
24862
|
message = body.error.message;
|
|
24746
24863
|
}
|
|
@@ -24789,7 +24906,7 @@ function authenticatedJsonHeaders2(token) {
|
|
|
24789
24906
|
}
|
|
24790
24907
|
return headers;
|
|
24791
24908
|
}
|
|
24792
|
-
function
|
|
24909
|
+
function isRecord3(value) {
|
|
24793
24910
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
24794
24911
|
}
|
|
24795
24912
|
async function parseErrorBody2(response) {
|
|
@@ -24797,7 +24914,7 @@ async function parseErrorBody2(response) {
|
|
|
24797
24914
|
let code = response.status === 404 ? "NOT_FOUND" : "UNKNOWN";
|
|
24798
24915
|
try {
|
|
24799
24916
|
const body = await response.json();
|
|
24800
|
-
if (
|
|
24917
|
+
if (isRecord3(body) && isRecord3(body.error)) {
|
|
24801
24918
|
if (typeof body.error.message === "string") {
|
|
24802
24919
|
message = body.error.message;
|
|
24803
24920
|
}
|
|
@@ -27491,7 +27608,12 @@ var relationshipItemKindSchema = external_exports.enum([
|
|
|
27491
27608
|
"preference",
|
|
27492
27609
|
"open_loop"
|
|
27493
27610
|
]);
|
|
27494
|
-
var relationshipProviderSchema = external_exports.enum([
|
|
27611
|
+
var relationshipProviderSchema = external_exports.enum([
|
|
27612
|
+
"gmail",
|
|
27613
|
+
"slack",
|
|
27614
|
+
"github",
|
|
27615
|
+
"notion"
|
|
27616
|
+
]);
|
|
27495
27617
|
var relationshipEntitySchema = external_exports.object({
|
|
27496
27618
|
id: external_exports.string().uuid(),
|
|
27497
27619
|
type: relationshipEntityTypeSchema,
|
|
@@ -27728,7 +27850,12 @@ var memoryFileContentSchema = external_exports.object({
|
|
|
27728
27850
|
path: external_exports.string(),
|
|
27729
27851
|
content: external_exports.string()
|
|
27730
27852
|
});
|
|
27731
|
-
var memorySourceProviderSchema = external_exports.enum([
|
|
27853
|
+
var memorySourceProviderSchema = external_exports.enum([
|
|
27854
|
+
"gmail",
|
|
27855
|
+
"slack",
|
|
27856
|
+
"github",
|
|
27857
|
+
"notion"
|
|
27858
|
+
]);
|
|
27732
27859
|
var memoryRecallItemKindSchema = external_exports.enum([
|
|
27733
27860
|
"key_fact",
|
|
27734
27861
|
"preference",
|
|
@@ -27757,7 +27884,17 @@ var memorySourceCompactMetadataSchema = external_exports.object({
|
|
|
27757
27884
|
messageTs: external_exports.string().optional(),
|
|
27758
27885
|
senderId: external_exports.string().optional(),
|
|
27759
27886
|
mailboxEmail: external_exports.string().optional(),
|
|
27760
|
-
direction: memorySourceDirectionSchema.optional()
|
|
27887
|
+
direction: memorySourceDirectionSchema.optional(),
|
|
27888
|
+
githubRepository: external_exports.string().optional(),
|
|
27889
|
+
githubSubjectKind: external_exports.enum(["issue", "pull_request"]).optional(),
|
|
27890
|
+
githubSubjectNumber: external_exports.number().int().positive().optional(),
|
|
27891
|
+
githubIssueCommentId: external_exports.string().optional(),
|
|
27892
|
+
githubActorLogin: external_exports.string().optional(),
|
|
27893
|
+
notionWorkspaceName: external_exports.string().nullable().optional(),
|
|
27894
|
+
notionPageId: external_exports.string().optional(),
|
|
27895
|
+
notionEventFamily: external_exports.enum(["new_child_page", "new_database_item", "page_content_updated"]).optional(),
|
|
27896
|
+
notionEventType: external_exports.enum(["page.created", "page.content_updated", "page.properties_updated"]).optional(),
|
|
27897
|
+
notionParentTitle: external_exports.string().nullable().optional()
|
|
27761
27898
|
});
|
|
27762
27899
|
var memorySourceMetadataSchema = memorySourceCompactMetadataSchema.extend({
|
|
27763
27900
|
messageId: external_exports.string().nullable().optional(),
|
|
@@ -27767,12 +27904,36 @@ var memorySourceMetadataSchema = memorySourceCompactMetadataSchema.extend({
|
|
|
27767
27904
|
from: external_exports.string().nullable().optional(),
|
|
27768
27905
|
to: external_exports.array(external_exports.string()).optional(),
|
|
27769
27906
|
cc: external_exports.array(external_exports.string()).optional(),
|
|
27907
|
+
githubInstallationId: external_exports.string().optional(),
|
|
27908
|
+
githubRemoteInstallationId: external_exports.string().optional(),
|
|
27909
|
+
githubSubjectUrl: external_exports.string().optional(),
|
|
27910
|
+
githubIssueCommentId: external_exports.string().optional(),
|
|
27911
|
+
githubActorId: external_exports.string().optional(),
|
|
27912
|
+
githubAuthorId: external_exports.string().optional(),
|
|
27913
|
+
githubAuthorLogin: external_exports.string().optional(),
|
|
27914
|
+
githubLabels: external_exports.array(external_exports.string()).optional(),
|
|
27915
|
+
notionWorkspaceId: external_exports.string().optional(),
|
|
27916
|
+
notionPageUrl: external_exports.string().nullable().optional(),
|
|
27917
|
+
notionLastEditedTime: external_exports.string().nullable().optional(),
|
|
27918
|
+
notionEventId: external_exports.string().optional(),
|
|
27919
|
+
notionScopeType: external_exports.enum(["page", "data_source"]).optional(),
|
|
27920
|
+
notionScopeId: external_exports.string().optional(),
|
|
27921
|
+
notionParentUrl: external_exports.string().nullable().optional(),
|
|
27922
|
+
notionAuthorIds: external_exports.array(external_exports.string()).optional(),
|
|
27770
27923
|
reason: external_exports.string().optional()
|
|
27771
27924
|
}).passthrough();
|
|
27772
27925
|
var memorySourceBaseSchema = external_exports.object({
|
|
27773
27926
|
id: external_exports.string().uuid(),
|
|
27774
27927
|
provider: memorySourceProviderSchema,
|
|
27775
|
-
sourceType: external_exports.enum([
|
|
27928
|
+
sourceType: external_exports.enum([
|
|
27929
|
+
"gmail_message",
|
|
27930
|
+
"slack_message",
|
|
27931
|
+
"github_issue",
|
|
27932
|
+
"github_pull_request",
|
|
27933
|
+
"github_issue_comment",
|
|
27934
|
+
"notion_page",
|
|
27935
|
+
"notion_page_event"
|
|
27936
|
+
]),
|
|
27776
27937
|
title: external_exports.string().nullable(),
|
|
27777
27938
|
occurredAt: external_exports.string().nullable(),
|
|
27778
27939
|
createdAt: external_exports.string(),
|
|
@@ -27898,6 +28059,106 @@ var slackMemoryBackfillRequestSchema = external_exports.object({
|
|
|
27898
28059
|
includePrivateChannels: external_exports.boolean(),
|
|
27899
28060
|
includeDirectMessages: external_exports.boolean()
|
|
27900
28061
|
});
|
|
28062
|
+
var sourceBackfillStatusSchema = external_exports.enum([
|
|
28063
|
+
"idle",
|
|
28064
|
+
"pending",
|
|
28065
|
+
"running",
|
|
28066
|
+
"stopped",
|
|
28067
|
+
"done",
|
|
28068
|
+
"failed"
|
|
28069
|
+
]);
|
|
28070
|
+
var sourceBackfillSchema = external_exports.object({
|
|
28071
|
+
status: sourceBackfillStatusSchema,
|
|
28072
|
+
estimatedTotal: external_exports.number().int().nonnegative().nullable(),
|
|
28073
|
+
scannedCount: external_exports.number().int().nonnegative(),
|
|
28074
|
+
recordedCount: external_exports.number().int().nonnegative(),
|
|
28075
|
+
lastError: external_exports.string().nullable(),
|
|
28076
|
+
updatedAt: external_exports.string().nullable(),
|
|
28077
|
+
completedAt: external_exports.string().nullable()
|
|
28078
|
+
});
|
|
28079
|
+
var githubTrustedContributorSchema = external_exports.object({
|
|
28080
|
+
githubUserId: external_exports.string().optional(),
|
|
28081
|
+
login: external_exports.string().optional(),
|
|
28082
|
+
email: external_exports.string().email().optional()
|
|
28083
|
+
});
|
|
28084
|
+
var githubMemoryRepositoryConfigSchema = external_exports.object({
|
|
28085
|
+
id: external_exports.number().int().optional(),
|
|
28086
|
+
name: external_exports.string().optional(),
|
|
28087
|
+
fullName: external_exports.string().min(1),
|
|
28088
|
+
defaultBranch: external_exports.string().nullable().optional(),
|
|
28089
|
+
selected: external_exports.boolean(),
|
|
28090
|
+
includeIssues: external_exports.boolean().default(true),
|
|
28091
|
+
includePullRequests: external_exports.boolean().default(true),
|
|
28092
|
+
includeComments: external_exports.boolean().default(true),
|
|
28093
|
+
trustedContributors: external_exports.array(githubTrustedContributorSchema).default([])
|
|
28094
|
+
});
|
|
28095
|
+
var githubMemoryConfigureRequestSchema = external_exports.object({
|
|
28096
|
+
repositories: external_exports.array(githubMemoryRepositoryConfigSchema).max(100)
|
|
28097
|
+
});
|
|
28098
|
+
var githubMemoryBackfillRequestSchema = external_exports.object({
|
|
28099
|
+
days: external_exports.union([external_exports.literal(30), external_exports.literal(90), external_exports.literal(180), external_exports.literal(365)])
|
|
28100
|
+
});
|
|
28101
|
+
var githubMemoryRepositoryResourceSchema = external_exports.object({
|
|
28102
|
+
id: external_exports.number().int(),
|
|
28103
|
+
name: external_exports.string(),
|
|
28104
|
+
fullName: external_exports.string(),
|
|
28105
|
+
private: external_exports.boolean(),
|
|
28106
|
+
defaultBranch: external_exports.string().nullable(),
|
|
28107
|
+
selected: external_exports.boolean(),
|
|
28108
|
+
includeIssues: external_exports.boolean(),
|
|
28109
|
+
includePullRequests: external_exports.boolean(),
|
|
28110
|
+
includeComments: external_exports.boolean(),
|
|
28111
|
+
trustedContributors: external_exports.array(githubTrustedContributorSchema)
|
|
28112
|
+
});
|
|
28113
|
+
var githubMemoryContributorSchema = external_exports.object({
|
|
28114
|
+
githubUserId: external_exports.string(),
|
|
28115
|
+
login: external_exports.string(),
|
|
28116
|
+
type: external_exports.string().nullable(),
|
|
28117
|
+
contributions: external_exports.number().int().nonnegative().nullable(),
|
|
28118
|
+
trusted: external_exports.boolean()
|
|
28119
|
+
});
|
|
28120
|
+
var githubMemoryRepositoriesResponseSchema = external_exports.object({
|
|
28121
|
+
provider: external_exports.literal("github"),
|
|
28122
|
+
connected: external_exports.boolean(),
|
|
28123
|
+
installationId: external_exports.string().nullable(),
|
|
28124
|
+
targetName: external_exports.string().nullable(),
|
|
28125
|
+
repositories: external_exports.array(githubMemoryRepositoryResourceSchema),
|
|
28126
|
+
pagination: external_exports.object({
|
|
28127
|
+
page: external_exports.number().int().positive(),
|
|
28128
|
+
pageSize: external_exports.number().int().positive(),
|
|
28129
|
+
hasMore: external_exports.boolean()
|
|
28130
|
+
})
|
|
28131
|
+
});
|
|
28132
|
+
var githubMemoryContributorsResponseSchema = external_exports.object({
|
|
28133
|
+
provider: external_exports.literal("github"),
|
|
28134
|
+
connected: external_exports.boolean(),
|
|
28135
|
+
repository: external_exports.string(),
|
|
28136
|
+
contributors: external_exports.array(githubMemoryContributorSchema),
|
|
28137
|
+
pagination: external_exports.object({
|
|
28138
|
+
page: external_exports.number().int().positive(),
|
|
28139
|
+
pageSize: external_exports.number().int().positive(),
|
|
28140
|
+
hasMore: external_exports.boolean()
|
|
28141
|
+
})
|
|
28142
|
+
});
|
|
28143
|
+
var githubMemoryStatusResponseSchema = external_exports.object({
|
|
28144
|
+
provider: external_exports.literal("github"),
|
|
28145
|
+
connected: external_exports.boolean(),
|
|
28146
|
+
installationId: external_exports.string().nullable(),
|
|
28147
|
+
targetName: external_exports.string().nullable(),
|
|
28148
|
+
selectedRepositoryCount: external_exports.number().int().nonnegative(),
|
|
28149
|
+
trustedContributorCount: external_exports.number().int().nonnegative(),
|
|
28150
|
+
backfill: sourceBackfillSchema
|
|
28151
|
+
});
|
|
28152
|
+
var notionMemoryBackfillRequestSchema = external_exports.object({
|
|
28153
|
+
days: external_exports.union([external_exports.literal(30), external_exports.literal(90), external_exports.literal(180), external_exports.literal(365)]),
|
|
28154
|
+
documentLimit: external_exports.number().int().min(1).max(1e4)
|
|
28155
|
+
});
|
|
28156
|
+
var notionMemoryStatusResponseSchema = external_exports.object({
|
|
28157
|
+
provider: external_exports.literal("notion"),
|
|
28158
|
+
connected: external_exports.boolean(),
|
|
28159
|
+
workspaceName: external_exports.string().nullable(),
|
|
28160
|
+
backfill: sourceBackfillSchema
|
|
28161
|
+
});
|
|
27901
28162
|
var memoryDetailResponseSchema = external_exports.object({
|
|
27902
28163
|
exists: external_exports.boolean(),
|
|
27903
28164
|
name: external_exports.string(),
|
|
@@ -28037,6 +28298,130 @@ var zeroMemoryContract = c36.router({
|
|
|
28037
28298
|
500: apiErrorSchema
|
|
28038
28299
|
},
|
|
28039
28300
|
summary: "Stop the current Slack memory source backfill"
|
|
28301
|
+
},
|
|
28302
|
+
githubStatus: {
|
|
28303
|
+
method: "GET",
|
|
28304
|
+
path: "/api/zero/memory/sources/github/status",
|
|
28305
|
+
headers: authHeadersSchema,
|
|
28306
|
+
responses: {
|
|
28307
|
+
200: githubMemoryStatusResponseSchema,
|
|
28308
|
+
401: apiErrorSchema,
|
|
28309
|
+
403: apiErrorSchema,
|
|
28310
|
+
500: apiErrorSchema
|
|
28311
|
+
},
|
|
28312
|
+
summary: "Read GitHub memory source configuration and backfill status"
|
|
28313
|
+
},
|
|
28314
|
+
githubRepositories: {
|
|
28315
|
+
method: "GET",
|
|
28316
|
+
path: "/api/zero/memory/sources/github/repositories",
|
|
28317
|
+
headers: authHeadersSchema,
|
|
28318
|
+
query: external_exports.object({
|
|
28319
|
+
page: external_exports.coerce.number().int().positive().default(1),
|
|
28320
|
+
limit: external_exports.coerce.number().int().min(1).max(100).default(50)
|
|
28321
|
+
}),
|
|
28322
|
+
responses: {
|
|
28323
|
+
200: githubMemoryRepositoriesResponseSchema,
|
|
28324
|
+
401: apiErrorSchema,
|
|
28325
|
+
403: apiErrorSchema,
|
|
28326
|
+
500: apiErrorSchema
|
|
28327
|
+
},
|
|
28328
|
+
summary: "List GitHub repositories available for memory source sync"
|
|
28329
|
+
},
|
|
28330
|
+
githubContributors: {
|
|
28331
|
+
method: "GET",
|
|
28332
|
+
path: "/api/zero/memory/sources/github/contributors",
|
|
28333
|
+
headers: authHeadersSchema,
|
|
28334
|
+
query: external_exports.object({
|
|
28335
|
+
repository: external_exports.string().min(1),
|
|
28336
|
+
page: external_exports.coerce.number().int().positive().default(1),
|
|
28337
|
+
limit: external_exports.coerce.number().int().min(1).max(100).default(50)
|
|
28338
|
+
}),
|
|
28339
|
+
responses: {
|
|
28340
|
+
200: githubMemoryContributorsResponseSchema,
|
|
28341
|
+
400: apiErrorSchema,
|
|
28342
|
+
401: apiErrorSchema,
|
|
28343
|
+
403: apiErrorSchema,
|
|
28344
|
+
500: apiErrorSchema
|
|
28345
|
+
},
|
|
28346
|
+
summary: "List GitHub contributors for a repository memory allowlist"
|
|
28347
|
+
},
|
|
28348
|
+
githubConfigure: {
|
|
28349
|
+
method: "PUT",
|
|
28350
|
+
path: "/api/zero/memory/sources/github/config",
|
|
28351
|
+
headers: authHeadersSchema,
|
|
28352
|
+
body: githubMemoryConfigureRequestSchema,
|
|
28353
|
+
responses: {
|
|
28354
|
+
200: githubMemoryStatusResponseSchema,
|
|
28355
|
+
400: apiErrorSchema,
|
|
28356
|
+
401: apiErrorSchema,
|
|
28357
|
+
403: apiErrorSchema,
|
|
28358
|
+
500: apiErrorSchema
|
|
28359
|
+
},
|
|
28360
|
+
summary: "Configure selected GitHub repositories and trusted contributors"
|
|
28361
|
+
},
|
|
28362
|
+
githubBackfill: {
|
|
28363
|
+
method: "POST",
|
|
28364
|
+
path: "/api/zero/memory/sources/github/backfill",
|
|
28365
|
+
headers: authHeadersSchema,
|
|
28366
|
+
body: githubMemoryBackfillRequestSchema,
|
|
28367
|
+
responses: {
|
|
28368
|
+
200: githubMemoryStatusResponseSchema,
|
|
28369
|
+
400: apiErrorSchema,
|
|
28370
|
+
401: apiErrorSchema,
|
|
28371
|
+
403: apiErrorSchema,
|
|
28372
|
+
500: apiErrorSchema
|
|
28373
|
+
},
|
|
28374
|
+
summary: "Start or restart GitHub memory source backfill"
|
|
28375
|
+
},
|
|
28376
|
+
githubStopBackfill: {
|
|
28377
|
+
method: "POST",
|
|
28378
|
+
path: "/api/zero/memory/sources/github/backfill/stop",
|
|
28379
|
+
headers: authHeadersSchema,
|
|
28380
|
+
responses: {
|
|
28381
|
+
200: githubMemoryStatusResponseSchema,
|
|
28382
|
+
401: apiErrorSchema,
|
|
28383
|
+
403: apiErrorSchema,
|
|
28384
|
+
500: apiErrorSchema
|
|
28385
|
+
},
|
|
28386
|
+
summary: "Stop the current GitHub memory source backfill"
|
|
28387
|
+
},
|
|
28388
|
+
notionStatus: {
|
|
28389
|
+
method: "GET",
|
|
28390
|
+
path: "/api/zero/memory/sources/notion/status",
|
|
28391
|
+
headers: authHeadersSchema,
|
|
28392
|
+
responses: {
|
|
28393
|
+
200: notionMemoryStatusResponseSchema,
|
|
28394
|
+
401: apiErrorSchema,
|
|
28395
|
+
403: apiErrorSchema,
|
|
28396
|
+
500: apiErrorSchema
|
|
28397
|
+
},
|
|
28398
|
+
summary: "Read Notion memory source backfill status"
|
|
28399
|
+
},
|
|
28400
|
+
notionBackfill: {
|
|
28401
|
+
method: "POST",
|
|
28402
|
+
path: "/api/zero/memory/sources/notion/backfill",
|
|
28403
|
+
headers: authHeadersSchema,
|
|
28404
|
+
body: notionMemoryBackfillRequestSchema,
|
|
28405
|
+
responses: {
|
|
28406
|
+
200: notionMemoryStatusResponseSchema,
|
|
28407
|
+
400: apiErrorSchema,
|
|
28408
|
+
401: apiErrorSchema,
|
|
28409
|
+
403: apiErrorSchema,
|
|
28410
|
+
500: apiErrorSchema
|
|
28411
|
+
},
|
|
28412
|
+
summary: "Start or restart Notion workspace memory source backfill"
|
|
28413
|
+
},
|
|
28414
|
+
notionStopBackfill: {
|
|
28415
|
+
method: "POST",
|
|
28416
|
+
path: "/api/zero/memory/sources/notion/backfill/stop",
|
|
28417
|
+
headers: authHeadersSchema,
|
|
28418
|
+
responses: {
|
|
28419
|
+
200: notionMemoryStatusResponseSchema,
|
|
28420
|
+
401: apiErrorSchema,
|
|
28421
|
+
403: apiErrorSchema,
|
|
28422
|
+
500: apiErrorSchema
|
|
28423
|
+
},
|
|
28424
|
+
summary: "Stop the current Notion memory source backfill"
|
|
28040
28425
|
}
|
|
28041
28426
|
});
|
|
28042
28427
|
|
|
@@ -28345,7 +28730,6 @@ export {
|
|
|
28345
28730
|
deleteZeroOrgModelProvider,
|
|
28346
28731
|
listZeroModelPolicies,
|
|
28347
28732
|
hostedArtifactKindSchema,
|
|
28348
|
-
MODEL_FIRST_SELECTION_PROVIDER_ID,
|
|
28349
28733
|
zeroAgentVisibilitySchema,
|
|
28350
28734
|
createZeroAgent,
|
|
28351
28735
|
listZeroAgents,
|
|
@@ -28439,4 +28823,4 @@ export {
|
|
|
28439
28823
|
completeHostedSite,
|
|
28440
28824
|
getHostedSiteFiles
|
|
28441
28825
|
};
|
|
28442
|
-
//# sourceMappingURL=chunk-
|
|
28826
|
+
//# sourceMappingURL=chunk-KDG6XFHW.js.map
|