@meetkai/mka1 0.55.5 → 0.55.8
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/README.md +375 -361
- package/bin/mcp-server.js +573 -26
- package/bin/mcp-server.js.map +31 -26
- package/dist/commonjs/funcs/authOrgsGetInboundRules.d.ts +18 -0
- package/dist/commonjs/funcs/authOrgsGetInboundRules.d.ts.map +1 -0
- package/dist/commonjs/funcs/authOrgsGetInboundRules.js +145 -0
- package/dist/commonjs/funcs/authOrgsGetInboundRules.js.map +1 -0
- package/dist/commonjs/funcs/authOrgsUpdateInboundRules.d.ts +18 -0
- package/dist/commonjs/funcs/authOrgsUpdateInboundRules.d.ts.map +1 -0
- package/dist/commonjs/funcs/authOrgsUpdateInboundRules.js +140 -0
- package/dist/commonjs/funcs/authOrgsUpdateInboundRules.js.map +1 -0
- package/dist/commonjs/funcs/llmFilesList.js +1 -0
- package/dist/commonjs/funcs/llmFilesList.js.map +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreate.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreate.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreateFile.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreateFile.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreateFileBatch.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreate.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFile.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFile.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFileBatch.js.map +1 -1
- package/dist/commonjs/models/components/banwordsguardrail.d.ts +6 -0
- package/dist/commonjs/models/components/banwordsguardrail.d.ts.map +1 -1
- package/dist/commonjs/models/components/banwordsguardrail.js +5 -0
- package/dist/commonjs/models/components/banwordsguardrail.js.map +1 -1
- package/dist/commonjs/models/components/classifierguardrail.d.ts +6 -0
- package/dist/commonjs/models/components/classifierguardrail.d.ts.map +1 -1
- package/dist/commonjs/models/components/classifierguardrail.js +5 -0
- package/dist/commonjs/models/components/classifierguardrail.js.map +1 -1
- package/dist/commonjs/models/components/clusterdefaultrulesummary.d.ts +6 -0
- package/dist/commonjs/models/components/clusterdefaultrulesummary.d.ts.map +1 -1
- package/dist/commonjs/models/components/clusterdefaultrulesummary.js +5 -0
- package/dist/commonjs/models/components/clusterdefaultrulesummary.js.map +1 -1
- package/dist/commonjs/models/components/createvectorstorefilebatchrequest.d.ts +5 -0
- package/dist/commonjs/models/components/createvectorstorefilebatchrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createvectorstorefilebatchrequest.js +4 -0
- package/dist/commonjs/models/components/createvectorstorefilebatchrequest.js.map +1 -1
- package/dist/commonjs/models/components/file.d.ts +5 -0
- package/dist/commonjs/models/components/file.d.ts.map +1 -1
- package/dist/commonjs/models/components/file.js +2 -0
- package/dist/commonjs/models/components/file.js.map +1 -1
- package/dist/commonjs/models/components/guardrailinputsource.d.ts +23 -0
- package/dist/commonjs/models/components/guardrailinputsource.d.ts.map +1 -0
- package/dist/commonjs/models/components/guardrailinputsource.js +57 -0
- package/dist/commonjs/models/components/guardrailinputsource.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/leakageguardrail.d.ts +6 -0
- package/dist/commonjs/models/components/leakageguardrail.d.ts.map +1 -1
- package/dist/commonjs/models/components/leakageguardrail.js +5 -0
- package/dist/commonjs/models/components/leakageguardrail.js.map +1 -1
- package/dist/commonjs/models/components/promptinjectionguardrail.d.ts +6 -0
- package/dist/commonjs/models/components/promptinjectionguardrail.d.ts.map +1 -1
- package/dist/commonjs/models/components/promptinjectionguardrail.js +5 -0
- package/dist/commonjs/models/components/promptinjectionguardrail.js.map +1 -1
- package/dist/commonjs/models/components/testguardrailsrequest.d.ts +6 -0
- package/dist/commonjs/models/components/testguardrailsrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/testguardrailsrequest.js +3 -0
- package/dist/commonjs/models/components/testguardrailsrequest.js.map +1 -1
- package/dist/commonjs/models/components/vectorstorefileerror.d.ts +4 -3
- package/dist/commonjs/models/components/vectorstorefileerror.d.ts.map +1 -1
- package/dist/commonjs/models/components/vectorstorefileerror.js +2 -1
- package/dist/commonjs/models/components/vectorstorefileerror.js.map +1 -1
- package/dist/commonjs/models/errors/getorginboundrules.d.ts +185 -0
- package/dist/commonjs/models/errors/getorginboundrules.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getorginboundrules.js +266 -0
- package/dist/commonjs/models/errors/getorginboundrules.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +2 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +2 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/updateorginboundrules.d.ts +188 -0
- package/dist/commonjs/models/errors/updateorginboundrules.d.ts.map +1 -0
- package/dist/commonjs/models/errors/updateorginboundrules.js +270 -0
- package/dist/commonjs/models/errors/updateorginboundrules.js.map +1 -0
- package/dist/commonjs/models/operations/getorginboundrules.d.ts +80 -0
- package/dist/commonjs/models/operations/getorginboundrules.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getorginboundrules.js +133 -0
- package/dist/commonjs/models/operations/getorginboundrules.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listfiles.d.ts +2 -0
- package/dist/commonjs/models/operations/listfiles.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listfiles.js +2 -0
- package/dist/commonjs/models/operations/listfiles.js.map +1 -1
- package/dist/commonjs/models/operations/updateorginboundrules.d.ts +110 -0
- package/dist/commonjs/models/operations/updateorginboundrules.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateorginboundrules.js +172 -0
- package/dist/commonjs/models/operations/updateorginboundrules.js.map +1 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.core.d.ts +14 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.core.js +36 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.core.js.map +1 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.d.ts +39 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.d.ts.map +1 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.js +60 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.js.map +1 -0
- package/dist/commonjs/react-query/authOrgsUpdateInboundRules.d.ts +30 -0
- package/dist/commonjs/react-query/authOrgsUpdateInboundRules.d.ts.map +1 -0
- package/dist/commonjs/react-query/authOrgsUpdateInboundRules.js +47 -0
- package/dist/commonjs/react-query/authOrgsUpdateInboundRules.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/llmFilesList.core.d.ts +1 -0
- package/dist/commonjs/react-query/llmFilesList.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmFilesList.core.js +1 -0
- package/dist/commonjs/react-query/llmFilesList.core.js.map +1 -1
- package/dist/commonjs/react-query/llmFilesList.d.ts +2 -0
- package/dist/commonjs/react-query/llmFilesList.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmFilesList.js.map +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreate.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreate.js +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreateFile.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreateFile.js +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreateFileBatch.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/commonjs/sdk/orgs.d.ts +14 -0
- package/dist/commonjs/sdk/orgs.d.ts.map +1 -1
- package/dist/commonjs/sdk/orgs.js +20 -0
- package/dist/commonjs/sdk/orgs.js.map +1 -1
- package/dist/commonjs/sdk/vectorstores.d.ts +3 -3
- package/dist/commonjs/sdk/vectorstores.js +3 -3
- package/dist/esm/funcs/authOrgsGetInboundRules.d.ts +18 -0
- package/dist/esm/funcs/authOrgsGetInboundRules.d.ts.map +1 -0
- package/dist/esm/funcs/authOrgsGetInboundRules.js +109 -0
- package/dist/esm/funcs/authOrgsGetInboundRules.js.map +1 -0
- package/dist/esm/funcs/authOrgsUpdateInboundRules.d.ts +18 -0
- package/dist/esm/funcs/authOrgsUpdateInboundRules.d.ts.map +1 -0
- package/dist/esm/funcs/authOrgsUpdateInboundRules.js +104 -0
- package/dist/esm/funcs/authOrgsUpdateInboundRules.js.map +1 -0
- package/dist/esm/funcs/llmFilesList.js +1 -0
- package/dist/esm/funcs/llmFilesList.js.map +1 -1
- package/dist/esm/funcs/llmVectorStoresCreate.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresCreate.js +1 -1
- package/dist/esm/funcs/llmVectorStoresCreateFile.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresCreateFile.js +1 -1
- package/dist/esm/funcs/llmVectorStoresCreateFileBatch.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreate.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreate.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreateFile.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreateFile.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreateFileBatch.js.map +1 -1
- package/dist/esm/models/components/banwordsguardrail.d.ts +6 -0
- package/dist/esm/models/components/banwordsguardrail.d.ts.map +1 -1
- package/dist/esm/models/components/banwordsguardrail.js +5 -0
- package/dist/esm/models/components/banwordsguardrail.js.map +1 -1
- package/dist/esm/models/components/classifierguardrail.d.ts +6 -0
- package/dist/esm/models/components/classifierguardrail.d.ts.map +1 -1
- package/dist/esm/models/components/classifierguardrail.js +5 -0
- package/dist/esm/models/components/classifierguardrail.js.map +1 -1
- package/dist/esm/models/components/clusterdefaultrulesummary.d.ts +6 -0
- package/dist/esm/models/components/clusterdefaultrulesummary.d.ts.map +1 -1
- package/dist/esm/models/components/clusterdefaultrulesummary.js +5 -0
- package/dist/esm/models/components/clusterdefaultrulesummary.js.map +1 -1
- package/dist/esm/models/components/createvectorstorefilebatchrequest.d.ts +5 -0
- package/dist/esm/models/components/createvectorstorefilebatchrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createvectorstorefilebatchrequest.js +4 -0
- package/dist/esm/models/components/createvectorstorefilebatchrequest.js.map +1 -1
- package/dist/esm/models/components/file.d.ts +5 -0
- package/dist/esm/models/components/file.d.ts.map +1 -1
- package/dist/esm/models/components/file.js +2 -0
- package/dist/esm/models/components/file.js.map +1 -1
- package/dist/esm/models/components/guardrailinputsource.d.ts +23 -0
- package/dist/esm/models/components/guardrailinputsource.d.ts.map +1 -0
- package/dist/esm/models/components/guardrailinputsource.js +21 -0
- package/dist/esm/models/components/guardrailinputsource.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/leakageguardrail.d.ts +6 -0
- package/dist/esm/models/components/leakageguardrail.d.ts.map +1 -1
- package/dist/esm/models/components/leakageguardrail.js +5 -0
- package/dist/esm/models/components/leakageguardrail.js.map +1 -1
- package/dist/esm/models/components/promptinjectionguardrail.d.ts +6 -0
- package/dist/esm/models/components/promptinjectionguardrail.d.ts.map +1 -1
- package/dist/esm/models/components/promptinjectionguardrail.js +5 -0
- package/dist/esm/models/components/promptinjectionguardrail.js.map +1 -1
- package/dist/esm/models/components/testguardrailsrequest.d.ts +6 -0
- package/dist/esm/models/components/testguardrailsrequest.d.ts.map +1 -1
- package/dist/esm/models/components/testguardrailsrequest.js +3 -0
- package/dist/esm/models/components/testguardrailsrequest.js.map +1 -1
- package/dist/esm/models/components/vectorstorefileerror.d.ts +4 -3
- package/dist/esm/models/components/vectorstorefileerror.d.ts.map +1 -1
- package/dist/esm/models/components/vectorstorefileerror.js +2 -1
- package/dist/esm/models/components/vectorstorefileerror.js.map +1 -1
- package/dist/esm/models/errors/getorginboundrules.d.ts +185 -0
- package/dist/esm/models/errors/getorginboundrules.d.ts.map +1 -0
- package/dist/esm/models/errors/getorginboundrules.js +223 -0
- package/dist/esm/models/errors/getorginboundrules.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +2 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +2 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/updateorginboundrules.d.ts +188 -0
- package/dist/esm/models/errors/updateorginboundrules.d.ts.map +1 -0
- package/dist/esm/models/errors/updateorginboundrules.js +227 -0
- package/dist/esm/models/errors/updateorginboundrules.js.map +1 -0
- package/dist/esm/models/operations/getorginboundrules.d.ts +80 -0
- package/dist/esm/models/operations/getorginboundrules.d.ts.map +1 -0
- package/dist/esm/models/operations/getorginboundrules.js +89 -0
- package/dist/esm/models/operations/getorginboundrules.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listfiles.d.ts +2 -0
- package/dist/esm/models/operations/listfiles.d.ts.map +1 -1
- package/dist/esm/models/operations/listfiles.js +2 -0
- package/dist/esm/models/operations/listfiles.js.map +1 -1
- package/dist/esm/models/operations/updateorginboundrules.d.ts +110 -0
- package/dist/esm/models/operations/updateorginboundrules.d.ts.map +1 -0
- package/dist/esm/models/operations/updateorginboundrules.js +124 -0
- package/dist/esm/models/operations/updateorginboundrules.js.map +1 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.core.d.ts +14 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.core.d.ts.map +1 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.core.js +31 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.core.js.map +1 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.d.ts +39 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.d.ts.map +1 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.js +50 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.js.map +1 -0
- package/dist/esm/react-query/authOrgsUpdateInboundRules.d.ts +30 -0
- package/dist/esm/react-query/authOrgsUpdateInboundRules.d.ts.map +1 -0
- package/dist/esm/react-query/authOrgsUpdateInboundRules.js +42 -0
- package/dist/esm/react-query/authOrgsUpdateInboundRules.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/llmFilesList.core.d.ts +1 -0
- package/dist/esm/react-query/llmFilesList.core.d.ts.map +1 -1
- package/dist/esm/react-query/llmFilesList.core.js +1 -0
- package/dist/esm/react-query/llmFilesList.core.js.map +1 -1
- package/dist/esm/react-query/llmFilesList.d.ts +2 -0
- package/dist/esm/react-query/llmFilesList.d.ts.map +1 -1
- package/dist/esm/react-query/llmFilesList.js.map +1 -1
- package/dist/esm/react-query/llmVectorStoresCreate.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresCreate.js +1 -1
- package/dist/esm/react-query/llmVectorStoresCreateFile.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresCreateFile.js +1 -1
- package/dist/esm/react-query/llmVectorStoresCreateFileBatch.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/esm/sdk/orgs.d.ts +14 -0
- package/dist/esm/sdk/orgs.d.ts.map +1 -1
- package/dist/esm/sdk/orgs.js +20 -0
- package/dist/esm/sdk/orgs.js.map +1 -1
- package/dist/esm/sdk/vectorstores.d.ts +3 -3
- package/dist/esm/sdk/vectorstores.js +3 -3
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authOrgsGetInboundRules.ts +248 -0
- package/src/funcs/authOrgsUpdateInboundRules.ts +246 -0
- package/src/funcs/llmFilesList.ts +1 -0
- package/src/funcs/llmVectorStoresCreate.ts +1 -1
- package/src/funcs/llmVectorStoresCreateFile.ts +1 -1
- package/src/funcs/llmVectorStoresCreateFileBatch.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresCreate.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresCreateFile.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresCreateFileBatch.ts +1 -1
- package/src/models/components/banwordsguardrail.ts +14 -0
- package/src/models/components/classifierguardrail.ts +14 -0
- package/src/models/components/clusterdefaultrulesummary.ts +14 -0
- package/src/models/components/createvectorstorefilebatchrequest.ts +9 -0
- package/src/models/components/file.ts +7 -0
- package/src/models/components/guardrailinputsource.ts +32 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/leakageguardrail.ts +14 -0
- package/src/models/components/promptinjectionguardrail.ts +14 -0
- package/src/models/components/testguardrailsrequest.ts +12 -0
- package/src/models/components/vectorstorefileerror.ts +4 -3
- package/src/models/errors/getorginboundrules.ts +451 -0
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/updateorginboundrules.ts +461 -0
- package/src/models/operations/getorginboundrules.ts +233 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listfiles.ts +4 -0
- package/src/models/operations/updateorginboundrules.ts +328 -0
- package/src/react-query/authOrgsGetInboundRules.core.ts +80 -0
- package/src/react-query/authOrgsGetInboundRules.ts +153 -0
- package/src/react-query/authOrgsUpdateInboundRules.ts +120 -0
- package/src/react-query/index.ts +2 -0
- package/src/react-query/llmFilesList.core.ts +2 -0
- package/src/react-query/llmFilesList.ts +2 -0
- package/src/react-query/llmVectorStoresCreate.ts +1 -1
- package/src/react-query/llmVectorStoresCreateFile.ts +1 -1
- package/src/react-query/llmVectorStoresCreateFileBatch.ts +1 -1
- package/src/sdk/orgs.ts +40 -0
- package/src/sdk/vectorstores.ts +3 -3
|
@@ -13,6 +13,11 @@ import {
|
|
|
13
13
|
ClassifierConfig$Outbound,
|
|
14
14
|
ClassifierConfig$outboundSchema,
|
|
15
15
|
} from "./classifierconfig.js";
|
|
16
|
+
import {
|
|
17
|
+
GuardrailInputSource,
|
|
18
|
+
GuardrailInputSource$inboundSchema,
|
|
19
|
+
GuardrailInputSource$outboundSchema,
|
|
20
|
+
} from "./guardrailinputsource.js";
|
|
16
21
|
|
|
17
22
|
export type ClassifierGuardrail = {
|
|
18
23
|
mode: "classifier";
|
|
@@ -24,6 +29,10 @@ export type ClassifierGuardrail = {
|
|
|
24
29
|
* Also apply this guardrail to model output, not just the request
|
|
25
30
|
*/
|
|
26
31
|
checkOutput?: boolean | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Request sources this guardrail checks before they reach the model. Omit to use the mode's default: every source for classifier; every source except system for ban_words, since instructions often name the terms they forbid; only what the user sends for prompt_injection and leakage, whose keyword patterns match ordinary instructions, replies and documents. An empty list checks no input, so the rule only checks output when check_output is set. Rules saved before this field existed were set to user messages only.
|
|
34
|
+
*/
|
|
35
|
+
inputSources?: Array<GuardrailInputSource> | undefined;
|
|
27
36
|
config: ClassifierConfig;
|
|
28
37
|
};
|
|
29
38
|
|
|
@@ -36,10 +45,12 @@ export const ClassifierGuardrail$inboundSchema: z.ZodType<
|
|
|
36
45
|
mode: z.literal("classifier"),
|
|
37
46
|
enabled: z.boolean().default(true),
|
|
38
47
|
check_output: z.boolean().optional(),
|
|
48
|
+
input_sources: z.array(GuardrailInputSource$inboundSchema).optional(),
|
|
39
49
|
config: ClassifierConfig$inboundSchema,
|
|
40
50
|
}).transform((v) => {
|
|
41
51
|
return remap$(v, {
|
|
42
52
|
"check_output": "checkOutput",
|
|
53
|
+
"input_sources": "inputSources",
|
|
43
54
|
});
|
|
44
55
|
});
|
|
45
56
|
/** @internal */
|
|
@@ -47,6 +58,7 @@ export type ClassifierGuardrail$Outbound = {
|
|
|
47
58
|
mode: "classifier";
|
|
48
59
|
enabled: boolean;
|
|
49
60
|
check_output?: boolean | undefined;
|
|
61
|
+
input_sources?: Array<string> | undefined;
|
|
50
62
|
config: ClassifierConfig$Outbound;
|
|
51
63
|
};
|
|
52
64
|
|
|
@@ -59,10 +71,12 @@ export const ClassifierGuardrail$outboundSchema: z.ZodType<
|
|
|
59
71
|
mode: z.literal("classifier"),
|
|
60
72
|
enabled: z.boolean().default(true),
|
|
61
73
|
checkOutput: z.boolean().optional(),
|
|
74
|
+
inputSources: z.array(GuardrailInputSource$outboundSchema).optional(),
|
|
62
75
|
config: ClassifierConfig$outboundSchema,
|
|
63
76
|
}).transform((v) => {
|
|
64
77
|
return remap$(v, {
|
|
65
78
|
checkOutput: "check_output",
|
|
79
|
+
inputSources: "input_sources",
|
|
66
80
|
});
|
|
67
81
|
});
|
|
68
82
|
|
|
@@ -7,6 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
GuardrailInputSource,
|
|
12
|
+
GuardrailInputSource$inboundSchema,
|
|
13
|
+
GuardrailInputSource$outboundSchema,
|
|
14
|
+
} from "./guardrailinputsource.js";
|
|
10
15
|
import {
|
|
11
16
|
GuardrailMode,
|
|
12
17
|
GuardrailMode$inboundSchema,
|
|
@@ -23,6 +28,10 @@ export type ClusterDefaultRuleSummary = {
|
|
|
23
28
|
* Whether this guardrail also checks model output
|
|
24
29
|
*/
|
|
25
30
|
checkOutput?: boolean | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Request sources this guardrail checks
|
|
33
|
+
*/
|
|
34
|
+
inputSources: Array<GuardrailInputSource>;
|
|
26
35
|
/**
|
|
27
36
|
* The message returned when this guardrail blocks a request
|
|
28
37
|
*/
|
|
@@ -38,10 +47,12 @@ export const ClusterDefaultRuleSummary$inboundSchema: z.ZodType<
|
|
|
38
47
|
mode: GuardrailMode$inboundSchema,
|
|
39
48
|
enabled: z.boolean(),
|
|
40
49
|
check_output: z.boolean().optional(),
|
|
50
|
+
input_sources: z.array(GuardrailInputSource$inboundSchema),
|
|
41
51
|
rejection_message: z.string().optional(),
|
|
42
52
|
}).transform((v) => {
|
|
43
53
|
return remap$(v, {
|
|
44
54
|
"check_output": "checkOutput",
|
|
55
|
+
"input_sources": "inputSources",
|
|
45
56
|
"rejection_message": "rejectionMessage",
|
|
46
57
|
});
|
|
47
58
|
});
|
|
@@ -50,6 +61,7 @@ export type ClusterDefaultRuleSummary$Outbound = {
|
|
|
50
61
|
mode: string;
|
|
51
62
|
enabled: boolean;
|
|
52
63
|
check_output?: boolean | undefined;
|
|
64
|
+
input_sources: Array<string>;
|
|
53
65
|
rejection_message?: string | undefined;
|
|
54
66
|
};
|
|
55
67
|
|
|
@@ -62,10 +74,12 @@ export const ClusterDefaultRuleSummary$outboundSchema: z.ZodType<
|
|
|
62
74
|
mode: GuardrailMode$outboundSchema,
|
|
63
75
|
enabled: z.boolean(),
|
|
64
76
|
checkOutput: z.boolean().optional(),
|
|
77
|
+
inputSources: z.array(GuardrailInputSource$outboundSchema),
|
|
65
78
|
rejectionMessage: z.string().optional(),
|
|
66
79
|
}).transform((v) => {
|
|
67
80
|
return remap$(v, {
|
|
68
81
|
checkOutput: "check_output",
|
|
82
|
+
inputSources: "input_sources",
|
|
69
83
|
rejectionMessage: "rejection_message",
|
|
70
84
|
});
|
|
71
85
|
});
|
|
@@ -58,6 +58,10 @@ export type CreateVectorStoreFileBatchRequest = {
|
|
|
58
58
|
* Batch-wide default chunking strategy, applied to every file that does not carry its own (a 'files' entry's chunking_strategy overrides this).
|
|
59
59
|
*/
|
|
60
60
|
chunkingStrategy?: AutoChunkingStrategy | StaticChunkingStrategy | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* When a file has the same content (SHA-256) as a file the store already holds, or as an earlier file in this batch, skip it instead of refusing the batch. A skipped file gets a cancelled row whose last_error is duplicate_file and names the file that holds the content. Default false: a duplicate fails the whole batch with 409 and nothing is attached.
|
|
63
|
+
*/
|
|
64
|
+
skipDuplicates?: boolean | undefined;
|
|
61
65
|
};
|
|
62
66
|
|
|
63
67
|
/** @internal */
|
|
@@ -173,10 +177,12 @@ export const CreateVectorStoreFileBatchRequest$inboundSchema: z.ZodType<
|
|
|
173
177
|
AutoChunkingStrategy$inboundSchema,
|
|
174
178
|
StaticChunkingStrategy$inboundSchema,
|
|
175
179
|
]).optional(),
|
|
180
|
+
skip_duplicates: z.boolean().default(false),
|
|
176
181
|
}).transform((v) => {
|
|
177
182
|
return remap$(v, {
|
|
178
183
|
"file_ids": "fileIds",
|
|
179
184
|
"chunking_strategy": "chunkingStrategy",
|
|
185
|
+
"skip_duplicates": "skipDuplicates",
|
|
180
186
|
});
|
|
181
187
|
});
|
|
182
188
|
/** @internal */
|
|
@@ -188,6 +194,7 @@ export type CreateVectorStoreFileBatchRequest$Outbound = {
|
|
|
188
194
|
| AutoChunkingStrategy$Outbound
|
|
189
195
|
| StaticChunkingStrategy$Outbound
|
|
190
196
|
| undefined;
|
|
197
|
+
skip_duplicates: boolean;
|
|
191
198
|
};
|
|
192
199
|
|
|
193
200
|
/** @internal */
|
|
@@ -204,10 +211,12 @@ export const CreateVectorStoreFileBatchRequest$outboundSchema: z.ZodType<
|
|
|
204
211
|
AutoChunkingStrategy$outboundSchema,
|
|
205
212
|
StaticChunkingStrategy$outboundSchema,
|
|
206
213
|
]).optional(),
|
|
214
|
+
skipDuplicates: z.boolean().default(false),
|
|
207
215
|
}).transform((v) => {
|
|
208
216
|
return remap$(v, {
|
|
209
217
|
fileIds: "file_ids",
|
|
210
218
|
chunkingStrategy: "chunking_strategy",
|
|
219
|
+
skipDuplicates: "skip_duplicates",
|
|
211
220
|
});
|
|
212
221
|
});
|
|
213
222
|
|
|
@@ -72,6 +72,10 @@ export type FileT = {
|
|
|
72
72
|
* DEPRECATED: Details about file status
|
|
73
73
|
*/
|
|
74
74
|
statusDetails?: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* SHA-256 of the file's bytes, lowercase hex. Two files with the same value hold the same content; a vector store refuses a second one. Null for files uploaded before hashing, until they are attached to a store or backfilled.
|
|
77
|
+
*/
|
|
78
|
+
sha256?: string | null | undefined;
|
|
75
79
|
};
|
|
76
80
|
|
|
77
81
|
/** @internal */
|
|
@@ -100,6 +104,7 @@ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
|
100
104
|
purpose: Purpose$inboundSchema,
|
|
101
105
|
status: FileStatus$inboundSchema.optional(),
|
|
102
106
|
status_details: z.string().optional(),
|
|
107
|
+
sha256: z.nullable(z.string()).optional(),
|
|
103
108
|
}).transform((v) => {
|
|
104
109
|
return remap$(v, {
|
|
105
110
|
"created_at": "createdAt",
|
|
@@ -118,6 +123,7 @@ export type FileT$Outbound = {
|
|
|
118
123
|
purpose: string;
|
|
119
124
|
status?: string | undefined;
|
|
120
125
|
status_details?: string | undefined;
|
|
126
|
+
sha256?: string | null | undefined;
|
|
121
127
|
};
|
|
122
128
|
|
|
123
129
|
/** @internal */
|
|
@@ -135,6 +141,7 @@ export const FileT$outboundSchema: z.ZodType<
|
|
|
135
141
|
purpose: Purpose$outboundSchema,
|
|
136
142
|
status: FileStatus$outboundSchema.optional(),
|
|
137
143
|
statusDetails: z.string().optional(),
|
|
144
|
+
sha256: z.nullable(z.string()).optional(),
|
|
138
145
|
}).transform((v) => {
|
|
139
146
|
return remap$(v, {
|
|
140
147
|
createdAt: "created_at",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A source of model input: user (user messages and text sent to a sleeping response), system (system and developer messages, instructions and compaction summaries), assistant (earlier assistant messages), tool (function, custom tool, MCP, shell and code interpreter results), retrieval (file search, web search, web page, uploaded file and history search results), image (text read from images in messages) or audio (transcripts of audio in messages)
|
|
10
|
+
*/
|
|
11
|
+
export const GuardrailInputSource = {
|
|
12
|
+
User: "user",
|
|
13
|
+
System: "system",
|
|
14
|
+
Assistant: "assistant",
|
|
15
|
+
Tool: "tool",
|
|
16
|
+
Retrieval: "retrieval",
|
|
17
|
+
Image: "image",
|
|
18
|
+
Audio: "audio",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* A source of model input: user (user messages and text sent to a sleeping response), system (system and developer messages, instructions and compaction summaries), assistant (earlier assistant messages), tool (function, custom tool, MCP, shell and code interpreter results), retrieval (file search, web search, web page, uploaded file and history search results), image (text read from images in messages) or audio (transcripts of audio in messages)
|
|
22
|
+
*/
|
|
23
|
+
export type GuardrailInputSource = ClosedEnum<typeof GuardrailInputSource>;
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const GuardrailInputSource$inboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof GuardrailInputSource
|
|
28
|
+
> = z.nativeEnum(GuardrailInputSource);
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const GuardrailInputSource$outboundSchema: z.ZodNativeEnum<
|
|
31
|
+
typeof GuardrailInputSource
|
|
32
|
+
> = GuardrailInputSource$inboundSchema;
|
|
@@ -404,6 +404,7 @@ export * from "./grammarformat.js";
|
|
|
404
404
|
export * from "./grantablevectorstorepermissionrole.js";
|
|
405
405
|
export * from "./grantpermissionrequest.js";
|
|
406
406
|
export * from "./guardrailconfig.js";
|
|
407
|
+
export * from "./guardrailinputsource.js";
|
|
407
408
|
export * from "./guardrailmode.js";
|
|
408
409
|
export * from "./guardrailspolicy.js";
|
|
409
410
|
export * from "./historytooldefinition.js";
|
|
@@ -7,6 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
GuardrailInputSource,
|
|
12
|
+
GuardrailInputSource$inboundSchema,
|
|
13
|
+
GuardrailInputSource$outboundSchema,
|
|
14
|
+
} from "./guardrailinputsource.js";
|
|
10
15
|
import {
|
|
11
16
|
LeakageConfig,
|
|
12
17
|
LeakageConfig$inboundSchema,
|
|
@@ -27,6 +32,10 @@ export type LeakageGuardrail = {
|
|
|
27
32
|
* Also apply this guardrail to model output, not just the request
|
|
28
33
|
*/
|
|
29
34
|
checkOutput?: boolean | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Request sources this guardrail checks before they reach the model. Omit to use the mode's default: every source for classifier; every source except system for ban_words, since instructions often name the terms they forbid; only what the user sends for prompt_injection and leakage, whose keyword patterns match ordinary instructions, replies and documents. An empty list checks no input, so the rule only checks output when check_output is set. Rules saved before this field existed were set to user messages only.
|
|
37
|
+
*/
|
|
38
|
+
inputSources?: Array<GuardrailInputSource> | undefined;
|
|
30
39
|
/**
|
|
31
40
|
* Configuration for system prompt leakage detection guardrail
|
|
32
41
|
*/
|
|
@@ -42,10 +51,12 @@ export const LeakageGuardrail$inboundSchema: z.ZodType<
|
|
|
42
51
|
mode: z.literal("leakage"),
|
|
43
52
|
enabled: z.boolean().default(true),
|
|
44
53
|
check_output: z.boolean().optional(),
|
|
54
|
+
input_sources: z.array(GuardrailInputSource$inboundSchema).optional(),
|
|
45
55
|
config: LeakageConfig$inboundSchema.optional(),
|
|
46
56
|
}).transform((v) => {
|
|
47
57
|
return remap$(v, {
|
|
48
58
|
"check_output": "checkOutput",
|
|
59
|
+
"input_sources": "inputSources",
|
|
49
60
|
});
|
|
50
61
|
});
|
|
51
62
|
/** @internal */
|
|
@@ -53,6 +64,7 @@ export type LeakageGuardrail$Outbound = {
|
|
|
53
64
|
mode: "leakage";
|
|
54
65
|
enabled: boolean;
|
|
55
66
|
check_output?: boolean | undefined;
|
|
67
|
+
input_sources?: Array<string> | undefined;
|
|
56
68
|
config?: LeakageConfig$Outbound | undefined;
|
|
57
69
|
};
|
|
58
70
|
|
|
@@ -65,10 +77,12 @@ export const LeakageGuardrail$outboundSchema: z.ZodType<
|
|
|
65
77
|
mode: z.literal("leakage"),
|
|
66
78
|
enabled: z.boolean().default(true),
|
|
67
79
|
checkOutput: z.boolean().optional(),
|
|
80
|
+
inputSources: z.array(GuardrailInputSource$outboundSchema).optional(),
|
|
68
81
|
config: LeakageConfig$outboundSchema.optional(),
|
|
69
82
|
}).transform((v) => {
|
|
70
83
|
return remap$(v, {
|
|
71
84
|
checkOutput: "check_output",
|
|
85
|
+
inputSources: "input_sources",
|
|
72
86
|
});
|
|
73
87
|
});
|
|
74
88
|
|
|
@@ -7,6 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
GuardrailInputSource,
|
|
12
|
+
GuardrailInputSource$inboundSchema,
|
|
13
|
+
GuardrailInputSource$outboundSchema,
|
|
14
|
+
} from "./guardrailinputsource.js";
|
|
10
15
|
import {
|
|
11
16
|
PromptInjectionConfig,
|
|
12
17
|
PromptInjectionConfig$inboundSchema,
|
|
@@ -27,6 +32,10 @@ export type PromptInjectionGuardrail = {
|
|
|
27
32
|
* Also apply this guardrail to model output, not just the request
|
|
28
33
|
*/
|
|
29
34
|
checkOutput?: boolean | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Request sources this guardrail checks before they reach the model. Omit to use the mode's default: every source for classifier; every source except system for ban_words, since instructions often name the terms they forbid; only what the user sends for prompt_injection and leakage, whose keyword patterns match ordinary instructions, replies and documents. An empty list checks no input, so the rule only checks output when check_output is set. Rules saved before this field existed were set to user messages only.
|
|
37
|
+
*/
|
|
38
|
+
inputSources?: Array<GuardrailInputSource> | undefined;
|
|
30
39
|
/**
|
|
31
40
|
* Configuration for prompt injection detection guardrail
|
|
32
41
|
*/
|
|
@@ -42,10 +51,12 @@ export const PromptInjectionGuardrail$inboundSchema: z.ZodType<
|
|
|
42
51
|
mode: z.literal("prompt_injection"),
|
|
43
52
|
enabled: z.boolean().default(true),
|
|
44
53
|
check_output: z.boolean().optional(),
|
|
54
|
+
input_sources: z.array(GuardrailInputSource$inboundSchema).optional(),
|
|
45
55
|
config: PromptInjectionConfig$inboundSchema.optional(),
|
|
46
56
|
}).transform((v) => {
|
|
47
57
|
return remap$(v, {
|
|
48
58
|
"check_output": "checkOutput",
|
|
59
|
+
"input_sources": "inputSources",
|
|
49
60
|
});
|
|
50
61
|
});
|
|
51
62
|
/** @internal */
|
|
@@ -53,6 +64,7 @@ export type PromptInjectionGuardrail$Outbound = {
|
|
|
53
64
|
mode: "prompt_injection";
|
|
54
65
|
enabled: boolean;
|
|
55
66
|
check_output?: boolean | undefined;
|
|
67
|
+
input_sources?: Array<string> | undefined;
|
|
56
68
|
config?: PromptInjectionConfig$Outbound | undefined;
|
|
57
69
|
};
|
|
58
70
|
|
|
@@ -65,10 +77,12 @@ export const PromptInjectionGuardrail$outboundSchema: z.ZodType<
|
|
|
65
77
|
mode: z.literal("prompt_injection"),
|
|
66
78
|
enabled: z.boolean().default(true),
|
|
67
79
|
checkOutput: z.boolean().optional(),
|
|
80
|
+
inputSources: z.array(GuardrailInputSource$outboundSchema).optional(),
|
|
68
81
|
config: PromptInjectionConfig$outboundSchema.optional(),
|
|
69
82
|
}).transform((v) => {
|
|
70
83
|
return remap$(v, {
|
|
71
84
|
checkOutput: "check_output",
|
|
85
|
+
inputSources: "input_sources",
|
|
72
86
|
});
|
|
73
87
|
});
|
|
74
88
|
|
|
@@ -6,12 +6,21 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
GuardrailInputSource,
|
|
11
|
+
GuardrailInputSource$inboundSchema,
|
|
12
|
+
GuardrailInputSource$outboundSchema,
|
|
13
|
+
} from "./guardrailinputsource.js";
|
|
9
14
|
|
|
10
15
|
export type TestGuardrailsRequest = {
|
|
11
16
|
/**
|
|
12
17
|
* Content to test against guardrails
|
|
13
18
|
*/
|
|
14
19
|
content: string;
|
|
20
|
+
/**
|
|
21
|
+
* A source of model input: user (user messages and text sent to a sleeping response), system (system and developer messages, instructions and compaction summaries), assistant (earlier assistant messages), tool (function, custom tool, MCP, shell and code interpreter results), retrieval (file search, web search, web page, uploaded file and history search results), image (text read from images in messages) or audio (transcripts of audio in messages)
|
|
22
|
+
*/
|
|
23
|
+
source?: GuardrailInputSource | undefined;
|
|
15
24
|
};
|
|
16
25
|
|
|
17
26
|
/** @internal */
|
|
@@ -21,10 +30,12 @@ export const TestGuardrailsRequest$inboundSchema: z.ZodType<
|
|
|
21
30
|
unknown
|
|
22
31
|
> = z.object({
|
|
23
32
|
content: z.string(),
|
|
33
|
+
source: GuardrailInputSource$inboundSchema.optional(),
|
|
24
34
|
});
|
|
25
35
|
/** @internal */
|
|
26
36
|
export type TestGuardrailsRequest$Outbound = {
|
|
27
37
|
content: string;
|
|
38
|
+
source?: string | undefined;
|
|
28
39
|
};
|
|
29
40
|
|
|
30
41
|
/** @internal */
|
|
@@ -34,6 +45,7 @@ export const TestGuardrailsRequest$outboundSchema: z.ZodType<
|
|
|
34
45
|
TestGuardrailsRequest
|
|
35
46
|
> = z.object({
|
|
36
47
|
content: z.string(),
|
|
48
|
+
source: GuardrailInputSource$outboundSchema.optional(),
|
|
37
49
|
});
|
|
38
50
|
|
|
39
51
|
export function testGuardrailsRequestToJSON(
|
|
@@ -9,15 +9,16 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* One of server_error, unsupported_file, or
|
|
12
|
+
* One of server_error, unsupported_file, invalid_file, or duplicate_file (the file was skipped because the store already holds its content; the message names that file).
|
|
13
13
|
*/
|
|
14
14
|
export const Code = {
|
|
15
15
|
ServerError: "server_error",
|
|
16
16
|
UnsupportedFile: "unsupported_file",
|
|
17
17
|
InvalidFile: "invalid_file",
|
|
18
|
+
DuplicateFile: "duplicate_file",
|
|
18
19
|
} as const;
|
|
19
20
|
/**
|
|
20
|
-
* One of server_error, unsupported_file, or
|
|
21
|
+
* One of server_error, unsupported_file, invalid_file, or duplicate_file (the file was skipped because the store already holds its content; the message names that file).
|
|
21
22
|
*/
|
|
22
23
|
export type Code = ClosedEnum<typeof Code>;
|
|
23
24
|
|
|
@@ -26,7 +27,7 @@ export type Code = ClosedEnum<typeof Code>;
|
|
|
26
27
|
*/
|
|
27
28
|
export type VectorStoreFileError = {
|
|
28
29
|
/**
|
|
29
|
-
* One of server_error, unsupported_file, or
|
|
30
|
+
* One of server_error, unsupported_file, invalid_file, or duplicate_file (the file was skipped because the store already holds its content; the message names that file).
|
|
30
31
|
*/
|
|
31
32
|
code: Code;
|
|
32
33
|
/**
|