@azure/ai-agents 1.0.0-alpha.20250505.3 → 1.0.0-alpha.20250507.2
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/browser/agentsClient.d.ts +31 -93
- package/dist/browser/agentsClient.d.ts.map +1 -1
- package/dist/browser/agentsClient.js +17 -168
- package/dist/browser/agentsClient.js.map +1 -1
- package/dist/browser/api/files/index.d.ts +3 -0
- package/dist/browser/api/files/index.d.ts.map +1 -0
- package/dist/browser/api/files/index.js +4 -0
- package/dist/browser/api/files/index.js.map +1 -0
- package/dist/browser/api/files/operations.d.ts +45 -0
- package/dist/browser/api/files/operations.d.ts.map +1 -0
- package/dist/browser/api/files/operations.js +154 -0
- package/dist/browser/api/files/operations.js.map +1 -0
- package/dist/browser/api/files/options.d.ts +23 -0
- package/dist/browser/api/files/options.d.ts.map +1 -0
- package/dist/browser/api/files/options.js +4 -0
- package/dist/browser/api/files/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +2 -2
- package/dist/browser/api/index.d.ts.map +1 -1
- package/dist/browser/api/index.js +1 -1
- package/dist/browser/api/index.js.map +1 -1
- package/dist/browser/api/messages/index.d.ts +3 -0
- package/dist/browser/api/messages/index.d.ts.map +1 -0
- package/dist/browser/api/messages/index.js +4 -0
- package/dist/browser/api/messages/index.js.map +1 -0
- package/dist/browser/api/messages/operations.d.ts +22 -0
- package/dist/browser/api/messages/operations.d.ts.map +1 -0
- package/dist/browser/api/messages/operations.js +108 -0
- package/dist/browser/api/messages/operations.js.map +1 -0
- package/dist/browser/api/messages/options.d.ts +31 -0
- package/dist/browser/api/messages/options.d.ts.map +1 -0
- package/dist/browser/api/messages/options.js +4 -0
- package/dist/browser/api/messages/options.js.map +1 -0
- package/dist/browser/api/operations.d.ts +8 -183
- package/dist/browser/api/operations.d.ts.map +1 -1
- package/dist/browser/api/operations.js +14 -1063
- package/dist/browser/api/operations.js.map +1 -1
- package/dist/browser/api/options.d.ts +25 -322
- package/dist/browser/api/options.d.ts.map +1 -1
- package/dist/browser/api/options.js.map +1 -1
- package/dist/browser/api/runSteps/index.d.ts +3 -0
- package/dist/browser/api/runSteps/index.d.ts.map +1 -0
- package/dist/browser/api/runSteps/index.js +4 -0
- package/dist/browser/api/runSteps/index.js.map +1 -0
- package/dist/browser/api/runSteps/operations.d.ts +14 -0
- package/dist/browser/api/runSteps/operations.d.ts.map +1 -0
- package/dist/browser/api/runSteps/operations.js +67 -0
- package/dist/browser/api/runSteps/operations.js.map +1 -0
- package/dist/browser/api/runSteps/options.d.ts +27 -0
- package/dist/browser/api/runSteps/options.d.ts.map +1 -0
- package/dist/browser/api/runSteps/options.js +4 -0
- package/dist/browser/api/runSteps/options.js.map +1 -0
- package/dist/browser/api/runs/index.d.ts +3 -0
- package/dist/browser/api/runs/index.d.ts.map +1 -0
- package/dist/browser/api/runs/index.js +4 -0
- package/dist/browser/api/runs/index.js.map +1 -0
- package/dist/browser/api/runs/operations.d.ts +31 -0
- package/dist/browser/api/runs/operations.d.ts.map +1 -0
- package/dist/browser/api/runs/operations.js +190 -0
- package/dist/browser/api/runs/operations.js.map +1 -0
- package/dist/browser/api/runs/options.d.ts +92 -0
- package/dist/browser/api/runs/options.d.ts.map +1 -0
- package/dist/browser/api/runs/options.js +4 -0
- package/dist/browser/api/runs/options.js.map +1 -0
- package/dist/browser/api/threads/index.d.ts +3 -0
- package/dist/browser/api/threads/index.d.ts.map +1 -0
- package/dist/browser/api/threads/index.js +4 -0
- package/dist/browser/api/threads/index.js.map +1 -0
- package/dist/browser/api/threads/operations.d.ts +26 -0
- package/dist/browser/api/threads/operations.d.ts.map +1 -0
- package/dist/browser/api/threads/operations.js +131 -0
- package/dist/browser/api/threads/operations.js.map +1 -0
- package/dist/browser/api/threads/options.d.ts +44 -0
- package/dist/browser/api/threads/options.d.ts.map +1 -0
- package/dist/browser/api/threads/options.js +4 -0
- package/dist/browser/api/threads/options.js.map +1 -0
- package/dist/browser/api/vectorStoreFileBatches/index.d.ts +3 -0
- package/dist/browser/api/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/browser/api/vectorStoreFileBatches/index.js +4 -0
- package/dist/browser/api/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/browser/api/vectorStoreFileBatches/operations.d.ts +27 -0
- package/dist/browser/api/vectorStoreFileBatches/operations.d.ts.map +1 -0
- package/dist/browser/api/vectorStoreFileBatches/operations.js +161 -0
- package/dist/browser/api/vectorStoreFileBatches/operations.js.map +1 -0
- package/dist/browser/api/vectorStoreFileBatches/options.d.ts +32 -0
- package/dist/browser/api/vectorStoreFileBatches/options.d.ts.map +1 -0
- package/dist/browser/api/vectorStoreFileBatches/options.js +4 -0
- package/dist/browser/api/vectorStoreFileBatches/options.js.map +1 -0
- package/dist/browser/api/vectorStoreFiles/index.d.ts +3 -0
- package/dist/browser/api/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/browser/api/vectorStoreFiles/index.js +4 -0
- package/dist/browser/api/vectorStoreFiles/index.js.map +1 -0
- package/dist/browser/api/vectorStoreFiles/operations.d.ts +27 -0
- package/dist/browser/api/vectorStoreFiles/operations.d.ts.map +1 -0
- package/dist/browser/api/vectorStoreFiles/operations.js +176 -0
- package/dist/browser/api/vectorStoreFiles/operations.js.map +1 -0
- package/dist/browser/api/vectorStoreFiles/options.d.ts +32 -0
- package/dist/browser/api/vectorStoreFiles/options.d.ts.map +1 -0
- package/dist/browser/api/vectorStoreFiles/options.js +4 -0
- package/dist/browser/api/vectorStoreFiles/options.js.map +1 -0
- package/dist/browser/api/vectorStores/index.d.ts +3 -0
- package/dist/browser/api/vectorStores/index.d.ts.map +1 -0
- package/dist/browser/api/vectorStores/index.js +4 -0
- package/dist/browser/api/vectorStores/index.js.map +1 -0
- package/dist/browser/api/vectorStores/operations.d.ts +33 -0
- package/dist/browser/api/vectorStores/operations.d.ts.map +1 -0
- package/dist/browser/api/vectorStores/operations.js +184 -0
- package/dist/browser/api/vectorStores/operations.js.map +1 -0
- package/dist/browser/api/vectorStores/options.d.ts +45 -0
- package/dist/browser/api/vectorStores/options.d.ts.map +1 -0
- package/dist/browser/api/vectorStores/options.js +4 -0
- package/dist/browser/api/vectorStores/options.js.map +1 -0
- package/dist/browser/classic/files/index.d.ts +22 -0
- package/dist/browser/classic/files/index.d.ts.map +1 -0
- package/dist/browser/classic/files/index.js +17 -0
- package/dist/browser/classic/files/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +9 -0
- package/dist/browser/classic/index.d.ts.map +1 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/messages/index.d.ts +17 -0
- package/dist/browser/classic/messages/index.d.ts.map +1 -0
- package/dist/browser/classic/messages/index.js +15 -0
- package/dist/browser/classic/messages/index.js.map +1 -0
- package/dist/browser/classic/runSteps/index.d.ts +14 -0
- package/dist/browser/classic/runSteps/index.d.ts.map +1 -0
- package/dist/browser/classic/runSteps/index.js +13 -0
- package/dist/browser/classic/runSteps/index.js.map +1 -0
- package/dist/browser/classic/runs/index.d.ts +25 -0
- package/dist/browser/classic/runs/index.d.ts.map +1 -0
- package/dist/browser/classic/runs/index.js +19 -0
- package/dist/browser/classic/runs/index.js.map +1 -0
- package/dist/browser/classic/threads/index.d.ts +19 -0
- package/dist/browser/classic/threads/index.d.ts.map +1 -0
- package/dist/browser/classic/threads/index.js +16 -0
- package/dist/browser/classic/threads/index.js.map +1 -0
- package/dist/browser/classic/vectorStoreFileBatches/index.d.ts +20 -0
- package/dist/browser/classic/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/browser/classic/vectorStoreFileBatches/index.js +16 -0
- package/dist/browser/classic/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/browser/classic/vectorStoreFiles/index.d.ts +20 -0
- package/dist/browser/classic/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/browser/classic/vectorStoreFiles/index.js +14 -0
- package/dist/browser/classic/vectorStoreFiles/index.js.map +1 -0
- package/dist/browser/classic/vectorStores/index.d.ts +22 -0
- package/dist/browser/classic/vectorStores/index.d.ts.map +1 -0
- package/dist/browser/classic/vectorStores/index.js +17 -0
- package/dist/browser/classic/vectorStores/index.js.map +1 -0
- package/dist/browser/index.d.ts +14 -3
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +2 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -1
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +390 -338
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +377 -297
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/static-helpers/multipartHelpers.d.ts +1 -1
- package/dist/browser/static-helpers/multipartHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/multipartHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.js +137 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +2 -2
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/browser/utils.d.ts +26 -5
- package/dist/browser/utils.d.ts.map +1 -1
- package/dist/browser/utils.js +44 -8
- package/dist/browser/utils.js.map +1 -1
- package/dist/commonjs/agentsClient.d.ts +31 -93
- package/dist/commonjs/agentsClient.d.ts.map +1 -1
- package/dist/commonjs/agentsClient.js +16 -167
- package/dist/commonjs/agentsClient.js.map +1 -1
- package/dist/commonjs/api/files/index.d.ts +3 -0
- package/dist/commonjs/api/files/index.d.ts.map +1 -0
- package/dist/commonjs/api/files/index.js +12 -0
- package/dist/commonjs/api/files/index.js.map +1 -0
- package/dist/commonjs/api/files/operations.d.ts +45 -0
- package/dist/commonjs/api/files/operations.d.ts.map +1 -0
- package/dist/commonjs/api/files/operations.js +172 -0
- package/dist/commonjs/api/files/operations.js.map +1 -0
- package/dist/commonjs/api/files/options.d.ts +23 -0
- package/dist/commonjs/api/files/options.d.ts.map +1 -0
- package/dist/commonjs/api/files/options.js +5 -0
- package/dist/commonjs/api/files/options.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +2 -2
- package/dist/commonjs/api/index.d.ts.map +1 -1
- package/dist/commonjs/api/index.js +2 -38
- package/dist/commonjs/api/index.js.map +1 -1
- package/dist/commonjs/api/messages/index.d.ts +3 -0
- package/dist/commonjs/api/messages/index.d.ts.map +1 -0
- package/dist/commonjs/api/messages/index.js +11 -0
- package/dist/commonjs/api/messages/index.js.map +1 -0
- package/dist/commonjs/api/messages/operations.d.ts +22 -0
- package/dist/commonjs/api/messages/operations.d.ts.map +1 -0
- package/dist/commonjs/api/messages/operations.js +122 -0
- package/dist/commonjs/api/messages/operations.js.map +1 -0
- package/dist/commonjs/api/messages/options.d.ts +31 -0
- package/dist/commonjs/api/messages/options.d.ts.map +1 -0
- package/dist/commonjs/api/messages/options.js +5 -0
- package/dist/commonjs/api/messages/options.js.map +1 -0
- package/dist/commonjs/api/operations.d.ts +8 -183
- package/dist/commonjs/api/operations.d.ts.map +1 -1
- package/dist/commonjs/api/operations.js +14 -1176
- package/dist/commonjs/api/operations.js.map +1 -1
- package/dist/commonjs/api/options.d.ts +25 -322
- package/dist/commonjs/api/options.d.ts.map +1 -1
- package/dist/commonjs/api/options.js.map +1 -1
- package/dist/commonjs/api/runSteps/index.d.ts +3 -0
- package/dist/commonjs/api/runSteps/index.d.ts.map +1 -0
- package/dist/commonjs/api/runSteps/index.js +9 -0
- package/dist/commonjs/api/runSteps/index.js.map +1 -0
- package/dist/commonjs/api/runSteps/operations.d.ts +14 -0
- package/dist/commonjs/api/runSteps/operations.d.ts.map +1 -0
- package/dist/commonjs/api/runSteps/operations.js +75 -0
- package/dist/commonjs/api/runSteps/operations.js.map +1 -0
- package/dist/commonjs/api/runSteps/options.d.ts +27 -0
- package/dist/commonjs/api/runSteps/options.d.ts.map +1 -0
- package/dist/commonjs/api/runSteps/options.js +5 -0
- package/dist/commonjs/api/runSteps/options.js.map +1 -0
- package/dist/commonjs/api/runs/index.d.ts +3 -0
- package/dist/commonjs/api/runs/index.d.ts.map +1 -0
- package/dist/commonjs/api/runs/index.js +13 -0
- package/dist/commonjs/api/runs/index.js.map +1 -0
- package/dist/commonjs/api/runs/operations.d.ts +31 -0
- package/dist/commonjs/api/runs/operations.d.ts.map +1 -0
- package/dist/commonjs/api/runs/operations.js +210 -0
- package/dist/commonjs/api/runs/operations.js.map +1 -0
- package/dist/commonjs/api/runs/options.d.ts +92 -0
- package/dist/commonjs/api/runs/options.d.ts.map +1 -0
- package/dist/commonjs/api/runs/options.js +5 -0
- package/dist/commonjs/api/runs/options.js.map +1 -0
- package/dist/commonjs/api/threads/index.d.ts +3 -0
- package/dist/commonjs/api/threads/index.d.ts.map +1 -0
- package/dist/commonjs/api/threads/index.js +12 -0
- package/dist/commonjs/api/threads/index.js.map +1 -0
- package/dist/commonjs/api/threads/operations.d.ts +26 -0
- package/dist/commonjs/api/threads/operations.d.ts.map +1 -0
- package/dist/commonjs/api/threads/operations.js +148 -0
- package/dist/commonjs/api/threads/operations.js.map +1 -0
- package/dist/commonjs/api/threads/options.d.ts +44 -0
- package/dist/commonjs/api/threads/options.d.ts.map +1 -0
- package/dist/commonjs/api/threads/options.js +5 -0
- package/dist/commonjs/api/threads/options.js.map +1 -0
- package/dist/commonjs/api/vectorStoreFileBatches/index.d.ts +3 -0
- package/dist/commonjs/api/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStoreFileBatches/index.js +11 -0
- package/dist/commonjs/api/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/commonjs/api/vectorStoreFileBatches/operations.d.ts +27 -0
- package/dist/commonjs/api/vectorStoreFileBatches/operations.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStoreFileBatches/operations.js +177 -0
- package/dist/commonjs/api/vectorStoreFileBatches/operations.js.map +1 -0
- package/dist/commonjs/api/vectorStoreFileBatches/options.d.ts +32 -0
- package/dist/commonjs/api/vectorStoreFileBatches/options.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStoreFileBatches/options.js +5 -0
- package/dist/commonjs/api/vectorStoreFileBatches/options.js.map +1 -0
- package/dist/commonjs/api/vectorStoreFiles/index.d.ts +3 -0
- package/dist/commonjs/api/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStoreFiles/index.js +11 -0
- package/dist/commonjs/api/vectorStoreFiles/index.js.map +1 -0
- package/dist/commonjs/api/vectorStoreFiles/operations.d.ts +27 -0
- package/dist/commonjs/api/vectorStoreFiles/operations.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStoreFiles/operations.js +192 -0
- package/dist/commonjs/api/vectorStoreFiles/operations.js.map +1 -0
- package/dist/commonjs/api/vectorStoreFiles/options.d.ts +32 -0
- package/dist/commonjs/api/vectorStoreFiles/options.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStoreFiles/options.js +5 -0
- package/dist/commonjs/api/vectorStoreFiles/options.js.map +1 -0
- package/dist/commonjs/api/vectorStores/index.d.ts +3 -0
- package/dist/commonjs/api/vectorStores/index.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStores/index.js +12 -0
- package/dist/commonjs/api/vectorStores/index.js.map +1 -0
- package/dist/commonjs/api/vectorStores/operations.d.ts +33 -0
- package/dist/commonjs/api/vectorStores/operations.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStores/operations.js +203 -0
- package/dist/commonjs/api/vectorStores/operations.js.map +1 -0
- package/dist/commonjs/api/vectorStores/options.d.ts +45 -0
- package/dist/commonjs/api/vectorStores/options.d.ts.map +1 -0
- package/dist/commonjs/api/vectorStores/options.js +5 -0
- package/dist/commonjs/api/vectorStores/options.js.map +1 -0
- package/dist/commonjs/classic/files/index.d.ts +22 -0
- package/dist/commonjs/classic/files/index.d.ts.map +1 -0
- package/dist/commonjs/classic/files/index.js +20 -0
- package/dist/commonjs/classic/files/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +9 -0
- package/dist/commonjs/classic/index.d.ts.map +1 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/classic/messages/index.d.ts +17 -0
- package/dist/commonjs/classic/messages/index.d.ts.map +1 -0
- package/dist/commonjs/classic/messages/index.js +18 -0
- package/dist/commonjs/classic/messages/index.js.map +1 -0
- package/dist/commonjs/classic/runSteps/index.d.ts +14 -0
- package/dist/commonjs/classic/runSteps/index.d.ts.map +1 -0
- package/dist/commonjs/classic/runSteps/index.js +16 -0
- package/dist/commonjs/classic/runSteps/index.js.map +1 -0
- package/dist/commonjs/classic/runs/index.d.ts +25 -0
- package/dist/commonjs/classic/runs/index.d.ts.map +1 -0
- package/dist/commonjs/classic/runs/index.js +22 -0
- package/dist/commonjs/classic/runs/index.js.map +1 -0
- package/dist/commonjs/classic/threads/index.d.ts +19 -0
- package/dist/commonjs/classic/threads/index.d.ts.map +1 -0
- package/dist/commonjs/classic/threads/index.js +19 -0
- package/dist/commonjs/classic/threads/index.js.map +1 -0
- package/dist/commonjs/classic/vectorStoreFileBatches/index.d.ts +20 -0
- package/dist/commonjs/classic/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/commonjs/classic/vectorStoreFileBatches/index.js +19 -0
- package/dist/commonjs/classic/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/commonjs/classic/vectorStoreFiles/index.d.ts +20 -0
- package/dist/commonjs/classic/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/commonjs/classic/vectorStoreFiles/index.js +17 -0
- package/dist/commonjs/classic/vectorStoreFiles/index.js.map +1 -0
- package/dist/commonjs/classic/vectorStores/index.d.ts +22 -0
- package/dist/commonjs/classic/vectorStores/index.d.ts.map +1 -0
- package/dist/commonjs/classic/vectorStores/index.js +20 -0
- package/dist/commonjs/classic/vectorStores/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +14 -3
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +6 -3
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +6 -3
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +390 -338
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +445 -359
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/static-helpers/multipartHelpers.d.ts +1 -1
- package/dist/commonjs/static-helpers/multipartHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/multipartHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +140 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +2 -2
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/utils.d.ts +26 -5
- package/dist/commonjs/utils.d.ts.map +1 -1
- package/dist/commonjs/utils.js +44 -8
- package/dist/commonjs/utils.js.map +1 -1
- package/dist/esm/agentsClient.d.ts +31 -93
- package/dist/esm/agentsClient.d.ts.map +1 -1
- package/dist/esm/agentsClient.js +17 -168
- package/dist/esm/agentsClient.js.map +1 -1
- package/dist/esm/api/files/index.d.ts +3 -0
- package/dist/esm/api/files/index.d.ts.map +1 -0
- package/dist/esm/api/files/index.js +4 -0
- package/dist/esm/api/files/index.js.map +1 -0
- package/dist/esm/api/files/operations.d.ts +45 -0
- package/dist/esm/api/files/operations.d.ts.map +1 -0
- package/dist/esm/api/files/operations.js +154 -0
- package/dist/esm/api/files/operations.js.map +1 -0
- package/dist/esm/api/files/options.d.ts +23 -0
- package/dist/esm/api/files/options.d.ts.map +1 -0
- package/dist/esm/api/files/options.js +4 -0
- package/dist/esm/api/files/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +2 -2
- package/dist/esm/api/index.d.ts.map +1 -1
- package/dist/esm/api/index.js +1 -1
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/messages/index.d.ts +3 -0
- package/dist/esm/api/messages/index.d.ts.map +1 -0
- package/dist/esm/api/messages/index.js +4 -0
- package/dist/esm/api/messages/index.js.map +1 -0
- package/dist/esm/api/messages/operations.d.ts +22 -0
- package/dist/esm/api/messages/operations.d.ts.map +1 -0
- package/dist/esm/api/messages/operations.js +108 -0
- package/dist/esm/api/messages/operations.js.map +1 -0
- package/dist/esm/api/messages/options.d.ts +31 -0
- package/dist/esm/api/messages/options.d.ts.map +1 -0
- package/dist/esm/api/messages/options.js +4 -0
- package/dist/esm/api/messages/options.js.map +1 -0
- package/dist/esm/api/operations.d.ts +8 -183
- package/dist/esm/api/operations.d.ts.map +1 -1
- package/dist/esm/api/operations.js +14 -1063
- package/dist/esm/api/operations.js.map +1 -1
- package/dist/esm/api/options.d.ts +25 -322
- package/dist/esm/api/options.d.ts.map +1 -1
- package/dist/esm/api/options.js.map +1 -1
- package/dist/esm/api/runSteps/index.d.ts +3 -0
- package/dist/esm/api/runSteps/index.d.ts.map +1 -0
- package/dist/esm/api/runSteps/index.js +4 -0
- package/dist/esm/api/runSteps/index.js.map +1 -0
- package/dist/esm/api/runSteps/operations.d.ts +14 -0
- package/dist/esm/api/runSteps/operations.d.ts.map +1 -0
- package/dist/esm/api/runSteps/operations.js +67 -0
- package/dist/esm/api/runSteps/operations.js.map +1 -0
- package/dist/esm/api/runSteps/options.d.ts +27 -0
- package/dist/esm/api/runSteps/options.d.ts.map +1 -0
- package/dist/esm/api/runSteps/options.js +4 -0
- package/dist/esm/api/runSteps/options.js.map +1 -0
- package/dist/esm/api/runs/index.d.ts +3 -0
- package/dist/esm/api/runs/index.d.ts.map +1 -0
- package/dist/esm/api/runs/index.js +4 -0
- package/dist/esm/api/runs/index.js.map +1 -0
- package/dist/esm/api/runs/operations.d.ts +31 -0
- package/dist/esm/api/runs/operations.d.ts.map +1 -0
- package/dist/esm/api/runs/operations.js +190 -0
- package/dist/esm/api/runs/operations.js.map +1 -0
- package/dist/esm/api/runs/options.d.ts +92 -0
- package/dist/esm/api/runs/options.d.ts.map +1 -0
- package/dist/esm/api/runs/options.js +4 -0
- package/dist/esm/api/runs/options.js.map +1 -0
- package/dist/esm/api/threads/index.d.ts +3 -0
- package/dist/esm/api/threads/index.d.ts.map +1 -0
- package/dist/esm/api/threads/index.js +4 -0
- package/dist/esm/api/threads/index.js.map +1 -0
- package/dist/esm/api/threads/operations.d.ts +26 -0
- package/dist/esm/api/threads/operations.d.ts.map +1 -0
- package/dist/esm/api/threads/operations.js +131 -0
- package/dist/esm/api/threads/operations.js.map +1 -0
- package/dist/esm/api/threads/options.d.ts +44 -0
- package/dist/esm/api/threads/options.d.ts.map +1 -0
- package/dist/esm/api/threads/options.js +4 -0
- package/dist/esm/api/threads/options.js.map +1 -0
- package/dist/esm/api/vectorStoreFileBatches/index.d.ts +3 -0
- package/dist/esm/api/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/esm/api/vectorStoreFileBatches/index.js +4 -0
- package/dist/esm/api/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/esm/api/vectorStoreFileBatches/operations.d.ts +27 -0
- package/dist/esm/api/vectorStoreFileBatches/operations.d.ts.map +1 -0
- package/dist/esm/api/vectorStoreFileBatches/operations.js +161 -0
- package/dist/esm/api/vectorStoreFileBatches/operations.js.map +1 -0
- package/dist/esm/api/vectorStoreFileBatches/options.d.ts +32 -0
- package/dist/esm/api/vectorStoreFileBatches/options.d.ts.map +1 -0
- package/dist/esm/api/vectorStoreFileBatches/options.js +4 -0
- package/dist/esm/api/vectorStoreFileBatches/options.js.map +1 -0
- package/dist/esm/api/vectorStoreFiles/index.d.ts +3 -0
- package/dist/esm/api/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/esm/api/vectorStoreFiles/index.js +4 -0
- package/dist/esm/api/vectorStoreFiles/index.js.map +1 -0
- package/dist/esm/api/vectorStoreFiles/operations.d.ts +27 -0
- package/dist/esm/api/vectorStoreFiles/operations.d.ts.map +1 -0
- package/dist/esm/api/vectorStoreFiles/operations.js +176 -0
- package/dist/esm/api/vectorStoreFiles/operations.js.map +1 -0
- package/dist/esm/api/vectorStoreFiles/options.d.ts +32 -0
- package/dist/esm/api/vectorStoreFiles/options.d.ts.map +1 -0
- package/dist/esm/api/vectorStoreFiles/options.js +4 -0
- package/dist/esm/api/vectorStoreFiles/options.js.map +1 -0
- package/dist/esm/api/vectorStores/index.d.ts +3 -0
- package/dist/esm/api/vectorStores/index.d.ts.map +1 -0
- package/dist/esm/api/vectorStores/index.js +4 -0
- package/dist/esm/api/vectorStores/index.js.map +1 -0
- package/dist/esm/api/vectorStores/operations.d.ts +33 -0
- package/dist/esm/api/vectorStores/operations.d.ts.map +1 -0
- package/dist/esm/api/vectorStores/operations.js +184 -0
- package/dist/esm/api/vectorStores/operations.js.map +1 -0
- package/dist/esm/api/vectorStores/options.d.ts +45 -0
- package/dist/esm/api/vectorStores/options.d.ts.map +1 -0
- package/dist/esm/api/vectorStores/options.js +4 -0
- package/dist/esm/api/vectorStores/options.js.map +1 -0
- package/dist/esm/classic/files/index.d.ts +22 -0
- package/dist/esm/classic/files/index.d.ts.map +1 -0
- package/dist/esm/classic/files/index.js +17 -0
- package/dist/esm/classic/files/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +9 -0
- package/dist/esm/classic/index.d.ts.map +1 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/messages/index.d.ts +17 -0
- package/dist/esm/classic/messages/index.d.ts.map +1 -0
- package/dist/esm/classic/messages/index.js +15 -0
- package/dist/esm/classic/messages/index.js.map +1 -0
- package/dist/esm/classic/runSteps/index.d.ts +14 -0
- package/dist/esm/classic/runSteps/index.d.ts.map +1 -0
- package/dist/esm/classic/runSteps/index.js +13 -0
- package/dist/esm/classic/runSteps/index.js.map +1 -0
- package/dist/esm/classic/runs/index.d.ts +25 -0
- package/dist/esm/classic/runs/index.d.ts.map +1 -0
- package/dist/esm/classic/runs/index.js +19 -0
- package/dist/esm/classic/runs/index.js.map +1 -0
- package/dist/esm/classic/threads/index.d.ts +19 -0
- package/dist/esm/classic/threads/index.d.ts.map +1 -0
- package/dist/esm/classic/threads/index.js +16 -0
- package/dist/esm/classic/threads/index.js.map +1 -0
- package/dist/esm/classic/vectorStoreFileBatches/index.d.ts +20 -0
- package/dist/esm/classic/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/esm/classic/vectorStoreFileBatches/index.js +16 -0
- package/dist/esm/classic/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/esm/classic/vectorStoreFiles/index.d.ts +20 -0
- package/dist/esm/classic/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/esm/classic/vectorStoreFiles/index.js +14 -0
- package/dist/esm/classic/vectorStoreFiles/index.js.map +1 -0
- package/dist/esm/classic/vectorStores/index.d.ts +22 -0
- package/dist/esm/classic/vectorStores/index.d.ts.map +1 -0
- package/dist/esm/classic/vectorStores/index.js +17 -0
- package/dist/esm/classic/vectorStores/index.js.map +1 -0
- package/dist/esm/index.d.ts +14 -3
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +390 -338
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +377 -297
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/static-helpers/multipartHelpers.d.ts +1 -1
- package/dist/esm/static-helpers/multipartHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/multipartHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.js +137 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +2 -2
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/esm/utils.d.ts +26 -5
- package/dist/esm/utils.d.ts.map +1 -1
- package/dist/esm/utils.js +44 -8
- package/dist/esm/utils.js.map +1 -1
- package/dist/react-native/agentsClient.d.ts +31 -93
- package/dist/react-native/agentsClient.d.ts.map +1 -1
- package/dist/react-native/agentsClient.js +17 -168
- package/dist/react-native/agentsClient.js.map +1 -1
- package/dist/react-native/api/files/index.d.ts +3 -0
- package/dist/react-native/api/files/index.d.ts.map +1 -0
- package/dist/react-native/api/files/index.js +4 -0
- package/dist/react-native/api/files/index.js.map +1 -0
- package/dist/react-native/api/files/operations.d.ts +45 -0
- package/dist/react-native/api/files/operations.d.ts.map +1 -0
- package/dist/react-native/api/files/operations.js +154 -0
- package/dist/react-native/api/files/operations.js.map +1 -0
- package/dist/react-native/api/files/options.d.ts +23 -0
- package/dist/react-native/api/files/options.d.ts.map +1 -0
- package/dist/react-native/api/files/options.js +4 -0
- package/dist/react-native/api/files/options.js.map +1 -0
- package/dist/react-native/api/index.d.ts +2 -2
- package/dist/react-native/api/index.d.ts.map +1 -1
- package/dist/react-native/api/index.js +1 -1
- package/dist/react-native/api/index.js.map +1 -1
- package/dist/react-native/api/messages/index.d.ts +3 -0
- package/dist/react-native/api/messages/index.d.ts.map +1 -0
- package/dist/react-native/api/messages/index.js +4 -0
- package/dist/react-native/api/messages/index.js.map +1 -0
- package/dist/react-native/api/messages/operations.d.ts +22 -0
- package/dist/react-native/api/messages/operations.d.ts.map +1 -0
- package/dist/react-native/api/messages/operations.js +108 -0
- package/dist/react-native/api/messages/operations.js.map +1 -0
- package/dist/react-native/api/messages/options.d.ts +31 -0
- package/dist/react-native/api/messages/options.d.ts.map +1 -0
- package/dist/react-native/api/messages/options.js +4 -0
- package/dist/react-native/api/messages/options.js.map +1 -0
- package/dist/react-native/api/operations.d.ts +8 -183
- package/dist/react-native/api/operations.d.ts.map +1 -1
- package/dist/react-native/api/operations.js +14 -1063
- package/dist/react-native/api/operations.js.map +1 -1
- package/dist/react-native/api/options.d.ts +25 -322
- package/dist/react-native/api/options.d.ts.map +1 -1
- package/dist/react-native/api/options.js.map +1 -1
- package/dist/react-native/api/runSteps/index.d.ts +3 -0
- package/dist/react-native/api/runSteps/index.d.ts.map +1 -0
- package/dist/react-native/api/runSteps/index.js +4 -0
- package/dist/react-native/api/runSteps/index.js.map +1 -0
- package/dist/react-native/api/runSteps/operations.d.ts +14 -0
- package/dist/react-native/api/runSteps/operations.d.ts.map +1 -0
- package/dist/react-native/api/runSteps/operations.js +67 -0
- package/dist/react-native/api/runSteps/operations.js.map +1 -0
- package/dist/react-native/api/runSteps/options.d.ts +27 -0
- package/dist/react-native/api/runSteps/options.d.ts.map +1 -0
- package/dist/react-native/api/runSteps/options.js +4 -0
- package/dist/react-native/api/runSteps/options.js.map +1 -0
- package/dist/react-native/api/runs/index.d.ts +3 -0
- package/dist/react-native/api/runs/index.d.ts.map +1 -0
- package/dist/react-native/api/runs/index.js +4 -0
- package/dist/react-native/api/runs/index.js.map +1 -0
- package/dist/react-native/api/runs/operations.d.ts +31 -0
- package/dist/react-native/api/runs/operations.d.ts.map +1 -0
- package/dist/react-native/api/runs/operations.js +190 -0
- package/dist/react-native/api/runs/operations.js.map +1 -0
- package/dist/react-native/api/runs/options.d.ts +92 -0
- package/dist/react-native/api/runs/options.d.ts.map +1 -0
- package/dist/react-native/api/runs/options.js +4 -0
- package/dist/react-native/api/runs/options.js.map +1 -0
- package/dist/react-native/api/threads/index.d.ts +3 -0
- package/dist/react-native/api/threads/index.d.ts.map +1 -0
- package/dist/react-native/api/threads/index.js +4 -0
- package/dist/react-native/api/threads/index.js.map +1 -0
- package/dist/react-native/api/threads/operations.d.ts +26 -0
- package/dist/react-native/api/threads/operations.d.ts.map +1 -0
- package/dist/react-native/api/threads/operations.js +131 -0
- package/dist/react-native/api/threads/operations.js.map +1 -0
- package/dist/react-native/api/threads/options.d.ts +44 -0
- package/dist/react-native/api/threads/options.d.ts.map +1 -0
- package/dist/react-native/api/threads/options.js +4 -0
- package/dist/react-native/api/threads/options.js.map +1 -0
- package/dist/react-native/api/vectorStoreFileBatches/index.d.ts +3 -0
- package/dist/react-native/api/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/react-native/api/vectorStoreFileBatches/index.js +4 -0
- package/dist/react-native/api/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/react-native/api/vectorStoreFileBatches/operations.d.ts +27 -0
- package/dist/react-native/api/vectorStoreFileBatches/operations.d.ts.map +1 -0
- package/dist/react-native/api/vectorStoreFileBatches/operations.js +161 -0
- package/dist/react-native/api/vectorStoreFileBatches/operations.js.map +1 -0
- package/dist/react-native/api/vectorStoreFileBatches/options.d.ts +32 -0
- package/dist/react-native/api/vectorStoreFileBatches/options.d.ts.map +1 -0
- package/dist/react-native/api/vectorStoreFileBatches/options.js +4 -0
- package/dist/react-native/api/vectorStoreFileBatches/options.js.map +1 -0
- package/dist/react-native/api/vectorStoreFiles/index.d.ts +3 -0
- package/dist/react-native/api/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/react-native/api/vectorStoreFiles/index.js +4 -0
- package/dist/react-native/api/vectorStoreFiles/index.js.map +1 -0
- package/dist/react-native/api/vectorStoreFiles/operations.d.ts +27 -0
- package/dist/react-native/api/vectorStoreFiles/operations.d.ts.map +1 -0
- package/dist/react-native/api/vectorStoreFiles/operations.js +176 -0
- package/dist/react-native/api/vectorStoreFiles/operations.js.map +1 -0
- package/dist/react-native/api/vectorStoreFiles/options.d.ts +32 -0
- package/dist/react-native/api/vectorStoreFiles/options.d.ts.map +1 -0
- package/dist/react-native/api/vectorStoreFiles/options.js +4 -0
- package/dist/react-native/api/vectorStoreFiles/options.js.map +1 -0
- package/dist/react-native/api/vectorStores/index.d.ts +3 -0
- package/dist/react-native/api/vectorStores/index.d.ts.map +1 -0
- package/dist/react-native/api/vectorStores/index.js +4 -0
- package/dist/react-native/api/vectorStores/index.js.map +1 -0
- package/dist/react-native/api/vectorStores/operations.d.ts +33 -0
- package/dist/react-native/api/vectorStores/operations.d.ts.map +1 -0
- package/dist/react-native/api/vectorStores/operations.js +184 -0
- package/dist/react-native/api/vectorStores/operations.js.map +1 -0
- package/dist/react-native/api/vectorStores/options.d.ts +45 -0
- package/dist/react-native/api/vectorStores/options.d.ts.map +1 -0
- package/dist/react-native/api/vectorStores/options.js +4 -0
- package/dist/react-native/api/vectorStores/options.js.map +1 -0
- package/dist/react-native/classic/files/index.d.ts +22 -0
- package/dist/react-native/classic/files/index.d.ts.map +1 -0
- package/dist/react-native/classic/files/index.js +17 -0
- package/dist/react-native/classic/files/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +9 -0
- package/dist/react-native/classic/index.d.ts.map +1 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/classic/messages/index.d.ts +17 -0
- package/dist/react-native/classic/messages/index.d.ts.map +1 -0
- package/dist/react-native/classic/messages/index.js +15 -0
- package/dist/react-native/classic/messages/index.js.map +1 -0
- package/dist/react-native/classic/runSteps/index.d.ts +14 -0
- package/dist/react-native/classic/runSteps/index.d.ts.map +1 -0
- package/dist/react-native/classic/runSteps/index.js +13 -0
- package/dist/react-native/classic/runSteps/index.js.map +1 -0
- package/dist/react-native/classic/runs/index.d.ts +25 -0
- package/dist/react-native/classic/runs/index.d.ts.map +1 -0
- package/dist/react-native/classic/runs/index.js +19 -0
- package/dist/react-native/classic/runs/index.js.map +1 -0
- package/dist/react-native/classic/threads/index.d.ts +19 -0
- package/dist/react-native/classic/threads/index.d.ts.map +1 -0
- package/dist/react-native/classic/threads/index.js +16 -0
- package/dist/react-native/classic/threads/index.js.map +1 -0
- package/dist/react-native/classic/vectorStoreFileBatches/index.d.ts +20 -0
- package/dist/react-native/classic/vectorStoreFileBatches/index.d.ts.map +1 -0
- package/dist/react-native/classic/vectorStoreFileBatches/index.js +16 -0
- package/dist/react-native/classic/vectorStoreFileBatches/index.js.map +1 -0
- package/dist/react-native/classic/vectorStoreFiles/index.d.ts +20 -0
- package/dist/react-native/classic/vectorStoreFiles/index.d.ts.map +1 -0
- package/dist/react-native/classic/vectorStoreFiles/index.js +14 -0
- package/dist/react-native/classic/vectorStoreFiles/index.js.map +1 -0
- package/dist/react-native/classic/vectorStores/index.d.ts +22 -0
- package/dist/react-native/classic/vectorStores/index.d.ts.map +1 -0
- package/dist/react-native/classic/vectorStores/index.js +17 -0
- package/dist/react-native/classic/vectorStores/index.js.map +1 -0
- package/dist/react-native/index.d.ts +14 -3
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +2 -2
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -1
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +390 -338
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +377 -297
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/static-helpers/multipartHelpers.d.ts +1 -1
- package/dist/react-native/static-helpers/multipartHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/multipartHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +137 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js +2 -2
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/utils.d.ts +26 -5
- package/dist/react-native/utils.d.ts.map +1 -1
- package/dist/react-native/utils.js +44 -8
- package/dist/react-native/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/vectorStores/operations.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAmClC,wDAsBC;AAED,sEASC;AAGD,8CAOC;AAED,wDA8BC;AAED,sEASC;AAGD,8CAOC;AAED,kDAsBC;AAED,gEASC;AAGD,wCAOC;AAED,wDAoCC;AAED,sEASC;AAGD,8DAMC;AAGD,8CAcC;AAKD,4DAcC;AAED,sDAwBC;AAED,oEASC;AAGD,4CAWC;AA9TD,sDAUgC;AAQhC,4EAG+C;AAC/C,wEAAwE;AACxE,yDAKiC;AAEjC,4CAA4C;AAE5C,SAAgB,sBAAsB,CACpC,OAAe,EACf,aAAqB,EACrB,UAAuD,EAAE,cAAc,EAAE,EAAE,EAAE;;IAE7E,MAAM,IAAI,GAAG,IAAA,kCAAiB,EAC5B,gDAAgD,EAChD;QACE,aAAa,EAAE,aAAa;QAC5B,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,0CAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,iCAC3B,IAAA,iDAAmC,EAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE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CAAuC;AACvC,SAAgB,gBAAgB,CAC9B,OAAe,EACf,UAAsD,EAAE,cAAc,EAAE,EAAE,EAAE;IAE5E,OAAO,IAAA,0CAAuB,EAC5B,OAAO,EACP,GAAG,EAAE,CAAC,qBAAqB,CAAC,OAAO,EAAE,OAAO,CAAC,EAC7C,4BAA4B,EAC5B,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,MAAM,EAAE,CACrB,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAAC,MAAmB;IAChD,QAAQ,MAAM,CAAC,MAAM,EAAE,CAAC;QACtB,KAAK,aAAa;YAChB,OAAO,SAAS,CAAC;QACnB,KAAK,WAAW;YACd,OAAO,WAAW,CAAC;QACrB,KAAK,SAAS;YACZ,OAAO,QAAQ,CAAC;QAClB;YACE,OAAO,QAAQ,CAAC;IACpB,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AgentsContext as Client } from \"../index.js\";\nimport {\n vectorStoreConfigurationSerializer,\n _AgentsPagedResultVectorStore,\n _agentsPagedResultVectorStoreDeserializer,\n VectorStore,\n vectorStoreDeserializer,\n vectorStoreExpirationPolicySerializer,\n vectorStoreChunkingStrategyRequestUnionSerializer,\n VectorStoreDeletionStatus,\n vectorStoreDeletionStatusDeserializer,\n} from \"../../models/models.js\";\nimport {\n VectorStoresDeleteVectorStoreOptionalParams,\n VectorStoresModifyVectorStoreOptionalParams,\n VectorStoresGetVectorStoreOptionalParams,\n VectorStoresCreateVectorStoreOptionalParams,\n VectorStoresListVectorStoresOptionalParams,\n} from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState, OperationStatus } from \"@azure/core-lro\";\nimport { createPoller } from \"../poller.js\";\n\nexport function _deleteVectorStoreSend(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresDeleteVectorStoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores/{vectorStoreId}{?api%2Dversion}\",\n {\n vectorStoreId: vectorStoreId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _deleteVectorStoreDeserialize(\n result: PathUncheckedResponse,\n): Promise<VectorStoreDeletionStatus> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return vectorStoreDeletionStatusDeserializer(result.body);\n}\n\n/** Deletes the vector store object matching the specified ID. */\nexport async function deleteVectorStore(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresDeleteVectorStoreOptionalParams = { requestOptions: {} },\n): Promise<VectorStoreDeletionStatus> {\n const result = await _deleteVectorStoreSend(context, vectorStoreId, options);\n return _deleteVectorStoreDeserialize(result);\n}\n\nexport function _modifyVectorStoreSend(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresModifyVectorStoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores/{vectorStoreId}{?api%2Dversion}\",\n {\n vectorStoreId: vectorStoreId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: {\n name: options?.name,\n expires_after: !options?.expiresAfter\n ? options?.expiresAfter\n : vectorStoreExpirationPolicySerializer(options?.expiresAfter),\n metadata: options?.metadata,\n },\n });\n}\n\nexport async function _modifyVectorStoreDeserialize(\n result: PathUncheckedResponse,\n): Promise<VectorStore> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return vectorStoreDeserializer(result.body);\n}\n\n/** Modifies an existing vector store. */\nexport async function modifyVectorStore(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresModifyVectorStoreOptionalParams = { requestOptions: {} },\n): Promise<VectorStore> {\n const result = await _modifyVectorStoreSend(context, vectorStoreId, options);\n return _modifyVectorStoreDeserialize(result);\n}\n\nexport function _getVectorStoreSend(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresGetVectorStoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores/{vectorStoreId}{?api%2Dversion}\",\n {\n vectorStoreId: vectorStoreId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getVectorStoreDeserialize(\n result: PathUncheckedResponse,\n): Promise<VectorStore> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return vectorStoreDeserializer(result.body);\n}\n\n/** Returns the vector store object matching the specified ID. */\nexport async function getVectorStore(\n context: Client,\n vectorStoreId: string,\n options: VectorStoresGetVectorStoreOptionalParams = { requestOptions: {} },\n): Promise<VectorStore> {\n const result = await _getVectorStoreSend(context, vectorStoreId, options);\n return _getVectorStoreDeserialize(result);\n}\n\nexport function _createVectorStoreSend(\n context: Client,\n options: VectorStoresCreateVectorStoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores{?api%2Dversion}\",\n {\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: {\n file_ids: !options?.fileIds\n ? options?.fileIds\n : options?.fileIds.map((p: any) => {\n return p;\n }),\n name: options?.name,\n configuration: !options?.storeConfiguration\n ? options?.storeConfiguration\n : vectorStoreConfigurationSerializer(options?.storeConfiguration),\n expires_after: !options?.expiresAfter\n ? options?.expiresAfter\n : vectorStoreExpirationPolicySerializer(options?.expiresAfter),\n chunking_strategy: !options?.chunkingStrategy\n ? options?.chunkingStrategy\n : vectorStoreChunkingStrategyRequestUnionSerializer(options?.chunkingStrategy),\n metadata: options?.metadata,\n },\n });\n}\n\nexport async function _createVectorStoreDeserialize(\n result: PathUncheckedResponse,\n): Promise<VectorStore> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return vectorStoreDeserializer(result.body);\n}\n\n/** Creates a vector store. */\nexport async function createVectorStoreInternal(\n context: Client,\n options: VectorStoresCreateVectorStoreOptionalParams = { requestOptions: {} },\n): Promise<VectorStore> {\n const result = await _createVectorStoreSend(context, options);\n return _createVectorStoreDeserialize(result);\n}\n\n/** Creates a vector store. */\nexport function createVectorStore(\n context: Client,\n options: VectorStoresCreateVectorStoreOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<VectorStore>, VectorStore> {\n return createPoller<VectorStore>({\n initOperation: async () => {\n return createVectorStoreInternal(context, options);\n },\n pollOperation: async (currentResult: VectorStore) => {\n return getVectorStore(context, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n intervalInMs: options.pollingOptions?.intervalInMs,\n });\n}\n\n/**\n * Creates a vector store and poll.\n */\nexport function createVectorStoreAndPoll(\n context: Client,\n options: VectorStoresCreateVectorStoreOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<VectorStore>, VectorStore> {\n return createPoller<VectorStore>({\n initOperation: async () => {\n return createVectorStoreInternal(context, options);\n },\n pollOperation: async (currentResult: VectorStore) => {\n return getVectorStore(context, currentResult.id, options);\n },\n getOperationStatus: getLroOperationStatus,\n intervalInMs: options.pollingOptions?.intervalInMs,\n });\n}\n\nexport function _listVectorStoresSend(\n context: Client,\n options: VectorStoresListVectorStoresOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/vector_stores{?api%2Dversion,limit,order,after,before}\",\n {\n \"api%2Dversion\": context.apiVersion,\n limit: options?.limit,\n order: options?.order,\n after: options?.after,\n before: options?.before,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listVectorStoresDeserialize(\n result: PathUncheckedResponse,\n): Promise<_AgentsPagedResultVectorStore> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _agentsPagedResultVectorStoreDeserializer(result.body);\n}\n\n/** Returns a list of vector stores. */\nexport function listVectorStores(\n context: Client,\n options: VectorStoresListVectorStoresOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<VectorStore> {\n return buildPagedAsyncIterator(\n context,\n () => _listVectorStoresSend(context, options),\n _listVectorStoresDeserialize,\n [\"200\"],\n { itemName: \"data\" },\n );\n}\n\nfunction getLroOperationStatus(result: VectorStore): OperationStatus {\n switch (result.status) {\n case \"in_progress\":\n return \"running\";\n case \"completed\":\n return \"succeeded\";\n case \"expired\":\n return \"failed\";\n default:\n return \"failed\";\n }\n}\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { VectorStoreConfiguration, VectorStoreExpirationPolicy, VectorStoreChunkingStrategyRequestUnion, ListSortOrder } from "../../models/models.js";
|
|
2
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
3
|
+
import { PollingOptionsParams } from "../options.js";
|
|
4
|
+
/** Optional parameters. */
|
|
5
|
+
export interface VectorStoresDeleteVectorStoreOptionalParams extends OperationOptions {
|
|
6
|
+
}
|
|
7
|
+
/** Optional parameters. */
|
|
8
|
+
export interface VectorStoresModifyVectorStoreOptionalParams extends OperationOptions {
|
|
9
|
+
/** The name of the vector store. */
|
|
10
|
+
name?: string | null;
|
|
11
|
+
/** Details on when this vector store expires */
|
|
12
|
+
expiresAfter?: VectorStoreExpirationPolicy | null;
|
|
13
|
+
/** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
|
|
14
|
+
metadata?: Record<string, string> | null;
|
|
15
|
+
}
|
|
16
|
+
/** Optional parameters. */
|
|
17
|
+
export interface VectorStoresGetVectorStoreOptionalParams extends OperationOptions {
|
|
18
|
+
}
|
|
19
|
+
/** Optional parameters. */
|
|
20
|
+
export interface VectorStoresCreateVectorStoreOptionalParams extends OperationOptions, PollingOptionsParams {
|
|
21
|
+
/** A list of file IDs that the vector store should use. Useful for tools like `file_search` that can access files. */
|
|
22
|
+
fileIds?: string[];
|
|
23
|
+
/** The name of the vector store. */
|
|
24
|
+
name?: string;
|
|
25
|
+
/** The vector store configuration, used when vector store is created from Azure asset URIs. */
|
|
26
|
+
storeConfiguration?: VectorStoreConfiguration;
|
|
27
|
+
/** Details on when this vector store expires */
|
|
28
|
+
expiresAfter?: VectorStoreExpirationPolicy;
|
|
29
|
+
/** The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. Only applicable if file_ids is non-empty. */
|
|
30
|
+
chunkingStrategy?: VectorStoreChunkingStrategyRequestUnion;
|
|
31
|
+
/** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */
|
|
32
|
+
metadata?: Record<string, string> | null;
|
|
33
|
+
}
|
|
34
|
+
/** Optional parameters. */
|
|
35
|
+
export interface VectorStoresListVectorStoresOptionalParams extends OperationOptions {
|
|
36
|
+
/** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */
|
|
37
|
+
limit?: number;
|
|
38
|
+
/** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */
|
|
39
|
+
order?: ListSortOrder;
|
|
40
|
+
/** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */
|
|
41
|
+
after?: string;
|
|
42
|
+
/** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */
|
|
43
|
+
before?: string;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../src/api/vectorStores/options.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,uCAAuC,EACvC,aAAa,EACd,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD,2BAA2B;AAC3B,MAAM,WAAW,2CAA4C,SAAQ,gBAAgB;CAAG;AAExF,2BAA2B;AAC3B,MAAM,WAAW,2CAA4C,SAAQ,gBAAgB;IACnF,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gDAAgD;IAChD,YAAY,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAC;IAClD,yPAAyP;IACzP,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC1C;AAED,2BAA2B;AAC3B,MAAM,WAAW,wCAAyC,SAAQ,gBAAgB;CAAG;AAErF,2BAA2B;AAC3B,MAAM,WAAW,2CACf,SAAQ,gBAAgB,EACtB,oBAAoB;IACtB,sHAAsH;IACtH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+FAA+F;IAC/F,kBAAkB,CAAC,EAAE,wBAAwB,CAAC;IAC9C,gDAAgD;IAChD,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAC3C,yIAAyI;IACzI,gBAAgB,CAAC,EAAE,uCAAuC,CAAC;IAC3D,yPAAyP;IACzP,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;CAC1C;AAED,2BAA2B;AAC3B,MAAM,WAAW,0CAA2C,SAAQ,gBAAgB;IAClF,iHAAiH;IACjH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oHAAoH;IACpH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,oRAAoR;IACpR,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0RAA0R;IAC1R,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/vectorStores/options.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport {\n VectorStoreConfiguration,\n VectorStoreExpirationPolicy,\n VectorStoreChunkingStrategyRequestUnion,\n ListSortOrder,\n} from \"../../models/models.js\";\nimport { OperationOptions } from \"@azure-rest/core-client\";\nimport { PollingOptionsParams } from \"../options.js\";\n\n/** Optional parameters. */\nexport interface VectorStoresDeleteVectorStoreOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface VectorStoresModifyVectorStoreOptionalParams extends OperationOptions {\n /** The name of the vector store. */\n name?: string | null;\n /** Details on when this vector store expires */\n expiresAfter?: VectorStoreExpirationPolicy | null;\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface VectorStoresGetVectorStoreOptionalParams extends OperationOptions {}\n\n/** Optional parameters. */\nexport interface VectorStoresCreateVectorStoreOptionalParams\n extends OperationOptions,\n PollingOptionsParams {\n /** A list of file IDs that the vector store should use. Useful for tools like `file_search` that can access files. */\n fileIds?: string[];\n /** The name of the vector store. */\n name?: string;\n /** The vector store configuration, used when vector store is created from Azure asset URIs. */\n storeConfiguration?: VectorStoreConfiguration;\n /** Details on when this vector store expires */\n expiresAfter?: VectorStoreExpirationPolicy;\n /** The chunking strategy used to chunk the file(s). If not set, will use the auto strategy. Only applicable if file_ids is non-empty. */\n chunkingStrategy?: VectorStoreChunkingStrategyRequestUnion;\n /** A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length. */\n metadata?: Record<string, string> | null;\n}\n\n/** Optional parameters. */\nexport interface VectorStoresListVectorStoresOptionalParams extends OperationOptions {\n /** A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. */\n limit?: number;\n /** Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. */\n order?: ListSortOrder;\n /** A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. */\n after?: string;\n /** A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. */\n before?: string;\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AgentsContext } from "../../api/agentsContext.js";
|
|
2
|
+
import { FileListResponse, FileInfo, FilePurpose, FileDeletionStatus } from "../../models/models.js";
|
|
3
|
+
import { FilesGetFileContentOptionalParams, FilesGetFileOptionalParams, FilesDeleteFileOptionalParams, FilesUploadFileOptionalParams, FilesListFilesOptionalParams } from "../../api/files/options.js";
|
|
4
|
+
import { OperationState, PollerLike } from "@azure/core-lro";
|
|
5
|
+
import { StreamableMethod } from "@azure-rest/core-client";
|
|
6
|
+
/** Interface representing a Files operations. */
|
|
7
|
+
export interface FilesOperations {
|
|
8
|
+
/** Retrieves the raw content of a specific file. */
|
|
9
|
+
getContent: (fileId: string, options?: FilesGetFileContentOptionalParams) => StreamableMethod<string | Uint8Array>;
|
|
10
|
+
/** Returns information about a specific file. Does not retrieve file content. */
|
|
11
|
+
get: (fileId: string, options?: FilesGetFileOptionalParams) => Promise<FileInfo>;
|
|
12
|
+
/** Delete a previously uploaded file. */
|
|
13
|
+
delete: (fileId: string, options?: FilesDeleteFileOptionalParams) => Promise<FileDeletionStatus>;
|
|
14
|
+
/** Uploads a file for use by other operations. */
|
|
15
|
+
upload: (file: ReadableStream | NodeJS.ReadableStream, purpose: FilePurpose, options: FilesUploadFileOptionalParams) => Promise<FileInfo>;
|
|
16
|
+
/** Uploads a file for use by other operations with polling */
|
|
17
|
+
uploadAndPoll: (file: ReadableStream | NodeJS.ReadableStream, purpose: FilePurpose, options: FilesUploadFileOptionalParams) => PollerLike<OperationState<FileInfo>, FileInfo>;
|
|
18
|
+
/** Gets a list of previously uploaded files. */
|
|
19
|
+
list: (options?: FilesListFilesOptionalParams) => Promise<FileListResponse>;
|
|
20
|
+
}
|
|
21
|
+
export declare function _getFilesOperations(context: AgentsContext): FilesOperations;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/files/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,kBAAkB,EACnB,MAAM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|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._getFilesOperations = _getFilesOperations;
|
|
6
|
+
const operations_js_1 = require("../../api/files/operations.js");
|
|
7
|
+
function _getFiles(context) {
|
|
8
|
+
return {
|
|
9
|
+
getContent: (fileId, options) => (0, operations_js_1.getFileContent)(context, fileId, options),
|
|
10
|
+
get: (fileId, options) => (0, operations_js_1.getFile)(context, fileId, options),
|
|
11
|
+
delete: (fileId, options) => (0, operations_js_1.deleteFile)(context, fileId, options),
|
|
12
|
+
upload: (file, purpose, options) => (0, operations_js_1.uploadFile)(context, { file: file, purpose: purpose, filename: options.fileName }, options),
|
|
13
|
+
uploadAndPoll: (file, purpose, options) => (0, operations_js_1.uploadFileAndPoll)(context, { file, purpose, filename: options.fileName }, options),
|
|
14
|
+
list: (options) => (0, operations_js_1.listFiles)(context, options),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function _getFilesOperations(context) {
|
|
18
|
+
return Object.assign({}, _getFiles(context));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/files/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA4ElC,kDAIC;AAhED,iEAOuC;AA+BvC,SAAS,SAAS,CAAC,OAAsB;IACvC,OAAO;QACL,UAAU,EAAE,CAAC,MAAc,EAAE,OAA2C,EAAE,EAAE,CAC1E,IAAA,8BAAc,EAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC;QAC1C,GAAG,EAAE,CAAC,MAAc,EAAE,OAAoC,EAAE,EAAE,CAC5D,IAAA,uBAAO,EAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC;QACnC,MAAM,EAAE,CAAC,MAAc,EAAE,OAAuC,EAAE,EAAE,CAClE,IAAA,0BAAU,EAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC;QACtC,MAAM,EAAE,CACN,IAA4C,EAC5C,OAAoB,EACpB,OAAsC,EACtC,EAAE,CAAC,IAAA,0BAAU,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,OAAO,CAAC;QAC/F,aAAa,EAAE,CACb,IAA4C,EAC5C,OAAoB,EACpB,OAAsC,EACtC,EAAE,CAAC,IAAA,iCAAiB,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,OAAO,CAAC;QACvF,IAAI,EAAE,CAAC,OAAsC,EAAE,EAAE,CAAC,IAAA,yBAAS,EAAC,OAAO,EAAE,OAAO,CAAC;KAC9E,CAAC;AACJ,CAAC;AAED,SAAgB,mBAAmB,CAAC,OAAsB;IACxD,yBACK,SAAS,CAAC,OAAO,CAAC,EACrB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AgentsContext } from \"../../api/agentsContext.js\";\nimport {\n FileListResponse,\n FileInfo,\n FilePurpose,\n FileDeletionStatus,\n} from \"../../models/models.js\";\nimport {\n FilesGetFileContentOptionalParams,\n FilesGetFileOptionalParams,\n FilesDeleteFileOptionalParams,\n FilesUploadFileOptionalParams,\n FilesListFilesOptionalParams,\n} from \"../../api/files/options.js\";\nimport {\n getFileContent,\n getFile,\n deleteFile,\n uploadFile,\n listFiles,\n uploadFileAndPoll,\n} from \"../../api/files/operations.js\";\nimport { OperationState, PollerLike } from \"@azure/core-lro\";\nimport { StreamableMethod } from \"@azure-rest/core-client\";\n\n/** Interface representing a Files operations. */\nexport interface FilesOperations {\n /** Retrieves the raw content of a specific file. */\n getContent: (\n fileId: string,\n options?: FilesGetFileContentOptionalParams,\n ) => StreamableMethod<string | Uint8Array>;\n /** Returns information about a specific file. Does not retrieve file content. */\n get: (fileId: string, options?: FilesGetFileOptionalParams) => Promise<FileInfo>;\n /** Delete a previously uploaded file. */\n delete: (fileId: string, options?: FilesDeleteFileOptionalParams) => Promise<FileDeletionStatus>;\n /** Uploads a file for use by other operations. */\n upload: (\n file: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options: FilesUploadFileOptionalParams,\n ) => Promise<FileInfo>;\n /** Uploads a file for use by other operations with polling */\n uploadAndPoll: (\n file: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options: FilesUploadFileOptionalParams,\n ) => PollerLike<OperationState<FileInfo>, FileInfo>;\n /** Gets a list of previously uploaded files. */\n list: (options?: FilesListFilesOptionalParams) => Promise<FileListResponse>;\n}\n\nfunction _getFiles(context: AgentsContext) {\n return {\n getContent: (fileId: string, options?: FilesGetFileContentOptionalParams) =>\n getFileContent(context, fileId, options),\n get: (fileId: string, options?: FilesGetFileOptionalParams) =>\n getFile(context, fileId, options),\n delete: (fileId: string, options?: FilesDeleteFileOptionalParams) =>\n deleteFile(context, fileId, options),\n upload: (\n file: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options: FilesUploadFileOptionalParams,\n ) => uploadFile(context, { file: file, purpose: purpose, filename: options.fileName }, options),\n uploadAndPoll: (\n file: ReadableStream | NodeJS.ReadableStream,\n purpose: FilePurpose,\n options: FilesUploadFileOptionalParams,\n ) => uploadFileAndPoll(context, { file, purpose, filename: options.fileName }, options),\n list: (options?: FilesListFilesOptionalParams) => listFiles(context, options),\n };\n}\n\nexport function _getFilesOperations(context: AgentsContext): FilesOperations {\n return {\n ..._getFiles(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { FilesOperations } from "./files/index.js";
|
|
2
|
+
export { MessagesOperations } from "./messages/index.js";
|
|
3
|
+
export { RunsOperations } from "./runs/index.js";
|
|
4
|
+
export { RunStepsOperations } from "./runSteps/index.js";
|
|
5
|
+
export { ThreadsOperations } from "./threads/index.js";
|
|
6
|
+
export { VectorStoreFileBatchesOperations } from "./vectorStoreFileBatches/index.js";
|
|
7
|
+
export { VectorStoreFilesOperations } from "./vectorStoreFiles/index.js";
|
|
8
|
+
export { VectorStoresOperations } from "./vectorStores/index.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,gCAAgC,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/classic/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { FilesOperations } from \"./files/index.js\";\nexport { MessagesOperations } from \"./messages/index.js\";\nexport { RunsOperations } from \"./runs/index.js\";\nexport { RunStepsOperations } from \"./runSteps/index.js\";\nexport { ThreadsOperations } from \"./threads/index.js\";\nexport { VectorStoreFileBatchesOperations } from \"./vectorStoreFileBatches/index.js\";\nexport { VectorStoreFilesOperations } from \"./vectorStoreFiles/index.js\";\nexport { VectorStoresOperations } from \"./vectorStores/index.js\";\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AgentsContext } from "../../api/agentsContext.js";
|
|
2
|
+
import { MessageRole, MessageInputContent, ThreadMessage } from "../../models/models.js";
|
|
3
|
+
import { MessagesUpdateMessageOptionalParams, MessagesGetMessageOptionalParams, MessagesListMessagesOptionalParams, MessagesCreateMessageOptionalParams } from "../../api/messages/options.js";
|
|
4
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
/** Interface representing a Messages operations. */
|
|
6
|
+
export interface MessagesOperations {
|
|
7
|
+
/** Modifies an existing message on an existing thread. */
|
|
8
|
+
update: (threadId: string, messageId: string, options?: MessagesUpdateMessageOptionalParams) => Promise<ThreadMessage>;
|
|
9
|
+
/** Retrieves an existing message. */
|
|
10
|
+
get: (threadId: string, messageId: string, options?: MessagesGetMessageOptionalParams) => Promise<ThreadMessage>;
|
|
11
|
+
/** Gets a list of messages that exist on a thread. */
|
|
12
|
+
list: (threadId: string, options?: MessagesListMessagesOptionalParams) => PagedAsyncIterableIterator<ThreadMessage>;
|
|
13
|
+
/** Creates a new message on a specified thread. */
|
|
14
|
+
create: (threadId: string, role: MessageRole, content: MessageInputContent, options?: MessagesCreateMessageOptionalParams) => Promise<ThreadMessage>;
|
|
15
|
+
}
|
|
16
|
+
export declare function _getMessagesOperations(context: AgentsContext): MessagesOperations;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/messages/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACzF,OAAO,EACL,mCAAmC,EACnC,gCAAgC,EAChC,kCAAkC,EAClC,mCAAmC,EACpC,MAAM,+BAA+B,CAAC;AAOvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,oDAAoD;AACpD,MAAM,WAAW,kBAAkB;IACjC,0DAA0D;IAC1D,MAAM,EAAE,CACN,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,mCAAmC,KAC1C,OAAO,CAAC,aAAa,CAAC,CAAC;IAC5B,qCAAqC;IACrC,GAAG,EAAE,CACH,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,gCAAgC,KACvC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC5B,sDAAsD;IACtD,IAAI,EAAE,CACJ,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,kCAAkC,KACzC,0BAA0B,CAAC,aAAa,CAAC,CAAC;IAC/C,mDAAmD;IACnD,MAAM,EAAE,CACN,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,WAAW,EACjB,OAAO,EAAE,mBAAmB,EAC5B,OAAO,CAAC,EAAE,mCAAmC,KAC1C,OAAO,CAAC,aAAa,CAAC,CAAC;CAC7B;AAmBD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,aAAa,GAAG,kBAAkB,CAIjF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._getMessagesOperations = _getMessagesOperations;
|
|
6
|
+
const operations_js_1 = require("../../api/messages/operations.js");
|
|
7
|
+
function _getMessages(context) {
|
|
8
|
+
return {
|
|
9
|
+
update: (threadId, messageId, options) => (0, operations_js_1.updateMessage)(context, threadId, messageId, options),
|
|
10
|
+
get: (threadId, messageId, options) => (0, operations_js_1.getMessage)(context, threadId, messageId, options),
|
|
11
|
+
list: (threadId, options) => (0, operations_js_1.listMessages)(context, threadId, options),
|
|
12
|
+
create: (threadId, role, content, options) => (0, operations_js_1.createMessage)(context, threadId, role, content, options),
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function _getMessagesOperations(context) {
|
|
16
|
+
return Object.assign({}, _getMessages(context));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/messages/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA+DlC,wDAIC;AAzDD,oEAK0C;AA+B1C,SAAS,YAAY,CAAC,OAAsB;IAC1C,OAAO;QACL,MAAM,EAAE,CAAC,QAAgB,EAAE,SAAiB,EAAE,OAA6C,EAAE,EAAE,CAC7F,IAAA,6BAAa,EAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC;QACtD,GAAG,EAAE,CAAC,QAAgB,EAAE,SAAiB,EAAE,OAA0C,EAAE,EAAE,CACvF,IAAA,0BAAU,EAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC;QACnD,IAAI,EAAE,CAAC,QAAgB,EAAE,OAA4C,EAAE,EAAE,CACvE,IAAA,4BAAY,EAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC1C,MAAM,EAAE,CACN,QAAgB,EAChB,IAAiB,EACjB,OAA4B,EAC5B,OAA6C,EAC7C,EAAE,CAAC,IAAA,6BAAa,EAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC;KAC9D,CAAC;AACJ,CAAC;AAED,SAAgB,sBAAsB,CAAC,OAAsB;IAC3D,yBACK,YAAY,CAAC,OAAO,CAAC,EACxB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AgentsContext } from \"../../api/agentsContext.js\";\nimport { MessageRole, MessageInputContent, ThreadMessage } from \"../../models/models.js\";\nimport {\n MessagesUpdateMessageOptionalParams,\n MessagesGetMessageOptionalParams,\n MessagesListMessagesOptionalParams,\n MessagesCreateMessageOptionalParams,\n} from \"../../api/messages/options.js\";\nimport {\n updateMessage,\n getMessage,\n listMessages,\n createMessage,\n} from \"../../api/messages/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Messages operations. */\nexport interface MessagesOperations {\n /** Modifies an existing message on an existing thread. */\n update: (\n threadId: string,\n messageId: string,\n options?: MessagesUpdateMessageOptionalParams,\n ) => Promise<ThreadMessage>;\n /** Retrieves an existing message. */\n get: (\n threadId: string,\n messageId: string,\n options?: MessagesGetMessageOptionalParams,\n ) => Promise<ThreadMessage>;\n /** Gets a list of messages that exist on a thread. */\n list: (\n threadId: string,\n options?: MessagesListMessagesOptionalParams,\n ) => PagedAsyncIterableIterator<ThreadMessage>;\n /** Creates a new message on a specified thread. */\n create: (\n threadId: string,\n role: MessageRole,\n content: MessageInputContent,\n options?: MessagesCreateMessageOptionalParams,\n ) => Promise<ThreadMessage>;\n}\n\nfunction _getMessages(context: AgentsContext) {\n return {\n update: (threadId: string, messageId: string, options?: MessagesUpdateMessageOptionalParams) =>\n updateMessage(context, threadId, messageId, options),\n get: (threadId: string, messageId: string, options?: MessagesGetMessageOptionalParams) =>\n getMessage(context, threadId, messageId, options),\n list: (threadId: string, options?: MessagesListMessagesOptionalParams) =>\n listMessages(context, threadId, options),\n create: (\n threadId: string,\n role: MessageRole,\n content: MessageInputContent,\n options?: MessagesCreateMessageOptionalParams,\n ) => createMessage(context, threadId, role, content, options),\n };\n}\n\nexport function _getMessagesOperations(context: AgentsContext): MessagesOperations {\n return {\n ..._getMessages(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AgentsContext } from "../../api/agentsContext.js";
|
|
2
|
+
import { RunStep } from "../../models/models.js";
|
|
3
|
+
import { RunStepsListRunStepsOptionalParams, RunStepsGetRunStepOptionalParams } from "../../api/runSteps/options.js";
|
|
4
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
/** Interface representing a RunSteps operations. */
|
|
6
|
+
/** Interface representing a RunSteps operations. */
|
|
7
|
+
export interface RunStepsOperations {
|
|
8
|
+
/** Gets a list of run steps from a thread run. */
|
|
9
|
+
list: (threadId: string, runId: string, options?: RunStepsListRunStepsOptionalParams) => PagedAsyncIterableIterator<RunStep>;
|
|
10
|
+
/** Retrieves a single run step from a thread run. */
|
|
11
|
+
get: (threadId: string, runId: string, stepId: string, options?: RunStepsGetRunStepOptionalParams) => Promise<RunStep>;
|
|
12
|
+
}
|
|
13
|
+
export declare function _getRunStepsOperations(context: AgentsContext): RunStepsOperations;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/runSteps/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EACL,kCAAkC,EAClC,gCAAgC,EACjC,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,oDAAoD;AACpD,oDAAoD;AACpD,MAAM,WAAW,kBAAkB;IACjC,kDAAkD;IAClD,IAAI,EAAE,CACJ,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,kCAAkC,KACzC,0BAA0B,CAAC,OAAO,CAAC,CAAC;IACzC,qDAAqD;IACrD,GAAG,EAAE,CACH,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,gCAAgC,KACvC,OAAO,CAAC,OAAO,CAAC,CAAC;CACvB;AAeD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,aAAa,GAAG,kBAAkB,CAIjF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._getRunStepsOperations = _getRunStepsOperations;
|
|
6
|
+
const operations_js_1 = require("../../api/runSteps/operations.js");
|
|
7
|
+
function _getRunSteps(context) {
|
|
8
|
+
return {
|
|
9
|
+
list: (threadId, runId, options) => (0, operations_js_1.listRunSteps)(context, threadId, runId, options),
|
|
10
|
+
get: (threadId, runId, stepId, options) => (0, operations_js_1.getRunStep)(context, threadId, runId, stepId, options),
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function _getRunStepsOperations(context) {
|
|
14
|
+
return Object.assign({}, _getRunSteps(context));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/runSteps/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AA0ClC,wDAIC;AAtCD,oEAA4E;AAqB5E,SAAS,YAAY,CAAC,OAAsB;IAC1C,OAAO;QACL,IAAI,EAAE,CAAC,QAAgB,EAAE,KAAa,EAAE,OAA4C,EAAE,EAAE,CACtF,IAAA,4BAAY,EAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC;QACjD,GAAG,EAAE,CACH,QAAgB,EAChB,KAAa,EACb,MAAc,EACd,OAA0C,EAC1C,EAAE,CAAC,IAAA,0BAAU,EAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;KAC3D,CAAC;AACJ,CAAC;AAED,SAAgB,sBAAsB,CAAC,OAAsB;IAC3D,yBACK,YAAY,CAAC,OAAO,CAAC,EACxB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AgentsContext } from \"../../api/agentsContext.js\";\nimport { RunStep } from \"../../models/models.js\";\nimport {\n RunStepsListRunStepsOptionalParams,\n RunStepsGetRunStepOptionalParams,\n} from \"../../api/runSteps/options.js\";\nimport { listRunSteps, getRunStep } from \"../../api/runSteps/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a RunSteps operations. */\n/** Interface representing a RunSteps operations. */\nexport interface RunStepsOperations {\n /** Gets a list of run steps from a thread run. */\n list: (\n threadId: string,\n runId: string,\n options?: RunStepsListRunStepsOptionalParams,\n ) => PagedAsyncIterableIterator<RunStep>;\n /** Retrieves a single run step from a thread run. */\n get: (\n threadId: string,\n runId: string,\n stepId: string,\n options?: RunStepsGetRunStepOptionalParams,\n ) => Promise<RunStep>;\n}\n\nfunction _getRunSteps(context: AgentsContext) {\n return {\n list: (threadId: string, runId: string, options?: RunStepsListRunStepsOptionalParams) =>\n listRunSteps(context, threadId, runId, options),\n get: (\n threadId: string,\n runId: string,\n stepId: string,\n options?: RunStepsGetRunStepOptionalParams,\n ) => getRunStep(context, threadId, runId, stepId, options),\n };\n}\n\nexport function _getRunStepsOperations(context: AgentsContext): RunStepsOperations {\n return {\n ..._getRunSteps(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { AgentsContext } from "../../api/agentsContext.js";
|
|
2
|
+
import { ThreadRun, ToolOutput } from "../../models/models.js";
|
|
3
|
+
import { RunsCancelRunOptionalParams, RunsSubmitToolOutputsToRunOptionalParams, RunsUpdateRunOptionalParams, RunsGetRunOptionalParams, RunsListRunsOptionalParams, RunsCreateRunOptionalParams } from "../../api/runs/options.js";
|
|
4
|
+
import { AgentRunResponse } from "../../models/streamingModels.js";
|
|
5
|
+
import { CreateThreadAndRunOptionalParams } from "../../api/options.js";
|
|
6
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
7
|
+
/** Interface representing a Runs operations. */
|
|
8
|
+
export interface RunsOperations {
|
|
9
|
+
/** Cancels a run of an in‐progress thread. */
|
|
10
|
+
cancel: (threadId: string, runId: string, options?: RunsCancelRunOptionalParams) => Promise<ThreadRun>;
|
|
11
|
+
/** Submits outputs from tools as requested by tool calls in a run. */
|
|
12
|
+
submitToolOutputs: (threadId: string, runId: string, toolOutputs: ToolOutput[], options?: RunsSubmitToolOutputsToRunOptionalParams) => Promise<ThreadRun>;
|
|
13
|
+
/** Modifies an existing thread run. */
|
|
14
|
+
update: (threadId: string, runId: string, options?: RunsUpdateRunOptionalParams) => Promise<ThreadRun>;
|
|
15
|
+
/** Gets an existing run from an existing thread. */
|
|
16
|
+
get: (threadId: string, runId: string, options?: RunsGetRunOptionalParams) => Promise<ThreadRun>;
|
|
17
|
+
/** Gets a list of runs for a specified thread. */
|
|
18
|
+
list: (threadId: string, options?: RunsListRunsOptionalParams) => PagedAsyncIterableIterator<ThreadRun>;
|
|
19
|
+
/** Creates a new run for an agent thread. */
|
|
20
|
+
create: (threadId: string, assistantId: string, options?: RunsCreateRunOptionalParams) => AgentRunResponse;
|
|
21
|
+
/** Creates a new thread and run for an agent. */
|
|
22
|
+
createThreadAndRun: (assistantId: string, options?: CreateThreadAndRunOptionalParams) => AgentRunResponse;
|
|
23
|
+
}
|
|
24
|
+
export declare function _getRunsOperations(context: AgentsContext): RunsOperations;
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/runs/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,wBAAwB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;IACtB,iDAAiD;IACjD,kBAAkB,EAAE,CAClB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,gCAAgC,KACvC,gBAAgB,CAAC;CACvB;AAyBD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,cAAc,CAIzE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._getRunsOperations = _getRunsOperations;
|
|
6
|
+
const operations_js_1 = require("../../api/runs/operations.js");
|
|
7
|
+
const operations_js_2 = require("../../api/operations.js");
|
|
8
|
+
function _getRuns(context) {
|
|
9
|
+
return {
|
|
10
|
+
cancel: (threadId, runId, options) => (0, operations_js_1.cancelRun)(context, threadId, runId, options),
|
|
11
|
+
submitToolOutputs: (threadId, runId, toolOutputs, options) => (0, operations_js_1.submitToolOutputsToRun)(context, threadId, runId, toolOutputs, options),
|
|
12
|
+
update: (threadId, runId, options) => (0, operations_js_1.updateRun)(context, threadId, runId, options),
|
|
13
|
+
get: (threadId, runId, options) => (0, operations_js_1.getRun)(context, threadId, runId, options),
|
|
14
|
+
list: (threadId, options) => (0, operations_js_1.listRuns)(context, threadId, options),
|
|
15
|
+
create: (threadId, assistantId, options) => (0, operations_js_1.createRun)(context, threadId, assistantId, options),
|
|
16
|
+
createThreadAndRun: (assistantId, options) => (0, operations_js_2.createThreadAndRun)(context, assistantId, options),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function _getRunsOperations(context) {
|
|
20
|
+
return Object.assign({}, _getRuns(context));
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/runs/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAA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poration.\n// Licensed under the MIT License.\n\nimport { AgentsContext } from \"../../api/agentsContext.js\";\nimport { ThreadRun, ToolOutput } from \"../../models/models.js\";\nimport {\n RunsCancelRunOptionalParams,\n RunsSubmitToolOutputsToRunOptionalParams,\n RunsUpdateRunOptionalParams,\n RunsGetRunOptionalParams,\n RunsListRunsOptionalParams,\n RunsCreateRunOptionalParams,\n} from \"../../api/runs/options.js\";\nimport {\n cancelRun,\n submitToolOutputsToRun,\n updateRun,\n getRun,\n listRuns,\n createRun,\n} from \"../../api/runs/operations.js\";\nimport { AgentRunResponse } from \"../../models/streamingModels.js\";\nimport { createThreadAndRun } from \"../../api/operations.js\";\nimport { CreateThreadAndRunOptionalParams } from \"../../api/options.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Runs operations. */\nexport interface RunsOperations {\n /** Cancels a run of an in‐progress thread. */\n cancel: (\n threadId: string,\n runId: string,\n options?: RunsCancelRunOptionalParams,\n ) => Promise<ThreadRun>;\n /** Submits outputs from tools as requested by tool calls in a run. */\n submitToolOutputs: (\n threadId: string,\n runId: string,\n toolOutputs: ToolOutput[],\n options?: RunsSubmitToolOutputsToRunOptionalParams,\n ) => Promise<ThreadRun>;\n /** Modifies an existing thread run. */\n update: (\n threadId: string,\n runId: string,\n options?: RunsUpdateRunOptionalParams,\n ) => Promise<ThreadRun>;\n /** Gets an existing run from an existing thread. */\n get: (threadId: string, runId: string, options?: RunsGetRunOptionalParams) => Promise<ThreadRun>;\n /** Gets a list of runs for a specified thread. */\n list: (\n threadId: string,\n options?: RunsListRunsOptionalParams,\n ) => PagedAsyncIterableIterator<ThreadRun>;\n /** Creates a new run for an agent thread. */\n create: (\n threadId: string,\n assistantId: string,\n options?: RunsCreateRunOptionalParams,\n ) => AgentRunResponse;\n /** Creates a new thread and run for an agent. */\n createThreadAndRun: (\n assistantId: string,\n options?: CreateThreadAndRunOptionalParams,\n ) => AgentRunResponse;\n}\n\nfunction _getRuns(context: AgentsContext) {\n return {\n cancel: (threadId: string, runId: string, options?: RunsCancelRunOptionalParams) =>\n cancelRun(context, threadId, runId, options),\n submitToolOutputs: (\n threadId: string,\n runId: string,\n toolOutputs: ToolOutput[],\n options?: RunsSubmitToolOutputsToRunOptionalParams,\n ) => submitToolOutputsToRun(context, threadId, runId, toolOutputs, options),\n update: (threadId: string, runId: string, options?: RunsUpdateRunOptionalParams) =>\n updateRun(context, threadId, runId, options),\n get: (threadId: string, runId: string, options?: RunsGetRunOptionalParams) =>\n getRun(context, threadId, runId, options),\n list: (threadId: string, options?: RunsListRunsOptionalParams) =>\n listRuns(context, threadId, options),\n create: (threadId: string, assistantId: string, options?: RunsCreateRunOptionalParams) =>\n createRun(context, threadId, assistantId, options),\n createThreadAndRun: (assistantId: string, options?: RunsCreateRunOptionalParams) =>\n createThreadAndRun(context, assistantId, options),\n };\n}\n\nexport function _getRunsOperations(context: AgentsContext): RunsOperations {\n return {\n ..._getRuns(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AgentsContext } from "../../api/agentsContext.js";
|
|
2
|
+
import { AgentThread, ThreadDeletionStatus } from "../../models/models.js";
|
|
3
|
+
import { ThreadsDeleteThreadOptionalParams, ThreadsUpdateThreadOptionalParams, ThreadsGetThreadOptionalParams, ThreadsListThreadsOptionalParams, ThreadsCreateThreadOptionalParams } from "../../api/threads/options.js";
|
|
4
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
|
+
/** Interface representing a Threads operations. */
|
|
6
|
+
export interface ThreadsOperations {
|
|
7
|
+
/** Deletes an existing thread. */
|
|
8
|
+
delete: (threadId: string, options?: ThreadsDeleteThreadOptionalParams) => Promise<ThreadDeletionStatus>;
|
|
9
|
+
/** Modifies an existing thread. */
|
|
10
|
+
update: (threadId: string, options?: ThreadsUpdateThreadOptionalParams) => Promise<AgentThread>;
|
|
11
|
+
/** Gets information about an existing thread. */
|
|
12
|
+
get: (threadId: string, options?: ThreadsGetThreadOptionalParams) => Promise<AgentThread>;
|
|
13
|
+
/** Gets a list of threads that were previously created. */
|
|
14
|
+
list: (options?: ThreadsListThreadsOptionalParams) => PagedAsyncIterableIterator<AgentThread>;
|
|
15
|
+
/** Creates a new thread. Threads contain messages and can be run by agents. */
|
|
16
|
+
create: (options?: ThreadsCreateThreadOptionalParams) => Promise<AgentThread>;
|
|
17
|
+
}
|
|
18
|
+
export declare function _getThreadsOperations(context: AgentsContext): ThreadsOperations;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/threads/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,8BAA8B,EAC9B,gCAAgC,EAChC,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AAQtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,mDAAmD;AACnD,MAAM,WAAW,iBAAiB;IAChC,kCAAkC;IAClC,MAAM,EAAE,CACN,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,iCAAiC,KACxC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACnC,mCAAmC;IACnC,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iCAAiC,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;IAChG,iDAAiD;IACjD,GAAG,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,8BAA8B,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;IAC1F,2DAA2D;IAC3D,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,gCAAgC,KAAK,0BAA0B,CAAC,WAAW,CAAC,CAAC;IAC9F,+EAA+E;IAC/E,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,iCAAiC,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;CAC/E;AAeD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,aAAa,GAAG,iBAAiB,CAI/E"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._getThreadsOperations = _getThreadsOperations;
|
|
6
|
+
const operations_js_1 = require("../../api/threads/operations.js");
|
|
7
|
+
function _getThreads(context) {
|
|
8
|
+
return {
|
|
9
|
+
delete: (threadId, options) => (0, operations_js_1.deleteThread)(context, threadId, options),
|
|
10
|
+
update: (threadId, options) => (0, operations_js_1.updateThread)(context, threadId, options),
|
|
11
|
+
get: (threadId, options) => (0, operations_js_1.getThread)(context, threadId, options),
|
|
12
|
+
list: (options) => (0, operations_js_1.listThreads)(context, options),
|
|
13
|
+
create: (options) => (0, operations_js_1.createThread)(context, options),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function _getThreadsOperations(context) {
|
|
17
|
+
return Object.assign({}, _getThreads(context));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/threads/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAkDlC,sDAIC;AA3CD,mEAMyC;AAoBzC,SAAS,WAAW,CAAC,OAAsB;IACzC,OAAO;QACL,MAAM,EAAE,CAAC,QAAgB,EAAE,OAA2C,EAAE,EAAE,CACxE,IAAA,4BAAY,EAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC1C,MAAM,EAAE,CAAC,QAAgB,EAAE,OAA2C,EAAE,EAAE,CACxE,IAAA,4BAAY,EAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QAC1C,GAAG,EAAE,CAAC,QAAgB,EAAE,OAAwC,EAAE,EAAE,CAClE,IAAA,yBAAS,EAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC;QACvC,IAAI,EAAE,CAAC,OAA0C,EAAE,EAAE,CAAC,IAAA,2BAAW,EAAC,OAAO,EAAE,OAAO,CAAC;QACnF,MAAM,EAAE,CAAC,OAA2C,EAAE,EAAE,CAAC,IAAA,4BAAY,EAAC,OAAO,EAAE,OAAO,CAAC;KACxF,CAAC;AACJ,CAAC;AAED,SAAgB,qBAAqB,CAAC,OAAsB;IAC1D,yBACK,WAAW,CAAC,OAAO,CAAC,EACvB;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AgentsContext } from \"../../api/agentsContext.js\";\nimport { AgentThread, ThreadDeletionStatus } from \"../../models/models.js\";\nimport {\n ThreadsDeleteThreadOptionalParams,\n ThreadsUpdateThreadOptionalParams,\n ThreadsGetThreadOptionalParams,\n ThreadsListThreadsOptionalParams,\n ThreadsCreateThreadOptionalParams,\n} from \"../../api/threads/options.js\";\nimport {\n deleteThread,\n updateThread,\n getThread,\n listThreads,\n createThread,\n} from \"../../api/threads/operations.js\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a Threads operations. */\nexport interface ThreadsOperations {\n /** Deletes an existing thread. */\n delete: (\n threadId: string,\n options?: ThreadsDeleteThreadOptionalParams,\n ) => Promise<ThreadDeletionStatus>;\n /** Modifies an existing thread. */\n update: (threadId: string, options?: ThreadsUpdateThreadOptionalParams) => Promise<AgentThread>;\n /** Gets information about an existing thread. */\n get: (threadId: string, options?: ThreadsGetThreadOptionalParams) => Promise<AgentThread>;\n /** Gets a list of threads that were previously created. */\n list: (options?: ThreadsListThreadsOptionalParams) => PagedAsyncIterableIterator<AgentThread>;\n /** Creates a new thread. Threads contain messages and can be run by agents. */\n create: (options?: ThreadsCreateThreadOptionalParams) => Promise<AgentThread>;\n}\n\nfunction _getThreads(context: AgentsContext) {\n return {\n delete: (threadId: string, options?: ThreadsDeleteThreadOptionalParams) =>\n deleteThread(context, threadId, options),\n update: (threadId: string, options?: ThreadsUpdateThreadOptionalParams) =>\n updateThread(context, threadId, options),\n get: (threadId: string, options?: ThreadsGetThreadOptionalParams) =>\n getThread(context, threadId, options),\n list: (options?: ThreadsListThreadsOptionalParams) => listThreads(context, options),\n create: (options?: ThreadsCreateThreadOptionalParams) => createThread(context, options),\n };\n}\n\nexport function _getThreadsOperations(context: AgentsContext): ThreadsOperations {\n return {\n ..._getThreads(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AgentsContext } from "../../api/agentsContext.js";
|
|
2
|
+
import { VectorStoreFileBatch } from "../../models/models.js";
|
|
3
|
+
import { VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams, VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams, VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams, VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams } from "../../api/vectorStoreFileBatches/options.js";
|
|
4
|
+
import { OperationState, PollerLike } from "@azure/core-lro";
|
|
5
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
6
|
+
/** Interface representing a VectorStoreFileBatches operations. */
|
|
7
|
+
export interface VectorStoreFileBatchesOperations {
|
|
8
|
+
/** Returns a list of vector store files in a batch. */
|
|
9
|
+
list: (vectorStoreId: string, batchId: string, options?: VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams) => PagedAsyncIterableIterator<VectorStoreFileBatch>;
|
|
10
|
+
/** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */
|
|
11
|
+
cancel: (vectorStoreId: string, batchId: string, options?: VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams) => Promise<VectorStoreFileBatch>;
|
|
12
|
+
/** Retrieve a vector store file batch. */
|
|
13
|
+
get: (vectorStoreId: string, batchId: string, options?: VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams) => Promise<VectorStoreFileBatch>;
|
|
14
|
+
/** Create a vector store file batch. */
|
|
15
|
+
create: (vectorStoreId: string, options?: VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams) => Promise<VectorStoreFileBatch>;
|
|
16
|
+
/** Create a vector store file batch and poll. */
|
|
17
|
+
createAndPoll: (vectorStoreId: string, options?: VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams) => PollerLike<OperationState<VectorStoreFileBatch>, VectorStoreFileBatch>;
|
|
18
|
+
}
|
|
19
|
+
export declare function _getVectorStoreFileBatchesOperations(context: AgentsContext): VectorStoreFileBatchesOperations;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/vectorStoreFileBatches/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EACL,iEAAiE,EACjE,8DAA8D,EAC9D,2DAA2D,EAC3D,8DAA8D,EAC/D,MAAM,6CAA6C,CAAC;AAQrD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,kEAAkE;AAClE,MAAM,WAAW,gCAAgC;IAC/C,uDAAuD;IACvD,IAAI,EAAE,CACJ,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,iEAAiE,KACxE,0BAA0B,CAAC,oBAAoB,CAAC,CAAC;IACtD,2HAA2H;IAC3H,MAAM,EAAE,CACN,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,8DAA8D,KACrE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACnC,0CAA0C;IAC1C,GAAG,EAAE,CACH,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,2DAA2D,KAClE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACnC,wCAAwC;IACxC,MAAM,EAAE,CACN,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,8DAA8D,KACrE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACnC,iDAAiD;IACjD,aAAa,EAAE,CACb,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,8DAA8D,KACrE,UAAU,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC,CAAC;CAC7E;AA8BD,wBAAgB,oCAAoC,CAClD,OAAO,EAAE,aAAa,GACrB,gCAAgC,CAIlC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._getVectorStoreFileBatchesOperations = _getVectorStoreFileBatchesOperations;
|
|
6
|
+
const operations_js_1 = require("../../api/vectorStoreFileBatches/operations.js");
|
|
7
|
+
function _getVectorStoreFileBatches(context) {
|
|
8
|
+
return {
|
|
9
|
+
list: (vectorStoreId, batchId, options) => (0, operations_js_1.listVectorStoreFileBatchFiles)(context, vectorStoreId, batchId, options),
|
|
10
|
+
cancel: (vectorStoreId, batchId, options) => (0, operations_js_1.cancelVectorStoreFileBatch)(context, vectorStoreId, batchId, options),
|
|
11
|
+
get: (vectorStoreId, batchId, options) => (0, operations_js_1.getVectorStoreFileBatch)(context, vectorStoreId, batchId, options),
|
|
12
|
+
create: (vectorStoreId, options) => (0, operations_js_1.createVectorStoreFileBatch)(context, vectorStoreId, options),
|
|
13
|
+
createAndPoll: (vectorStoreId, options) => (0, operations_js_1.createVectorStoreFileBatchAndPoll)(context, vectorStoreId, options),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function _getVectorStoreFileBatchesOperations(context) {
|
|
17
|
+
return Object.assign({}, _getVectorStoreFileBatches(context));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/vectorStoreFileBatches/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;AAgFlC,oFAMC;AA5ED,kFAMwD;AAoCxD,SAAS,0BAA0B,CAAC,OAAsB;IACxD,OAAO;QACL,IAAI,EAAE,CACJ,aAAqB,EACrB,OAAe,EACf,OAA2E,EAC3E,EAAE,CAAC,IAAA,6CAA6B,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QAC5E,MAAM,EAAE,CACN,aAAqB,EACrB,OAAe,EACf,OAAwE,EACxE,EAAE,CAAC,IAAA,0CAA0B,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QACzE,GAAG,EAAE,CACH,aAAqB,EACrB,OAAe,EACf,OAAqE,EACrE,EAAE,CAAC,IAAA,uCAAuB,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC;QACtE,MAAM,EAAE,CACN,aAAqB,EACrB,OAAwE,EACxE,EAAE,CAAC,IAAA,0CAA0B,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QAChE,aAAa,EAAE,CACb,aAAqB,EACrB,OAAwE,EACxE,EAAE,CAAC,IAAA,iDAAiC,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;KACxE,CAAC;AACJ,CAAC;AAED,SAAgB,oCAAoC,CAClD,OAAsB;IAEtB,yBACK,0BAA0B,CAAC,OAAO,CAAC,EACtC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AgentsContext } from \"../../api/agentsContext.js\";\nimport { VectorStoreFileBatch } from \"../../models/models.js\";\nimport {\n VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams,\n VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams,\n VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n} from \"../../api/vectorStoreFileBatches/options.js\";\nimport {\n listVectorStoreFileBatchFiles,\n cancelVectorStoreFileBatch,\n getVectorStoreFileBatch,\n createVectorStoreFileBatch,\n createVectorStoreFileBatchAndPoll,\n} from \"../../api/vectorStoreFileBatches/operations.js\";\nimport { OperationState, PollerLike } from \"@azure/core-lro\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a VectorStoreFileBatches operations. */\nexport interface VectorStoreFileBatchesOperations {\n /** Returns a list of vector store files in a batch. */\n list: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams,\n ) => PagedAsyncIterableIterator<VectorStoreFileBatch>;\n /** Cancel a vector store file batch. This attempts to cancel the processing of files in this batch as soon as possible. */\n cancel: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatch>;\n /** Retrieve a vector store file batch. */\n get: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatch>;\n /** Create a vector store file batch. */\n create: (\n vectorStoreId: string,\n options?: VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n ) => Promise<VectorStoreFileBatch>;\n /** Create a vector store file batch and poll. */\n createAndPoll: (\n vectorStoreId: string,\n options?: VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFileBatch>, VectorStoreFileBatch>;\n}\n\nfunction _getVectorStoreFileBatches(context: AgentsContext) {\n return {\n list: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesListVectorStoreFileBatchFilesOptionalParams,\n ) => listVectorStoreFileBatchFiles(context, vectorStoreId, batchId, options),\n cancel: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesCancelVectorStoreFileBatchOptionalParams,\n ) => cancelVectorStoreFileBatch(context, vectorStoreId, batchId, options),\n get: (\n vectorStoreId: string,\n batchId: string,\n options?: VectorStoreFileBatchesGetVectorStoreFileBatchOptionalParams,\n ) => getVectorStoreFileBatch(context, vectorStoreId, batchId, options),\n create: (\n vectorStoreId: string,\n options?: VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n ) => createVectorStoreFileBatch(context, vectorStoreId, options),\n createAndPoll: (\n vectorStoreId: string,\n options?: VectorStoreFileBatchesCreateVectorStoreFileBatchOptionalParams,\n ) => createVectorStoreFileBatchAndPoll(context, vectorStoreId, options),\n };\n}\n\nexport function _getVectorStoreFileBatchesOperations(\n context: AgentsContext,\n): VectorStoreFileBatchesOperations {\n return {\n ..._getVectorStoreFileBatches(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AgentsContext } from "../../api/agentsContext.js";
|
|
2
|
+
import { VectorStoreFile, VectorStoreFileDeletionStatus } from "../../models/models.js";
|
|
3
|
+
import { VectorStoreFilesDeleteVectorStoreFileOptionalParams, VectorStoreFilesGetVectorStoreFileOptionalParams, VectorStoreFilesCreateVectorStoreFileOptionalParams, VectorStoreFilesListVectorStoreFilesOptionalParams } from "../../api/vectorStoreFiles/options.js";
|
|
4
|
+
import { OperationState, PollerLike } from "@azure/core-lro";
|
|
5
|
+
import { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
6
|
+
/** Interface representing a VectorStoreFiles operations. */
|
|
7
|
+
export interface VectorStoreFilesOperations {
|
|
8
|
+
/** Deletes a vector store file. This removes the file‐to‐store link (does not delete the file itself). */
|
|
9
|
+
delete: (vectorStoreId: string, fileId: string, options?: VectorStoreFilesDeleteVectorStoreFileOptionalParams) => Promise<VectorStoreFileDeletionStatus>;
|
|
10
|
+
/** Retrieves a vector store file. */
|
|
11
|
+
get: (vectorStoreId: string, fileId: string, options?: VectorStoreFilesGetVectorStoreFileOptionalParams) => Promise<VectorStoreFile>;
|
|
12
|
+
/** Create a vector store file by attaching a file to a vector store. */
|
|
13
|
+
create: (vectorStoreId: string, options?: VectorStoreFilesCreateVectorStoreFileOptionalParams) => Promise<VectorStoreFile>;
|
|
14
|
+
/** Create a vector store file by attaching a file to a vector store and poll. */
|
|
15
|
+
createAndPoll: (vectorStoreId: string, options?: VectorStoreFilesCreateVectorStoreFileOptionalParams) => PollerLike<OperationState<VectorStoreFile>, VectorStoreFile>;
|
|
16
|
+
/** Returns a list of vector store files. */
|
|
17
|
+
list: (vectorStoreId: string, options?: VectorStoreFilesListVectorStoreFilesOptionalParams) => PagedAsyncIterableIterator<VectorStoreFile>;
|
|
18
|
+
}
|
|
19
|
+
export declare function _getVectorStoreFilesOperations(context: AgentsContext): VectorStoreFilesOperations;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/vectorStoreFiles/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,EACL,mDAAmD,EACnD,gDAAgD,EAChD,mDAAmD,EACnD,kDAAkD,EACnD,MAAM,uCAAuC,CAAC;AAQ/C,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,4DAA4D;AAC5D,MAAM,WAAW,0BAA0B;IACzC,0GAA0G;IAC1G,MAAM,EAAE,CACN,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,mDAAmD,KAC1D,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC5C,qCAAqC;IACrC,GAAG,EAAE,CACH,aAAa,EAAE,MAAM,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,gDAAgD,KACvD,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9B,wEAAwE;IACxE,MAAM,EAAE,CACN,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,mDAAmD,KAC1D,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9B,iFAAiF;IACjF,aAAa,EAAE,CACb,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,mDAAmD,KAC1D,UAAU,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC,CAAC;IAClE,4CAA4C;IAC5C,IAAI,EAAE,CACJ,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,kDAAkD,KACzD,0BAA0B,CAAC,eAAe,CAAC,CAAC;CAClD;AA2BD,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,aAAa,GAAG,0BAA0B,CAIjG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._getVectorStoreFilesOperations = _getVectorStoreFilesOperations;
|
|
4
|
+
const operations_js_1 = require("../../api/vectorStoreFiles/operations.js");
|
|
5
|
+
function _getVectorStoreFiles(context) {
|
|
6
|
+
return {
|
|
7
|
+
delete: (vectorStoreId, fileId, options) => (0, operations_js_1.deleteVectorStoreFile)(context, vectorStoreId, fileId, options),
|
|
8
|
+
get: (vectorStoreId, fileId, options) => (0, operations_js_1.getVectorStoreFile)(context, vectorStoreId, fileId, options),
|
|
9
|
+
create: (vectorStoreId, options) => (0, operations_js_1.createVectorStoreFile)(context, vectorStoreId, options),
|
|
10
|
+
createAndPoll: (vectorStoreId, options) => (0, operations_js_1.createVectorStoreFileAndPoll)(context, vectorStoreId, options),
|
|
11
|
+
list: (vectorStoreId, options) => (0, operations_js_1.listVectorStoreFiles)(context, vectorStoreId, options),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function _getVectorStoreFilesOperations(context) {
|
|
15
|
+
return Object.assign({}, _getVectorStoreFiles(context));
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/classic/vectorStoreFiles/index.ts"],"names":[],"mappings":";;AA4EA,wEAIC;AAtED,4EAMkD;AAmClD,SAAS,oBAAoB,CAAC,OAAsB;IAClD,OAAO;QACL,MAAM,EAAE,CACN,aAAqB,EACrB,MAAc,EACd,OAA6D,EAC7D,EAAE,CAAC,IAAA,qCAAqB,EAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC;QACnE,GAAG,EAAE,CACH,aAAqB,EACrB,MAAc,EACd,OAA0D,EAC1D,EAAE,CAAC,IAAA,kCAAkB,EAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC;QAChE,MAAM,EAAE,CACN,aAAqB,EACrB,OAA6D,EAC7D,EAAE,CAAC,IAAA,qCAAqB,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QAC3D,aAAa,EAAE,CACb,aAAqB,EACrB,OAA6D,EAC7D,EAAE,CAAC,IAAA,4CAA4B,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;QAClE,IAAI,EAAE,CAAC,aAAqB,EAAE,OAA4D,EAAE,EAAE,CAC5F,IAAA,oCAAoB,EAAC,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC;KACxD,CAAC;AACJ,CAAC;AAED,SAAgB,8BAA8B,CAAC,OAAsB;IACnE,yBACK,oBAAoB,CAAC,OAAO,CAAC,EAChC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\nimport { AgentsContext } from \"../../api/agentsContext.js\";\nimport { VectorStoreFile, VectorStoreFileDeletionStatus } from \"../../models/models.js\";\nimport {\n VectorStoreFilesDeleteVectorStoreFileOptionalParams,\n VectorStoreFilesGetVectorStoreFileOptionalParams,\n VectorStoreFilesCreateVectorStoreFileOptionalParams,\n VectorStoreFilesListVectorStoreFilesOptionalParams,\n} from \"../../api/vectorStoreFiles/options.js\";\nimport {\n deleteVectorStoreFile,\n getVectorStoreFile,\n createVectorStoreFile,\n listVectorStoreFiles,\n createVectorStoreFileAndPoll,\n} from \"../../api/vectorStoreFiles/operations.js\";\nimport { OperationState, PollerLike } from \"@azure/core-lro\";\nimport { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\n\n/** Interface representing a VectorStoreFiles operations. */\nexport interface VectorStoreFilesOperations {\n /** Deletes a vector store file. This removes the file‐to‐store link (does not delete the file itself). */\n delete: (\n vectorStoreId: string,\n fileId: string,\n options?: VectorStoreFilesDeleteVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFileDeletionStatus>;\n /** Retrieves a vector store file. */\n get: (\n vectorStoreId: string,\n fileId: string,\n options?: VectorStoreFilesGetVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFile>;\n /** Create a vector store file by attaching a file to a vector store. */\n create: (\n vectorStoreId: string,\n options?: VectorStoreFilesCreateVectorStoreFileOptionalParams,\n ) => Promise<VectorStoreFile>;\n /** Create a vector store file by attaching a file to a vector store and poll. */\n createAndPoll: (\n vectorStoreId: string,\n options?: VectorStoreFilesCreateVectorStoreFileOptionalParams,\n ) => PollerLike<OperationState<VectorStoreFile>, VectorStoreFile>;\n /** Returns a list of vector store files. */\n list: (\n vectorStoreId: string,\n options?: VectorStoreFilesListVectorStoreFilesOptionalParams,\n ) => PagedAsyncIterableIterator<VectorStoreFile>;\n}\n\nfunction _getVectorStoreFiles(context: AgentsContext) {\n return {\n delete: (\n vectorStoreId: string,\n fileId: string,\n options?: VectorStoreFilesDeleteVectorStoreFileOptionalParams,\n ) => deleteVectorStoreFile(context, vectorStoreId, fileId, options),\n get: (\n vectorStoreId: string,\n fileId: string,\n options?: VectorStoreFilesGetVectorStoreFileOptionalParams,\n ) => getVectorStoreFile(context, vectorStoreId, fileId, options),\n create: (\n vectorStoreId: string,\n options?: VectorStoreFilesCreateVectorStoreFileOptionalParams,\n ) => createVectorStoreFile(context, vectorStoreId, options),\n createAndPoll: (\n vectorStoreId: string,\n options?: VectorStoreFilesCreateVectorStoreFileOptionalParams,\n ) => createVectorStoreFileAndPoll(context, vectorStoreId, options),\n list: (vectorStoreId: string, options?: VectorStoreFilesListVectorStoreFilesOptionalParams) =>\n listVectorStoreFiles(context, vectorStoreId, options),\n };\n}\n\nexport function _getVectorStoreFilesOperations(context: AgentsContext): VectorStoreFilesOperations {\n return {\n ..._getVectorStoreFiles(context),\n };\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AgentsContext } from "../../api/agentsContext.js";
|
|
2
|
+
import type { VectorStore, VectorStoreDeletionStatus } from "../../models/models.js";
|
|
3
|
+
import type { VectorStoresDeleteVectorStoreOptionalParams, VectorStoresModifyVectorStoreOptionalParams, VectorStoresGetVectorStoreOptionalParams, VectorStoresCreateVectorStoreOptionalParams, VectorStoresListVectorStoresOptionalParams } from "../../api/vectorStores/options.js";
|
|
4
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
6
|
+
/** Interface representing a VectorStores operations. */
|
|
7
|
+
export interface VectorStoresOperations {
|
|
8
|
+
/** Deletes the vector store object matching the specified ID. */
|
|
9
|
+
delete: (vectorStoreId: string, options?: VectorStoresDeleteVectorStoreOptionalParams) => Promise<VectorStoreDeletionStatus>;
|
|
10
|
+
/** Modifies an existing vector store. */
|
|
11
|
+
update: (vectorStoreId: string, options?: VectorStoresModifyVectorStoreOptionalParams) => Promise<VectorStore>;
|
|
12
|
+
/** Returns the vector store object matching the specified ID. */
|
|
13
|
+
get: (vectorStoreId: string, options?: VectorStoresGetVectorStoreOptionalParams) => Promise<VectorStore>;
|
|
14
|
+
/** Creates a vector store. */
|
|
15
|
+
create: (options?: VectorStoresCreateVectorStoreOptionalParams) => Promise<VectorStore>;
|
|
16
|
+
/** Creates a vector store and poll. */
|
|
17
|
+
createAndPoll(options?: VectorStoresCreateVectorStoreOptionalParams): PollerLike<OperationState<VectorStore>, VectorStore>;
|
|
18
|
+
/** Returns a list of vector stores. */
|
|
19
|
+
list: (options?: VectorStoresListVectorStoresOptionalParams) => PagedAsyncIterableIterator<VectorStore>;
|
|
20
|
+
}
|
|
21
|
+
export declare function _getVectorStoresOperations(context: AgentsContext): VectorStoresOperations;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/classic/vectorStores/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAErF,OAAO,KAAK,EACV,2CAA2C,EAC3C,2CAA2C,EAC3C,wCAAwC,EACxC,2CAA2C,EAC3C,0CAA0C,EAC3C,MAAM,mCAAmC,CAAC;AAS3C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AA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