@keystrokehq/pinecone 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/cancel-bulk-import.cjs +1 -1
- package/dist/actions/cancel-bulk-import.cjs.map +1 -1
- package/dist/actions/cancel-bulk-import.d.cts +1 -1
- package/dist/actions/cancel-bulk-import.d.cts.map +1 -1
- package/dist/actions/cancel-bulk-import.d.mts +1 -1
- package/dist/actions/cancel-bulk-import.d.mts.map +1 -1
- package/dist/actions/cancel-bulk-import.mjs +1 -1
- package/dist/actions/cancel-bulk-import.mjs.map +1 -1
- package/dist/actions/chat-assistant.cjs +9 -9
- package/dist/actions/chat-assistant.cjs.map +1 -1
- package/dist/actions/chat-assistant.d.cts +11 -10
- package/dist/actions/chat-assistant.d.cts.map +1 -1
- package/dist/actions/chat-assistant.d.mts +11 -10
- package/dist/actions/chat-assistant.d.mts.map +1 -1
- package/dist/actions/chat-assistant.mjs +9 -9
- package/dist/actions/chat-assistant.mjs.map +1 -1
- package/dist/actions/chat-completion-assistant.cjs +6 -6
- package/dist/actions/chat-completion-assistant.cjs.map +1 -1
- package/dist/actions/chat-completion-assistant.d.cts +8 -7
- package/dist/actions/chat-completion-assistant.d.cts.map +1 -1
- package/dist/actions/chat-completion-assistant.d.mts +8 -7
- package/dist/actions/chat-completion-assistant.d.mts.map +1 -1
- package/dist/actions/chat-completion-assistant.mjs +6 -6
- package/dist/actions/chat-completion-assistant.mjs.map +1 -1
- package/dist/actions/configure-index.cjs +6 -6
- package/dist/actions/configure-index.cjs.map +1 -1
- package/dist/actions/configure-index.d.cts +7 -7
- package/dist/actions/configure-index.d.mts +7 -7
- package/dist/actions/configure-index.mjs +6 -6
- package/dist/actions/configure-index.mjs.map +1 -1
- package/dist/actions/create-assistant.cjs +3 -3
- package/dist/actions/create-assistant.cjs.map +1 -1
- package/dist/actions/create-assistant.d.cts +4 -4
- package/dist/actions/create-assistant.d.mts +4 -4
- package/dist/actions/create-assistant.mjs +3 -3
- package/dist/actions/create-assistant.mjs.map +1 -1
- package/dist/actions/create-backup.cjs +1 -1
- package/dist/actions/create-backup.cjs.map +1 -1
- package/dist/actions/create-backup.d.cts +1 -1
- package/dist/actions/create-backup.d.mts +1 -1
- package/dist/actions/create-backup.mjs +1 -1
- package/dist/actions/create-backup.mjs.map +1 -1
- package/dist/actions/create-index-for-model.cjs +9 -9
- package/dist/actions/create-index-for-model.cjs.map +1 -1
- package/dist/actions/create-index-for-model.d.cts +13 -13
- package/dist/actions/create-index-for-model.d.mts +13 -13
- package/dist/actions/create-index-for-model.mjs +9 -9
- package/dist/actions/create-index-for-model.mjs.map +1 -1
- package/dist/actions/create-index-from-backup.cjs +2 -2
- package/dist/actions/create-index-from-backup.cjs.map +1 -1
- package/dist/actions/create-index-from-backup.d.cts +3 -3
- package/dist/actions/create-index-from-backup.d.mts +3 -3
- package/dist/actions/create-index-from-backup.mjs +2 -2
- package/dist/actions/create-index-from-backup.mjs.map +1 -1
- package/dist/actions/create-index.cjs +2 -2
- package/dist/actions/create-index.cjs.map +1 -1
- package/dist/actions/create-index.d.cts +4 -4
- package/dist/actions/create-index.d.mts +4 -4
- package/dist/actions/create-index.mjs +2 -2
- package/dist/actions/create-index.mjs.map +1 -1
- package/dist/actions/create-namespace.cjs +4 -4
- package/dist/actions/create-namespace.cjs.map +1 -1
- package/dist/actions/create-namespace.d.cts +6 -6
- package/dist/actions/create-namespace.d.mts +6 -6
- package/dist/actions/create-namespace.mjs +4 -4
- package/dist/actions/create-namespace.mjs.map +1 -1
- package/dist/actions/delete-assistant.cjs +1 -1
- package/dist/actions/delete-assistant.cjs.map +1 -1
- package/dist/actions/delete-assistant.d.cts +1 -1
- package/dist/actions/delete-assistant.d.mts +1 -1
- package/dist/actions/delete-assistant.mjs +1 -1
- package/dist/actions/delete-assistant.mjs.map +1 -1
- package/dist/actions/delete-backup.cjs +1 -1
- package/dist/actions/delete-backup.cjs.map +1 -1
- package/dist/actions/delete-backup.d.cts +1 -1
- package/dist/actions/delete-backup.d.mts +1 -1
- package/dist/actions/delete-backup.mjs +1 -1
- package/dist/actions/delete-backup.mjs.map +1 -1
- package/dist/actions/delete-file.cjs +1 -1
- package/dist/actions/delete-file.cjs.map +1 -1
- package/dist/actions/delete-file.d.cts +1 -1
- package/dist/actions/delete-file.d.mts +1 -1
- package/dist/actions/delete-file.mjs +1 -1
- package/dist/actions/delete-file.mjs.map +1 -1
- package/dist/actions/delete-index.cjs +1 -1
- package/dist/actions/delete-index.cjs.map +1 -1
- package/dist/actions/delete-index.d.cts +1 -1
- package/dist/actions/delete-index.d.mts +1 -1
- package/dist/actions/delete-index.mjs +1 -1
- package/dist/actions/delete-index.mjs.map +1 -1
- package/dist/actions/delete-namespace.cjs +1 -1
- package/dist/actions/delete-namespace.cjs.map +1 -1
- package/dist/actions/delete-namespace.d.cts +1 -1
- package/dist/actions/delete-namespace.d.cts.map +1 -1
- package/dist/actions/delete-namespace.d.mts +1 -1
- package/dist/actions/delete-namespace.d.mts.map +1 -1
- package/dist/actions/delete-namespace.mjs +1 -1
- package/dist/actions/delete-namespace.mjs.map +1 -1
- package/dist/actions/delete-vectors.cjs +2 -2
- package/dist/actions/delete-vectors.cjs.map +1 -1
- package/dist/actions/delete-vectors.d.cts +3 -3
- package/dist/actions/delete-vectors.d.cts.map +1 -1
- package/dist/actions/delete-vectors.d.mts +3 -3
- package/dist/actions/delete-vectors.d.mts.map +1 -1
- package/dist/actions/delete-vectors.mjs +2 -2
- package/dist/actions/delete-vectors.mjs.map +1 -1
- package/dist/actions/describe-backup.cjs +3 -3
- package/dist/actions/describe-backup.cjs.map +1 -1
- package/dist/actions/describe-backup.d.cts +3 -3
- package/dist/actions/describe-backup.d.mts +3 -3
- package/dist/actions/describe-backup.mjs +3 -3
- package/dist/actions/describe-backup.mjs.map +1 -1
- package/dist/actions/describe-bulk-import.cjs +1 -1
- package/dist/actions/describe-bulk-import.cjs.map +1 -1
- package/dist/actions/describe-bulk-import.d.cts +1 -1
- package/dist/actions/describe-bulk-import.d.mts +1 -1
- package/dist/actions/describe-bulk-import.mjs +1 -1
- package/dist/actions/describe-bulk-import.mjs.map +1 -1
- package/dist/actions/describe-file.cjs +2 -2
- package/dist/actions/describe-file.cjs.map +1 -1
- package/dist/actions/describe-file.d.cts +2 -2
- package/dist/actions/describe-file.d.mts +2 -2
- package/dist/actions/describe-file.mjs +2 -2
- package/dist/actions/describe-file.mjs.map +1 -1
- package/dist/actions/describe-index-stats.cjs +2 -2
- package/dist/actions/describe-index-stats.cjs.map +1 -1
- package/dist/actions/describe-index-stats.d.cts +2 -2
- package/dist/actions/describe-index-stats.d.mts +2 -2
- package/dist/actions/describe-index-stats.mjs +2 -2
- package/dist/actions/describe-index-stats.mjs.map +1 -1
- package/dist/actions/describe-index.cjs +9 -9
- package/dist/actions/describe-index.cjs.map +1 -1
- package/dist/actions/describe-index.d.cts +9 -9
- package/dist/actions/describe-index.d.mts +9 -9
- package/dist/actions/describe-index.mjs +9 -9
- package/dist/actions/describe-index.mjs.map +1 -1
- package/dist/actions/describe-namespace.cjs +3 -3
- package/dist/actions/describe-namespace.cjs.map +1 -1
- package/dist/actions/describe-namespace.d.cts +4 -4
- package/dist/actions/describe-namespace.d.mts +4 -4
- package/dist/actions/describe-namespace.mjs +3 -3
- package/dist/actions/describe-namespace.mjs.map +1 -1
- package/dist/actions/describe-restore-job.cjs +1 -1
- package/dist/actions/describe-restore-job.cjs.map +1 -1
- package/dist/actions/describe-restore-job.d.cts +1 -1
- package/dist/actions/describe-restore-job.d.mts +1 -1
- package/dist/actions/describe-restore-job.mjs +1 -1
- package/dist/actions/describe-restore-job.mjs.map +1 -1
- package/dist/actions/embed.cjs +5 -5
- package/dist/actions/embed.cjs.map +1 -1
- package/dist/actions/embed.d.cts +6 -5
- package/dist/actions/embed.d.mts +6 -5
- package/dist/actions/embed.mjs +5 -5
- package/dist/actions/embed.mjs.map +1 -1
- package/dist/actions/fetch-vectors.cjs +3 -3
- package/dist/actions/fetch-vectors.cjs.map +1 -1
- package/dist/actions/fetch-vectors.d.cts +3 -3
- package/dist/actions/fetch-vectors.d.mts +3 -3
- package/dist/actions/fetch-vectors.mjs +3 -3
- package/dist/actions/fetch-vectors.mjs.map +1 -1
- package/dist/actions/get-assistant.cjs +2 -2
- package/dist/actions/get-assistant.cjs.map +1 -1
- package/dist/actions/get-assistant.d.cts +2 -2
- package/dist/actions/get-assistant.d.mts +2 -2
- package/dist/actions/get-assistant.mjs +2 -2
- package/dist/actions/get-assistant.mjs.map +1 -1
- package/dist/actions/get-model.cjs +2 -2
- package/dist/actions/get-model.cjs.map +1 -1
- package/dist/actions/get-model.d.cts +2 -2
- package/dist/actions/get-model.d.mts +2 -2
- package/dist/actions/get-model.mjs +2 -2
- package/dist/actions/get-model.mjs.map +1 -1
- package/dist/actions/list-assistants.cjs +4 -4
- package/dist/actions/list-assistants.cjs.map +1 -1
- package/dist/actions/list-assistants.d.cts +4 -4
- package/dist/actions/list-assistants.d.mts +4 -4
- package/dist/actions/list-assistants.mjs +4 -4
- package/dist/actions/list-assistants.mjs.map +1 -1
- package/dist/actions/list-bulk-imports.cjs +3 -3
- package/dist/actions/list-bulk-imports.cjs.map +1 -1
- package/dist/actions/list-bulk-imports.d.cts +3 -3
- package/dist/actions/list-bulk-imports.d.mts +3 -3
- package/dist/actions/list-bulk-imports.mjs +3 -3
- package/dist/actions/list-bulk-imports.mjs.map +1 -1
- package/dist/actions/list-collections.cjs +2 -2
- package/dist/actions/list-collections.cjs.map +1 -1
- package/dist/actions/list-collections.d.cts +2 -2
- package/dist/actions/list-collections.d.mts +2 -2
- package/dist/actions/list-collections.mjs +2 -2
- package/dist/actions/list-collections.mjs.map +1 -1
- package/dist/actions/list-files.cjs +4 -4
- package/dist/actions/list-files.cjs.map +1 -1
- package/dist/actions/list-files.d.cts +4 -4
- package/dist/actions/list-files.d.mts +4 -4
- package/dist/actions/list-files.mjs +4 -4
- package/dist/actions/list-files.mjs.map +1 -1
- package/dist/actions/list-index-backups.cjs +5 -5
- package/dist/actions/list-index-backups.cjs.map +1 -1
- package/dist/actions/list-index-backups.d.cts +5 -5
- package/dist/actions/list-index-backups.d.mts +5 -5
- package/dist/actions/list-index-backups.mjs +5 -5
- package/dist/actions/list-index-backups.mjs.map +1 -1
- package/dist/actions/list-indexes.cjs +8 -8
- package/dist/actions/list-indexes.cjs.map +1 -1
- package/dist/actions/list-indexes.d.cts +8 -8
- package/dist/actions/list-indexes.d.mts +8 -8
- package/dist/actions/list-indexes.mjs +8 -8
- package/dist/actions/list-indexes.mjs.map +1 -1
- package/dist/actions/list-models.cjs +3 -3
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +3 -3
- package/dist/actions/list-models.d.mts +3 -3
- package/dist/actions/list-models.mjs +3 -3
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/list-namespaces-operation.cjs +5 -5
- package/dist/actions/list-namespaces-operation.cjs.map +1 -1
- package/dist/actions/list-namespaces-operation.d.cts +6 -6
- package/dist/actions/list-namespaces-operation.d.mts +6 -6
- package/dist/actions/list-namespaces-operation.mjs +5 -5
- package/dist/actions/list-namespaces-operation.mjs.map +1 -1
- package/dist/actions/list-project-backups.cjs +5 -5
- package/dist/actions/list-project-backups.cjs.map +1 -1
- package/dist/actions/list-project-backups.d.cts +5 -5
- package/dist/actions/list-project-backups.d.mts +5 -5
- package/dist/actions/list-project-backups.mjs +5 -5
- package/dist/actions/list-project-backups.mjs.map +1 -1
- package/dist/actions/list-restore-jobs.cjs +3 -3
- package/dist/actions/list-restore-jobs.cjs.map +1 -1
- package/dist/actions/list-restore-jobs.d.cts +3 -3
- package/dist/actions/list-restore-jobs.d.mts +3 -3
- package/dist/actions/list-restore-jobs.mjs +3 -3
- package/dist/actions/list-restore-jobs.mjs.map +1 -1
- package/dist/actions/list-vectors.cjs +4 -4
- package/dist/actions/list-vectors.cjs.map +1 -1
- package/dist/actions/list-vectors.d.cts +4 -4
- package/dist/actions/list-vectors.d.mts +4 -4
- package/dist/actions/list-vectors.mjs +4 -4
- package/dist/actions/list-vectors.mjs.map +1 -1
- package/dist/actions/query-vectors.cjs +6 -6
- package/dist/actions/query-vectors.cjs.map +1 -1
- package/dist/actions/query-vectors.d.cts +7 -7
- package/dist/actions/query-vectors.d.mts +7 -7
- package/dist/actions/query-vectors.mjs +6 -6
- package/dist/actions/query-vectors.mjs.map +1 -1
- package/dist/actions/rerank.cjs +4 -4
- package/dist/actions/rerank.cjs.map +1 -1
- package/dist/actions/rerank.d.cts +5 -4
- package/dist/actions/rerank.d.cts.map +1 -1
- package/dist/actions/rerank.d.mts +5 -4
- package/dist/actions/rerank.d.mts.map +1 -1
- package/dist/actions/rerank.mjs +4 -4
- package/dist/actions/rerank.mjs.map +1 -1
- package/dist/actions/retrieve-context-assistant.cjs +9 -9
- package/dist/actions/retrieve-context-assistant.cjs.map +1 -1
- package/dist/actions/retrieve-context-assistant.d.cts +11 -10
- package/dist/actions/retrieve-context-assistant.d.mts +11 -10
- package/dist/actions/retrieve-context-assistant.mjs +9 -9
- package/dist/actions/retrieve-context-assistant.mjs.map +1 -1
- package/dist/actions/search-records-namespace.cjs +7 -7
- package/dist/actions/search-records-namespace.cjs.map +1 -1
- package/dist/actions/search-records-namespace.d.cts +9 -9
- package/dist/actions/search-records-namespace.d.mts +9 -9
- package/dist/actions/search-records-namespace.mjs +7 -7
- package/dist/actions/search-records-namespace.mjs.map +1 -1
- package/dist/actions/start-bulk-import.cjs +1 -1
- package/dist/actions/start-bulk-import.cjs.map +1 -1
- package/dist/actions/start-bulk-import.d.cts +1 -1
- package/dist/actions/start-bulk-import.d.mts +1 -1
- package/dist/actions/start-bulk-import.mjs +1 -1
- package/dist/actions/start-bulk-import.mjs.map +1 -1
- package/dist/actions/update-assistant.cjs +3 -3
- package/dist/actions/update-assistant.cjs.map +1 -1
- package/dist/actions/update-assistant.d.cts +4 -4
- package/dist/actions/update-assistant.d.mts +4 -4
- package/dist/actions/update-assistant.mjs +3 -3
- package/dist/actions/update-assistant.mjs.map +1 -1
- package/dist/actions/update-vector.cjs +3 -3
- package/dist/actions/update-vector.cjs.map +1 -1
- package/dist/actions/update-vector.d.cts +5 -5
- package/dist/actions/update-vector.d.mts +5 -5
- package/dist/actions/update-vector.mjs +3 -3
- package/dist/actions/update-vector.mjs.map +1 -1
- package/dist/actions/upload-file.cjs +1 -1
- package/dist/actions/upload-file.cjs.map +1 -1
- package/dist/actions/upload-file.d.cts +1 -1
- package/dist/actions/upload-file.d.mts +1 -1
- package/dist/actions/upload-file.mjs +1 -1
- package/dist/actions/upload-file.mjs.map +1 -1
- package/dist/actions/upsert-records-namespace.cjs +1 -1
- package/dist/actions/upsert-records-namespace.cjs.map +1 -1
- package/dist/actions/upsert-records-namespace.d.cts +1 -1
- package/dist/actions/upsert-records-namespace.d.mts +1 -1
- package/dist/actions/upsert-records-namespace.mjs +1 -1
- package/dist/actions/upsert-records-namespace.mjs.map +1 -1
- package/dist/actions/upsert-vectors.cjs +3 -3
- package/dist/actions/upsert-vectors.cjs.map +1 -1
- package/dist/actions/upsert-vectors.d.cts +5 -4
- package/dist/actions/upsert-vectors.d.cts.map +1 -1
- package/dist/actions/upsert-vectors.d.mts +5 -4
- package/dist/actions/upsert-vectors.d.mts.map +1 -1
- package/dist/actions/upsert-vectors.mjs +3 -3
- package/dist/actions/upsert-vectors.mjs.map +1 -1
- package/dist/catalog.cjs +1 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +1 -1
- package/dist/catalog.d.mts +1 -1
- package/dist/catalog.mjs +1 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ declare const PineconeSearchRecordsNamespaceInput: z.ZodObject<{
|
|
|
5
5
|
query: z.ZodObject<{
|
|
6
6
|
id: z.ZodOptional<z.ZodString>;
|
|
7
7
|
top_k: z.ZodNumber;
|
|
8
|
-
filter: z.ZodOptional<z.
|
|
8
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
9
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
10
10
|
text: z.ZodOptional<z.ZodString>;
|
|
11
11
|
}, z.core.$strip>>;
|
|
@@ -18,7 +18,7 @@ declare const PineconeSearchRecordsNamespaceInput: z.ZodObject<{
|
|
|
18
18
|
}, z.core.$strip>>;
|
|
19
19
|
}, z.core.$strip>>;
|
|
20
20
|
match_terms: z.ZodOptional<z.ZodObject<{
|
|
21
|
-
terms: z.ZodOptional<z.
|
|
21
|
+
terms: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
22
|
}, z.core.$strip>>;
|
|
23
23
|
}, z.core.$strip>;
|
|
24
24
|
fields: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -37,20 +37,20 @@ declare const PineconeSearchRecordsNamespaceOutput: z.ZodObject<{
|
|
|
37
37
|
read_units: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
38
|
rerank_units: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
39
|
embed_total_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
41
|
result: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
42
42
|
hits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
43
43
|
_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
_score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
45
|
-
fields: z.ZodOptional<z.ZodNullable<z.
|
|
46
|
-
}, z.core.$
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
45
|
+
fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
46
|
+
}, z.core.$loose>>>>;
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const pineconeSearchRecordsNamespace: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
query: {
|
|
51
51
|
top_k: number;
|
|
52
52
|
id?: string | undefined;
|
|
53
|
-
filter?: Record<string,
|
|
53
|
+
filter?: Record<string, unknown> | undefined;
|
|
54
54
|
inputs?: {
|
|
55
55
|
text?: string | undefined;
|
|
56
56
|
} | undefined;
|
|
@@ -63,7 +63,7 @@ declare const pineconeSearchRecordsNamespace: import("@keystrokehq/action").Work
|
|
|
63
63
|
} | undefined;
|
|
64
64
|
} | undefined;
|
|
65
65
|
match_terms?: {
|
|
66
|
-
terms?: Record<string,
|
|
66
|
+
terms?: Record<string, unknown> | undefined;
|
|
67
67
|
} | undefined;
|
|
68
68
|
};
|
|
69
69
|
namespace: string;
|
|
@@ -5,7 +5,7 @@ const PineconeSearchRecordsNamespaceInput = z.object({
|
|
|
5
5
|
query: z.object({
|
|
6
6
|
id: z.string().describe("Record ID to use as query vector").optional(),
|
|
7
7
|
top_k: z.number().int().describe("Number of similar records to return"),
|
|
8
|
-
filter: z.
|
|
8
|
+
filter: z.record(z.string(), z.unknown()).describe("Metadata filter expression for limiting search results").optional(),
|
|
9
9
|
inputs: z.object({ text: z.string().describe("Text to be embedded for similarity search").optional() }).describe("Text embedding inputs for query.").optional(),
|
|
10
10
|
vector: z.object({
|
|
11
11
|
values: z.array(z.number()).describe("Dense vector values for similarity search").optional(),
|
|
@@ -15,7 +15,7 @@ const PineconeSearchRecordsNamespaceInput = z.object({
|
|
|
15
15
|
indices: z.array(z.number().int()).describe("Sparse vector indices")
|
|
16
16
|
}).describe("Sparse vector values specification.").optional()
|
|
17
17
|
}).describe("Query vector specification for similarity search.").optional(),
|
|
18
|
-
match_terms: z.object({ terms: z.
|
|
18
|
+
match_terms: z.object({ terms: z.record(z.string(), z.unknown()).describe("Term matching criteria as key-value pairs").optional() }).describe("Term matching constraints for filtering results.").optional()
|
|
19
19
|
}).describe("Query configuration including top_k and optional filters, vector, or ID"),
|
|
20
20
|
fields: z.array(z.string()).describe("Fields to include in results").optional(),
|
|
21
21
|
rerank: z.object({
|
|
@@ -32,13 +32,13 @@ const PineconeSearchRecordsNamespace_UsageMetricsSchema = z.object({
|
|
|
32
32
|
read_units: z.number().int().describe("Read units consumed by the operation").nullable().optional(),
|
|
33
33
|
rerank_units: z.number().int().describe("Reranking units consumed").nullable().optional(),
|
|
34
34
|
embed_total_tokens: z.number().int().describe("Total embedding tokens used").nullable().optional()
|
|
35
|
-
}).describe("Usage metrics for the search operation.");
|
|
35
|
+
}).passthrough().describe("Usage metrics for the search operation.");
|
|
36
36
|
const PineconeSearchRecordsNamespace_HitRecordSchema = z.object({
|
|
37
37
|
_id: z.string().describe("Record identifier").nullable().optional(),
|
|
38
38
|
_score: z.number().describe("Similarity score").nullable().optional(),
|
|
39
|
-
fields: z.
|
|
40
|
-
}).describe("A single matched record from search results.");
|
|
41
|
-
const PineconeSearchRecordsNamespace_SearchResultSchema = z.object({ hits: z.array(PineconeSearchRecordsNamespace_HitRecordSchema).describe("Array of matched records").nullable().optional() }).describe("Search results containing matched records.");
|
|
39
|
+
fields: z.record(z.string(), z.unknown()).describe("Selected record fields as key-value pairs").nullable().optional()
|
|
40
|
+
}).passthrough().describe("A single matched record from search results.");
|
|
41
|
+
const PineconeSearchRecordsNamespace_SearchResultSchema = z.object({ hits: z.array(PineconeSearchRecordsNamespace_HitRecordSchema).describe("Array of matched records").nullable().optional() }).passthrough().describe("Search results containing matched records.");
|
|
42
42
|
const pineconeSearchRecordsNamespace = action("PINECONE_SEARCH_RECORDS_NAMESPACE", {
|
|
43
43
|
slug: "pinecone-search-records-namespace",
|
|
44
44
|
name: "Search Records in Namespace",
|
|
@@ -47,7 +47,7 @@ const pineconeSearchRecordsNamespace = action("PINECONE_SEARCH_RECORDS_NAMESPACE
|
|
|
47
47
|
output: z.object({
|
|
48
48
|
usage: PineconeSearchRecordsNamespace_UsageMetricsSchema.nullable().optional(),
|
|
49
49
|
result: PineconeSearchRecordsNamespace_SearchResultSchema.nullable().optional()
|
|
50
|
-
}).describe("Response model for namespace search operation.")
|
|
50
|
+
}).passthrough().describe("Response model for namespace search operation.")
|
|
51
51
|
});
|
|
52
52
|
//#endregion
|
|
53
53
|
export { pineconeSearchRecordsNamespace };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-records-namespace.mjs","names":[],"sources":["../../src/actions/search-records-namespace.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeSearchRecordsNamespaceInput = z.object({\n query: z.object({\n id: z.string().describe(\"Record ID to use as query vector\").optional(),\n top_k: z.number().int().describe(\"Number of similar records to return\"),\n filter: z.
|
|
1
|
+
{"version":3,"file":"search-records-namespace.mjs","names":[],"sources":["../../src/actions/search-records-namespace.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeSearchRecordsNamespaceInput = z.object({\n query: z.object({\n id: z.string().describe(\"Record ID to use as query vector\").optional(),\n top_k: z.number().int().describe(\"Number of similar records to return\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter expression for limiting search results\").optional(),\n inputs: z.object({\n text: z.string().describe(\"Text to be embedded for similarity search\").optional(),\n}).describe(\"Text embedding inputs for query.\").optional(),\n vector: z.object({\n values: z.array(z.number()).describe(\"Dense vector values for similarity search\").optional(),\n indices: z.array(z.number().int()).describe(\"Sparse vector indices\").optional(),\n sparse_values: z.object({\n values: z.array(z.number()).describe(\"Sparse vector values\"),\n indices: z.array(z.number().int()).describe(\"Sparse vector indices\"),\n}).describe(\"Sparse vector values specification.\").optional(),\n}).describe(\"Query vector specification for similarity search.\").optional(),\n match_terms: z.object({\n terms: z.record(z.string(), z.unknown()).describe(\"Term matching criteria as key-value pairs\").optional(),\n}).describe(\"Term matching constraints for filtering results.\").optional(),\n}).describe(\"Query configuration including top_k and optional filters, vector, or ID\"),\n fields: z.array(z.string()).describe(\"Fields to include in results\").optional(),\n rerank: z.object({\n model: z.string().describe(\"Reranking model name\"),\n query: z.string().describe(\"Query text for reranking\").optional(),\n top_n: z.number().int().describe(\"Number of results to return after reranking\").optional(),\n parameters: z.object({}).describe(\"Model-specific parameters for reranking.\").optional(),\n rank_fields: z.array(z.string()).describe(\"Fields to use for reranking\"),\n}).describe(\"Reranking configuration for search results.\").optional(),\n namespace: z.string().describe(\"The namespace to search within\"),\n index_host: z.string().describe(\"The host URL for the Pinecone index (e.g., 'my-index-abc123.svc.pinecone.io'). Get this from listing indexes.\"),\n}).describe(\"Request model for searching records within a namespace.\");\nconst PineconeSearchRecordsNamespace_UsageMetricsSchema = z.object({\n read_units: z.number().int().describe(\"Read units consumed by the operation\").nullable().optional(),\n rerank_units: z.number().int().describe(\"Reranking units consumed\").nullable().optional(),\n embed_total_tokens: z.number().int().describe(\"Total embedding tokens used\").nullable().optional(),\n}).passthrough().describe(\"Usage metrics for the search operation.\");\nconst PineconeSearchRecordsNamespace_HitRecordSchema = z.object({\n _id: z.string().describe(\"Record identifier\").nullable().optional(),\n _score: z.number().describe(\"Similarity score\").nullable().optional(),\n fields: z.record(z.string(), z.unknown()).describe(\"Selected record fields as key-value pairs\").nullable().optional(),\n}).passthrough().describe(\"A single matched record from search results.\");\nconst PineconeSearchRecordsNamespace_SearchResultSchema = z.object({\n hits: z.array(PineconeSearchRecordsNamespace_HitRecordSchema).describe(\"Array of matched records\").nullable().optional(),\n}).passthrough().describe(\"Search results containing matched records.\");\nexport const PineconeSearchRecordsNamespaceOutput = z.object({\n usage: PineconeSearchRecordsNamespace_UsageMetricsSchema.nullable().optional(),\n result: PineconeSearchRecordsNamespace_SearchResultSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for namespace search operation.\");\n\nexport const pineconeSearchRecordsNamespace = action(\"PINECONE_SEARCH_RECORDS_NAMESPACE\", {\n slug: \"pinecone-search-records-namespace\",\n name: \"Search Records in Namespace\",\n description: \"Tool to search records within a Pinecone namespace using text, vector, or ID query. Use when you need to find similar records based on embeddings or record IDs. Results can optionally be reranked for relevance.\",\n input: PineconeSearchRecordsNamespaceInput,\n output: PineconeSearchRecordsNamespaceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,OAAO,EAAE,OAAO;EAChB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACtE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACtH,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,EAClF,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACvD,QAAQ,EAAE,OAAO;GACjB,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;GAC3F,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;GAC9E,eAAe,EAAE,OAAO;IACxB,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sBAAsB;IAC3D,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,uBAAuB;GACrE,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC5D,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACxE,aAAa,EAAE,OAAO,EACtB,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,EAC1G,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,SAAS,yEAAyE;CACnF,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO;EACjB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6BAA6B;CACzE,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;AACjJ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,oDAAoD,EAAE,OAAO;CACjE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,oDAAoD,EAAE,OAAO,EACjE,MAAM,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAMtE,MAAa,iCAAiC,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVkD,EAAE,OAAO;EAC3D,OAAO,kDAAkD,SAAS,CAAC,CAAC,SAAS;EAC7E,QAAQ,kDAAkD,SAAS,CAAC,CAAC,SAAS;CAChF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const PineconeStartBulkImportInput = zod.z.object({
|
|
|
7
7
|
indexHost: zod.z.string().describe("The host URL of the Pinecone index to import into. Get this from the index details (e.g., 'my-index-abc123.svc.aped-4627-b74a.pinecone.io'). Use List Indexes to find available index hosts."),
|
|
8
8
|
integrationId: zod.z.string().describe("The identifier of the storage integration used to access the data.").optional()
|
|
9
9
|
}).describe("Request parameters for starting a bulk import from object storage into Pinecone index.");
|
|
10
|
-
const PineconeStartBulkImportOutput = zod.z.object({ id: zod.z.string().describe("Unique identifier for the import operation. Use this to track import status.").nullable() }).describe("Response containing the unique identifier for the import operation.");
|
|
10
|
+
const PineconeStartBulkImportOutput = zod.z.object({ id: zod.z.string().describe("Unique identifier for the import operation. Use this to track import status.").nullable() }).passthrough().describe("Response containing the unique identifier for the import operation.");
|
|
11
11
|
const pineconeStartBulkImport = require_action.action("PINECONE_START_BULK_IMPORT", {
|
|
12
12
|
slug: "pinecone-start-bulk-import",
|
|
13
13
|
name: "Start Bulk Import",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-bulk-import.cjs","names":["z","action"],"sources":["../../src/actions/start-bulk-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeStartBulkImportInput = z.object({\n uri: z.string().describe(\"The URI of the bucket/container and import directory containing data. Format: s3://BUCKET_NAME/IMPORT_DIR, gs://BUCKET_NAME/IMPORT_DIR, or Azure Blob Storage path.\"),\n errorMode: z.object({\n onError: z.enum([\"abort\", \"continue\"]).describe(\"Specifies error handling approach during import. 'abort' stops import on first error, 'continue' proceeds despite errors.\"),\n}).describe(\"Error handling mode for bulk import operation.\").optional(),\n indexHost: z.string().describe(\"The host URL of the Pinecone index to import into. Get this from the index details (e.g., 'my-index-abc123.svc.aped-4627-b74a.pinecone.io'). Use List Indexes to find available index hosts.\"),\n integrationId: z.string().describe(\"The identifier of the storage integration used to access the data.\").optional(),\n}).describe(\"Request parameters for starting a bulk import from object storage into Pinecone index.\");\nexport const PineconeStartBulkImportOutput = z.object({\n id: z.string().describe(\"Unique identifier for the import operation. Use this to track import status.\").nullable(),\n}).describe(\"Response containing the unique identifier for the import operation.\");\n\nexport const pineconeStartBulkImport = action(\"PINECONE_START_BULK_IMPORT\", {\n slug: \"pinecone-start-bulk-import\",\n name: \"Start Bulk Import\",\n description: \"Tool to start an asynchronous bulk import of vectors from object storage (S3, GCS, or Azure Blob Storage) into a Pinecone index. Use when you need to import large volumes of vectors from external storage. Returns an import ID to track the operation status.\",\n input: PineconeStartBulkImportInput,\n output: PineconeStartBulkImportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC9L,WAAWA,IAAAA,EAAE,OAAO,EACpB,SAASA,IAAAA,EAAE,KAAK,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,SAAS,2HAA2H,EAC7K,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L;CAC7N,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,wFAAwF;AACpG,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,EACnH,CAAC,CAAC,CAAC,SAAS,qEAAqE;
|
|
1
|
+
{"version":3,"file":"start-bulk-import.cjs","names":["z","action"],"sources":["../../src/actions/start-bulk-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeStartBulkImportInput = z.object({\n uri: z.string().describe(\"The URI of the bucket/container and import directory containing data. Format: s3://BUCKET_NAME/IMPORT_DIR, gs://BUCKET_NAME/IMPORT_DIR, or Azure Blob Storage path.\"),\n errorMode: z.object({\n onError: z.enum([\"abort\", \"continue\"]).describe(\"Specifies error handling approach during import. 'abort' stops import on first error, 'continue' proceeds despite errors.\"),\n}).describe(\"Error handling mode for bulk import operation.\").optional(),\n indexHost: z.string().describe(\"The host URL of the Pinecone index to import into. Get this from the index details (e.g., 'my-index-abc123.svc.aped-4627-b74a.pinecone.io'). Use List Indexes to find available index hosts.\"),\n integrationId: z.string().describe(\"The identifier of the storage integration used to access the data.\").optional(),\n}).describe(\"Request parameters for starting a bulk import from object storage into Pinecone index.\");\nexport const PineconeStartBulkImportOutput = z.object({\n id: z.string().describe(\"Unique identifier for the import operation. Use this to track import status.\").nullable(),\n}).passthrough().describe(\"Response containing the unique identifier for the import operation.\");\n\nexport const pineconeStartBulkImport = action(\"PINECONE_START_BULK_IMPORT\", {\n slug: \"pinecone-start-bulk-import\",\n name: \"Start Bulk Import\",\n description: \"Tool to start an asynchronous bulk import of vectors from object storage (S3, GCS, or Azure Blob Storage) into a Pinecone index. Use when you need to import large volumes of vectors from external storage. Returns an import ID to track the operation status.\",\n input: PineconeStartBulkImportInput,\n output: PineconeStartBulkImportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;CAC9L,WAAWA,IAAAA,EAAE,OAAO,EACpB,SAASA,IAAAA,EAAE,KAAK,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,SAAS,2HAA2H,EAC7K,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L;CAC7N,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,wFAAwF;AACpG,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,EACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAE/F,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ declare const PineconeStartBulkImportInput: z.ZodObject<{
|
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
declare const PineconeStartBulkImportOutput: z.ZodObject<{
|
|
16
16
|
id: z.ZodNullable<z.ZodString>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const pineconeStartBulkImport: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
uri: string;
|
|
20
20
|
indexHost: string;
|
|
@@ -14,7 +14,7 @@ declare const PineconeStartBulkImportInput: z.ZodObject<{
|
|
|
14
14
|
}, z.core.$strip>;
|
|
15
15
|
declare const PineconeStartBulkImportOutput: z.ZodObject<{
|
|
16
16
|
id: z.ZodNullable<z.ZodString>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const pineconeStartBulkImport: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
uri: string;
|
|
20
20
|
indexHost: string;
|
|
@@ -10,7 +10,7 @@ const pineconeStartBulkImport = action("PINECONE_START_BULK_IMPORT", {
|
|
|
10
10
|
indexHost: z.string().describe("The host URL of the Pinecone index to import into. Get this from the index details (e.g., 'my-index-abc123.svc.aped-4627-b74a.pinecone.io'). Use List Indexes to find available index hosts."),
|
|
11
11
|
integrationId: z.string().describe("The identifier of the storage integration used to access the data.").optional()
|
|
12
12
|
}).describe("Request parameters for starting a bulk import from object storage into Pinecone index."),
|
|
13
|
-
output: z.object({ id: z.string().describe("Unique identifier for the import operation. Use this to track import status.").nullable() }).describe("Response containing the unique identifier for the import operation.")
|
|
13
|
+
output: z.object({ id: z.string().describe("Unique identifier for the import operation. Use this to track import status.").nullable() }).passthrough().describe("Response containing the unique identifier for the import operation.")
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
16
|
export { pineconeStartBulkImport };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start-bulk-import.mjs","names":[],"sources":["../../src/actions/start-bulk-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeStartBulkImportInput = z.object({\n uri: z.string().describe(\"The URI of the bucket/container and import directory containing data. Format: s3://BUCKET_NAME/IMPORT_DIR, gs://BUCKET_NAME/IMPORT_DIR, or Azure Blob Storage path.\"),\n errorMode: z.object({\n onError: z.enum([\"abort\", \"continue\"]).describe(\"Specifies error handling approach during import. 'abort' stops import on first error, 'continue' proceeds despite errors.\"),\n}).describe(\"Error handling mode for bulk import operation.\").optional(),\n indexHost: z.string().describe(\"The host URL of the Pinecone index to import into. Get this from the index details (e.g., 'my-index-abc123.svc.aped-4627-b74a.pinecone.io'). Use List Indexes to find available index hosts.\"),\n integrationId: z.string().describe(\"The identifier of the storage integration used to access the data.\").optional(),\n}).describe(\"Request parameters for starting a bulk import from object storage into Pinecone index.\");\nexport const PineconeStartBulkImportOutput = z.object({\n id: z.string().describe(\"Unique identifier for the import operation. Use this to track import status.\").nullable(),\n}).describe(\"Response containing the unique identifier for the import operation.\");\n\nexport const pineconeStartBulkImport = action(\"PINECONE_START_BULK_IMPORT\", {\n slug: \"pinecone-start-bulk-import\",\n name: \"Start Bulk Import\",\n description: \"Tool to start an asynchronous bulk import of vectors from object storage (S3, GCS, or Azure Blob Storage) into a Pinecone index. Use when you need to import large volumes of vectors from external storage. Returns an import ID to track the operation status.\",\n input: PineconeStartBulkImportInput,\n output: PineconeStartBulkImportOutput,\n});\n"],"mappings":";;AAgBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB0C,EAAE,OAAO;EACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;EAC9L,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,KAAK,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,SAAS,2HAA2H,EAC7K,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L;EAC7N,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,SAAS,wFASH;CACP,QAT2C,EAAE,OAAO,EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,EACnH,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"start-bulk-import.mjs","names":[],"sources":["../../src/actions/start-bulk-import.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeStartBulkImportInput = z.object({\n uri: z.string().describe(\"The URI of the bucket/container and import directory containing data. Format: s3://BUCKET_NAME/IMPORT_DIR, gs://BUCKET_NAME/IMPORT_DIR, or Azure Blob Storage path.\"),\n errorMode: z.object({\n onError: z.enum([\"abort\", \"continue\"]).describe(\"Specifies error handling approach during import. 'abort' stops import on first error, 'continue' proceeds despite errors.\"),\n}).describe(\"Error handling mode for bulk import operation.\").optional(),\n indexHost: z.string().describe(\"The host URL of the Pinecone index to import into. Get this from the index details (e.g., 'my-index-abc123.svc.aped-4627-b74a.pinecone.io'). Use List Indexes to find available index hosts.\"),\n integrationId: z.string().describe(\"The identifier of the storage integration used to access the data.\").optional(),\n}).describe(\"Request parameters for starting a bulk import from object storage into Pinecone index.\");\nexport const PineconeStartBulkImportOutput = z.object({\n id: z.string().describe(\"Unique identifier for the import operation. Use this to track import status.\").nullable(),\n}).passthrough().describe(\"Response containing the unique identifier for the import operation.\");\n\nexport const pineconeStartBulkImport = action(\"PINECONE_START_BULK_IMPORT\", {\n slug: \"pinecone-start-bulk-import\",\n name: \"Start Bulk Import\",\n description: \"Tool to start an asynchronous bulk import of vectors from object storage (S3, GCS, or Azure Blob Storage) into a Pinecone index. Use when you need to import large volumes of vectors from external storage. Returns an import ID to track the operation status.\",\n input: PineconeStartBulkImportInput,\n output: PineconeStartBulkImportOutput,\n});\n"],"mappings":";;AAgBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB0C,EAAE,OAAO;EACnD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK;EAC9L,WAAW,EAAE,OAAO,EACpB,SAAS,EAAE,KAAK,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,SAAS,2HAA2H,EAC7K,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACrE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L;EAC7N,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,SAAS,wFASH;CACP,QAT2C,EAAE,OAAO,EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS,EACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAOhB;AACV,CAAC"}
|
|
@@ -2,16 +2,16 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/update-assistant.ts
|
|
4
4
|
const PineconeUpdateAssistantInput = zod.z.object({
|
|
5
|
-
metadata: zod.z.
|
|
5
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional metadata associated with the assistant. Metadata is a JSON object that can store custom organizational data, tags, and attributes. Maximum size is 16KB.").optional(),
|
|
6
6
|
api_version: zod.z.string().default("2025-10").describe("Required date-based version header for the Pinecone API.").optional(),
|
|
7
7
|
instructions: zod.z.string().describe("Description or directive for the assistant to apply to all responses. Maximum 16 KB.").optional(),
|
|
8
8
|
assistant_name: zod.z.string().describe("The name of the assistant to update.")
|
|
9
9
|
}).describe("Request parameters for updating a Pinecone assistant.");
|
|
10
10
|
const PineconeUpdateAssistantOutput = zod.z.object({
|
|
11
|
-
metadata: zod.z.
|
|
11
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional metadata associated with the assistant. Metadata is a JSON object that can store custom organizational data, tags, and attributes.").nullable().optional(),
|
|
12
12
|
instructions: zod.z.string().describe("Description or directive for the assistant to apply to all responses.").nullable().optional(),
|
|
13
13
|
assistant_name: zod.z.string().describe("The name of the updated assistant.").nullable()
|
|
14
|
-
}).describe("Response containing the updated assistant configuration.");
|
|
14
|
+
}).passthrough().describe("Response containing the updated assistant configuration.");
|
|
15
15
|
const pineconeUpdateAssistant = require_action.action("PINECONE_UPDATE_ASSISTANT", {
|
|
16
16
|
slug: "pinecone-update-assistant",
|
|
17
17
|
name: "Update Assistant",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-assistant.cjs","names":["z","action"],"sources":["../../src/actions/update-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeUpdateAssistantInput = z.object({\n metadata: z.
|
|
1
|
+
{"version":3,"file":"update-assistant.cjs","names":["z","action"],"sources":["../../src/actions/update-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeUpdateAssistantInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata associated with the assistant. Metadata is a JSON object that can store custom organizational data, tags, and attributes. Maximum size is 16KB.\").optional(),\n api_version: z.string().default(\"2025-10\").describe(\"Required date-based version header for the Pinecone API.\").optional(),\n instructions: z.string().describe(\"Description or directive for the assistant to apply to all responses. Maximum 16 KB.\").optional(),\n assistant_name: z.string().describe(\"The name of the assistant to update.\"),\n}).describe(\"Request parameters for updating a Pinecone assistant.\");\nexport const PineconeUpdateAssistantOutput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata associated with the assistant. Metadata is a JSON object that can store custom organizational data, tags, and attributes.\").nullable().optional(),\n instructions: z.string().describe(\"Description or directive for the assistant to apply to all responses.\").nullable().optional(),\n assistant_name: z.string().describe(\"The name of the updated assistant.\").nullable(),\n}).passthrough().describe(\"Response containing the updated assistant configuration.\");\n\nexport const pineconeUpdateAssistant = action(\"PINECONE_UPDATE_ASSISTANT\", {\n slug: \"pinecone-update-assistant\",\n name: \"Update Assistant\",\n description: \"Tool to update an assistant's instructions and configuration in Pinecone. Use when you need to modify an existing assistant's behavior by changing its instructions or metadata. Updates are applied immediately.\",\n input: PineconeUpdateAssistantInput,\n output: PineconeUpdateAssistantOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACnO,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACzH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACnI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;AAC5E,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxN,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -2,19 +2,19 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-assistant.d.ts
|
|
4
4
|
declare const PineconeUpdateAssistantInput: z.ZodObject<{
|
|
5
|
-
metadata: z.ZodOptional<z.
|
|
5
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
6
|
api_version: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
7
|
instructions: z.ZodOptional<z.ZodString>;
|
|
8
8
|
assistant_name: z.ZodString;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const PineconeUpdateAssistantOutput: z.ZodObject<{
|
|
11
|
-
metadata: z.ZodOptional<z.ZodNullable<z.
|
|
11
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
12
12
|
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
assistant_name: z.ZodNullable<z.ZodString>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const pineconeUpdateAssistant: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
assistant_name: string;
|
|
17
|
-
metadata?: Record<string,
|
|
17
|
+
metadata?: Record<string, unknown> | undefined;
|
|
18
18
|
api_version?: string | undefined;
|
|
19
19
|
instructions?: string | undefined;
|
|
20
20
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -2,19 +2,19 @@ import { z } from "zod";
|
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-assistant.d.ts
|
|
4
4
|
declare const PineconeUpdateAssistantInput: z.ZodObject<{
|
|
5
|
-
metadata: z.ZodOptional<z.
|
|
5
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6
6
|
api_version: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
7
7
|
instructions: z.ZodOptional<z.ZodString>;
|
|
8
8
|
assistant_name: z.ZodString;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
declare const PineconeUpdateAssistantOutput: z.ZodObject<{
|
|
11
|
-
metadata: z.ZodOptional<z.ZodNullable<z.
|
|
11
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
12
12
|
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
assistant_name: z.ZodNullable<z.ZodString>;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
declare const pineconeUpdateAssistant: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
assistant_name: string;
|
|
17
|
-
metadata?: Record<string,
|
|
17
|
+
metadata?: Record<string, unknown> | undefined;
|
|
18
18
|
api_version?: string | undefined;
|
|
19
19
|
instructions?: string | undefined;
|
|
20
20
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,16 +5,16 @@ const pineconeUpdateAssistant = action("PINECONE_UPDATE_ASSISTANT", {
|
|
|
5
5
|
name: "Update Assistant",
|
|
6
6
|
description: "Tool to update an assistant's instructions and configuration in Pinecone. Use when you need to modify an existing assistant's behavior by changing its instructions or metadata. Updates are applied immediately.",
|
|
7
7
|
input: z.object({
|
|
8
|
-
metadata: z.
|
|
8
|
+
metadata: z.record(z.string(), z.unknown()).describe("Optional metadata associated with the assistant. Metadata is a JSON object that can store custom organizational data, tags, and attributes. Maximum size is 16KB.").optional(),
|
|
9
9
|
api_version: z.string().default("2025-10").describe("Required date-based version header for the Pinecone API.").optional(),
|
|
10
10
|
instructions: z.string().describe("Description or directive for the assistant to apply to all responses. Maximum 16 KB.").optional(),
|
|
11
11
|
assistant_name: z.string().describe("The name of the assistant to update.")
|
|
12
12
|
}).describe("Request parameters for updating a Pinecone assistant."),
|
|
13
13
|
output: z.object({
|
|
14
|
-
metadata: z.
|
|
14
|
+
metadata: z.record(z.string(), z.unknown()).describe("Optional metadata associated with the assistant. Metadata is a JSON object that can store custom organizational data, tags, and attributes.").nullable().optional(),
|
|
15
15
|
instructions: z.string().describe("Description or directive for the assistant to apply to all responses.").nullable().optional(),
|
|
16
16
|
assistant_name: z.string().describe("The name of the updated assistant.").nullable()
|
|
17
|
-
}).describe("Response containing the updated assistant configuration.")
|
|
17
|
+
}).passthrough().describe("Response containing the updated assistant configuration.")
|
|
18
18
|
});
|
|
19
19
|
//#endregion
|
|
20
20
|
export { pineconeUpdateAssistant };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-assistant.mjs","names":[],"sources":["../../src/actions/update-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeUpdateAssistantInput = z.object({\n metadata: z.
|
|
1
|
+
{"version":3,"file":"update-assistant.mjs","names":[],"sources":["../../src/actions/update-assistant.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeUpdateAssistantInput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata associated with the assistant. Metadata is a JSON object that can store custom organizational data, tags, and attributes. Maximum size is 16KB.\").optional(),\n api_version: z.string().default(\"2025-10\").describe(\"Required date-based version header for the Pinecone API.\").optional(),\n instructions: z.string().describe(\"Description or directive for the assistant to apply to all responses. Maximum 16 KB.\").optional(),\n assistant_name: z.string().describe(\"The name of the assistant to update.\"),\n}).describe(\"Request parameters for updating a Pinecone assistant.\");\nexport const PineconeUpdateAssistantOutput = z.object({\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata associated with the assistant. Metadata is a JSON object that can store custom organizational data, tags, and attributes.\").nullable().optional(),\n instructions: z.string().describe(\"Description or directive for the assistant to apply to all responses.\").nullable().optional(),\n assistant_name: z.string().describe(\"The name of the updated assistant.\").nullable(),\n}).passthrough().describe(\"Response containing the updated assistant configuration.\");\n\nexport const pineconeUpdateAssistant = action(\"PINECONE_UPDATE_ASSISTANT\", {\n slug: \"pinecone-update-assistant\",\n name: \"Update Assistant\",\n description: \"Tool to update an assistant's instructions and configuration in Pinecone. Use when you need to modify an existing assistant's behavior by changing its instructions or metadata. Updates are applied immediately.\",\n input: PineconeUpdateAssistantInput,\n output: PineconeUpdateAssistantOutput,\n});\n"],"mappings":";;AAgBA,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB0C,EAAE,OAAO;EACnD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;EACnO,aAAa,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACzH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EACnI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC5E,CAAC,CAAC,CAAC,SAAS,uDAWH;CACP,QAX2C,EAAE,OAAO;EACpD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxN,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
|
|
@@ -4,17 +4,17 @@ let zod = require("zod");
|
|
|
4
4
|
const PineconeUpdateVectorInput = zod.z.object({
|
|
5
5
|
id: zod.z.string().describe("Vector's unique identifier. Length: 1-512 characters."),
|
|
6
6
|
dryRun: zod.z.boolean().describe("If true, return the number of records matching the filter without executing the update. Default: false.").optional(),
|
|
7
|
-
filter: zod.z.
|
|
7
|
+
filter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata filter expression for bulk updates. Example: {\"genre\": {\"$in\": [\"comedy\", \"documentary\"]}, \"year\": {\"$eq\": 2019}}").optional(),
|
|
8
8
|
values: zod.z.array(zod.z.number()).describe("Vector data to update. Length: 1-20,000 elements. If provided, overwrites previous values.").optional(),
|
|
9
9
|
indexHost: zod.z.string().describe("The host URL of the index to update vectors in. Get this from the list_indexes response (e.g., 'my-index-abc123.svc.region.pinecone.io')."),
|
|
10
10
|
namespace: zod.z.string().describe("The namespace containing the vector to update. If not specified, uses the default namespace.").optional(),
|
|
11
|
-
setMetadata: zod.z.
|
|
11
|
+
setMetadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata to set for the vector. Key-value pairs that will be added or overwrite previous metadata.").optional(),
|
|
12
12
|
sparseValues: zod.z.object({
|
|
13
13
|
values: zod.z.array(zod.z.number()).describe("Array of values corresponding to indices. Length: 1-1,000."),
|
|
14
14
|
indices: zod.z.array(zod.z.number().int()).describe("Array of index positions for sparse vector. Length: 1-1,000.")
|
|
15
15
|
}).describe("Sparse vector representation.").optional()
|
|
16
16
|
}).describe("Request model for updating a vector in Pinecone.");
|
|
17
|
-
const PineconeUpdateVectorOutput = zod.z.object({ matchedRecords: zod.z.number().int().describe("The number of records that matched the filter (if a filter was provided).").nullable().optional() }).describe("Response model for update vector operation.");
|
|
17
|
+
const PineconeUpdateVectorOutput = zod.z.object({ matchedRecords: zod.z.number().int().describe("The number of records that matched the filter (if a filter was provided).").nullable().optional() }).passthrough().describe("Response model for update vector operation.");
|
|
18
18
|
const pineconeUpdateVector = require_action.action("PINECONE_UPDATE_VECTOR", {
|
|
19
19
|
slug: "pinecone-update-vector",
|
|
20
20
|
name: "Update Vector",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-vector.cjs","names":["z","action"],"sources":["../../src/actions/update-vector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeUpdateVectorInput = z.object({\n id: z.string().describe(\"Vector's unique identifier. Length: 1-512 characters.\"),\n dryRun: z.boolean().describe(\"If true, return the number of records matching the filter without executing the update. Default: false.\").optional(),\n filter: z.
|
|
1
|
+
{"version":3,"file":"update-vector.cjs","names":["z","action"],"sources":["../../src/actions/update-vector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeUpdateVectorInput = z.object({\n id: z.string().describe(\"Vector's unique identifier. Length: 1-512 characters.\"),\n dryRun: z.boolean().describe(\"If true, return the number of records matching the filter without executing the update. Default: false.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter expression for bulk updates. Example: {\\\"genre\\\": {\\\"$in\\\": [\\\"comedy\\\", \\\"documentary\\\"]}, \\\"year\\\": {\\\"$eq\\\": 2019}}\").optional(),\n values: z.array(z.number()).describe(\"Vector data to update. Length: 1-20,000 elements. If provided, overwrites previous values.\").optional(),\n indexHost: z.string().describe(\"The host URL of the index to update vectors in. Get this from the list_indexes response (e.g., 'my-index-abc123.svc.region.pinecone.io').\"),\n namespace: z.string().describe(\"The namespace containing the vector to update. If not specified, uses the default namespace.\").optional(),\n setMetadata: z.record(z.string(), z.unknown()).describe(\"Metadata to set for the vector. Key-value pairs that will be added or overwrite previous metadata.\").optional(),\n sparseValues: z.object({\n values: z.array(z.number()).describe(\"Array of values corresponding to indices. Length: 1-1,000.\"),\n indices: z.array(z.number().int()).describe(\"Array of index positions for sparse vector. Length: 1-1,000.\"),\n}).describe(\"Sparse vector representation.\").optional(),\n}).describe(\"Request model for updating a vector in Pinecone.\");\nexport const PineconeUpdateVectorOutput = z.object({\n matchedRecords: z.number().int().describe(\"The number of records that matched the filter (if a filter was provided).\").nullable().optional(),\n}).passthrough().describe(\"Response model for update vector operation.\");\n\nexport const pineconeUpdateVector = action(\"PINECONE_UPDATE_VECTOR\", {\n slug: \"pinecone-update-vector\",\n name: \"Update Vector\",\n description: \"Tool to update a vector in Pinecone by ID. Use to overwrite vector values and/or metadata. Supports bulk updates via metadata filters.\",\n input: PineconeUpdateVectorInput,\n output: PineconeUpdateVectorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAC/E,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACjJ,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CACtM,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAC5I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;CAC1K,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CACxI,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACvK,cAAcA,IAAAA,EAAE,OAAO;EACvB,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4DAA4D;EACjG,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,8DAA8D;CAC5G,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -4,11 +4,11 @@ import { z } from "zod";
|
|
|
4
4
|
declare const PineconeUpdateVectorInput: z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
filter: z.ZodOptional<z.
|
|
7
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
8
|
values: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
9
9
|
indexHost: z.ZodString;
|
|
10
10
|
namespace: z.ZodOptional<z.ZodString>;
|
|
11
|
-
setMetadata: z.ZodOptional<z.
|
|
11
|
+
setMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
12
|
sparseValues: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
values: z.ZodArray<z.ZodNumber>;
|
|
14
14
|
indices: z.ZodArray<z.ZodNumber>;
|
|
@@ -16,15 +16,15 @@ declare const PineconeUpdateVectorInput: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const PineconeUpdateVectorOutput: z.ZodObject<{
|
|
18
18
|
matchedRecords: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>;
|
|
20
20
|
declare const pineconeUpdateVector: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
21
|
id: string;
|
|
22
22
|
indexHost: string;
|
|
23
23
|
dryRun?: boolean | undefined;
|
|
24
|
-
filter?: Record<string,
|
|
24
|
+
filter?: Record<string, unknown> | undefined;
|
|
25
25
|
values?: number[] | undefined;
|
|
26
26
|
namespace?: string | undefined;
|
|
27
|
-
setMetadata?: Record<string,
|
|
27
|
+
setMetadata?: Record<string, unknown> | undefined;
|
|
28
28
|
sparseValues?: {
|
|
29
29
|
values: number[];
|
|
30
30
|
indices: number[];
|
|
@@ -4,11 +4,11 @@ import { z } from "zod";
|
|
|
4
4
|
declare const PineconeUpdateVectorInput: z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
dryRun: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
filter: z.ZodOptional<z.
|
|
7
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
8
|
values: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
9
9
|
indexHost: z.ZodString;
|
|
10
10
|
namespace: z.ZodOptional<z.ZodString>;
|
|
11
|
-
setMetadata: z.ZodOptional<z.
|
|
11
|
+
setMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
12
|
sparseValues: z.ZodOptional<z.ZodObject<{
|
|
13
13
|
values: z.ZodArray<z.ZodNumber>;
|
|
14
14
|
indices: z.ZodArray<z.ZodNumber>;
|
|
@@ -16,15 +16,15 @@ declare const PineconeUpdateVectorInput: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const PineconeUpdateVectorOutput: z.ZodObject<{
|
|
18
18
|
matchedRecords: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$loose>;
|
|
20
20
|
declare const pineconeUpdateVector: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
21
|
id: string;
|
|
22
22
|
indexHost: string;
|
|
23
23
|
dryRun?: boolean | undefined;
|
|
24
|
-
filter?: Record<string,
|
|
24
|
+
filter?: Record<string, unknown> | undefined;
|
|
25
25
|
values?: number[] | undefined;
|
|
26
26
|
namespace?: string | undefined;
|
|
27
|
-
setMetadata?: Record<string,
|
|
27
|
+
setMetadata?: Record<string, unknown> | undefined;
|
|
28
28
|
sparseValues?: {
|
|
29
29
|
values: number[];
|
|
30
30
|
indices: number[];
|
|
@@ -7,17 +7,17 @@ const pineconeUpdateVector = action("PINECONE_UPDATE_VECTOR", {
|
|
|
7
7
|
input: z.object({
|
|
8
8
|
id: z.string().describe("Vector's unique identifier. Length: 1-512 characters."),
|
|
9
9
|
dryRun: z.boolean().describe("If true, return the number of records matching the filter without executing the update. Default: false.").optional(),
|
|
10
|
-
filter: z.
|
|
10
|
+
filter: z.record(z.string(), z.unknown()).describe("Metadata filter expression for bulk updates. Example: {\"genre\": {\"$in\": [\"comedy\", \"documentary\"]}, \"year\": {\"$eq\": 2019}}").optional(),
|
|
11
11
|
values: z.array(z.number()).describe("Vector data to update. Length: 1-20,000 elements. If provided, overwrites previous values.").optional(),
|
|
12
12
|
indexHost: z.string().describe("The host URL of the index to update vectors in. Get this from the list_indexes response (e.g., 'my-index-abc123.svc.region.pinecone.io')."),
|
|
13
13
|
namespace: z.string().describe("The namespace containing the vector to update. If not specified, uses the default namespace.").optional(),
|
|
14
|
-
setMetadata: z.
|
|
14
|
+
setMetadata: z.record(z.string(), z.unknown()).describe("Metadata to set for the vector. Key-value pairs that will be added or overwrite previous metadata.").optional(),
|
|
15
15
|
sparseValues: z.object({
|
|
16
16
|
values: z.array(z.number()).describe("Array of values corresponding to indices. Length: 1-1,000."),
|
|
17
17
|
indices: z.array(z.number().int()).describe("Array of index positions for sparse vector. Length: 1-1,000.")
|
|
18
18
|
}).describe("Sparse vector representation.").optional()
|
|
19
19
|
}).describe("Request model for updating a vector in Pinecone."),
|
|
20
|
-
output: z.object({ matchedRecords: z.number().int().describe("The number of records that matched the filter (if a filter was provided).").nullable().optional() }).describe("Response model for update vector operation.")
|
|
20
|
+
output: z.object({ matchedRecords: z.number().int().describe("The number of records that matched the filter (if a filter was provided).").nullable().optional() }).passthrough().describe("Response model for update vector operation.")
|
|
21
21
|
});
|
|
22
22
|
//#endregion
|
|
23
23
|
export { pineconeUpdateVector };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-vector.mjs","names":[],"sources":["../../src/actions/update-vector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeUpdateVectorInput = z.object({\n id: z.string().describe(\"Vector's unique identifier. Length: 1-512 characters.\"),\n dryRun: z.boolean().describe(\"If true, return the number of records matching the filter without executing the update. Default: false.\").optional(),\n filter: z.
|
|
1
|
+
{"version":3,"file":"update-vector.mjs","names":[],"sources":["../../src/actions/update-vector.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeUpdateVectorInput = z.object({\n id: z.string().describe(\"Vector's unique identifier. Length: 1-512 characters.\"),\n dryRun: z.boolean().describe(\"If true, return the number of records matching the filter without executing the update. Default: false.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter expression for bulk updates. Example: {\\\"genre\\\": {\\\"$in\\\": [\\\"comedy\\\", \\\"documentary\\\"]}, \\\"year\\\": {\\\"$eq\\\": 2019}}\").optional(),\n values: z.array(z.number()).describe(\"Vector data to update. Length: 1-20,000 elements. If provided, overwrites previous values.\").optional(),\n indexHost: z.string().describe(\"The host URL of the index to update vectors in. Get this from the list_indexes response (e.g., 'my-index-abc123.svc.region.pinecone.io').\"),\n namespace: z.string().describe(\"The namespace containing the vector to update. If not specified, uses the default namespace.\").optional(),\n setMetadata: z.record(z.string(), z.unknown()).describe(\"Metadata to set for the vector. Key-value pairs that will be added or overwrite previous metadata.\").optional(),\n sparseValues: z.object({\n values: z.array(z.number()).describe(\"Array of values corresponding to indices. Length: 1-1,000.\"),\n indices: z.array(z.number().int()).describe(\"Array of index positions for sparse vector. Length: 1-1,000.\"),\n}).describe(\"Sparse vector representation.\").optional(),\n}).describe(\"Request model for updating a vector in Pinecone.\");\nexport const PineconeUpdateVectorOutput = z.object({\n matchedRecords: z.number().int().describe(\"The number of records that matched the filter (if a filter was provided).\").nullable().optional(),\n}).passthrough().describe(\"Response model for update vector operation.\");\n\nexport const pineconeUpdateVector = action(\"PINECONE_UPDATE_VECTOR\", {\n slug: \"pinecone-update-vector\",\n name: \"Update Vector\",\n description: \"Tool to update a vector in Pinecone by ID. Use to overwrite vector values and/or metadata. Supports bulk updates via metadata filters.\",\n input: PineconeUpdateVectorInput,\n output: PineconeUpdateVectorOutput,\n});\n"],"mappings":";;AAqBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OArBuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EAC/E,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;EACjJ,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;EACtM,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;EAC5I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;EAC1K,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EACxI,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EACvK,cAAc,EAAE,OAAO;GACvB,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4DAA4D;GACjG,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,8DAA8D;EAC5G,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtD,CAAC,CAAC,CAAC,SAAS,kDASH;CACP,QATwC,EAAE,OAAO,EACjD,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC7I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -28,7 +28,7 @@ const PineconeUploadFileOutput = zod.z.object({
|
|
|
28
28
|
updated_on: zod.z.string().describe("ISO 8601 timestamp when the file was last updated.").nullable().optional(),
|
|
29
29
|
percent_done: zod.z.number().describe("Percentage of the file that has been processed (0-100).").nullable().optional(),
|
|
30
30
|
error_message: zod.z.string().describe("A message describing any error during file processing. Provided only if an error occurs.").nullable().optional()
|
|
31
|
-
}).describe("Response schema for uploading a file to a Pinecone assistant.");
|
|
31
|
+
}).passthrough().describe("Response schema for uploading a file to a Pinecone assistant.");
|
|
32
32
|
const pineconeUploadFile = require_action.action("PINECONE_UPLOAD_FILE", {
|
|
33
33
|
slug: "pinecone-upload-file",
|
|
34
34
|
name: "Upload File to Assistant",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-file.cjs","names":["z","action"],"sources":["../../src/actions/upload-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeUploadFileInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The file to upload.\").optional(),\n metadata: z.string().describe(\"Optional JSON-encoded metadata for the file. Use for filtering or categorization.\").optional(),\n multimodal: z.enum([\"true\", \"false\"]).describe(\"Optional flag to opt in to multimodal file processing (PDFs only). Can be 'true' or 'false'. Default is 'false'.\").optional(),\n file_content: z.object({\n content: z.string().describe(\"Base64-encoded content of the file.\"),\n mimetype: z.string().default(\"application/octet-stream\").describe(\"MIME type of the file (e.g., 'text/plain', 'application/pdf').\").optional(),\n file_name: z.string().describe(\"Name of the file to upload (e.g., 'document.pdf', 'test.txt').\"),\n}).describe(\"Model representing a file with direct content.\").optional(),\n assistant_host: z.string().describe(\"The host URL of the assistant (e.g., 'https://prod-1-data.ke.pinecone.io'). If not provided, will use the base_url from metadata.\").optional(),\n assistant_name: z.string().describe(\"The name of the assistant to upload the file to.\"),\n}).describe(\"Request model for uploading a file to a Pinecone assistant.\");\nexport const PineconeUploadFileOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the uploaded file.\").nullable(),\n name: z.string().describe(\"Name of the uploaded file.\").nullable(),\n status: z.string().describe(\"Current state of the uploaded file. Possible values: 'Processing' (file is being processed), 'Available' (processing completed successfully), 'Deleting' (deletion initiated), 'ProcessingFailed' (processing failed with an error).\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata associated with the file.\").nullable().optional(),\n created_on: z.string().describe(\"ISO 8601 timestamp when the file was created.\").nullable().optional(),\n multimodal: z.boolean().describe(\"Indicates whether the file was processed as multimodal.\").nullable().optional(),\n signed_url: z.string().describe(\"A signed URL that provides temporary, read-only access to the underlying file. Treat as sensitive data. Expires after a short time.\").nullable().optional(),\n updated_on: z.string().describe(\"ISO 8601 timestamp when the file was last updated.\").nullable().optional(),\n percent_done: z.number().describe(\"Percentage of the file that has been processed (0-100).\").nullable().optional(),\n error_message: z.string().describe(\"A message describing any error during file processing. Provided only if an error occurs.\").nullable().optional(),\n}).describe(\"Response schema for uploading a file to a Pinecone assistant.\");\n\nexport const pineconeUploadFile = action(\"PINECONE_UPLOAD_FILE\", {\n slug: \"pinecone-upload-file\",\n name: \"Upload File to Assistant\",\n description: \"Tool to upload a file to a Pinecone assistant for processing. Use when you need to add documents, PDFs, or other files to an assistant for knowledge retrieval or multimodal processing.\",\n input: PineconeUploadFileInput,\n output: PineconeUploadFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC5H,YAAYA,IAAAA,EAAE,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC5K,cAAcA,IAAAA,EAAE,OAAO;EACvB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,0BAA0B,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC7I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACjG,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CAClL,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;AACxF,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sOAAsO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxR,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3L,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,+DAA+D;
|
|
1
|
+
{"version":3,"file":"upload-file.cjs","names":["z","action"],"sources":["../../src/actions/upload-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PineconeUploadFileInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The file to upload.\").optional(),\n metadata: z.string().describe(\"Optional JSON-encoded metadata for the file. Use for filtering or categorization.\").optional(),\n multimodal: z.enum([\"true\", \"false\"]).describe(\"Optional flag to opt in to multimodal file processing (PDFs only). Can be 'true' or 'false'. Default is 'false'.\").optional(),\n file_content: z.object({\n content: z.string().describe(\"Base64-encoded content of the file.\"),\n mimetype: z.string().default(\"application/octet-stream\").describe(\"MIME type of the file (e.g., 'text/plain', 'application/pdf').\").optional(),\n file_name: z.string().describe(\"Name of the file to upload (e.g., 'document.pdf', 'test.txt').\"),\n}).describe(\"Model representing a file with direct content.\").optional(),\n assistant_host: z.string().describe(\"The host URL of the assistant (e.g., 'https://prod-1-data.ke.pinecone.io'). If not provided, will use the base_url from metadata.\").optional(),\n assistant_name: z.string().describe(\"The name of the assistant to upload the file to.\"),\n}).describe(\"Request model for uploading a file to a Pinecone assistant.\");\nexport const PineconeUploadFileOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the uploaded file.\").nullable(),\n name: z.string().describe(\"Name of the uploaded file.\").nullable(),\n status: z.string().describe(\"Current state of the uploaded file. Possible values: 'Processing' (file is being processed), 'Available' (processing completed successfully), 'Deleting' (deletion initiated), 'ProcessingFailed' (processing failed with an error).\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata associated with the file.\").nullable().optional(),\n created_on: z.string().describe(\"ISO 8601 timestamp when the file was created.\").nullable().optional(),\n multimodal: z.boolean().describe(\"Indicates whether the file was processed as multimodal.\").nullable().optional(),\n signed_url: z.string().describe(\"A signed URL that provides temporary, read-only access to the underlying file. Treat as sensitive data. Expires after a short time.\").nullable().optional(),\n updated_on: z.string().describe(\"ISO 8601 timestamp when the file was last updated.\").nullable().optional(),\n percent_done: z.number().describe(\"Percentage of the file that has been processed (0-100).\").nullable().optional(),\n error_message: z.string().describe(\"A message describing any error during file processing. Provided only if an error occurs.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for uploading a file to a Pinecone assistant.\");\n\nexport const pineconeUploadFile = action(\"PINECONE_UPLOAD_FILE\", {\n slug: \"pinecone-upload-file\",\n name: \"Upload File to Assistant\",\n description: \"Tool to upload a file to a Pinecone assistant for processing. Use when you need to add documents, PDFs, or other files to an assistant for knowledge retrieval or multimodal processing.\",\n input: PineconeUploadFileInput,\n output: PineconeUploadFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1C,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC5H,YAAYA,IAAAA,EAAE,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC5K,cAAcA,IAAAA,EAAE,OAAO;EACvB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,0BAA0B,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC7I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACjG,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mIAAmI,CAAC,CAAC,SAAS;CAClL,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;AACxF,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sOAAsO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxR,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qIAAqI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3L,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -31,7 +31,7 @@ declare const PineconeUploadFileOutput: z.ZodObject<{
|
|
|
31
31
|
updated_on: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
percent_done: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
33
|
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const pineconeUploadFile: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
assistant_name: string;
|
|
37
37
|
file?: {
|
|
@@ -31,7 +31,7 @@ declare const PineconeUploadFileOutput: z.ZodObject<{
|
|
|
31
31
|
updated_on: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
percent_done: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
33
|
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>;
|
|
35
35
|
declare const pineconeUploadFile: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
36
36
|
assistant_name: string;
|
|
37
37
|
file?: {
|
|
@@ -31,7 +31,7 @@ const pineconeUploadFile = action("PINECONE_UPLOAD_FILE", {
|
|
|
31
31
|
updated_on: z.string().describe("ISO 8601 timestamp when the file was last updated.").nullable().optional(),
|
|
32
32
|
percent_done: z.number().describe("Percentage of the file that has been processed (0-100).").nullable().optional(),
|
|
33
33
|
error_message: z.string().describe("A message describing any error during file processing. Provided only if an error occurs.").nullable().optional()
|
|
34
|
-
}).describe("Response schema for uploading a file to a Pinecone assistant.")
|
|
34
|
+
}).passthrough().describe("Response schema for uploading a file to a Pinecone assistant.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { pineconeUploadFile };
|