@azure/ai-projects 2.0.0 → 2.0.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/README.md +5 -5
- package/dist/browser/api/aiProjectContext.d.ts.map +1 -1
- package/dist/browser/api/aiProjectContext.js +2 -1
- package/dist/browser/api/aiProjectContext.js.map +1 -1
- package/dist/browser/api/beta/memoryStores/operations.d.ts.map +1 -1
- package/dist/browser/api/beta/memoryStores/operations.js +11 -0
- package/dist/browser/api/beta/memoryStores/operations.js.map +1 -1
- package/dist/browser/api/datasets/operations.d.ts.map +1 -1
- package/dist/browser/api/datasets/operations.js +9 -8
- package/dist/browser/api/datasets/operations.js.map +1 -1
- package/dist/browser/constants.d.ts +1 -1
- package/dist/browser/constants.js +1 -1
- package/dist/browser/constants.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +11 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +21 -9
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/aiProjectClient.js +1 -0
- package/dist/commonjs/aiProjectClient.js.map +1 -1
- package/dist/commonjs/api/agents/index.js +1 -0
- package/dist/commonjs/api/agents/index.js.map +1 -1
- package/dist/commonjs/api/agents/operations.js +1 -0
- package/dist/commonjs/api/agents/operations.js.map +1 -1
- package/dist/commonjs/api/agents/options.js +1 -0
- package/dist/commonjs/api/agents/options.js.map +1 -1
- package/dist/commonjs/api/aiProjectContext.d.ts.map +1 -1
- package/dist/commonjs/api/aiProjectContext.js +3 -1
- package/dist/commonjs/api/aiProjectContext.js.map +3 -3
- package/dist/commonjs/api/beta/evaluationTaxonomies/index.js +1 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.js +1 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/operations.js.map +1 -1
- package/dist/commonjs/api/beta/evaluationTaxonomies/options.js +1 -0
- package/dist/commonjs/api/beta/evaluationTaxonomies/options.js.map +1 -1
- package/dist/commonjs/api/beta/evaluators/index.js +1 -0
- package/dist/commonjs/api/beta/evaluators/index.js.map +1 -1
- package/dist/commonjs/api/beta/evaluators/operations.js +1 -0
- package/dist/commonjs/api/beta/evaluators/operations.js.map +1 -1
- package/dist/commonjs/api/beta/evaluators/options.js +1 -0
- package/dist/commonjs/api/beta/evaluators/options.js.map +1 -1
- package/dist/commonjs/api/beta/insights/index.js +1 -0
- package/dist/commonjs/api/beta/insights/index.js.map +1 -1
- package/dist/commonjs/api/beta/insights/operations.js +1 -0
- package/dist/commonjs/api/beta/insights/operations.js.map +1 -1
- package/dist/commonjs/api/beta/insights/options.js +1 -0
- package/dist/commonjs/api/beta/insights/options.js.map +1 -1
- package/dist/commonjs/api/beta/memoryStores/index.js +1 -0
- package/dist/commonjs/api/beta/memoryStores/index.js.map +1 -1
- package/dist/commonjs/api/beta/memoryStores/operations.d.ts.map +1 -1
- package/dist/commonjs/api/beta/memoryStores/operations.js +13 -1
- package/dist/commonjs/api/beta/memoryStores/operations.js.map +3 -3
- package/dist/commonjs/api/beta/memoryStores/options.js +1 -0
- package/dist/commonjs/api/beta/memoryStores/options.js.map +1 -1
- package/dist/commonjs/api/beta/redTeams/index.js +1 -0
- package/dist/commonjs/api/beta/redTeams/index.js.map +1 -1
- package/dist/commonjs/api/beta/redTeams/operations.js +1 -0
- package/dist/commonjs/api/beta/redTeams/operations.js.map +1 -1
- package/dist/commonjs/api/beta/redTeams/options.js +1 -0
- package/dist/commonjs/api/beta/redTeams/options.js.map +1 -1
- package/dist/commonjs/api/beta/schedules/index.js +1 -0
- package/dist/commonjs/api/beta/schedules/index.js.map +1 -1
- package/dist/commonjs/api/beta/schedules/operations.js +1 -0
- package/dist/commonjs/api/beta/schedules/operations.js.map +1 -1
- package/dist/commonjs/api/beta/schedules/options.js +1 -0
- package/dist/commonjs/api/beta/schedules/options.js.map +1 -1
- package/dist/commonjs/api/connections/index.js +1 -0
- package/dist/commonjs/api/connections/index.js.map +1 -1
- package/dist/commonjs/api/connections/operations.js +1 -0
- package/dist/commonjs/api/connections/operations.js.map +1 -1
- package/dist/commonjs/api/connections/options.js +1 -0
- package/dist/commonjs/api/connections/options.js.map +1 -1
- package/dist/commonjs/api/datasets/index.js +1 -0
- package/dist/commonjs/api/datasets/index.js.map +1 -1
- package/dist/commonjs/api/datasets/operations.d.ts.map +1 -1
- package/dist/commonjs/api/datasets/operations.js +10 -8
- package/dist/commonjs/api/datasets/operations.js.map +3 -3
- package/dist/commonjs/api/datasets/options.js +1 -0
- package/dist/commonjs/api/datasets/options.js.map +1 -1
- package/dist/commonjs/api/deployments/index.js +1 -0
- package/dist/commonjs/api/deployments/index.js.map +1 -1
- package/dist/commonjs/api/deployments/operations.js +1 -0
- package/dist/commonjs/api/deployments/operations.js.map +1 -1
- package/dist/commonjs/api/deployments/options.js +1 -0
- package/dist/commonjs/api/deployments/options.js.map +1 -1
- package/dist/commonjs/api/evaluationRules/index.js +1 -0
- package/dist/commonjs/api/evaluationRules/index.js.map +1 -1
- package/dist/commonjs/api/evaluationRules/operations.js +1 -0
- package/dist/commonjs/api/evaluationRules/operations.js.map +1 -1
- package/dist/commonjs/api/evaluationRules/options.js +1 -0
- package/dist/commonjs/api/evaluationRules/options.js.map +1 -1
- package/dist/commonjs/api/index.js +1 -0
- package/dist/commonjs/api/index.js.map +1 -1
- package/dist/commonjs/api/indexes/index.js +1 -0
- package/dist/commonjs/api/indexes/index.js.map +1 -1
- package/dist/commonjs/api/indexes/operations.js +1 -0
- package/dist/commonjs/api/indexes/operations.js.map +1 -1
- package/dist/commonjs/api/indexes/options.js +1 -0
- package/dist/commonjs/api/indexes/options.js.map +1 -1
- package/dist/commonjs/api/telemetry/index.js +1 -0
- package/dist/commonjs/api/telemetry/index.js.map +1 -1
- package/dist/commonjs/api/telemetry/operations.js +1 -0
- package/dist/commonjs/api/telemetry/operations.js.map +1 -1
- package/dist/commonjs/classic/agents/index.js +1 -0
- package/dist/commonjs/classic/agents/index.js.map +1 -1
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.js +1 -0
- package/dist/commonjs/classic/beta/evaluationTaxonomies/index.js.map +1 -1
- package/dist/commonjs/classic/beta/evaluators/index.js +1 -0
- package/dist/commonjs/classic/beta/evaluators/index.js.map +1 -1
- package/dist/commonjs/classic/beta/index.js +1 -0
- package/dist/commonjs/classic/beta/index.js.map +1 -1
- package/dist/commonjs/classic/beta/insights/index.js +1 -0
- package/dist/commonjs/classic/beta/insights/index.js.map +1 -1
- package/dist/commonjs/classic/beta/memoryStores/index.js +1 -0
- package/dist/commonjs/classic/beta/memoryStores/index.js.map +1 -1
- package/dist/commonjs/classic/beta/redTeams/index.js +1 -0
- package/dist/commonjs/classic/beta/redTeams/index.js.map +1 -1
- package/dist/commonjs/classic/beta/schedules/index.js +1 -0
- package/dist/commonjs/classic/beta/schedules/index.js.map +1 -1
- package/dist/commonjs/classic/connections/index.js +1 -0
- package/dist/commonjs/classic/connections/index.js.map +1 -1
- package/dist/commonjs/classic/datasets/index.js +1 -0
- package/dist/commonjs/classic/datasets/index.js.map +1 -1
- package/dist/commonjs/classic/deployments/index.js +1 -0
- package/dist/commonjs/classic/deployments/index.js.map +1 -1
- package/dist/commonjs/classic/evaluationRules/index.js +1 -0
- package/dist/commonjs/classic/evaluationRules/index.js.map +1 -1
- package/dist/commonjs/classic/index.js +1 -0
- package/dist/commonjs/classic/index.js.map +1 -1
- package/dist/commonjs/classic/indexes/index.js +1 -0
- package/dist/commonjs/classic/indexes/index.js.map +1 -1
- package/dist/commonjs/classic/telemetry/index.js +1 -0
- package/dist/commonjs/classic/telemetry/index.js.map +1 -1
- package/dist/commonjs/constants.d.ts +1 -1
- package/dist/commonjs/constants.js +2 -1
- package/dist/commonjs/constants.js.map +2 -2
- package/dist/commonjs/getCustomFetch.js +1 -0
- package/dist/commonjs/getCustomFetch.js.map +1 -1
- package/dist/commonjs/index.js +1 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/logger.js +1 -0
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/models/index.js +1 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.js +1 -0
- package/dist/commonjs/models/models.js.map +1 -1
- package/dist/commonjs/overwriteOpenAIClient.js +1 -0
- package/dist/commonjs/overwriteOpenAIClient.js.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +11 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +16 -8
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +3 -3
- package/dist/commonjs/static-helpers/serialization/serialize-record.js +1 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/util.js +1 -0
- package/dist/commonjs/util.js.map +1 -1
- package/dist/esm/aiProjectClient.js +119 -94
- package/dist/esm/aiProjectClient.js.map +1 -7
- package/dist/esm/api/agents/index.js +4 -28
- package/dist/esm/api/agents/index.js.map +1 -7
- package/dist/esm/api/agents/operations.js +375 -473
- package/dist/esm/api/agents/operations.js.map +1 -7
- package/dist/esm/api/agents/options.js +4 -0
- package/dist/esm/api/agents/options.js.map +1 -7
- package/dist/esm/api/aiProjectContext.d.ts.map +1 -1
- package/dist/esm/api/aiProjectContext.js +22 -19
- package/dist/esm/api/aiProjectContext.js.map +1 -7
- package/dist/esm/api/beta/evaluationTaxonomies/index.js +4 -8
- package/dist/esm/api/beta/evaluationTaxonomies/index.js.map +1 -7
- package/dist/esm/api/beta/evaluationTaxonomies/operations.js +150 -183
- package/dist/esm/api/beta/evaluationTaxonomies/operations.js.map +1 -7
- package/dist/esm/api/beta/evaluationTaxonomies/options.js +4 -0
- package/dist/esm/api/beta/evaluationTaxonomies/options.js.map +1 -7
- package/dist/esm/api/beta/evaluators/index.js +4 -16
- package/dist/esm/api/beta/evaluators/index.js.map +1 -7
- package/dist/esm/api/beta/evaluators/operations.js +192 -243
- package/dist/esm/api/beta/evaluators/operations.js.map +1 -7
- package/dist/esm/api/beta/evaluators/options.js +4 -0
- package/dist/esm/api/beta/evaluators/options.js.map +1 -7
- package/dist/esm/api/beta/insights/index.js +4 -6
- package/dist/esm/api/beta/insights/index.js.map +1 -7
- package/dist/esm/api/beta/insights/operations.js +109 -126
- package/dist/esm/api/beta/insights/operations.js.map +1 -7
- package/dist/esm/api/beta/insights/options.js +4 -0
- package/dist/esm/api/beta/insights/options.js.map +1 -7
- package/dist/esm/api/beta/memoryStores/index.js +4 -22
- package/dist/esm/api/beta/memoryStores/index.js.map +1 -7
- package/dist/esm/api/beta/memoryStores/operations.d.ts.map +1 -1
- package/dist/esm/api/beta/memoryStores/operations.js +305 -363
- package/dist/esm/api/beta/memoryStores/operations.js.map +1 -7
- package/dist/esm/api/beta/memoryStores/options.js +4 -0
- package/dist/esm/api/beta/memoryStores/options.js.map +1 -7
- package/dist/esm/api/beta/redTeams/index.js +4 -6
- package/dist/esm/api/beta/redTeams/index.js.map +1 -7
- package/dist/esm/api/beta/redTeams/operations.js +95 -119
- package/dist/esm/api/beta/redTeams/operations.js.map +1 -7
- package/dist/esm/api/beta/redTeams/options.js +4 -0
- package/dist/esm/api/beta/redTeams/options.js.map +1 -7
- package/dist/esm/api/beta/schedules/index.js +4 -9
- package/dist/esm/api/beta/schedules/index.js.map +1 -7
- package/dist/esm/api/beta/schedules/operations.js +204 -248
- package/dist/esm/api/beta/schedules/operations.js.map +1 -7
- package/dist/esm/api/beta/schedules/options.js +4 -0
- package/dist/esm/api/beta/schedules/options.js.map +1 -7
- package/dist/esm/api/connections/index.js +4 -6
- package/dist/esm/api/connections/index.js.map +1 -7
- package/dist/esm/api/connections/operations.js +109 -116
- package/dist/esm/api/connections/operations.js.map +1 -7
- package/dist/esm/api/connections/options.js +4 -0
- package/dist/esm/api/connections/options.js.map +1 -7
- package/dist/esm/api/datasets/index.js +4 -18
- package/dist/esm/api/datasets/index.js.map +1 -7
- package/dist/esm/api/datasets/operations.d.ts.map +1 -1
- package/dist/esm/api/datasets/operations.js +288 -355
- package/dist/esm/api/datasets/operations.js.map +1 -7
- package/dist/esm/api/datasets/options.js +4 -0
- package/dist/esm/api/datasets/options.js.map +1 -7
- package/dist/esm/api/deployments/index.js +4 -5
- package/dist/esm/api/deployments/index.js.map +1 -7
- package/dist/esm/api/deployments/operations.js +57 -70
- package/dist/esm/api/deployments/operations.js.map +1 -7
- package/dist/esm/api/deployments/options.js +4 -0
- package/dist/esm/api/deployments/options.js.map +1 -7
- package/dist/esm/api/evaluationRules/index.js +4 -7
- package/dist/esm/api/evaluationRules/index.js.map +1 -7
- package/dist/esm/api/evaluationRules/operations.js +121 -144
- package/dist/esm/api/evaluationRules/operations.js.map +1 -7
- package/dist/esm/api/evaluationRules/options.js +4 -0
- package/dist/esm/api/evaluationRules/options.js.map +1 -7
- package/dist/esm/api/index.js +4 -4
- package/dist/esm/api/index.js.map +1 -7
- package/dist/esm/api/indexes/index.js +4 -8
- package/dist/esm/api/indexes/index.js.map +1 -7
- package/dist/esm/api/indexes/operations.js +116 -161
- package/dist/esm/api/indexes/operations.js.map +1 -7
- package/dist/esm/api/indexes/options.js +4 -0
- package/dist/esm/api/indexes/options.js.map +1 -7
- package/dist/esm/api/telemetry/index.js +4 -4
- package/dist/esm/api/telemetry/index.js.map +1 -7
- package/dist/esm/api/telemetry/operations.js +53 -46
- package/dist/esm/api/telemetry/operations.js.map +1 -7
- package/dist/esm/classic/agents/index.js +40 -80
- package/dist/esm/classic/agents/index.js.map +1 -7
- package/dist/esm/classic/beta/evaluationTaxonomies/index.js +15 -21
- package/dist/esm/classic/beta/evaluationTaxonomies/index.js.map +1 -7
- package/dist/esm/classic/beta/evaluators/index.js +16 -23
- package/dist/esm/classic/beta/evaluators/index.js.map +1 -7
- package/dist/esm/classic/beta/index.js +18 -18
- package/dist/esm/classic/beta/index.js.map +1 -7
- package/dist/esm/classic/beta/insights/index.js +12 -12
- package/dist/esm/classic/beta/insights/index.js.map +1 -7
- package/dist/esm/classic/beta/memoryStores/index.js +19 -29
- package/dist/esm/classic/beta/memoryStores/index.js.map +1 -7
- package/dist/esm/classic/beta/redTeams/index.js +12 -12
- package/dist/esm/classic/beta/redTeams/index.js.map +1 -7
- package/dist/esm/classic/beta/schedules/index.js +16 -23
- package/dist/esm/classic/beta/schedules/index.js.map +1 -7
- package/dist/esm/classic/connections/index.js +13 -13
- package/dist/esm/classic/connections/index.js.map +1 -7
- package/dist/esm/classic/datasets/index.js +19 -29
- package/dist/esm/classic/datasets/index.js.map +1 -7
- package/dist/esm/classic/deployments/index.js +11 -11
- package/dist/esm/classic/deployments/index.js.map +1 -7
- package/dist/esm/classic/evaluationRules/index.js +13 -13
- package/dist/esm/classic/evaluationRules/index.js.map +1 -7
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -7
- package/dist/esm/classic/indexes/index.js +14 -14
- package/dist/esm/classic/indexes/index.js.map +1 -7
- package/dist/esm/classic/telemetry/index.js +7 -9
- package/dist/esm/classic/telemetry/index.js.map +1 -7
- package/dist/esm/constants.d.ts +1 -1
- package/dist/esm/constants.js +11 -6
- package/dist/esm/constants.js.map +1 -7
- package/dist/esm/getCustomFetch.js +40 -33
- package/dist/esm/getCustomFetch.js.map +1 -7
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -7
- package/dist/esm/logger.js +4 -4
- package/dist/esm/logger.js.map +1 -7
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/index.js.map +1 -7
- package/dist/esm/models/models.js +3709 -4160
- package/dist/esm/models/models.js.map +1 -7
- package/dist/esm/overwriteOpenAIClient.js +13 -13
- package/dist/esm/overwriteOpenAIClient.js.map +1 -7
- package/dist/esm/static-helpers/pagingHelpers.js +123 -99
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -7
- package/dist/esm/static-helpers/pollingHelpers.d.ts +11 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +99 -69
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -7
- package/dist/esm/static-helpers/serialization/serialize-record.js +18 -16
- package/dist/esm/static-helpers/serialization/serialize-record.js.map +1 -7
- package/dist/esm/static-helpers/urlTemplate.js +169 -142
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -7
- package/dist/esm/util.js +84 -63
- package/dist/esm/util.js.map +1 -7
- package/dist/react-native/api/aiProjectContext.d.ts.map +1 -1
- package/dist/react-native/api/aiProjectContext.js +2 -1
- package/dist/react-native/api/aiProjectContext.js.map +1 -1
- package/dist/react-native/api/beta/memoryStores/operations.d.ts.map +1 -1
- package/dist/react-native/api/beta/memoryStores/operations.js +11 -0
- package/dist/react-native/api/beta/memoryStores/operations.js.map +1 -1
- package/dist/react-native/api/datasets/operations.d.ts.map +1 -1
- package/dist/react-native/api/datasets/operations.js +9 -8
- package/dist/react-native/api/datasets/operations.js.map +1 -1
- package/dist/react-native/constants.d.ts +1 -1
- package/dist/react-native/constants.js +1 -1
- package/dist/react-native/constants.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +11 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js +21 -9
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/package.json +9 -9
|
@@ -1,163 +1,140 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
_pagedEvaluationRuleDeserializer
|
|
5
|
-
} from "../../models/models.js";
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { evaluationRuleSerializer, evaluationRuleDeserializer, _pagedEvaluationRuleDeserializer, } from "../../models/models.js";
|
|
6
4
|
import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
|
|
7
5
|
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
8
6
|
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
9
|
-
function _listSend(context, options = { requestOptions: {} }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
7
|
+
export function _listSend(context, options = { requestOptions: {} }) {
|
|
8
|
+
const path = expandUrlTemplate("/evaluationrules{?api-version,actionType,agentName,enabled}", {
|
|
9
|
+
"api-version": context.apiVersion ?? "v1",
|
|
10
|
+
actionType: options?.actionType,
|
|
11
|
+
agentName: options?.agentName,
|
|
12
|
+
enabled: options?.enabled,
|
|
13
|
+
}, {
|
|
14
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
15
|
+
});
|
|
16
|
+
return context.path(path).get({
|
|
17
|
+
...operationOptionsToRequestParameters(options),
|
|
18
|
+
headers: {
|
|
19
|
+
...(options?.foundryFeatures !== undefined
|
|
20
|
+
? { "foundry-features": options?.foundryFeatures }
|
|
21
|
+
: {}),
|
|
22
|
+
accept: "application/json",
|
|
23
|
+
...options.requestOptions?.headers,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export async function _listDeserialize(result) {
|
|
28
|
+
const expectedStatuses = ["200"];
|
|
29
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
30
|
+
throw createRestError(result);
|
|
28
31
|
}
|
|
29
|
-
|
|
32
|
+
return _pagedEvaluationRuleDeserializer(result.body);
|
|
30
33
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
/** List all evaluation rules. */
|
|
35
|
+
export function list(context, options = { requestOptions: {} }) {
|
|
36
|
+
return buildPagedAsyncIterator(context, () => _listSend(context, options), _listDeserialize, ["200"], {
|
|
37
|
+
itemName: "value",
|
|
38
|
+
nextLinkName: "nextLink",
|
|
39
|
+
apiVersion: context.apiVersion ?? "v1",
|
|
40
|
+
nextPageRequestOptions: {
|
|
41
|
+
headers: {
|
|
42
|
+
...(options?.foundryFeatures !== undefined
|
|
43
|
+
? { "foundry-features": options?.foundryFeatures }
|
|
44
|
+
: {}),
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
});
|
|
37
48
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
nextPageRequestOptions: {
|
|
49
|
+
export function _createOrUpdateSend(context, id, evaluationRule, options = { requestOptions: {} }) {
|
|
50
|
+
const path = expandUrlTemplate("/evaluationrules/{id}{?api-version}", {
|
|
51
|
+
id: id,
|
|
52
|
+
"api-version": context.apiVersion ?? "v1",
|
|
53
|
+
}, {
|
|
54
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
55
|
+
});
|
|
56
|
+
return context.path(path).put({
|
|
57
|
+
...operationOptionsToRequestParameters(options),
|
|
58
|
+
contentType: "application/json",
|
|
49
59
|
headers: {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
60
|
+
...(options?.foundryFeatures !== undefined
|
|
61
|
+
? { "foundry-features": options?.foundryFeatures }
|
|
62
|
+
: {}),
|
|
63
|
+
accept: "application/json",
|
|
64
|
+
...options.requestOptions?.headers,
|
|
65
|
+
},
|
|
66
|
+
body: evaluationRuleSerializer(evaluationRule),
|
|
67
|
+
});
|
|
55
68
|
}
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
id,
|
|
61
|
-
"api-version": context.apiVersion ?? "v1"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
69
|
+
export async function _createOrUpdateDeserialize(result) {
|
|
70
|
+
const expectedStatuses = ["201", "200"];
|
|
71
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
72
|
+
throw createRestError(result);
|
|
65
73
|
}
|
|
66
|
-
|
|
67
|
-
return context.path(path).put({
|
|
68
|
-
...operationOptionsToRequestParameters(options),
|
|
69
|
-
contentType: "application/json",
|
|
70
|
-
headers: {
|
|
71
|
-
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
72
|
-
accept: "application/json",
|
|
73
|
-
...options.requestOptions?.headers
|
|
74
|
-
},
|
|
75
|
-
body: evaluationRuleSerializer(evaluationRule)
|
|
76
|
-
});
|
|
74
|
+
return evaluationRuleDeserializer(result.body);
|
|
77
75
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
return evaluationRuleDeserializer(result.body);
|
|
76
|
+
/** Create or update an evaluation rule. */
|
|
77
|
+
export async function createOrUpdate(context, id, evaluationRule, options = { requestOptions: {} }) {
|
|
78
|
+
const result = await _createOrUpdateSend(context, id, evaluationRule, options);
|
|
79
|
+
return _createOrUpdateDeserialize(result);
|
|
84
80
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
export function _$deleteSend(context, id, options = { requestOptions: {} }) {
|
|
82
|
+
const path = expandUrlTemplate("/evaluationrules/{id}{?api-version}", {
|
|
83
|
+
id: id,
|
|
84
|
+
"api-version": context.apiVersion ?? "v1",
|
|
85
|
+
}, {
|
|
86
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
87
|
+
});
|
|
88
|
+
return context.path(path).delete({
|
|
89
|
+
...operationOptionsToRequestParameters(options),
|
|
90
|
+
headers: {
|
|
91
|
+
...(options?.foundryFeatures !== undefined
|
|
92
|
+
? { "foundry-features": options?.foundryFeatures }
|
|
93
|
+
: {}),
|
|
94
|
+
...options.requestOptions?.headers,
|
|
95
|
+
},
|
|
96
|
+
});
|
|
88
97
|
}
|
|
89
|
-
function _$
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
id,
|
|
94
|
-
"api-version": context.apiVersion ?? "v1"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
98
|
+
export async function _$deleteDeserialize(result) {
|
|
99
|
+
const expectedStatuses = ["204"];
|
|
100
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
101
|
+
throw createRestError(result);
|
|
98
102
|
}
|
|
99
|
-
|
|
100
|
-
return context.path(path).delete({
|
|
101
|
-
...operationOptionsToRequestParameters(options),
|
|
102
|
-
headers: {
|
|
103
|
-
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
104
|
-
...options.requestOptions?.headers
|
|
105
|
-
}
|
|
106
|
-
});
|
|
103
|
+
return;
|
|
107
104
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
return;
|
|
105
|
+
/** Delete an evaluation rule. */
|
|
106
|
+
export async function $delete(context, id, options = { requestOptions: {} }) {
|
|
107
|
+
const result = await _$deleteSend(context, id, options);
|
|
108
|
+
return _$deleteDeserialize(result);
|
|
114
109
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
110
|
+
export function _getSend(context, id, options = { requestOptions: {} }) {
|
|
111
|
+
const path = expandUrlTemplate("/evaluationrules/{id}{?api-version}", {
|
|
112
|
+
id: id,
|
|
113
|
+
"api-version": context.apiVersion ?? "v1",
|
|
114
|
+
}, {
|
|
115
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
116
|
+
});
|
|
117
|
+
return context.path(path).get({
|
|
118
|
+
...operationOptionsToRequestParameters(options),
|
|
119
|
+
headers: {
|
|
120
|
+
...(options?.foundryFeatures !== undefined
|
|
121
|
+
? { "foundry-features": options?.foundryFeatures }
|
|
122
|
+
: {}),
|
|
123
|
+
accept: "application/json",
|
|
124
|
+
...options.requestOptions?.headers,
|
|
125
|
+
},
|
|
126
|
+
});
|
|
118
127
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
id,
|
|
124
|
-
"api-version": context.apiVersion ?? "v1"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
128
|
+
export async function _getDeserialize(result) {
|
|
129
|
+
const expectedStatuses = ["200"];
|
|
130
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
131
|
+
throw createRestError(result);
|
|
128
132
|
}
|
|
129
|
-
|
|
130
|
-
return context.path(path).get({
|
|
131
|
-
...operationOptionsToRequestParameters(options),
|
|
132
|
-
headers: {
|
|
133
|
-
...options?.foundryFeatures !== void 0 ? { "foundry-features": options?.foundryFeatures } : {},
|
|
134
|
-
accept: "application/json",
|
|
135
|
-
...options.requestOptions?.headers
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
async function _getDeserialize(result) {
|
|
140
|
-
const expectedStatuses = ["200"];
|
|
141
|
-
if (!expectedStatuses.includes(result.status)) {
|
|
142
|
-
throw createRestError(result);
|
|
143
|
-
}
|
|
144
|
-
return evaluationRuleDeserializer(result.body);
|
|
133
|
+
return evaluationRuleDeserializer(result.body);
|
|
145
134
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
135
|
+
/** Get an evaluation rule. */
|
|
136
|
+
export async function get(context, id, options = { requestOptions: {} }) {
|
|
137
|
+
const result = await _getSend(context, id, options);
|
|
138
|
+
return _getDeserialize(result);
|
|
149
139
|
}
|
|
150
|
-
|
|
151
|
-
$delete,
|
|
152
|
-
_$deleteDeserialize,
|
|
153
|
-
_$deleteSend,
|
|
154
|
-
_createOrUpdateDeserialize,
|
|
155
|
-
_createOrUpdateSend,
|
|
156
|
-
_getDeserialize,
|
|
157
|
-
_getSend,
|
|
158
|
-
_listDeserialize,
|
|
159
|
-
_listSend,
|
|
160
|
-
createOrUpdate,
|
|
161
|
-
get,
|
|
162
|
-
list
|
|
163
|
-
};
|
|
140
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["/mnt/vss/_work/1/s/sdk/ai/ai-projects/src/api/evaluationRules/operations.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext as Client } from \"../index.js\";\nimport type { EvaluationRule, _PagedEvaluationRule } from \"../../models/models.js\";\nimport {\n evaluationRuleSerializer,\n evaluationRuleDeserializer,\n _pagedEvaluationRuleDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n EvaluationRulesListOptionalParams,\n EvaluationRulesCreateOrUpdateOptionalParams,\n EvaluationRulesDeleteOptionalParams,\n EvaluationRulesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: EvaluationRulesListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/evaluationrules{?api-version,actionType,agentName,enabled}\",\n {\n \"api-version\": context.apiVersion ?? \"v1\",\n actionType: options?.actionType,\n agentName: options?.agentName,\n enabled: options?.enabled,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.foundryFeatures !== undefined\n ? { \"foundry-features\": options?.foundryFeatures }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PagedEvaluationRule> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _pagedEvaluationRuleDeserializer(result.body);\n}\n\n/** List all evaluation rules. */\nexport function list(\n context: Client,\n options: EvaluationRulesListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<EvaluationRule> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"v1\",\n nextPageRequestOptions: {\n headers: {\n ...(options?.foundryFeatures !== undefined\n ? { \"foundry-features\": options?.foundryFeatures }\n : {}),\n },\n },\n },\n );\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n id: string,\n evaluationRule: EvaluationRule,\n options: EvaluationRulesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/evaluationrules/{id}{?api-version}\",\n {\n id: id,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n ...(options?.foundryFeatures !== undefined\n ? { \"foundry-features\": options?.foundryFeatures }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: evaluationRuleSerializer(evaluationRule),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EvaluationRule> {\n const expectedStatuses = [\"201\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return evaluationRuleDeserializer(result.body);\n}\n\n/** Create or update an evaluation rule. */\nexport async function createOrUpdate(\n context: Client,\n id: string,\n evaluationRule: EvaluationRule,\n options: EvaluationRulesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<EvaluationRule> {\n const result = await _createOrUpdateSend(context, id, evaluationRule, options);\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _$deleteSend(\n context: Client,\n id: string,\n options: EvaluationRulesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/evaluationrules/{id}{?api-version}\",\n {\n id: id,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.foundryFeatures !== undefined\n ? { \"foundry-features\": options?.foundryFeatures }\n : {}),\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete an evaluation rule. */\nexport async function $delete(\n context: Client,\n id: string,\n options: EvaluationRulesDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, id, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n id: string,\n options: EvaluationRulesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/evaluationrules/{id}{?api-version}\",\n {\n id: id,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.foundryFeatures !== undefined\n ? { \"foundry-features\": options?.foundryFeatures }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<EvaluationRule> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return evaluationRuleDeserializer(result.body);\n}\n\n/** Get an evaluation rule. */\nexport async function get(\n context: Client,\n id: string,\n options: EvaluationRulesGetOptionalParams = { requestOptions: {} },\n): Promise<EvaluationRule> {\n const result = await _getSend(context, id, options);\n return _getDeserialize(result);\n}\n"],
|
|
5
|
-
"mappings": "AAKA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,+BAA+B;AACxC,SAAS,yBAAyB;AAQlC,SAAS,iBAAiB,2CAA2C;AAE9D,SAAS,UACd,SACA,UAA6C,EAAE,gBAAgB,CAAC,EAAE,GAChD;AAClB,QAAM,OAAO;AAAA,IACX;AAAA,IACA;AAAA,MACE,eAAe,QAAQ,cAAc;AAAA,MACrC,YAAY,SAAS;AAAA,MACrB,WAAW,SAAS;AAAA,MACpB,SAAS,SAAS;AAAA,IACpB;AAAA,IACA;AAAA,MACE,eAAe,SAAS,gBAAgB;AAAA,IAC1C;AAAA,EACF;AACA,SAAO,QAAQ,KAAK,IAAI,EAAE,IAAI;AAAA,IAC5B,GAAG,oCAAoC,OAAO;AAAA,IAC9C,SAAS;AAAA,MACP,GAAI,SAAS,oBAAoB,SAC7B,EAAE,oBAAoB,SAAS,gBAAgB,IAC/C,CAAC;AAAA,MACL,QAAQ;AAAA,MACR,GAAG,QAAQ,gBAAgB;AAAA,IAC7B;AAAA,EACF,CAAC;AACH;AAEA,eAAsB,iBACpB,QAC+B;AAC/B,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAA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IAC9C,SAAS;AAAA,MACP,GAAI,SAAS,oBAAoB,SAC7B,EAAE,oBAAoB,SAAS,gBAAgB,IAC/C,CAAC;AAAA,MACL,QAAQ;AAAA,MACR,GAAG,QAAQ,gBAAgB;AAAA,IAC7B;AAAA,EACF,CAAC;AACH;AAEA,eAAsB,gBAAgB,QAAwD;AAC5F,QAAM,mBAAmB,CAAC,KAAK;AAC/B,MAAI,CAAC,iBAAiB,SAAS,OAAO,MAAM,GAAG;AAC7C,UAAM,gBAAgB,MAAM;AAAA,EAC9B;AAEA,SAAO,2BAA2B,OAAO,IAAI;AAC/C;AAGA,eAAsB,IACpB,SACA,IACA,UAA4C,EAAE,gBAAgB,CAAC,EAAE,GACxC;AACzB,QAAM,SAAS,MAAM,SAAS,SAAS,IAAI,OAAO;AAClD,SAAO,gBAAgB,MAAM;AAC/B;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/evaluationRules/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAQxE,OAAO,EAAE,eAAe,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAE/F,MAAM,UAAU,SAAS,CACvB,OAAe,EACf,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,6DAA6D,EAC7D;QACE,aAAa,EAAE,OAAO,CAAC,UAAU,IAAI,IAAI;QACzC,UAAU,EAAE,OAAO,EAAE,UAAU;QAC/B,SAAS,EAAE,OAAO,EAAE,SAAS;QAC7B,OAAO,EAAE,OAAO,EAAE,OAAO;KAC1B,E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E,OAAO,CAAC,CAAC;IACpD,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AIProjectContext as Client } from \"../index.js\";\nimport type { EvaluationRule, _PagedEvaluationRule } from \"../../models/models.js\";\nimport {\n evaluationRuleSerializer,\n evaluationRuleDeserializer,\n _pagedEvaluationRuleDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n EvaluationRulesListOptionalParams,\n EvaluationRulesCreateOrUpdateOptionalParams,\n EvaluationRulesDeleteOptionalParams,\n EvaluationRulesGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\n\nexport function _listSend(\n context: Client,\n options: EvaluationRulesListOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/evaluationrules{?api-version,actionType,agentName,enabled}\",\n {\n \"api-version\": context.apiVersion ?? \"v1\",\n actionType: options?.actionType,\n agentName: options?.agentName,\n enabled: options?.enabled,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.foundryFeatures !== undefined\n ? { \"foundry-features\": options?.foundryFeatures }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PagedEvaluationRule> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return _pagedEvaluationRuleDeserializer(result.body);\n}\n\n/** List all evaluation rules. */\nexport function list(\n context: Client,\n options: EvaluationRulesListOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<EvaluationRule> {\n return buildPagedAsyncIterator(\n context,\n () => _listSend(context, options),\n _listDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"v1\",\n nextPageRequestOptions: {\n headers: {\n ...(options?.foundryFeatures !== undefined\n ? { \"foundry-features\": options?.foundryFeatures }\n : {}),\n },\n },\n },\n );\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n id: string,\n evaluationRule: EvaluationRule,\n options: EvaluationRulesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/evaluationrules/{id}{?api-version}\",\n {\n id: id,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n ...(options?.foundryFeatures !== undefined\n ? { \"foundry-features\": options?.foundryFeatures }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: evaluationRuleSerializer(evaluationRule),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<EvaluationRule> {\n const expectedStatuses = [\"201\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return evaluationRuleDeserializer(result.body);\n}\n\n/** Create or update an evaluation rule. */\nexport async function createOrUpdate(\n context: Client,\n id: string,\n evaluationRule: EvaluationRule,\n options: EvaluationRulesCreateOrUpdateOptionalParams = { requestOptions: {} },\n): Promise<EvaluationRule> {\n const result = await _createOrUpdateSend(context, id, evaluationRule, options);\n return _createOrUpdateDeserialize(result);\n}\n\nexport function _$deleteSend(\n context: Client,\n id: string,\n options: EvaluationRulesDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/evaluationrules/{id}{?api-version}\",\n {\n id: id,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.foundryFeatures !== undefined\n ? { \"foundry-features\": options?.foundryFeatures }\n : {}),\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"204\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return;\n}\n\n/** Delete an evaluation rule. */\nexport async function $delete(\n context: Client,\n id: string,\n options: EvaluationRulesDeleteOptionalParams = { requestOptions: {} },\n): Promise<void> {\n const result = await _$deleteSend(context, id, options);\n return _$deleteDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n id: string,\n options: EvaluationRulesGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/evaluationrules/{id}{?api-version}\",\n {\n id: id,\n \"api-version\": context.apiVersion ?? \"v1\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n ...(options?.foundryFeatures !== undefined\n ? { \"foundry-features\": options?.foundryFeatures }\n : {}),\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<EvaluationRule> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n throw createRestError(result);\n }\n\n return evaluationRuleDeserializer(result.body);\n}\n\n/** Get an evaluation rule. */\nexport async function get(\n context: Client,\n id: string,\n options: EvaluationRulesGetOptionalParams = { requestOptions: {} },\n): Promise<EvaluationRule> {\n const result = await _getSend(context, id, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": [],
|
|
4
|
-
"sourcesContent": [],
|
|
5
|
-
"mappings": "",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/evaluationRules/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { EvaluationRuleActionType } from \"../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface EvaluationRulesListOptionalParams extends OperationOptions {\n /** Filter by the type of evaluation rule. */\n actionType?: EvaluationRuleActionType;\n /** Filter by the agent name. */\n agentName?: string;\n /** Filter by the enabled status. */\n enabled?: boolean;\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Evaluations=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface EvaluationRulesCreateOrUpdateOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Evaluations=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface EvaluationRulesDeleteOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Evaluations=V1Preview\";\n}\n\n/** Optional parameters. */\nexport interface EvaluationRulesGetOptionalParams extends OperationOptions {\n /** A feature flag opt-in required when using preview operations or modifying persisted preview resources. */\n foundryFeatures?: \"Evaluations=V1Preview\";\n}\n"]}
|
package/dist/esm/api/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export { createAIProject } from "./aiProjectContext.js";
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["/mnt/vss/_work/1/s/sdk/ai/ai-projects/src/api/index.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\nimport type { AIProjectClientOptionalParams } from \"./aiProjectContext.js\";\nexport { createAIProject, type AIProjectContext } from \"./aiProjectContext.js\";\n\nexport type { AIProjectClientOptionalParams };\n\n/** Options for uploading datasets */\nexport interface DatasetUploadOptions extends OperationOptions {\n /** The name of an Azure Storage Account connection, where the file should be uploaded. If not specified, the default Azure Storage Account connection will be used. */\n connectionName?: string;\n /** Only for folder uploads. A regex pattern to filter files to be uploaded. Only files matching the pattern will be uploaded. If not specified, all files will be uploaded. */\n filePattern?: string;\n}\n\n/**\n * @internal\n * Options for dataset upload operations that are internal and may not be exposed to all users\n */\nexport interface DatasetUploadInternalOptions extends DatasetUploadOptions {\n projectOptions?: AIProjectClientOptionalParams;\n}\n"],
|
|
5
|
-
"mappings": "AAKA,SAAS,uBAA8C;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,eAAe,EAAyB,MAAM,uBAAuB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { OperationOptions } from \"@azure-rest/core-client\";\nimport type { AIProjectClientOptionalParams } from \"./aiProjectContext.js\";\nexport { createAIProject, type AIProjectContext } from \"./aiProjectContext.js\";\n\nexport type { AIProjectClientOptionalParams };\n\n/** Options for uploading datasets */\nexport interface DatasetUploadOptions extends OperationOptions {\n /** The name of an Azure Storage Account connection, where the file should be uploaded. If not specified, the default Azure Storage Account connection will be used. */\n connectionName?: string;\n /** Only for folder uploads. A regex pattern to filter files to be uploaded. Only files matching the pattern will be uploaded. If not specified, all files will be uploaded. */\n filePattern?: string;\n}\n\n/**\n * @internal\n * Options for dataset upload operations that are internal and may not be exposed to all users\n */\nexport interface DatasetUploadInternalOptions extends DatasetUploadOptions {\n projectOptions?: AIProjectClientOptionalParams;\n}\n"]}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
get,
|
|
6
|
-
list,
|
|
7
|
-
listVersions
|
|
8
|
-
};
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export { createOrUpdate, $delete, get, list, listVersions } from "./operations.js";
|
|
4
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["/mnt/vss/_work/1/s/sdk/ai/ai-projects/src/api/indexes/index.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { createOrUpdate, $delete, get, list, listVersions } from \"./operations.js\";\nexport type {\n IndexesCreateOrUpdateOptionalParams,\n IndexesDeleteOptionalParams,\n IndexesGetOptionalParams,\n IndexesListOptionalParams,\n IndexesListVersionsOptionalParams,\n} from \"./options.js\";\n"],
|
|
5
|
-
"mappings": "AAGA,SAAS,gBAAgB,SAAS,KAAK,MAAM,oBAAoB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/indexes/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport { createOrUpdate, $delete, get, list, listVersions } from \"./operations.js\";\nexport type {\n IndexesCreateOrUpdateOptionalParams,\n IndexesDeleteOptionalParams,\n IndexesGetOptionalParams,\n IndexesListOptionalParams,\n IndexesListVersionsOptionalParams,\n} from \"./options.js\";\n"]}
|