@azure/ai-projects 1.0.0-beta.9 → 1.0.1-alpha.20250924.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -136
- package/dist/browser/aiProjectClient.d.ts +10 -15
- package/dist/browser/aiProjectClient.d.ts.map +1 -1
- package/dist/browser/aiProjectClient.js +48 -18
- package/dist/browser/aiProjectClient.js.map +1 -1
- package/dist/browser/api/aiProjectContext.js +20 -12
- package/dist/browser/api/aiProjectContext.js.map +1 -1
- package/dist/browser/api/connections/operations.js +41 -37
- package/dist/browser/api/connections/operations.js.map +1 -1
- package/dist/browser/api/datasets/operations.d.ts +4 -4
- package/dist/browser/api/datasets/operations.d.ts.map +1 -1
- package/dist/browser/api/datasets/operations.js +72 -34
- package/dist/browser/api/datasets/operations.js.map +1 -1
- package/dist/browser/api/deployments/operations.js +25 -13
- package/dist/browser/api/deployments/operations.js.map +1 -1
- package/dist/browser/api/indexes/operations.d.ts +2 -2
- package/dist/browser/api/indexes/operations.d.ts.map +1 -1
- package/dist/browser/api/indexes/operations.js +45 -18
- package/dist/browser/api/indexes/operations.js.map +1 -1
- package/dist/browser/api/inference/operations.d.ts +0 -40
- package/dist/browser/api/inference/operations.d.ts.map +1 -1
- package/dist/browser/api/inference/operations.js +6 -87
- package/dist/browser/api/inference/operations.js.map +1 -1
- package/dist/browser/api/inference/options.d.ts +4 -1
- package/dist/browser/api/inference/options.d.ts.map +1 -1
- package/dist/browser/api/inference/options.js.map +1 -1
- package/dist/browser/api/telemetry/operations.d.ts +1 -1
- package/dist/browser/api/telemetry/operations.d.ts.map +1 -1
- package/dist/browser/api/telemetry/operations.js +8 -23
- package/dist/browser/api/telemetry/operations.js.map +1 -1
- package/dist/browser/classic/connections/index.js +3 -1
- package/dist/browser/classic/connections/index.js.map +1 -1
- package/dist/browser/classic/datasets/index.d.ts +2 -2
- package/dist/browser/classic/datasets/index.d.ts.map +1 -1
- package/dist/browser/classic/datasets/index.js +7 -5
- package/dist/browser/classic/datasets/index.js.map +1 -1
- package/dist/browser/classic/deployments/index.js +3 -1
- package/dist/browser/classic/deployments/index.js.map +1 -1
- package/dist/browser/classic/index.d.ts +0 -2
- package/dist/browser/classic/index.d.ts.map +1 -1
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/indexes/index.d.ts +1 -1
- package/dist/browser/classic/indexes/index.d.ts.map +1 -1
- package/dist/browser/classic/indexes/index.js +4 -2
- package/dist/browser/classic/indexes/index.js.map +1 -1
- package/dist/browser/classic/inference/index.d.ts +0 -7
- package/dist/browser/classic/inference/index.d.ts.map +1 -1
- package/dist/browser/classic/inference/index.js +4 -5
- package/dist/browser/classic/inference/index.js.map +1 -1
- package/dist/browser/classic/telemetry/index.d.ts +1 -4
- package/dist/browser/classic/telemetry/index.d.ts.map +1 -1
- package/dist/browser/classic/telemetry/index.js +1 -2
- package/dist/browser/classic/telemetry/index.js.map +1 -1
- package/dist/browser/constants.d.ts +1 -1
- package/dist/browser/constants.d.ts.map +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/index.d.ts +5 -5
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -2
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +0 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +3 -203
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +2 -249
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js +31 -50
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +2 -2
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/aiProjectClient.d.ts +10 -15
- package/dist/commonjs/aiProjectClient.d.ts.map +1 -1
- package/dist/commonjs/aiProjectClient.js +58 -28
- package/dist/commonjs/aiProjectClient.js.map +1 -1
- package/dist/commonjs/api/aiProjectContext.js +20 -12
- package/dist/commonjs/api/aiProjectContext.js.map +1 -1
- package/dist/commonjs/api/connections/operations.js +41 -37
- package/dist/commonjs/api/connections/operations.js.map +1 -1
- package/dist/commonjs/api/datasets/operations.d.ts +4 -4
- package/dist/commonjs/api/datasets/operations.d.ts.map +1 -1
- package/dist/commonjs/api/datasets/operations.js +82 -44
- package/dist/commonjs/api/datasets/operations.js.map +1 -1
- package/dist/commonjs/api/deployments/operations.js +25 -13
- package/dist/commonjs/api/deployments/operations.js.map +1 -1
- package/dist/commonjs/api/indexes/operations.d.ts +2 -2
- package/dist/commonjs/api/indexes/operations.d.ts.map +1 -1
- package/dist/commonjs/api/indexes/operations.js +45 -18
- package/dist/commonjs/api/indexes/operations.js.map +1 -1
- package/dist/commonjs/api/inference/operations.d.ts +0 -40
- package/dist/commonjs/api/inference/operations.d.ts.map +1 -1
- package/dist/commonjs/api/inference/operations.js +6 -93
- package/dist/commonjs/api/inference/operations.js.map +1 -1
- package/dist/commonjs/api/inference/options.d.ts +4 -1
- package/dist/commonjs/api/inference/options.d.ts.map +1 -1
- package/dist/commonjs/api/inference/options.js.map +1 -1
- package/dist/commonjs/api/telemetry/operations.d.ts +1 -1
- package/dist/commonjs/api/telemetry/operations.d.ts.map +1 -1
- package/dist/commonjs/api/telemetry/operations.js +8 -23
- package/dist/commonjs/api/telemetry/operations.js.map +1 -1
- package/dist/commonjs/classic/connections/index.js +3 -1
- package/dist/commonjs/classic/connections/index.js.map +1 -1
- package/dist/commonjs/classic/datasets/index.d.ts +2 -2
- package/dist/commonjs/classic/datasets/index.d.ts.map +1 -1
- package/dist/commonjs/classic/datasets/index.js +7 -5
- package/dist/commonjs/classic/datasets/index.js.map +1 -1
- package/dist/commonjs/classic/deployments/index.js +3 -1
- package/dist/commonjs/classic/deployments/index.js.map +1 -1
- package/dist/commonjs/classic/index.d.ts +0 -2
- package/dist/commonjs/classic/index.d.ts.map +1 -1
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/indexes/index.d.ts +1 -1
- package/dist/commonjs/classic/indexes/index.d.ts.map +1 -1
- package/dist/commonjs/classic/indexes/index.js +4 -2
- package/dist/commonjs/classic/indexes/index.js.map +1 -1
- package/dist/commonjs/classic/inference/index.d.ts +0 -7
- package/dist/commonjs/classic/inference/index.d.ts.map +1 -1
- package/dist/commonjs/classic/inference/index.js +3 -4
- package/dist/commonjs/classic/inference/index.js.map +1 -1
- package/dist/commonjs/classic/telemetry/index.d.ts +1 -4
- package/dist/commonjs/classic/telemetry/index.d.ts.map +1 -1
- package/dist/commonjs/classic/telemetry/index.js +1 -4
- package/dist/commonjs/classic/telemetry/index.js.map +1 -1
- package/dist/commonjs/constants.d.ts +1 -1
- package/dist/commonjs/constants.d.ts.map +1 -1
- package/dist/commonjs/constants.js +1 -1
- package/dist/commonjs/constants.js.map +1 -1
- package/dist/commonjs/index.d.ts +5 -5
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -2
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1 -2
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -3
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +3 -203
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +2 -281
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
- package/dist/commonjs/static-helpers/pagingHelpers.js.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/tsdoc-metadata.json +11 -11
- package/dist/esm/aiProjectClient.d.ts +10 -15
- package/dist/esm/aiProjectClient.d.ts.map +1 -1
- package/dist/esm/aiProjectClient.js +48 -18
- package/dist/esm/aiProjectClient.js.map +1 -1
- package/dist/esm/api/aiProjectContext.js +20 -12
- package/dist/esm/api/aiProjectContext.js.map +1 -1
- package/dist/esm/api/connections/operations.js +41 -37
- package/dist/esm/api/connections/operations.js.map +1 -1
- package/dist/esm/api/datasets/operations.d.ts +4 -4
- package/dist/esm/api/datasets/operations.d.ts.map +1 -1
- package/dist/esm/api/datasets/operations.js +72 -34
- package/dist/esm/api/datasets/operations.js.map +1 -1
- package/dist/esm/api/deployments/operations.js +25 -13
- package/dist/esm/api/deployments/operations.js.map +1 -1
- package/dist/esm/api/indexes/operations.d.ts +2 -2
- package/dist/esm/api/indexes/operations.d.ts.map +1 -1
- package/dist/esm/api/indexes/operations.js +45 -18
- package/dist/esm/api/indexes/operations.js.map +1 -1
- package/dist/esm/api/inference/operations.d.ts +0 -40
- package/dist/esm/api/inference/operations.d.ts.map +1 -1
- package/dist/esm/api/inference/operations.js +6 -87
- package/dist/esm/api/inference/operations.js.map +1 -1
- package/dist/esm/api/inference/options.d.ts +4 -1
- package/dist/esm/api/inference/options.d.ts.map +1 -1
- package/dist/esm/api/inference/options.js.map +1 -1
- package/dist/esm/api/telemetry/operations.d.ts +1 -1
- package/dist/esm/api/telemetry/operations.d.ts.map +1 -1
- package/dist/esm/api/telemetry/operations.js +8 -23
- package/dist/esm/api/telemetry/operations.js.map +1 -1
- package/dist/esm/classic/connections/index.js +3 -1
- package/dist/esm/classic/connections/index.js.map +1 -1
- package/dist/esm/classic/datasets/index.d.ts +2 -2
- package/dist/esm/classic/datasets/index.d.ts.map +1 -1
- package/dist/esm/classic/datasets/index.js +7 -5
- package/dist/esm/classic/datasets/index.js.map +1 -1
- package/dist/esm/classic/deployments/index.js +3 -1
- package/dist/esm/classic/deployments/index.js.map +1 -1
- package/dist/esm/classic/index.d.ts +0 -2
- package/dist/esm/classic/index.d.ts.map +1 -1
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/indexes/index.d.ts +1 -1
- package/dist/esm/classic/indexes/index.d.ts.map +1 -1
- package/dist/esm/classic/indexes/index.js +4 -2
- package/dist/esm/classic/indexes/index.js.map +1 -1
- package/dist/esm/classic/inference/index.d.ts +0 -7
- package/dist/esm/classic/inference/index.d.ts.map +1 -1
- package/dist/esm/classic/inference/index.js +4 -5
- package/dist/esm/classic/inference/index.js.map +1 -1
- package/dist/esm/classic/telemetry/index.d.ts +1 -4
- package/dist/esm/classic/telemetry/index.d.ts.map +1 -1
- package/dist/esm/classic/telemetry/index.js +1 -2
- package/dist/esm/classic/telemetry/index.js.map +1 -1
- package/dist/esm/constants.d.ts +1 -1
- package/dist/esm/constants.d.ts.map +1 -1
- package/dist/esm/constants.js +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/index.d.ts +5 -5
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -2
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +0 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +3 -203
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +2 -249
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js +31 -50
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +2 -2
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/aiProjectClient.d.ts +10 -15
- package/dist/react-native/aiProjectClient.d.ts.map +1 -1
- package/dist/react-native/aiProjectClient.js +48 -18
- package/dist/react-native/aiProjectClient.js.map +1 -1
- package/dist/react-native/api/aiProjectContext.js +20 -12
- package/dist/react-native/api/aiProjectContext.js.map +1 -1
- package/dist/react-native/api/connections/operations.js +41 -37
- package/dist/react-native/api/connections/operations.js.map +1 -1
- package/dist/react-native/api/datasets/operations.d.ts +4 -4
- package/dist/react-native/api/datasets/operations.d.ts.map +1 -1
- package/dist/react-native/api/datasets/operations.js +72 -34
- package/dist/react-native/api/datasets/operations.js.map +1 -1
- package/dist/react-native/api/deployments/operations.js +25 -13
- package/dist/react-native/api/deployments/operations.js.map +1 -1
- package/dist/react-native/api/indexes/operations.d.ts +2 -2
- package/dist/react-native/api/indexes/operations.d.ts.map +1 -1
- package/dist/react-native/api/indexes/operations.js +45 -18
- package/dist/react-native/api/indexes/operations.js.map +1 -1
- package/dist/react-native/api/inference/operations.d.ts +0 -40
- package/dist/react-native/api/inference/operations.d.ts.map +1 -1
- package/dist/react-native/api/inference/operations.js +6 -87
- package/dist/react-native/api/inference/operations.js.map +1 -1
- package/dist/react-native/api/inference/options.d.ts +4 -1
- package/dist/react-native/api/inference/options.d.ts.map +1 -1
- package/dist/react-native/api/inference/options.js.map +1 -1
- package/dist/react-native/api/telemetry/operations.d.ts +1 -1
- package/dist/react-native/api/telemetry/operations.d.ts.map +1 -1
- package/dist/react-native/api/telemetry/operations.js +8 -23
- package/dist/react-native/api/telemetry/operations.js.map +1 -1
- package/dist/react-native/classic/connections/index.js +3 -1
- package/dist/react-native/classic/connections/index.js.map +1 -1
- package/dist/react-native/classic/datasets/index.d.ts +2 -2
- package/dist/react-native/classic/datasets/index.d.ts.map +1 -1
- package/dist/react-native/classic/datasets/index.js +7 -5
- package/dist/react-native/classic/datasets/index.js.map +1 -1
- package/dist/react-native/classic/deployments/index.js +3 -1
- package/dist/react-native/classic/deployments/index.js.map +1 -1
- package/dist/react-native/classic/index.d.ts +0 -2
- package/dist/react-native/classic/index.d.ts.map +1 -1
- package/dist/react-native/classic/index.js.map +1 -1
- package/dist/react-native/classic/indexes/index.d.ts +1 -1
- package/dist/react-native/classic/indexes/index.d.ts.map +1 -1
- package/dist/react-native/classic/indexes/index.js +4 -2
- package/dist/react-native/classic/indexes/index.js.map +1 -1
- package/dist/react-native/classic/inference/index.d.ts +0 -7
- package/dist/react-native/classic/inference/index.d.ts.map +1 -1
- package/dist/react-native/classic/inference/index.js +4 -5
- package/dist/react-native/classic/inference/index.js.map +1 -1
- package/dist/react-native/classic/telemetry/index.d.ts +1 -4
- package/dist/react-native/classic/telemetry/index.d.ts.map +1 -1
- package/dist/react-native/classic/telemetry/index.js +1 -2
- package/dist/react-native/classic/telemetry/index.js.map +1 -1
- package/dist/react-native/constants.d.ts +1 -1
- package/dist/react-native/constants.d.ts.map +1 -1
- package/dist/react-native/constants.js +1 -1
- package/dist/react-native/constants.js.map +1 -1
- package/dist/react-native/index.d.ts +5 -5
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -2
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +0 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +3 -203
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +2 -249
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
- package/dist/react-native/static-helpers/pagingHelpers.js.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/package.json +46 -72
- package/dist/browser/api/evaluations/index.d.ts +0 -3
- package/dist/browser/api/evaluations/index.d.ts.map +0 -1
- package/dist/browser/api/evaluations/index.js +0 -4
- package/dist/browser/api/evaluations/index.js.map +0 -1
- package/dist/browser/api/evaluations/operations.d.ts +0 -22
- package/dist/browser/api/evaluations/operations.d.ts.map +0 -1
- package/dist/browser/api/evaluations/operations.js +0 -99
- package/dist/browser/api/evaluations/operations.js.map +0 -1
- package/dist/browser/api/evaluations/options.d.ts +0 -18
- package/dist/browser/api/evaluations/options.d.ts.map +0 -1
- package/dist/browser/api/evaluations/options.js +0 -4
- package/dist/browser/api/evaluations/options.js.map +0 -1
- package/dist/browser/api/inference/enableTelemetry.d.ts +0 -21
- package/dist/browser/api/inference/enableTelemetry.d.ts.map +0 -1
- package/dist/browser/api/inference/enableTelemetry.js +0 -185
- package/dist/browser/api/inference/enableTelemetry.js.map +0 -1
- package/dist/browser/api/inference/index.d.ts +0 -5
- package/dist/browser/api/inference/index.d.ts.map +0 -1
- package/dist/browser/api/inference/index.js +0 -7
- package/dist/browser/api/inference/index.js.map +0 -1
- package/dist/browser/api/redTeams/index.d.ts +0 -3
- package/dist/browser/api/redTeams/index.d.ts.map +0 -1
- package/dist/browser/api/redTeams/index.js +0 -4
- package/dist/browser/api/redTeams/index.js.map +0 -1
- package/dist/browser/api/redTeams/operations.d.ts +0 -18
- package/dist/browser/api/redTeams/operations.d.ts.map +0 -1
- package/dist/browser/api/redTeams/operations.js +0 -74
- package/dist/browser/api/redTeams/operations.js.map +0 -1
- package/dist/browser/api/redTeams/options.d.ts +0 -15
- package/dist/browser/api/redTeams/options.d.ts.map +0 -1
- package/dist/browser/api/redTeams/options.js +0 -4
- package/dist/browser/api/redTeams/options.js.map +0 -1
- package/dist/browser/classic/evaluations/index.d.ts +0 -17
- package/dist/browser/classic/evaluations/index.d.ts.map +0 -1
- package/dist/browser/classic/evaluations/index.js +0 -15
- package/dist/browser/classic/evaluations/index.js.map +0 -1
- package/dist/browser/classic/redTeams/index.d.ts +0 -15
- package/dist/browser/classic/redTeams/index.d.ts.map +0 -1
- package/dist/browser/classic/redTeams/index.js +0 -14
- package/dist/browser/classic/redTeams/index.js.map +0 -1
- package/dist/browser/models/evaluations.d.ts +0 -55
- package/dist/browser/models/evaluations.d.ts.map +0 -1
- package/dist/browser/models/evaluations.js +0 -56
- package/dist/browser/models/evaluations.js.map +0 -1
- package/dist/commonjs/api/evaluations/index.d.ts +0 -3
- package/dist/commonjs/api/evaluations/index.d.ts.map +0 -1
- package/dist/commonjs/api/evaluations/index.js +0 -11
- package/dist/commonjs/api/evaluations/index.js.map +0 -1
- package/dist/commonjs/api/evaluations/operations.d.ts +0 -22
- package/dist/commonjs/api/evaluations/operations.d.ts.map +0 -1
- package/dist/commonjs/api/evaluations/operations.js +0 -113
- package/dist/commonjs/api/evaluations/operations.js.map +0 -1
- package/dist/commonjs/api/evaluations/options.d.ts +0 -18
- package/dist/commonjs/api/evaluations/options.d.ts.map +0 -1
- package/dist/commonjs/api/evaluations/options.js +0 -5
- package/dist/commonjs/api/evaluations/options.js.map +0 -1
- package/dist/commonjs/api/inference/enableTelemetry.d.ts +0 -21
- package/dist/commonjs/api/inference/enableTelemetry.d.ts.map +0 -1
- package/dist/commonjs/api/inference/enableTelemetry.js +0 -189
- package/dist/commonjs/api/inference/enableTelemetry.js.map +0 -1
- package/dist/commonjs/api/inference/index.d.ts +0 -5
- package/dist/commonjs/api/inference/index.d.ts.map +0 -1
- package/dist/commonjs/api/inference/index.js +0 -11
- package/dist/commonjs/api/inference/index.js.map +0 -1
- package/dist/commonjs/api/redTeams/index.d.ts +0 -3
- package/dist/commonjs/api/redTeams/index.d.ts.map +0 -1
- package/dist/commonjs/api/redTeams/index.js +0 -10
- package/dist/commonjs/api/redTeams/index.js.map +0 -1
- package/dist/commonjs/api/redTeams/operations.d.ts +0 -18
- package/dist/commonjs/api/redTeams/operations.d.ts.map +0 -1
- package/dist/commonjs/api/redTeams/operations.js +0 -85
- package/dist/commonjs/api/redTeams/operations.js.map +0 -1
- package/dist/commonjs/api/redTeams/options.d.ts +0 -15
- package/dist/commonjs/api/redTeams/options.d.ts.map +0 -1
- package/dist/commonjs/api/redTeams/options.js +0 -5
- package/dist/commonjs/api/redTeams/options.js.map +0 -1
- package/dist/commonjs/classic/evaluations/index.d.ts +0 -17
- package/dist/commonjs/classic/evaluations/index.d.ts.map +0 -1
- package/dist/commonjs/classic/evaluations/index.js +0 -18
- package/dist/commonjs/classic/evaluations/index.js.map +0 -1
- package/dist/commonjs/classic/redTeams/index.d.ts +0 -15
- package/dist/commonjs/classic/redTeams/index.d.ts.map +0 -1
- package/dist/commonjs/classic/redTeams/index.js +0 -17
- package/dist/commonjs/classic/redTeams/index.js.map +0 -1
- package/dist/commonjs/models/evaluations.d.ts +0 -55
- package/dist/commonjs/models/evaluations.d.ts.map +0 -1
- package/dist/commonjs/models/evaluations.js +0 -59
- package/dist/commonjs/models/evaluations.js.map +0 -1
- package/dist/esm/api/evaluations/index.d.ts +0 -3
- package/dist/esm/api/evaluations/index.d.ts.map +0 -1
- package/dist/esm/api/evaluations/index.js +0 -4
- package/dist/esm/api/evaluations/index.js.map +0 -1
- package/dist/esm/api/evaluations/operations.d.ts +0 -22
- package/dist/esm/api/evaluations/operations.d.ts.map +0 -1
- package/dist/esm/api/evaluations/operations.js +0 -99
- package/dist/esm/api/evaluations/operations.js.map +0 -1
- package/dist/esm/api/evaluations/options.d.ts +0 -18
- package/dist/esm/api/evaluations/options.d.ts.map +0 -1
- package/dist/esm/api/evaluations/options.js +0 -4
- package/dist/esm/api/evaluations/options.js.map +0 -1
- package/dist/esm/api/inference/enableTelemetry.d.ts +0 -21
- package/dist/esm/api/inference/enableTelemetry.d.ts.map +0 -1
- package/dist/esm/api/inference/enableTelemetry.js +0 -185
- package/dist/esm/api/inference/enableTelemetry.js.map +0 -1
- package/dist/esm/api/inference/index.d.ts +0 -5
- package/dist/esm/api/inference/index.d.ts.map +0 -1
- package/dist/esm/api/inference/index.js +0 -7
- package/dist/esm/api/inference/index.js.map +0 -1
- package/dist/esm/api/redTeams/index.d.ts +0 -3
- package/dist/esm/api/redTeams/index.d.ts.map +0 -1
- package/dist/esm/api/redTeams/index.js +0 -4
- package/dist/esm/api/redTeams/index.js.map +0 -1
- package/dist/esm/api/redTeams/operations.d.ts +0 -18
- package/dist/esm/api/redTeams/operations.d.ts.map +0 -1
- package/dist/esm/api/redTeams/operations.js +0 -74
- package/dist/esm/api/redTeams/operations.js.map +0 -1
- package/dist/esm/api/redTeams/options.d.ts +0 -15
- package/dist/esm/api/redTeams/options.d.ts.map +0 -1
- package/dist/esm/api/redTeams/options.js +0 -4
- package/dist/esm/api/redTeams/options.js.map +0 -1
- package/dist/esm/classic/evaluations/index.d.ts +0 -17
- package/dist/esm/classic/evaluations/index.d.ts.map +0 -1
- package/dist/esm/classic/evaluations/index.js +0 -15
- package/dist/esm/classic/evaluations/index.js.map +0 -1
- package/dist/esm/classic/redTeams/index.d.ts +0 -15
- package/dist/esm/classic/redTeams/index.d.ts.map +0 -1
- package/dist/esm/classic/redTeams/index.js +0 -14
- package/dist/esm/classic/redTeams/index.js.map +0 -1
- package/dist/esm/models/evaluations.d.ts +0 -55
- package/dist/esm/models/evaluations.d.ts.map +0 -1
- package/dist/esm/models/evaluations.js +0 -56
- package/dist/esm/models/evaluations.js.map +0 -1
- package/dist/react-native/api/evaluations/index.d.ts +0 -3
- package/dist/react-native/api/evaluations/index.d.ts.map +0 -1
- package/dist/react-native/api/evaluations/index.js +0 -4
- package/dist/react-native/api/evaluations/index.js.map +0 -1
- package/dist/react-native/api/evaluations/operations.d.ts +0 -22
- package/dist/react-native/api/evaluations/operations.d.ts.map +0 -1
- package/dist/react-native/api/evaluations/operations.js +0 -99
- package/dist/react-native/api/evaluations/operations.js.map +0 -1
- package/dist/react-native/api/evaluations/options.d.ts +0 -18
- package/dist/react-native/api/evaluations/options.d.ts.map +0 -1
- package/dist/react-native/api/evaluations/options.js +0 -4
- package/dist/react-native/api/evaluations/options.js.map +0 -1
- package/dist/react-native/api/inference/enableTelemetry.d.ts +0 -21
- package/dist/react-native/api/inference/enableTelemetry.d.ts.map +0 -1
- package/dist/react-native/api/inference/enableTelemetry.js +0 -185
- package/dist/react-native/api/inference/enableTelemetry.js.map +0 -1
- package/dist/react-native/api/inference/index.d.ts +0 -5
- package/dist/react-native/api/inference/index.d.ts.map +0 -1
- package/dist/react-native/api/inference/index.js +0 -7
- package/dist/react-native/api/inference/index.js.map +0 -1
- package/dist/react-native/api/redTeams/index.d.ts +0 -3
- package/dist/react-native/api/redTeams/index.d.ts.map +0 -1
- package/dist/react-native/api/redTeams/index.js +0 -4
- package/dist/react-native/api/redTeams/index.js.map +0 -1
- package/dist/react-native/api/redTeams/operations.d.ts +0 -18
- package/dist/react-native/api/redTeams/operations.d.ts.map +0 -1
- package/dist/react-native/api/redTeams/operations.js +0 -74
- package/dist/react-native/api/redTeams/operations.js.map +0 -1
- package/dist/react-native/api/redTeams/options.d.ts +0 -15
- package/dist/react-native/api/redTeams/options.d.ts.map +0 -1
- package/dist/react-native/api/redTeams/options.js +0 -4
- package/dist/react-native/api/redTeams/options.js.map +0 -1
- package/dist/react-native/classic/evaluations/index.d.ts +0 -17
- package/dist/react-native/classic/evaluations/index.d.ts.map +0 -1
- package/dist/react-native/classic/evaluations/index.js +0 -15
- package/dist/react-native/classic/evaluations/index.js.map +0 -1
- package/dist/react-native/classic/redTeams/index.d.ts +0 -15
- package/dist/react-native/classic/redTeams/index.d.ts.map +0 -1
- package/dist/react-native/classic/redTeams/index.js +0 -14
- package/dist/react-native/classic/redTeams/index.js.map +0 -1
- package/dist/react-native/models/evaluations.d.ts +0 -55
- package/dist/react-native/models/evaluations.d.ts.map +0 -1
- package/dist/react-native/models/evaluations.js +0 -56
- package/dist/react-native/models/evaluations.js.map +0 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { AgentsClient } from "@azure/ai-agents";
|
|
2
|
+
import type { AzureOpenAI } from "openai";
|
|
2
3
|
import { AIProjectClientOptionalParams } from "./api/index.js";
|
|
3
|
-
import { RedTeamsOperations } from "./classic/redTeams/index.js";
|
|
4
4
|
import { DeploymentsOperations } from "./classic/deployments/index.js";
|
|
5
5
|
import { IndexesOperations } from "./classic/indexes/index.js";
|
|
6
6
|
import { DatasetsOperations } from "./classic/datasets/index.js";
|
|
7
|
-
import { EvaluationsOperations } from "./classic/evaluations/index.js";
|
|
8
7
|
import { ConnectionsOperations } from "./classic/connections/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { TelemetryOperations } from "./classic/telemetry/index.js";
|
|
9
|
+
import { GetAzureOpenAIClientOptions } from "./api/inference/options.js";
|
|
11
10
|
import type { Pipeline } from "@azure/core-rest-pipeline";
|
|
12
11
|
import { TokenCredential } from "@azure/core-auth";
|
|
13
12
|
export { AIProjectClientOptionalParams } from "./api/aiProjectContext.js";
|
|
@@ -20,15 +19,12 @@ export { AIProjectClientOptionalParams } from "./api/aiProjectContext.js";
|
|
|
20
19
|
* @param {string} endpoint - The endpoint to use
|
|
21
20
|
* @param {TokenCredential} credential - The credential to use
|
|
22
21
|
* @param {AIProjectClientOptionalParams} [options] - Optional parameters for the client.
|
|
23
|
-
* @property {RedTeamsOperations} redTeams - The operation groups for redTeams
|
|
24
22
|
* @property {DeploymentsOperations} deployments - The operation groups for deployments
|
|
25
23
|
* @property {IndexesOperations} indexes - The operation groups for indexes
|
|
26
24
|
* @property {DatasetsOperations} datasets - The operation groups for datasets
|
|
27
|
-
* @property {EvaluationsOperations} evaluations - The operation groups for evaluations
|
|
28
25
|
* @property {ConnectionsOperations} connections - The operation groups for connections
|
|
29
|
-
* @
|
|
26
|
+
* @method {getAzureOpenAIClient} getAzureOpenAIClient - get the Azure OpenAI client for the project
|
|
30
27
|
* @property {TelemetryOperations} telemetry - The operation groups for telemetry
|
|
31
|
-
* @property {EnableTelemetryType} enableTelemetry - The operation groups for enabling telemetry
|
|
32
28
|
*/
|
|
33
29
|
export declare class AIProjectClient {
|
|
34
30
|
private _cognitiveScopeClient;
|
|
@@ -37,32 +33,31 @@ export declare class AIProjectClient {
|
|
|
37
33
|
private _credential;
|
|
38
34
|
private _agents;
|
|
39
35
|
private _options;
|
|
36
|
+
private readonly _inference;
|
|
40
37
|
/** The pipeline used by this client to make requests */
|
|
41
38
|
readonly pipeline: Pipeline;
|
|
42
39
|
constructor(endpointParam: string, credential: TokenCredential, options?: AIProjectClientOptionalParams);
|
|
43
|
-
/** The operation groups for redTeams */
|
|
44
|
-
readonly redTeams: RedTeamsOperations;
|
|
45
40
|
/** The operation groups for deployments */
|
|
46
41
|
readonly deployments: DeploymentsOperations;
|
|
47
42
|
/** The operation groups for indexes */
|
|
48
43
|
readonly indexes: IndexesOperations;
|
|
49
44
|
/** The operation groups for datasets */
|
|
50
45
|
readonly datasets: DatasetsOperations;
|
|
51
|
-
/** The operation groups for evaluations */
|
|
52
|
-
readonly evaluations: EvaluationsOperations;
|
|
53
46
|
/** The operation groups for connections */
|
|
54
47
|
readonly connections: ConnectionsOperations;
|
|
55
48
|
/** The operation groups for inference */
|
|
56
|
-
readonly inference: InferenceOperations;
|
|
57
49
|
/** The operation groups for telemetry */
|
|
58
50
|
readonly telemetry: TelemetryOperations;
|
|
59
|
-
/** The operation groups for enabling telemetry */
|
|
60
|
-
readonly enableTelemetry: EnableTelemetryType;
|
|
61
51
|
/**
|
|
62
52
|
* gets the endpoint of the client
|
|
63
53
|
* @returns the endpoint of the client
|
|
64
54
|
*/
|
|
65
55
|
getEndpointUrl(): string;
|
|
56
|
+
/**
|
|
57
|
+
* Gets the Azure OpenAI client for the project.
|
|
58
|
+
* @returns The Azure OpenAI client for the project.
|
|
59
|
+
*/
|
|
60
|
+
getAzureOpenAIClient(options?: GetAzureOpenAIClientOptions): Promise<AzureOpenAI>;
|
|
66
61
|
/**
|
|
67
62
|
* Creates a new instance of AzureAIProjectClient
|
|
68
63
|
* @param endpoint - The endpoint to use
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiProjectClient.d.ts","sourceRoot":"","sources":["../../src/aiProjectClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,
|
|
1
|
+
{"version":3,"file":"aiProjectClient.d.ts","sourceRoot":"","sources":["../../src/aiProjectClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAqC,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAE,qBAAqB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;IACI,oBAAoB,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,OAAO,CAAC,WAAW,CAAC;IAIxF;;;;;OAKG;IACH,MAAM,CAAC,YAAY,CACjB,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,eAAe,EAC3B,OAAO,GAAE,6BAAkC,GAC1C,eAAe;IAIlB;;;;OAIG;IAEH,IAAW,MAAM,IAAI,YAAY,CAUhC;CACF"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
/* eslint-disable tsdoc/syntax */
|
|
4
|
-
import { __rest } from "tslib";
|
|
5
4
|
import { AgentsClient } from "@azure/ai-agents";
|
|
6
5
|
import { createAIProject } from "./api/index.js";
|
|
7
|
-
import { _getRedTeamsOperations } from "./classic/redTeams/index.js";
|
|
8
6
|
import { _getDeploymentsOperations } from "./classic/deployments/index.js";
|
|
9
7
|
import { _getIndexesOperations } from "./classic/indexes/index.js";
|
|
10
8
|
import { _getDatasetsOperations } from "./classic/datasets/index.js";
|
|
11
|
-
import { _getEvaluationsOperations } from "./classic/evaluations/index.js";
|
|
12
9
|
import { _getConnectionsOperations } from "./classic/connections/index.js";
|
|
13
10
|
import { _getInferenceOperations } from "./classic/inference/index.js";
|
|
14
|
-
import { _getTelemetryOperations
|
|
11
|
+
import { _getTelemetryOperations } from "./classic/telemetry/index.js";
|
|
15
12
|
/**
|
|
16
13
|
* The main client for the AIProjectClient service. It provides access to the various operations available in the service.
|
|
17
14
|
* @class AIProjectClient
|
|
@@ -21,39 +18,62 @@ import { _getTelemetryOperations, enableTelemetry, } from "./classic/telemetry/i
|
|
|
21
18
|
* @param {string} endpoint - The endpoint to use
|
|
22
19
|
* @param {TokenCredential} credential - The credential to use
|
|
23
20
|
* @param {AIProjectClientOptionalParams} [options] - Optional parameters for the client.
|
|
24
|
-
* @property {RedTeamsOperations} redTeams - The operation groups for redTeams
|
|
25
21
|
* @property {DeploymentsOperations} deployments - The operation groups for deployments
|
|
26
22
|
* @property {IndexesOperations} indexes - The operation groups for indexes
|
|
27
23
|
* @property {DatasetsOperations} datasets - The operation groups for datasets
|
|
28
|
-
* @property {EvaluationsOperations} evaluations - The operation groups for evaluations
|
|
29
24
|
* @property {ConnectionsOperations} connections - The operation groups for connections
|
|
30
|
-
* @
|
|
25
|
+
* @method {getAzureOpenAIClient} getAzureOpenAIClient - get the Azure OpenAI client for the project
|
|
31
26
|
* @property {TelemetryOperations} telemetry - The operation groups for telemetry
|
|
32
|
-
* @property {EnableTelemetryType} enableTelemetry - The operation groups for enabling telemetry
|
|
33
27
|
*/
|
|
34
28
|
export class AIProjectClient {
|
|
29
|
+
_cognitiveScopeClient;
|
|
30
|
+
_azureScopeClient;
|
|
31
|
+
_endpoint;
|
|
32
|
+
_credential;
|
|
33
|
+
_agents;
|
|
34
|
+
_options;
|
|
35
|
+
_inference;
|
|
36
|
+
/** The pipeline used by this client to make requests */
|
|
37
|
+
pipeline;
|
|
35
38
|
constructor(endpointParam, credential, options = {}) {
|
|
36
|
-
var _a;
|
|
37
39
|
this._endpoint = endpointParam;
|
|
38
40
|
this._credential = credential;
|
|
39
41
|
this._options = options;
|
|
40
|
-
const prefixFromOptions =
|
|
42
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
41
43
|
const userAgentPrefix = prefixFromOptions
|
|
42
44
|
? `${prefixFromOptions} azsdk-js-client`
|
|
43
45
|
: `azsdk-js-client`;
|
|
44
|
-
this._cognitiveScopeClient = createAIProject(endpointParam, credential,
|
|
45
|
-
|
|
46
|
+
this._cognitiveScopeClient = createAIProject(endpointParam, credential, {
|
|
47
|
+
...options,
|
|
48
|
+
userAgentOptions: { userAgentPrefix },
|
|
49
|
+
});
|
|
50
|
+
this._azureScopeClient = createAIProject(endpointParam, credential, {
|
|
51
|
+
...options,
|
|
52
|
+
credentials: {
|
|
53
|
+
...options.credentials,
|
|
54
|
+
scopes: ["https://ai.azure.com/.default"],
|
|
55
|
+
},
|
|
56
|
+
userAgentOptions: { userAgentPrefix },
|
|
57
|
+
});
|
|
46
58
|
this.pipeline = this._cognitiveScopeClient.pipeline;
|
|
47
|
-
this.redTeams = _getRedTeamsOperations(this._azureScopeClient);
|
|
48
59
|
this.deployments = _getDeploymentsOperations(this._azureScopeClient);
|
|
49
60
|
this.indexes = _getIndexesOperations(this._azureScopeClient);
|
|
50
61
|
this.datasets = _getDatasetsOperations(this._azureScopeClient, this._options);
|
|
51
|
-
this.evaluations = _getEvaluationsOperations(this._azureScopeClient);
|
|
52
62
|
this.connections = _getConnectionsOperations(this._azureScopeClient);
|
|
53
|
-
this.
|
|
63
|
+
this._inference = _getInferenceOperations(this._cognitiveScopeClient, this.connections);
|
|
54
64
|
this.telemetry = _getTelemetryOperations(this.connections);
|
|
55
|
-
this.enableTelemetry = enableTelemetry;
|
|
56
65
|
}
|
|
66
|
+
/** The operation groups for deployments */
|
|
67
|
+
deployments;
|
|
68
|
+
/** The operation groups for indexes */
|
|
69
|
+
indexes;
|
|
70
|
+
/** The operation groups for datasets */
|
|
71
|
+
datasets;
|
|
72
|
+
/** The operation groups for connections */
|
|
73
|
+
connections;
|
|
74
|
+
/** The operation groups for inference */
|
|
75
|
+
/** The operation groups for telemetry */
|
|
76
|
+
telemetry;
|
|
57
77
|
/**
|
|
58
78
|
* gets the endpoint of the client
|
|
59
79
|
* @returns the endpoint of the client
|
|
@@ -61,6 +81,13 @@ export class AIProjectClient {
|
|
|
61
81
|
getEndpointUrl() {
|
|
62
82
|
return this._endpoint;
|
|
63
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Gets the Azure OpenAI client for the project.
|
|
86
|
+
* @returns The Azure OpenAI client for the project.
|
|
87
|
+
*/
|
|
88
|
+
getAzureOpenAIClient(options) {
|
|
89
|
+
return this._inference.azureOpenAI(options);
|
|
90
|
+
}
|
|
64
91
|
/**
|
|
65
92
|
* Creates a new instance of AzureAIProjectClient
|
|
66
93
|
* @param endpoint - The endpoint to use
|
|
@@ -77,9 +104,12 @@ export class AIProjectClient {
|
|
|
77
104
|
*/
|
|
78
105
|
// eslint-disable-next-line @azure/azure-sdk/ts-naming-subclients
|
|
79
106
|
get agents() {
|
|
80
|
-
const
|
|
107
|
+
const { apiVersion, ...clientOptions } = this._options;
|
|
81
108
|
if (!this._agents) {
|
|
82
|
-
this._agents = new AgentsClient(this._endpoint, this._credential,
|
|
109
|
+
this._agents = new AgentsClient(this._endpoint, this._credential, {
|
|
110
|
+
...clientOptions,
|
|
111
|
+
userAgentOptions: this._cognitiveScopeClient.getUserAgent(),
|
|
112
|
+
});
|
|
83
113
|
}
|
|
84
114
|
return this._agents;
|
|
85
115
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiProjectClient.js","sourceRoot":"","sources":["../../src/aiProjectClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,iCAAiC
|
|
1
|
+
{"version":3,"file":"aiProjectClient.js","sourceRoot":"","sources":["../../src/aiProjectClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,iCAAiC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAmD,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAyB,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAClG,OAAO,EAAqB,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAsB,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,EAAyB,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAClG,OAAO,EAAuB,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5F,OAAO,EAAuB,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAO5F;;;;;;;;;;;;;;;GAeG;AACH,MAAM,OAAO,eAAe;IAClB,qBAAqB,CAAmB;IACxC,iB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cesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n/* eslint-disable tsdoc/syntax */\n\nimport { AgentsClient } from \"@azure/ai-agents\";\nimport type { AzureOpenAI } from \"openai\";\nimport { createAIProject, AIProjectContext, AIProjectClientOptionalParams } from \"./api/index.js\";\nimport { DeploymentsOperations, _getDeploymentsOperations } from \"./classic/deployments/index.js\";\nimport { IndexesOperations, _getIndexesOperations } from \"./classic/indexes/index.js\";\nimport { DatasetsOperations, _getDatasetsOperations } from \"./classic/datasets/index.js\";\nimport { ConnectionsOperations, _getConnectionsOperations } from \"./classic/connections/index.js\";\nimport { InferenceOperations, _getInferenceOperations } from \"./classic/inference/index.js\";\nimport { TelemetryOperations, _getTelemetryOperations } from \"./classic/telemetry/index.js\";\nimport { GetAzureOpenAIClientOptions } from \"./api/inference/options.js\";\nimport type { Pipeline } from \"@azure/core-rest-pipeline\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport { AIProjectClientOptionalParams } from \"./api/aiProjectContext.js\";\n\n/**\n * The main client for the AIProjectClient service. It provides access to the various operations available in the service.\n * @class AIProjectClient\n * @extends {AIProjectContext}\n * @description The main client for the AIProjectClient\n * @constructor\n * @param {string} endpoint - The endpoint to use\n * @param {TokenCredential} credential - The credential to use\n * @param {AIProjectClientOptionalParams} [options] - Optional parameters for the client.\n * @property {DeploymentsOperations} deployments - The operation groups for deployments\n * @property {IndexesOperations} indexes - The operation groups for indexes\n * @property {DatasetsOperations} datasets - The operation groups for datasets\n * @property {ConnectionsOperations} connections - The operation groups for connections\n * @method {getAzureOpenAIClient} getAzureOpenAIClient - get the Azure OpenAI client for the project\n * @property {TelemetryOperations} telemetry - The operation groups for telemetry\n */\nexport class AIProjectClient {\n private _cognitiveScopeClient: AIProjectContext;\n private _azureScopeClient: AIProjectContext;\n private _endpoint: string;\n private _credential: TokenCredential;\n private _agents: AgentsClient | undefined;\n private _options: AIProjectClientOptionalParams;\n private readonly _inference: InferenceOperations;\n /** The pipeline used by this client to make requests */\n public readonly pipeline: Pipeline;\n\n constructor(\n endpointParam: string,\n credential: TokenCredential,\n options: AIProjectClientOptionalParams = {},\n ) {\n this._endpoint = endpointParam;\n this._credential = credential;\n this._options = options;\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-client`\n : `azsdk-js-client`;\n this._cognitiveScopeClient = createAIProject(endpointParam, credential, {\n ...options,\n userAgentOptions: { userAgentPrefix },\n });\n\n this._azureScopeClient = createAIProject(endpointParam, credential, {\n ...options,\n credentials: {\n ...options.credentials,\n scopes: [\"https://ai.azure.com/.default\"],\n },\n userAgentOptions: { userAgentPrefix },\n });\n\n this.pipeline = this._cognitiveScopeClient.pipeline;\n this.deployments = _getDeploymentsOperations(this._azureScopeClient);\n this.indexes = _getIndexesOperations(this._azureScopeClient);\n this.datasets = _getDatasetsOperations(this._azureScopeClient, this._options);\n this.connections = _getConnectionsOperations(this._azureScopeClient);\n this._inference = _getInferenceOperations(this._cognitiveScopeClient, this.connections);\n this.telemetry = _getTelemetryOperations(this.connections);\n }\n\n /** The operation groups for deployments */\n public readonly deployments: DeploymentsOperations;\n /** The operation groups for indexes */\n public readonly indexes: IndexesOperations;\n /** The operation groups for datasets */\n public readonly datasets: DatasetsOperations;\n /** The operation groups for connections */\n public readonly connections: ConnectionsOperations;\n /** The operation groups for inference */\n /** The operation groups for telemetry */\n public readonly telemetry: TelemetryOperations;\n /**\n * gets the endpoint of the client\n * @returns the endpoint of the client\n */\n public getEndpointUrl(): string {\n return this._endpoint;\n }\n\n /**\n * Gets the Azure OpenAI client for the project.\n * @returns The Azure OpenAI client for the project.\n */\n public getAzureOpenAIClient(options?: GetAzureOpenAIClientOptions): Promise<AzureOpenAI> {\n return this._inference.azureOpenAI(options);\n }\n\n /**\n * Creates a new instance of AzureAIProjectClient\n * @param endpoint - The endpoint to use\n * @param credential - The credential to use\n * @param options - The parameter for all optional parameters\n */\n static fromEndpoint(\n endpoint: string,\n credential: TokenCredential,\n options: AIProjectClientOptionalParams = {},\n ): AIProjectClient {\n return new AIProjectClient(endpoint, credential, options);\n }\n\n /**\n * Get the AgentsClient associated with this AIProjectClient.\n *\n * @returns The AgentsClient associated with this AIProjectClient\n */\n // eslint-disable-next-line @azure/azure-sdk/ts-naming-subclients\n public get agents(): AgentsClient {\n const { apiVersion, ...clientOptions } = this._options;\n\n if (!this._agents) {\n this._agents = new AgentsClient(this._endpoint, this._credential, {\n ...clientOptions,\n userAgentOptions: this._cognitiveScopeClient.getUserAgent(),\n });\n }\n return this._agents;\n }\n}\n"]}
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { __rest } from "tslib";
|
|
4
3
|
import { logger } from "../logger.js";
|
|
5
4
|
import { getClient } from "@azure-rest/core-client";
|
|
6
5
|
export function createAIProject(endpointParam, credential, options = {}) {
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const userAgentInfo = `azsdk-js-ai-projects/1.0.0-beta.8`;
|
|
6
|
+
const endpointUrl = options.endpoint ?? options.baseUrl ?? String(endpointParam);
|
|
7
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
8
|
+
const userAgentInfo = `azsdk-js-ai-projects/1.0.0`;
|
|
11
9
|
const userAgentPrefix = prefixFromOptions
|
|
12
10
|
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
13
11
|
: `azsdk-js-api ${userAgentInfo}`;
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
13
|
+
...options,
|
|
14
|
+
userAgentOptions: { userAgentPrefix },
|
|
15
|
+
loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
|
|
16
|
+
credentials: {
|
|
17
|
+
scopes: options.credentials?.scopes ?? ["https://cognitiveservices.azure.com/.default"],
|
|
18
|
+
},
|
|
19
|
+
};
|
|
17
20
|
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
18
21
|
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
19
|
-
const apiVersion =
|
|
22
|
+
const apiVersion = options.apiVersion ?? "v1";
|
|
20
23
|
clientContext.pipeline.addPolicy({
|
|
21
24
|
name: "ClientApiVersionPolicy",
|
|
22
25
|
sendRequest: (req, next) => {
|
|
23
|
-
var _a;
|
|
24
26
|
// Use the apiVersion defined in request url directly
|
|
25
27
|
// Append one if there is no apiVersion and we have one at client options
|
|
26
28
|
const url = new URL(req.url);
|
|
27
|
-
const defaultApiVersion =
|
|
29
|
+
const defaultApiVersion = url.searchParams.get("api-version") ?? apiVersion;
|
|
28
30
|
// remove api-version from url
|
|
29
31
|
url.searchParams.delete("api-version");
|
|
30
32
|
// add api-version to url
|
|
@@ -32,6 +34,12 @@ export function createAIProject(endpointParam, credential, options = {}) {
|
|
|
32
34
|
return next(req);
|
|
33
35
|
},
|
|
34
36
|
});
|
|
35
|
-
return
|
|
37
|
+
return {
|
|
38
|
+
...clientContext,
|
|
39
|
+
apiVersion,
|
|
40
|
+
getEndpointUrl: () => endpointUrl,
|
|
41
|
+
getUserAgent: () => ({ userAgentPrefix }),
|
|
42
|
+
getCredential: () => credential,
|
|
43
|
+
};
|
|
36
44
|
}
|
|
37
45
|
//# sourceMappingURL=aiProjectContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aiProjectContext.js","sourceRoot":"","sources":["../../../src/api/aiProjectContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC
|
|
1
|
+
{"version":3,"file":"aiProjectContext.js","sourceRoot":"","sources":["../../../src/api/aiProjectContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE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AiB,GAAG,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,CAAC;YAC5E,8BAA8B;YAC9B,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;YACvC,yBAAyB;YACzB,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,QAAQ,EAAE,GACzB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,iBAAiB,EAAE,CAAC;YACnC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO;QACL,GAAG,aAAa;QAChB,UAAU;QACV,cAAc,EAAE,GAAG,EAAE,CAAC,WAAW;QACjC,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,eAAe,EAAE,CAAC;QACzC,aAAa,EAAE,GAAG,EAAE,CAAC,UAAU;KACZ,CAAC;AACxB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nexport interface AIProjectContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n /** The endpoint URL used to construct AIProjectClient. */\n getEndpointUrl(): string;\n /** The user agent string used to construct AIProjectClient. */\n getUserAgent(): { userAgentPrefix: string };\n /** The credential used to construct AIProjectClient. */\n getCredential(): TokenCredential;\n}\n\n/** Optional parameters for the client. */\nexport interface AIProjectClientOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\nexport function createAIProject(\n endpointParam: string,\n credential: TokenCredential,\n options: AIProjectClientOptionalParams = {},\n): AIProjectContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? String(endpointParam);\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-ai-projects/1.0.0`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://cognitiveservices.azure.com/.default\"],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"v1\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n const defaultApiVersion = url.searchParams.get(\"api-version\") ?? apiVersion;\n // remove api-version from url\n url.searchParams.delete(\"api-version\");\n // add api-version to url\n req.url = `${url.toString()}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${defaultApiVersion}`;\n return next(req);\n },\n });\n return {\n ...clientContext,\n apiVersion,\n getEndpointUrl: () => endpointUrl,\n getUserAgent: () => ({ userAgentPrefix }),\n getCredential: () => credential,\n } as AIProjectContext;\n}\n"]}
|
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { __asyncValues } from "tslib";
|
|
4
3
|
import { connectionDeserializer, _pagedConnectionDeserializer, } from "../../models/models.js";
|
|
5
4
|
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
6
5
|
import { buildPagedAsyncIterator, } from "../../static-helpers/pagingHelpers.js";
|
|
7
6
|
import { createRestError, operationOptionsToRequestParameters, } from "@azure-rest/core-client";
|
|
8
7
|
export function _listSend(context, options = { requestOptions: {} }) {
|
|
9
|
-
var _a, _b;
|
|
10
8
|
const path = expandUrlTemplate("/connections{?api-version,connectionType,defaultConnection}", {
|
|
11
9
|
"api-version": context.apiVersion,
|
|
12
|
-
connectionType: options
|
|
13
|
-
defaultConnection: options
|
|
10
|
+
connectionType: options?.connectionType,
|
|
11
|
+
defaultConnection: options?.defaultConnection,
|
|
14
12
|
}, {
|
|
15
|
-
allowReserved:
|
|
13
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
14
|
+
});
|
|
15
|
+
return context.path(path).get({
|
|
16
|
+
...operationOptionsToRequestParameters(options),
|
|
17
|
+
headers: {
|
|
18
|
+
...(options?.clientRequestId !== undefined
|
|
19
|
+
? { "x-ms-client-request-id": options?.clientRequestId }
|
|
20
|
+
: {}),
|
|
21
|
+
accept: "application/json",
|
|
22
|
+
...options.requestOptions?.headers,
|
|
23
|
+
},
|
|
16
24
|
});
|
|
17
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign(Object.assign(Object.assign({}, ((options === null || options === void 0 ? void 0 : options.clientRequestId) !== undefined
|
|
18
|
-
? { "x-ms-client-request-id": options === null || options === void 0 ? void 0 : options.clientRequestId }
|
|
19
|
-
: {})), { accept: "application/json" }), (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
20
25
|
}
|
|
21
26
|
export async function _listDeserialize(result) {
|
|
22
27
|
const expectedStatuses = ["200"];
|
|
@@ -30,16 +35,22 @@ export function list(context, options = { requestOptions: {} }) {
|
|
|
30
35
|
return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
31
36
|
}
|
|
32
37
|
export function _getWithCredentialsSend(context, name, options = { requestOptions: {} }) {
|
|
33
|
-
var _a, _b;
|
|
34
38
|
const path = expandUrlTemplate("/connections/{name}/getConnectionWithCredentials{?api-version}", {
|
|
35
39
|
name: name,
|
|
36
40
|
"api-version": context.apiVersion,
|
|
37
41
|
}, {
|
|
38
|
-
allowReserved:
|
|
42
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
43
|
+
});
|
|
44
|
+
return context.path(path).post({
|
|
45
|
+
...operationOptionsToRequestParameters(options),
|
|
46
|
+
headers: {
|
|
47
|
+
...(options?.clientRequestId !== undefined
|
|
48
|
+
? { "x-ms-client-request-id": options?.clientRequestId }
|
|
49
|
+
: {}),
|
|
50
|
+
accept: "application/json",
|
|
51
|
+
...options.requestOptions?.headers,
|
|
52
|
+
},
|
|
39
53
|
});
|
|
40
|
-
return context.path(path).post(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign(Object.assign(Object.assign({}, ((options === null || options === void 0 ? void 0 : options.clientRequestId) !== undefined
|
|
41
|
-
? { "x-ms-client-request-id": options === null || options === void 0 ? void 0 : options.clientRequestId }
|
|
42
|
-
: {})), { accept: "application/json" }), (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
43
54
|
}
|
|
44
55
|
export async function _getWithCredentialsDeserialize(result) {
|
|
45
56
|
const expectedStatuses = ["200"];
|
|
@@ -54,16 +65,22 @@ export async function getWithCredentials(context, name, options = { requestOptio
|
|
|
54
65
|
return _getWithCredentialsDeserialize(result);
|
|
55
66
|
}
|
|
56
67
|
export function _getSend(context, name, options = { requestOptions: {} }) {
|
|
57
|
-
var _a, _b;
|
|
58
68
|
const path = expandUrlTemplate("/connections/{name}{?api-version}", {
|
|
59
69
|
name: name,
|
|
60
70
|
"api-version": context.apiVersion,
|
|
61
71
|
}, {
|
|
62
|
-
allowReserved:
|
|
72
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
73
|
+
});
|
|
74
|
+
return context.path(path).get({
|
|
75
|
+
...operationOptionsToRequestParameters(options),
|
|
76
|
+
headers: {
|
|
77
|
+
...(options?.clientRequestId !== undefined
|
|
78
|
+
? { "x-ms-client-request-id": options?.clientRequestId }
|
|
79
|
+
: {}),
|
|
80
|
+
accept: "application/json",
|
|
81
|
+
...options.requestOptions?.headers,
|
|
82
|
+
},
|
|
63
83
|
});
|
|
64
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign(Object.assign(Object.assign({}, ((options === null || options === void 0 ? void 0 : options.clientRequestId) !== undefined
|
|
65
|
-
? { "x-ms-client-request-id": options === null || options === void 0 ? void 0 : options.clientRequestId }
|
|
66
|
-
: {})), { accept: "application/json" }), (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
67
84
|
}
|
|
68
85
|
export async function _getDeserialize(result) {
|
|
69
86
|
const expectedStatuses = ["200"];
|
|
@@ -90,32 +107,19 @@ export async function get(context, name, includeCredentials, options = { request
|
|
|
90
107
|
* @throws Error if no default connection is found for the given type.
|
|
91
108
|
*/
|
|
92
109
|
export async function getDefault(context, connectionType, includeCredentials = false) {
|
|
93
|
-
var _a, e_1, _b, _c;
|
|
94
110
|
const listOptions = {
|
|
95
111
|
connectionType,
|
|
96
112
|
defaultConnection: true,
|
|
97
113
|
};
|
|
98
114
|
// Use the list function to find default connections of the specified type
|
|
99
115
|
const connections = list(context, listOptions);
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
const connection = _c;
|
|
106
|
-
if (includeCredentials) {
|
|
107
|
-
// If credentials are requested, get the connection with credentials
|
|
108
|
-
return getWithCredentials(context, connection.name);
|
|
109
|
-
}
|
|
110
|
-
return connection;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
114
|
-
finally {
|
|
115
|
-
try {
|
|
116
|
-
if (!_d && !_a && (_b = connections_1.return)) await _b.call(connections_1);
|
|
116
|
+
// Find the first default connection
|
|
117
|
+
for await (const connection of connections) {
|
|
118
|
+
if (includeCredentials) {
|
|
119
|
+
// If credentials are requested, get the connection with credentials
|
|
120
|
+
return getWithCredentials(context, connection.name);
|
|
117
121
|
}
|
|
118
|
-
|
|
122
|
+
return connection;
|
|
119
123
|
}
|
|
120
124
|
throw new Error(`No default connection found for type: ${connectionType}.`);
|
|
121
125
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/connections/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAEL,sBAAsB,EAEtB,4BAA4B,GAE7B,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAAyC,EAAE,cAAc,EAAE,EAAE,EAAE;;IAE/D,MAAM,IAAI,GAAG,iBAAiB,CAC5B,6DAA6D,EAC7D;QACE,aAAa,EAAE,OAAO,CAAC,UAAU;QACjC,cAAc,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc;QACvC,iBAAiB,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB;KAC9C,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,GAAG,iCACxB,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,gDACF,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,eAAe,MAAK,SAAS;YACxC,CAAC,CAAC,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C,OAAO,EAAE,WAAW,CAAC,CAAC;;QAE/C,oCAAoC;QACpC,KAA+B,eAAA,gBAAA,cAAA,WAAW,CAAA,iBAAA,2FAAE,CAAC;YAAd,2BAAW;YAAX,WAAW;YAA/B,MAAM,UAAU,KAAA,CAAA;YACzB,IAAI,kBAAkB,EAAE,CAAC;gBACvB,oEAAoE;gBACpE,OAAO,kBAAkB,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;YACtD,CAAC;YACD,OAAO,UAAU,CAAC;QACpB,CAAC;;;;;;;;;IAED,MAAM,IAAI,KAAK,CAAC,yCAAyC,cAAc,GAAG,CAAC,CAAC;AAC9E,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AIProjectContext as Client } from \"../index.js\";\nimport {\n Connection,\n connectionDeserializer,\n _PagedConnection,\n _pagedConnectionDeserializer,\n ConnectionType,\n} from \"../../models/models.js\";\nimport {\n ConnectionsListOptionalParams,\n ConnectionsGetWithCredentialsOptionalParams,\n ConnectionsGetOptionalParams,\n} from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: ConnectionsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/connections{?api-version,connectionType,defaultConnection}\",\n {\n \"api-version\": context.apiVersion,\n connectionType: options?.connectionType,\n defaultConnection: options?.defaultConnection,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_PagedConnection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _pagedConnectionDeserializer(result.body);\n}\n\n/** List all connections in the project, without populating connection credentials */\nexport function list(\n context: Client,\n options: ConnectionsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Connection> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getWithCredentialsSend(\n context: Client,\n name: string,\n options: ConnectionsGetWithCredentialsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/connections/{name}/getConnectionWithCredentials{?api-version}\",\n {\n name: name,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getWithCredentialsDeserialize(\n result: PathUncheckedResponse,\n): Promise<Connection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return connectionDeserializer(result.body);\n}\n\n/** Get a connection by name, with its connection credentials */\nexport async function getWithCredentials(\n context: Client,\n name: string,\n options: ConnectionsGetWithCredentialsOptionalParams = { requestOptions: {} },\n): Promise<Connection> {\n const result = await _getWithCredentialsSend(context, name, options);\n return _getWithCredentialsDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n name: string,\n options: ConnectionsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/connections/{name}{?api-version}\",\n {\n name: name,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Connection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return connectionDeserializer(result.body);\n}\n\n/** Get a connection by name, without populating connection credentials */\nexport async function get(\n context: Client,\n name: string,\n includeCredentials?: boolean,\n options: ConnectionsGetOptionalParams = { requestOptions: {} },\n): Promise<Connection> {\n if (includeCredentials) {\n return getWithCredentials(context, name, options);\n }\n const result = await _getSend(context, name, options);\n return _getDeserialize(result);\n}\n\n/**\n * Get the default connection for a given connection type.\n *\n * @param context - The AIProjectContext client\n * @param connectionType - The type of the connection. Required.\n * @param includeCredentials - Whether to include credentials in the response. Default is false.\n * @returns A Connection object\n * @throws Error if no default connection is found for the given type.\n */\nexport async function getDefault(\n context: Client,\n connectionType: ConnectionType,\n includeCredentials: boolean = false,\n): Promise<Connection> {\n const listOptions = {\n connectionType,\n defaultConnection: true,\n };\n\n // Use the list function to find default connections of the specified type\n const connections = list(context, listOptions);\n\n // Find the first default connection\n for await (const connection of connections) {\n if (includeCredentials) {\n // If credentials are requested, get the connection with credentials\n return getWithCredentials(context, connection.name);\n }\n return connection;\n }\n\n throw new Error(`No default connection found for type: ${connectionType}.`);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/connections/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAEL,sBAAsB,EAEtB,4BAA4B,GAE7B,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC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,cAAc,EAAE,EAAE,EAAE;IAE9D,IAAI,kBAAkB,EAAE,CAAC;QACvB,OAAO,kBAAkB,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACtD,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,OAAe,EACf,cAA8B,EAC9B,qBAA8B,KAAK;IAEnC,MAAM,WAAW,GAAG;QAClB,cAAc;QACd,iBAAiB,EAAE,IAAI;KACxB,CAAC;IAEF,0EAA0E;IAC1E,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;IAE/C,oCAAoC;IACpC,IAAI,KAAK,EAAE,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;QAC3C,IAAI,kBAAkB,EAAE,CAAC;YACvB,oEAAoE;YACpE,OAAO,kBAAkB,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,yCAAyC,cAAc,GAAG,CAAC,CAAC;AAC9E,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AIProjectContext as Client } from \"../index.js\";\nimport {\n Connection,\n connectionDeserializer,\n _PagedConnection,\n _pagedConnectionDeserializer,\n ConnectionType,\n} from \"../../models/models.js\";\nimport {\n ConnectionsListOptionalParams,\n ConnectionsGetWithCredentialsOptionalParams,\n ConnectionsGetOptionalParams,\n} from \"./options.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: ConnectionsListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/connections{?api-version,connectionType,defaultConnection}\",\n {\n \"api-version\": context.apiVersion,\n connectionType: options?.connectionType,\n defaultConnection: options?.defaultConnection,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(result: PathUncheckedResponse): Promise<_PagedConnection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _pagedConnectionDeserializer(result.body);\n}\n\n/** List all connections in the project, without populating connection credentials */\nexport function list(\n context: Client,\n options: ConnectionsListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<Connection> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _getWithCredentialsSend(\n context: Client,\n name: string,\n options: ConnectionsGetWithCredentialsOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/connections/{name}/getConnectionWithCredentials{?api-version}\",\n {\n name: name,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getWithCredentialsDeserialize(\n result: PathUncheckedResponse,\n): Promise<Connection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return connectionDeserializer(result.body);\n}\n\n/** Get a connection by name, with its connection credentials */\nexport async function getWithCredentials(\n context: Client,\n name: string,\n options: ConnectionsGetWithCredentialsOptionalParams = { requestOptions: {} },\n): Promise<Connection> {\n const result = await _getWithCredentialsSend(context, name, options);\n return _getWithCredentialsDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n name: string,\n options: ConnectionsGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/connections/{name}{?api-version}\",\n {\n name: name,\n \"api-version\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.clientRequestId !== undefined\n ? { \"x-ms-client-request-id\": options?.clientRequestId }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<Connection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return connectionDeserializer(result.body);\n}\n\n/** Get a connection by name, without populating connection credentials */\nexport async function get(\n context: Client,\n name: string,\n includeCredentials?: boolean,\n options: ConnectionsGetOptionalParams = { requestOptions: {} },\n): Promise<Connection> {\n if (includeCredentials) {\n return getWithCredentials(context, name, options);\n }\n const result = await _getSend(context, name, options);\n return _getDeserialize(result);\n}\n\n/**\n * Get the default connection for a given connection type.\n *\n * @param context - The AIProjectContext client\n * @param connectionType - The type of the connection. Required.\n * @param includeCredentials - Whether to include credentials in the response. Default is false.\n * @returns A Connection object\n * @throws Error if no default connection is found for the given type.\n */\nexport async function getDefault(\n context: Client,\n connectionType: ConnectionType,\n includeCredentials: boolean = false,\n): Promise<Connection> {\n const listOptions = {\n connectionType,\n defaultConnection: true,\n };\n\n // Use the list function to find default connections of the specified type\n const connections = list(context, listOptions);\n\n // Find the first default connection\n for await (const connection of connections) {\n if (includeCredentials) {\n // If credentials are requested, get the connection with credentials\n return getWithCredentials(context, connection.name);\n }\n return connection;\n }\n\n throw new Error(`No default connection found for type: ${connectionType}.`);\n}\n"]}
|
|
@@ -7,16 +7,16 @@ export declare function _getCredentialsSend(context: Client, name: string, versi
|
|
|
7
7
|
export declare function _getCredentialsDeserialize(result: PathUncheckedResponse): Promise<AssetCredentialResponse>;
|
|
8
8
|
/** Get the SAS credential to access the storage account associated with a Dataset version. */
|
|
9
9
|
export declare function getCredentials(context: Client, name: string, version: string, options?: DatasetsGetCredentialsOptionalParams): Promise<AssetCredentialResponse>;
|
|
10
|
-
export declare function _pendingUploadSend(context: Client, name: string, version: string,
|
|
10
|
+
export declare function _pendingUploadSend(context: Client, name: string, version: string, pendingUploadRequest: PendingUploadRequest, options?: DatasetsPendingUploadOptionalParams): StreamableMethod;
|
|
11
11
|
export declare function _pendingUploadDeserialize(result: PathUncheckedResponse): Promise<PendingUploadResponse>;
|
|
12
12
|
/** Start a new or get an existing pending upload of a dataset for a specific version. */
|
|
13
|
-
export declare function pendingUpload(context: Client, name: string, version: string,
|
|
13
|
+
export declare function pendingUpload(context: Client, name: string, version: string, pendingUploadRequest: PendingUploadRequest, options?: DatasetsPendingUploadOptionalParams): Promise<PendingUploadResponse>;
|
|
14
14
|
export declare function uploadFile(context: Client, name: string, version: string, filePath: string, options?: DatasetUploadInternalOptions): Promise<DatasetVersionUnion>;
|
|
15
15
|
export declare function uploadFolder(context: Client, name: string, version: string, folderPath: string, options?: DatasetUploadInternalOptions): Promise<DatasetVersionUnion>;
|
|
16
|
-
export declare function _createOrUpdateSend(context: Client, name: string, version: string,
|
|
16
|
+
export declare function _createOrUpdateSend(context: Client, name: string, version: string, datasetVersion: DatasetVersionUnion, options?: DatasetsCreateOrUpdateOptionalParams): StreamableMethod;
|
|
17
17
|
export declare function _createOrUpdateDeserialize(result: PathUncheckedResponse): Promise<DatasetVersionUnion>;
|
|
18
18
|
/** Create a new or update an existing DatasetVersion with the given version id */
|
|
19
|
-
export declare function createOrUpdate(context: Client, name: string, version: string,
|
|
19
|
+
export declare function createOrUpdate(context: Client, name: string, version: string, datasetVersion: DatasetVersionUnion, options?: DatasetsCreateOrUpdateOptionalParams): Promise<DatasetVersionUnion>;
|
|
20
20
|
export declare function _$deleteSend(context: Client, name: string, version: string, options?: DatasetsDeleteOptionalParams): StreamableMethod;
|
|
21
21
|
export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
22
22
|
/** Delete the specific version of the DatasetVersion */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/datasets/operations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,4BAA4B,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACvF,OAAO,EACL,oBAAoB,EAIpB,mBAAmB,EACnB,oBAAoB,EAEpB,qBAAqB,EAErB,uBAAuB,EAExB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,kCAAkC,EACnC,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAGjC,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,oCAA6D,GACrE,gBAAgB,CAmBlB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CAOlC;AAED,8FAA8F;AAC9F,wBAAsB,cAAc,CAClC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,oCAA6D,GACrE,OAAO,CAAC,uBAAuB,CAAC,CAGlC;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../../src/api/datasets/operations.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,4BAA4B,EAAE,gBAAgB,IAAI,MAAM,EAAE,MAAM,aAAa,CAAC;AACvF,OAAO,EACL,oBAAoB,EAIpB,mBAAmB,EACnB,oBAAoB,EAEpB,qBAAqB,EAErB,uBAAuB,EAExB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oCAAoC,EACpC,mCAAmC,EACnC,oCAAoC,EACpC,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,kCAAkC,EACnC,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,0BAA0B,EAE3B,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAGtB,MAAM,yBAAyB,CAAC;AAGjC,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,oCAA6D,GACrE,gBAAgB,CAmBlB;AAED,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,uBAAuB,CAAC,CAOlC;AAED,8FAA8F;AAC9F,wBAAsB,cAAc,CAClC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,oCAA6D,GACrE,OAAO,CAAC,uBAAuB,CAAC,CAGlC;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,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