@targetprocess/shared-data-model-client 1.38.0 → 1.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mcp/index.d.ts +6 -1
- package/dist/mcp/index.js +7 -2
- package/dist/mcp/tools/index.d.ts +2 -2
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/query_entities/index.d.ts +8 -8
- package/dist/mcp/tools/query_entities/index.js +3 -5
- package/dist/mcp/userContext/index.d.ts +21 -0
- package/dist/mcp/userContext/index.js +23 -0
- package/dist/mcp/userContext/item/index.d.ts +26 -0
- package/dist/mcp/userContext/item/index.js +21 -0
- package/dist/models/index.d.ts +30 -1
- package/dist/models/index.js +43 -0
- package/package.json +1 -1
- package/src/kiota-lock.json +1 -1
- package/src/mcp/index.ts +10 -1
- package/src/mcp/tools/index.ts +2 -2
- package/src/mcp/tools/query_entities/index.ts +10 -10
- package/src/mcp/userContext/index.ts +34 -0
- package/src/mcp/userContext/item/index.ts +41 -0
- package/src/models/index.ts +44 -1
- package/src/v1.json +88 -9
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ToolsRequestBuilder } from './tools/index.js';
|
|
2
|
+
import { type UserContextRequestBuilder } from './userContext/index.js';
|
|
2
3
|
import { type WellKnownRequestBuilder } from './wellKnown/index.js';
|
|
3
4
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
4
5
|
/**
|
|
@@ -6,9 +7,13 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
|
|
|
6
7
|
*/
|
|
7
8
|
export interface McpRequestBuilder extends BaseRequestBuilder<McpRequestBuilder> {
|
|
8
9
|
/**
|
|
9
|
-
* The
|
|
10
|
+
* The tools property
|
|
10
11
|
*/
|
|
11
12
|
get tools(): ToolsRequestBuilder;
|
|
13
|
+
/**
|
|
14
|
+
* The userContext property
|
|
15
|
+
*/
|
|
16
|
+
get userContext(): UserContextRequestBuilder;
|
|
12
17
|
/**
|
|
13
18
|
* The wellKnown property
|
|
14
19
|
*/
|
package/dist/mcp/index.js
CHANGED
|
@@ -7,7 +7,9 @@ exports.McpRequestBuilderNavigationMetadata = exports.McpRequestBuilderUriTempla
|
|
|
7
7
|
// @ts-ignore
|
|
8
8
|
const index_js_1 = require("./tools/index.js");
|
|
9
9
|
// @ts-ignore
|
|
10
|
-
const index_js_2 = require("./
|
|
10
|
+
const index_js_2 = require("./userContext/index.js");
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
const index_js_3 = require("./wellKnown/index.js");
|
|
11
13
|
/**
|
|
12
14
|
* Uri template for the request builder.
|
|
13
15
|
*/
|
|
@@ -19,8 +21,11 @@ exports.McpRequestBuilderNavigationMetadata = {
|
|
|
19
21
|
tools: {
|
|
20
22
|
navigationMetadata: index_js_1.ToolsRequestBuilderNavigationMetadata,
|
|
21
23
|
},
|
|
24
|
+
userContext: {
|
|
25
|
+
navigationMetadata: index_js_2.UserContextRequestBuilderNavigationMetadata,
|
|
26
|
+
},
|
|
22
27
|
wellKnown: {
|
|
23
|
-
navigationMetadata:
|
|
28
|
+
navigationMetadata: index_js_3.WellKnownRequestBuilderNavigationMetadata,
|
|
24
29
|
},
|
|
25
30
|
};
|
|
26
31
|
/* tslint:enable */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Query_entitiesRequestBuilder } from './query_entities/index.js';
|
|
2
2
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
3
3
|
/**
|
|
4
|
-
* Builds and executes requests for operations under /mcp
|
|
4
|
+
* Builds and executes requests for operations under /mcp/_tools
|
|
5
5
|
*/
|
|
6
6
|
export interface ToolsRequestBuilder extends BaseRequestBuilder<ToolsRequestBuilder> {
|
|
7
7
|
/**
|
|
@@ -12,7 +12,7 @@ export interface ToolsRequestBuilder extends BaseRequestBuilder<ToolsRequestBuil
|
|
|
12
12
|
/**
|
|
13
13
|
* Uri template for the request builder.
|
|
14
14
|
*/
|
|
15
|
-
export declare const ToolsRequestBuilderUriTemplate = "{+baseurl}/mcp
|
|
15
|
+
export declare const ToolsRequestBuilderUriTemplate = "{+baseurl}/mcp/_tools";
|
|
16
16
|
/**
|
|
17
17
|
* Metadata for all the navigation properties in the request builder.
|
|
18
18
|
*/
|
package/dist/mcp/tools/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const index_js_1 = require("./query_entities/index.js");
|
|
|
9
9
|
/**
|
|
10
10
|
* Uri template for the request builder.
|
|
11
11
|
*/
|
|
12
|
-
exports.ToolsRequestBuilderUriTemplate = "{+baseurl}/mcp
|
|
12
|
+
exports.ToolsRequestBuilderUriTemplate = "{+baseurl}/mcp/_tools";
|
|
13
13
|
/**
|
|
14
14
|
* Metadata for all the navigation properties in the request builder.
|
|
15
15
|
*/
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { type TpEntityRequest } from '../../../models/index.js';
|
|
2
|
-
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata
|
|
1
|
+
import { type TpEntityRequest, type TpQueryResponseOfJsonElement } from '../../../models/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
3
3
|
/**
|
|
4
|
-
* Builds and executes requests for operations under /mcp
|
|
4
|
+
* Builds and executes requests for operations under /mcp/_tools/query_entities
|
|
5
5
|
*/
|
|
6
6
|
export interface Query_entitiesRequestBuilder extends BaseRequestBuilder<Query_entitiesRequestBuilder> {
|
|
7
7
|
/**
|
|
8
8
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
|
-
* @returns {Promise<
|
|
9
|
+
* @returns {Promise<TpQueryResponseOfJsonElement>}
|
|
10
10
|
*/
|
|
11
|
-
get(requestConfiguration?: RequestConfiguration<Query_entitiesRequestBuilderGetQueryParameters> | undefined): Promise<
|
|
11
|
+
get(requestConfiguration?: RequestConfiguration<Query_entitiesRequestBuilderGetQueryParameters> | undefined): Promise<TpQueryResponseOfJsonElement | undefined>;
|
|
12
12
|
/**
|
|
13
13
|
* @param body The request body
|
|
14
14
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
15
|
-
* @returns {Promise<
|
|
15
|
+
* @returns {Promise<TpQueryResponseOfJsonElement>}
|
|
16
16
|
*/
|
|
17
|
-
post(body: TpEntityRequest, requestConfiguration?: RequestConfiguration<Query_entitiesRequestBuilderPostQueryParameters> | undefined): Promise<
|
|
17
|
+
post(body: TpEntityRequest, requestConfiguration?: RequestConfiguration<Query_entitiesRequestBuilderPostQueryParameters> | undefined): Promise<TpQueryResponseOfJsonElement | undefined>;
|
|
18
18
|
/**
|
|
19
19
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
20
20
|
* @returns {RequestInformation}
|
|
@@ -43,7 +43,7 @@ export interface Query_entitiesRequestBuilderPostQueryParameters {
|
|
|
43
43
|
/**
|
|
44
44
|
* Uri template for the request builder.
|
|
45
45
|
*/
|
|
46
|
-
export declare const Query_entitiesRequestBuilderUriTemplate = "{+baseurl}/mcp
|
|
46
|
+
export declare const Query_entitiesRequestBuilderUriTemplate = "{+baseurl}/mcp/_tools/query_entities?entityType={entityType}{&disableValidation*,filter*,orderBy*,result*,select*,skip*,take*}";
|
|
47
47
|
/**
|
|
48
48
|
* Metadata for all the requests in the request builder.
|
|
49
49
|
*/
|
|
@@ -6,12 +6,10 @@ exports.Query_entitiesRequestBuilderRequestsMetadata = exports.Query_entitiesReq
|
|
|
6
6
|
// Generated by Microsoft Kiota
|
|
7
7
|
// @ts-ignore
|
|
8
8
|
const index_js_1 = require("../../../models/index.js");
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
|
|
11
9
|
/**
|
|
12
10
|
* Uri template for the request builder.
|
|
13
11
|
*/
|
|
14
|
-
exports.Query_entitiesRequestBuilderUriTemplate = "{+baseurl}/mcp
|
|
12
|
+
exports.Query_entitiesRequestBuilderUriTemplate = "{+baseurl}/mcp/_tools/query_entities?entityType={entityType}{&disableValidation*,filter*,orderBy*,result*,select*,skip*,take*}";
|
|
15
13
|
/**
|
|
16
14
|
* Metadata for all the requests in the request builder.
|
|
17
15
|
*/
|
|
@@ -20,13 +18,13 @@ exports.Query_entitiesRequestBuilderRequestsMetadata = {
|
|
|
20
18
|
uriTemplate: exports.Query_entitiesRequestBuilderUriTemplate,
|
|
21
19
|
responseBodyContentType: "application/json",
|
|
22
20
|
adapterMethodName: "send",
|
|
23
|
-
responseBodyFactory:
|
|
21
|
+
responseBodyFactory: index_js_1.createTpQueryResponseOfJsonElementFromDiscriminatorValue,
|
|
24
22
|
},
|
|
25
23
|
post: {
|
|
26
24
|
uriTemplate: exports.Query_entitiesRequestBuilderUriTemplate,
|
|
27
25
|
responseBodyContentType: "application/json",
|
|
28
26
|
adapterMethodName: "send",
|
|
29
|
-
responseBodyFactory:
|
|
27
|
+
responseBodyFactory: index_js_1.createTpQueryResponseOfJsonElementFromDiscriminatorValue,
|
|
30
28
|
requestBodyContentType: "application/json",
|
|
31
29
|
requestBodySerializer: index_js_1.serializeTpEntityRequest,
|
|
32
30
|
requestInformationContentSetMethod: "setContentFromParsable",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type WithNameItemRequestBuilder } from './item/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /mcp/_userContext
|
|
5
|
+
*/
|
|
6
|
+
export interface UserContextRequestBuilder extends BaseRequestBuilder<UserContextRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* Gets an item from the Tp.mcp.userContext.item collection
|
|
9
|
+
* @param name Unique identifier of the item
|
|
10
|
+
* @returns {WithNameItemRequestBuilder}
|
|
11
|
+
*/
|
|
12
|
+
byName(name: string): WithNameItemRequestBuilder;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Uri template for the request builder.
|
|
16
|
+
*/
|
|
17
|
+
export declare const UserContextRequestBuilderUriTemplate = "{+baseurl}/mcp/_userContext";
|
|
18
|
+
/**
|
|
19
|
+
* Metadata for all the navigation properties in the request builder.
|
|
20
|
+
*/
|
|
21
|
+
export declare const UserContextRequestBuilderNavigationMetadata: Record<Exclude<keyof UserContextRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserContextRequestBuilderNavigationMetadata = exports.UserContextRequestBuilderUriTemplate = void 0;
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
// Generated by Microsoft Kiota
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
const index_js_1 = require("./item/index.js");
|
|
9
|
+
/**
|
|
10
|
+
* Uri template for the request builder.
|
|
11
|
+
*/
|
|
12
|
+
exports.UserContextRequestBuilderUriTemplate = "{+baseurl}/mcp/_userContext";
|
|
13
|
+
/**
|
|
14
|
+
* Metadata for all the navigation properties in the request builder.
|
|
15
|
+
*/
|
|
16
|
+
exports.UserContextRequestBuilderNavigationMetadata = {
|
|
17
|
+
byName: {
|
|
18
|
+
requestsMetadata: index_js_1.WithNameItemRequestBuilderRequestsMetadata,
|
|
19
|
+
pathParametersMappings: ["name"],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
/* tslint:enable */
|
|
23
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
|
|
2
|
+
/**
|
|
3
|
+
* Builds and executes requests for operations under /mcp/_userContext/{name}
|
|
4
|
+
*/
|
|
5
|
+
export interface WithNameItemRequestBuilder extends BaseRequestBuilder<WithNameItemRequestBuilder> {
|
|
6
|
+
/**
|
|
7
|
+
* @param body The request body
|
|
8
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
9
|
+
* @returns {Promise<ArrayBuffer>}
|
|
10
|
+
*/
|
|
11
|
+
post(body: UntypedNode, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ArrayBuffer | undefined>;
|
|
12
|
+
/**
|
|
13
|
+
* @param body The request body
|
|
14
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
15
|
+
* @returns {RequestInformation}
|
|
16
|
+
*/
|
|
17
|
+
toPostRequestInformation(body: UntypedNode, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Uri template for the request builder.
|
|
21
|
+
*/
|
|
22
|
+
export declare const WithNameItemRequestBuilderUriTemplate = "{+baseurl}/mcp/_userContext/{name}";
|
|
23
|
+
/**
|
|
24
|
+
* Metadata for all the requests in the request builder.
|
|
25
|
+
*/
|
|
26
|
+
export declare const WithNameItemRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WithNameItemRequestBuilderRequestsMetadata = exports.WithNameItemRequestBuilderUriTemplate = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Uri template for the request builder.
|
|
6
|
+
*/
|
|
7
|
+
exports.WithNameItemRequestBuilderUriTemplate = "{+baseurl}/mcp/_userContext/{name}";
|
|
8
|
+
/**
|
|
9
|
+
* Metadata for all the requests in the request builder.
|
|
10
|
+
*/
|
|
11
|
+
exports.WithNameItemRequestBuilderRequestsMetadata = {
|
|
12
|
+
post: {
|
|
13
|
+
uriTemplate: exports.WithNameItemRequestBuilderUriTemplate,
|
|
14
|
+
adapterMethodName: "sendPrimitive",
|
|
15
|
+
responseBodyFactory: "ArrayBuffer",
|
|
16
|
+
requestBodyContentType: "application/json",
|
|
17
|
+
requestInformationContentSetMethod: "setContentFromScalar",
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
/* tslint:enable */
|
|
21
|
+
/* eslint-enable */
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
1
|
+
import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter, type UntypedNode } from '@microsoft/kiota-abstractions';
|
|
2
2
|
export interface CopyCurrentProfileRequestDto extends Parsable {
|
|
3
3
|
/**
|
|
4
4
|
* The profileName property
|
|
@@ -131,6 +131,12 @@ export declare function createTpEntityRequestFromDiscriminatorValue(parseNode: P
|
|
|
131
131
|
* @returns {TpFieldDefDto}
|
|
132
132
|
*/
|
|
133
133
|
export declare function createTpFieldDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
134
|
+
/**
|
|
135
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
136
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
137
|
+
* @returns {TpQueryResponseOfJsonElement}
|
|
138
|
+
*/
|
|
139
|
+
export declare function createTpQueryResponseOfJsonElementFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
134
140
|
/**
|
|
135
141
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
136
142
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -299,6 +305,12 @@ export declare function deserializeIntoTpEntityRequest(tpEntityRequest?: Partial
|
|
|
299
305
|
* @returns {Record<string, (node: ParseNode) => void>}
|
|
300
306
|
*/
|
|
301
307
|
export declare function deserializeIntoTpFieldDefDto(tpFieldDefDto?: Partial<TpFieldDefDto> | undefined): Record<string, (node: ParseNode) => void>;
|
|
308
|
+
/**
|
|
309
|
+
* The deserialization information for the current model
|
|
310
|
+
* @param TpQueryResponseOfJsonElement The instance to deserialize into.
|
|
311
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
312
|
+
*/
|
|
313
|
+
export declare function deserializeIntoTpQueryResponseOfJsonElement(tpQueryResponseOfJsonElement?: Partial<TpQueryResponseOfJsonElement> | undefined): Record<string, (node: ParseNode) => void>;
|
|
302
314
|
/**
|
|
303
315
|
* The deserialization information for the current model
|
|
304
316
|
* @param TpTypeDefDto The instance to deserialize into.
|
|
@@ -640,6 +652,13 @@ export declare function serializeTpEntityRequest(writer: SerializationWriter, tp
|
|
|
640
652
|
* @param writer Serialization writer to use to serialize this model
|
|
641
653
|
*/
|
|
642
654
|
export declare function serializeTpFieldDefDto(writer: SerializationWriter, tpFieldDefDto?: Partial<TpFieldDefDto> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
655
|
+
/**
|
|
656
|
+
* Serializes information the current object
|
|
657
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
658
|
+
* @param TpQueryResponseOfJsonElement The instance to serialize from.
|
|
659
|
+
* @param writer Serialization writer to use to serialize this model
|
|
660
|
+
*/
|
|
661
|
+
export declare function serializeTpQueryResponseOfJsonElement(writer: SerializationWriter, tpQueryResponseOfJsonElement?: Partial<TpQueryResponseOfJsonElement> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
643
662
|
/**
|
|
644
663
|
* Serializes information the current object
|
|
645
664
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -788,6 +807,16 @@ export interface TpFieldDefDto extends AdditionalDataHolder, FieldDefDto, Parsab
|
|
|
788
807
|
*/
|
|
789
808
|
referenceExpression?: string | null;
|
|
790
809
|
}
|
|
810
|
+
export interface TpQueryResponseOfJsonElement extends Parsable {
|
|
811
|
+
/**
|
|
812
|
+
* The hasMore property
|
|
813
|
+
*/
|
|
814
|
+
hasMore?: boolean | null;
|
|
815
|
+
/**
|
|
816
|
+
* The items property
|
|
817
|
+
*/
|
|
818
|
+
items?: UntypedNode | null;
|
|
819
|
+
}
|
|
791
820
|
export interface TpTypeDefDto extends Parsable {
|
|
792
821
|
/**
|
|
793
822
|
* The id property
|
package/dist/models/index.js
CHANGED
|
@@ -22,6 +22,7 @@ exports.createSharedDataDeleteDtoFromDiscriminatorValue = createSharedDataDelete
|
|
|
22
22
|
exports.createTestTypeMappingDtoFromDiscriminatorValue = createTestTypeMappingDtoFromDiscriminatorValue;
|
|
23
23
|
exports.createTpEntityRequestFromDiscriminatorValue = createTpEntityRequestFromDiscriminatorValue;
|
|
24
24
|
exports.createTpFieldDefDtoFromDiscriminatorValue = createTpFieldDefDtoFromDiscriminatorValue;
|
|
25
|
+
exports.createTpQueryResponseOfJsonElementFromDiscriminatorValue = createTpQueryResponseOfJsonElementFromDiscriminatorValue;
|
|
25
26
|
exports.createTpTypeDefDtoFromDiscriminatorValue = createTpTypeDefDtoFromDiscriminatorValue;
|
|
26
27
|
exports.createTypeMappingDtoFromDiscriminatorValue = createTypeMappingDtoFromDiscriminatorValue;
|
|
27
28
|
exports.createTypeMetaDefDtoFromDiscriminatorValue = createTypeMetaDefDtoFromDiscriminatorValue;
|
|
@@ -49,6 +50,7 @@ exports.deserializeIntoSharedDataDeleteDto = deserializeIntoSharedDataDeleteDto;
|
|
|
49
50
|
exports.deserializeIntoTestTypeMappingDto = deserializeIntoTestTypeMappingDto;
|
|
50
51
|
exports.deserializeIntoTpEntityRequest = deserializeIntoTpEntityRequest;
|
|
51
52
|
exports.deserializeIntoTpFieldDefDto = deserializeIntoTpFieldDefDto;
|
|
53
|
+
exports.deserializeIntoTpQueryResponseOfJsonElement = deserializeIntoTpQueryResponseOfJsonElement;
|
|
52
54
|
exports.deserializeIntoTpTypeDefDto = deserializeIntoTpTypeDefDto;
|
|
53
55
|
exports.deserializeIntoTypeMappingDto = deserializeIntoTypeMappingDto;
|
|
54
56
|
exports.deserializeIntoTypeMetaDefDto = deserializeIntoTypeMetaDefDto;
|
|
@@ -76,12 +78,18 @@ exports.serializeSharedDataDeleteDto = serializeSharedDataDeleteDto;
|
|
|
76
78
|
exports.serializeTestTypeMappingDto = serializeTestTypeMappingDto;
|
|
77
79
|
exports.serializeTpEntityRequest = serializeTpEntityRequest;
|
|
78
80
|
exports.serializeTpFieldDefDto = serializeTpFieldDefDto;
|
|
81
|
+
exports.serializeTpQueryResponseOfJsonElement = serializeTpQueryResponseOfJsonElement;
|
|
79
82
|
exports.serializeTpTypeDefDto = serializeTpTypeDefDto;
|
|
80
83
|
exports.serializeTypeMappingDto = serializeTypeMappingDto;
|
|
81
84
|
exports.serializeTypeMetaDefDto = serializeTypeMetaDefDto;
|
|
82
85
|
exports.serializeValidatedFieldMappingDto = serializeValidatedFieldMappingDto;
|
|
83
86
|
exports.serializeValidatedProfileDto = serializeValidatedProfileDto;
|
|
84
87
|
exports.serializeValidatedTypeMappingDto = serializeValidatedTypeMappingDto;
|
|
88
|
+
/* tslint:disable */
|
|
89
|
+
/* eslint-disable */
|
|
90
|
+
// Generated by Microsoft Kiota
|
|
91
|
+
// @ts-ignore
|
|
92
|
+
const kiota_abstractions_1 = require("@microsoft/kiota-abstractions");
|
|
85
93
|
/**
|
|
86
94
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
87
95
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -295,6 +303,15 @@ function createTpEntityRequestFromDiscriminatorValue(parseNode) {
|
|
|
295
303
|
function createTpFieldDefDtoFromDiscriminatorValue(parseNode) {
|
|
296
304
|
return deserializeIntoTpFieldDefDto;
|
|
297
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
308
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
309
|
+
* @returns {TpQueryResponseOfJsonElement}
|
|
310
|
+
*/
|
|
311
|
+
// @ts-ignore
|
|
312
|
+
function createTpQueryResponseOfJsonElementFromDiscriminatorValue(parseNode) {
|
|
313
|
+
return deserializeIntoTpQueryResponseOfJsonElement;
|
|
314
|
+
}
|
|
298
315
|
/**
|
|
299
316
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
300
317
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -631,6 +648,18 @@ function deserializeIntoTpFieldDefDto(tpFieldDefDto = {}) {
|
|
|
631
648
|
"referenceExpression": n => { tpFieldDefDto.referenceExpression = n.getStringValue(); },
|
|
632
649
|
};
|
|
633
650
|
}
|
|
651
|
+
/**
|
|
652
|
+
* The deserialization information for the current model
|
|
653
|
+
* @param TpQueryResponseOfJsonElement The instance to deserialize into.
|
|
654
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
655
|
+
*/
|
|
656
|
+
// @ts-ignore
|
|
657
|
+
function deserializeIntoTpQueryResponseOfJsonElement(tpQueryResponseOfJsonElement = {}) {
|
|
658
|
+
return {
|
|
659
|
+
"hasMore": n => { tpQueryResponseOfJsonElement.hasMore = n.getBooleanValue(); },
|
|
660
|
+
"items": n => { tpQueryResponseOfJsonElement.items = n.getObjectValue(kiota_abstractions_1.createUntypedNodeFromDiscriminatorValue); },
|
|
661
|
+
};
|
|
662
|
+
}
|
|
634
663
|
/**
|
|
635
664
|
* The deserialization information for the current model
|
|
636
665
|
* @param TpTypeDefDto The instance to deserialize into.
|
|
@@ -1041,6 +1070,20 @@ function serializeTpFieldDefDto(writer, tpFieldDefDto = {}, isSerializingDerived
|
|
|
1041
1070
|
writer.writeStringValue("referenceExpression", tpFieldDefDto.referenceExpression);
|
|
1042
1071
|
writer.writeAdditionalData(tpFieldDefDto.additionalData);
|
|
1043
1072
|
}
|
|
1073
|
+
/**
|
|
1074
|
+
* Serializes information the current object
|
|
1075
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1076
|
+
* @param TpQueryResponseOfJsonElement The instance to serialize from.
|
|
1077
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1078
|
+
*/
|
|
1079
|
+
// @ts-ignore
|
|
1080
|
+
function serializeTpQueryResponseOfJsonElement(writer, tpQueryResponseOfJsonElement = {}, isSerializingDerivedType = false) {
|
|
1081
|
+
if (!tpQueryResponseOfJsonElement || isSerializingDerivedType) {
|
|
1082
|
+
return;
|
|
1083
|
+
}
|
|
1084
|
+
writer.writeBooleanValue("hasMore", tpQueryResponseOfJsonElement.hasMore);
|
|
1085
|
+
writer.writeObjectValue("items", tpQueryResponseOfJsonElement.items);
|
|
1086
|
+
}
|
|
1044
1087
|
/**
|
|
1045
1088
|
* Serializes information the current object
|
|
1046
1089
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
package/package.json
CHANGED
package/src/kiota-lock.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"descriptionHash": "
|
|
2
|
+
"descriptionHash": "B35413759B044CC465091970A941FE244BC80EF2757F4D89A9882EE12F0D3068162FF4C9B181FD7F47FC026220ED49139D8862BB9136FBE86B1DAD4DC69C2383",
|
|
3
3
|
"descriptionLocation": "v1.json",
|
|
4
4
|
"lockFileVersion": "1.0.0",
|
|
5
5
|
"kiotaVersion": "1.30.0",
|
package/src/mcp/index.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
import { ToolsRequestBuilderNavigationMetadata, type ToolsRequestBuilder } from './tools/index.js';
|
|
6
6
|
// @ts-ignore
|
|
7
|
+
import { type UserContextRequestBuilder, UserContextRequestBuilderNavigationMetadata } from './userContext/index.js';
|
|
8
|
+
// @ts-ignore
|
|
7
9
|
import { type WellKnownRequestBuilder, WellKnownRequestBuilderNavigationMetadata } from './wellKnown/index.js';
|
|
8
10
|
// @ts-ignore
|
|
9
11
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
@@ -13,9 +15,13 @@ import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type
|
|
|
13
15
|
*/
|
|
14
16
|
export interface McpRequestBuilder extends BaseRequestBuilder<McpRequestBuilder> {
|
|
15
17
|
/**
|
|
16
|
-
* The
|
|
18
|
+
* The tools property
|
|
17
19
|
*/
|
|
18
20
|
get tools(): ToolsRequestBuilder;
|
|
21
|
+
/**
|
|
22
|
+
* The userContext property
|
|
23
|
+
*/
|
|
24
|
+
get userContext(): UserContextRequestBuilder;
|
|
19
25
|
/**
|
|
20
26
|
* The wellKnown property
|
|
21
27
|
*/
|
|
@@ -32,6 +38,9 @@ export const McpRequestBuilderNavigationMetadata: Record<Exclude<keyof McpReques
|
|
|
32
38
|
tools: {
|
|
33
39
|
navigationMetadata: ToolsRequestBuilderNavigationMetadata,
|
|
34
40
|
},
|
|
41
|
+
userContext: {
|
|
42
|
+
navigationMetadata: UserContextRequestBuilderNavigationMetadata,
|
|
43
|
+
},
|
|
35
44
|
wellKnown: {
|
|
36
45
|
navigationMetadata: WellKnownRequestBuilderNavigationMetadata,
|
|
37
46
|
},
|
package/src/mcp/tools/index.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { Query_entitiesRequestBuilderRequestsMetadata, type Query_entitiesReques
|
|
|
7
7
|
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Builds and executes requests for operations under /mcp
|
|
10
|
+
* Builds and executes requests for operations under /mcp/_tools
|
|
11
11
|
*/
|
|
12
12
|
export interface ToolsRequestBuilder extends BaseRequestBuilder<ToolsRequestBuilder> {
|
|
13
13
|
/**
|
|
@@ -18,7 +18,7 @@ export interface ToolsRequestBuilder extends BaseRequestBuilder<ToolsRequestBuil
|
|
|
18
18
|
/**
|
|
19
19
|
* Uri template for the request builder.
|
|
20
20
|
*/
|
|
21
|
-
export const ToolsRequestBuilderUriTemplate = "{+baseurl}/mcp
|
|
21
|
+
export const ToolsRequestBuilderUriTemplate = "{+baseurl}/mcp/_tools";
|
|
22
22
|
/**
|
|
23
23
|
* Metadata for all the navigation properties in the request builder.
|
|
24
24
|
*/
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
// Generated by Microsoft Kiota
|
|
4
4
|
// @ts-ignore
|
|
5
|
-
import { serializeTpEntityRequest, type TpEntityRequest } from '../../../models/index.js';
|
|
5
|
+
import { createTpQueryResponseOfJsonElementFromDiscriminatorValue, serializeTpEntityRequest, serializeTpQueryResponseOfJsonElement, type TpEntityRequest, type TpQueryResponseOfJsonElement } from '../../../models/index.js';
|
|
6
6
|
// @ts-ignore
|
|
7
|
-
import {
|
|
7
|
+
import { type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Builds and executes requests for operations under /mcp
|
|
10
|
+
* Builds and executes requests for operations under /mcp/_tools/query_entities
|
|
11
11
|
*/
|
|
12
12
|
export interface Query_entitiesRequestBuilder extends BaseRequestBuilder<Query_entitiesRequestBuilder> {
|
|
13
13
|
/**
|
|
14
14
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
15
|
-
* @returns {Promise<
|
|
15
|
+
* @returns {Promise<TpQueryResponseOfJsonElement>}
|
|
16
16
|
*/
|
|
17
|
-
get(requestConfiguration?: RequestConfiguration<Query_entitiesRequestBuilderGetQueryParameters> | undefined) : Promise<
|
|
17
|
+
get(requestConfiguration?: RequestConfiguration<Query_entitiesRequestBuilderGetQueryParameters> | undefined) : Promise<TpQueryResponseOfJsonElement | undefined>;
|
|
18
18
|
/**
|
|
19
19
|
* @param body The request body
|
|
20
20
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
21
|
-
* @returns {Promise<
|
|
21
|
+
* @returns {Promise<TpQueryResponseOfJsonElement>}
|
|
22
22
|
*/
|
|
23
|
-
post(body: TpEntityRequest, requestConfiguration?: RequestConfiguration<Query_entitiesRequestBuilderPostQueryParameters> | undefined) : Promise<
|
|
23
|
+
post(body: TpEntityRequest, requestConfiguration?: RequestConfiguration<Query_entitiesRequestBuilderPostQueryParameters> | undefined) : Promise<TpQueryResponseOfJsonElement | undefined>;
|
|
24
24
|
/**
|
|
25
25
|
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
26
26
|
* @returns {RequestInformation}
|
|
@@ -49,7 +49,7 @@ export interface Query_entitiesRequestBuilderPostQueryParameters {
|
|
|
49
49
|
/**
|
|
50
50
|
* Uri template for the request builder.
|
|
51
51
|
*/
|
|
52
|
-
export const Query_entitiesRequestBuilderUriTemplate = "{+baseurl}/mcp
|
|
52
|
+
export const Query_entitiesRequestBuilderUriTemplate = "{+baseurl}/mcp/_tools/query_entities?entityType={entityType}{&disableValidation*,filter*,orderBy*,result*,select*,skip*,take*}";
|
|
53
53
|
/**
|
|
54
54
|
* Metadata for all the requests in the request builder.
|
|
55
55
|
*/
|
|
@@ -58,13 +58,13 @@ export const Query_entitiesRequestBuilderRequestsMetadata: RequestsMetadata = {
|
|
|
58
58
|
uriTemplate: Query_entitiesRequestBuilderUriTemplate,
|
|
59
59
|
responseBodyContentType: "application/json",
|
|
60
60
|
adapterMethodName: "send",
|
|
61
|
-
responseBodyFactory:
|
|
61
|
+
responseBodyFactory: createTpQueryResponseOfJsonElementFromDiscriminatorValue,
|
|
62
62
|
},
|
|
63
63
|
post: {
|
|
64
64
|
uriTemplate: Query_entitiesRequestBuilderUriTemplate,
|
|
65
65
|
responseBodyContentType: "application/json",
|
|
66
66
|
adapterMethodName: "send",
|
|
67
|
-
responseBodyFactory:
|
|
67
|
+
responseBodyFactory: createTpQueryResponseOfJsonElementFromDiscriminatorValue,
|
|
68
68
|
requestBodyContentType: "application/json",
|
|
69
69
|
requestBodySerializer: serializeTpEntityRequest,
|
|
70
70
|
requestInformationContentSetMethod: "setContentFromParsable",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { type WithNameItemRequestBuilder, WithNameItemRequestBuilderRequestsMetadata } from './item/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Builds and executes requests for operations under /mcp/_userContext
|
|
11
|
+
*/
|
|
12
|
+
export interface UserContextRequestBuilder extends BaseRequestBuilder<UserContextRequestBuilder> {
|
|
13
|
+
/**
|
|
14
|
+
* Gets an item from the Tp.mcp.userContext.item collection
|
|
15
|
+
* @param name Unique identifier of the item
|
|
16
|
+
* @returns {WithNameItemRequestBuilder}
|
|
17
|
+
*/
|
|
18
|
+
byName(name: string) : WithNameItemRequestBuilder;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Uri template for the request builder.
|
|
22
|
+
*/
|
|
23
|
+
export const UserContextRequestBuilderUriTemplate = "{+baseurl}/mcp/_userContext";
|
|
24
|
+
/**
|
|
25
|
+
* Metadata for all the navigation properties in the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export const UserContextRequestBuilderNavigationMetadata: Record<Exclude<keyof UserContextRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata> = {
|
|
28
|
+
byName: {
|
|
29
|
+
requestsMetadata: WithNameItemRequestBuilderRequestsMetadata,
|
|
30
|
+
pathParametersMappings: ["name"],
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
/* tslint:enable */
|
|
34
|
+
/* eslint-enable */
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createUntypedNodeFromDiscriminatorValue, type BaseRequestBuilder, type Parsable, type ParsableFactory, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type UntypedNode } from '@microsoft/kiota-abstractions';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Builds and executes requests for operations under /mcp/_userContext/{name}
|
|
9
|
+
*/
|
|
10
|
+
export interface WithNameItemRequestBuilder extends BaseRequestBuilder<WithNameItemRequestBuilder> {
|
|
11
|
+
/**
|
|
12
|
+
* @param body The request body
|
|
13
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
14
|
+
* @returns {Promise<ArrayBuffer>}
|
|
15
|
+
*/
|
|
16
|
+
post(body: UntypedNode, requestConfiguration?: RequestConfiguration<object> | undefined) : Promise<ArrayBuffer | undefined>;
|
|
17
|
+
/**
|
|
18
|
+
* @param body The request body
|
|
19
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
20
|
+
* @returns {RequestInformation}
|
|
21
|
+
*/
|
|
22
|
+
toPostRequestInformation(body: UntypedNode, requestConfiguration?: RequestConfiguration<object> | undefined) : RequestInformation;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Uri template for the request builder.
|
|
26
|
+
*/
|
|
27
|
+
export const WithNameItemRequestBuilderUriTemplate = "{+baseurl}/mcp/_userContext/{name}";
|
|
28
|
+
/**
|
|
29
|
+
* Metadata for all the requests in the request builder.
|
|
30
|
+
*/
|
|
31
|
+
export const WithNameItemRequestBuilderRequestsMetadata: RequestsMetadata = {
|
|
32
|
+
post: {
|
|
33
|
+
uriTemplate: WithNameItemRequestBuilderUriTemplate,
|
|
34
|
+
adapterMethodName: "sendPrimitive",
|
|
35
|
+
responseBodyFactory: "ArrayBuffer",
|
|
36
|
+
requestBodyContentType: "application/json",
|
|
37
|
+
requestInformationContentSetMethod: "setContentFromScalar",
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
/* tslint:enable */
|
|
41
|
+
/* eslint-enable */
|
package/src/models/index.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
// Generated by Microsoft Kiota
|
|
4
4
|
// @ts-ignore
|
|
5
|
-
import { type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
5
|
+
import { createUntypedNodeFromDiscriminatorValue, type AdditionalDataHolder, type ApiError, type Parsable, type ParseNode, type SerializationWriter, type UntypedNode } from '@microsoft/kiota-abstractions';
|
|
6
6
|
|
|
7
7
|
export interface CopyCurrentProfileRequestDto extends Parsable {
|
|
8
8
|
/**
|
|
@@ -221,6 +221,15 @@ export function createTpEntityRequestFromDiscriminatorValue(parseNode: ParseNode
|
|
|
221
221
|
export function createTpFieldDefDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
222
222
|
return deserializeIntoTpFieldDefDto;
|
|
223
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
226
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
227
|
+
* @returns {TpQueryResponseOfJsonElement}
|
|
228
|
+
*/
|
|
229
|
+
// @ts-ignore
|
|
230
|
+
export function createTpQueryResponseOfJsonElementFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
|
|
231
|
+
return deserializeIntoTpQueryResponseOfJsonElement;
|
|
232
|
+
}
|
|
224
233
|
/**
|
|
225
234
|
* Creates a new instance of the appropriate class based on discriminator value
|
|
226
235
|
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
@@ -563,6 +572,18 @@ export function deserializeIntoTpFieldDefDto(tpFieldDefDto: Partial<TpFieldDefDt
|
|
|
563
572
|
"referenceExpression": n => { tpFieldDefDto.referenceExpression = n.getStringValue(); },
|
|
564
573
|
}
|
|
565
574
|
}
|
|
575
|
+
/**
|
|
576
|
+
* The deserialization information for the current model
|
|
577
|
+
* @param TpQueryResponseOfJsonElement The instance to deserialize into.
|
|
578
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
579
|
+
*/
|
|
580
|
+
// @ts-ignore
|
|
581
|
+
export function deserializeIntoTpQueryResponseOfJsonElement(tpQueryResponseOfJsonElement: Partial<TpQueryResponseOfJsonElement> | undefined = {}) : Record<string, (node: ParseNode) => void> {
|
|
582
|
+
return {
|
|
583
|
+
"hasMore": n => { tpQueryResponseOfJsonElement.hasMore = n.getBooleanValue(); },
|
|
584
|
+
"items": n => { tpQueryResponseOfJsonElement.items = n.getObjectValue<UntypedNode>(createUntypedNodeFromDiscriminatorValue); },
|
|
585
|
+
}
|
|
586
|
+
}
|
|
566
587
|
/**
|
|
567
588
|
* The deserialization information for the current model
|
|
568
589
|
* @param TpTypeDefDto The instance to deserialize into.
|
|
@@ -1089,6 +1110,18 @@ export function serializeTpFieldDefDto(writer: SerializationWriter, tpFieldDefDt
|
|
|
1089
1110
|
writer.writeStringValue("referenceExpression", tpFieldDefDto.referenceExpression);
|
|
1090
1111
|
writer.writeAdditionalData(tpFieldDefDto.additionalData);
|
|
1091
1112
|
}
|
|
1113
|
+
/**
|
|
1114
|
+
* Serializes information the current object
|
|
1115
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
1116
|
+
* @param TpQueryResponseOfJsonElement The instance to serialize from.
|
|
1117
|
+
* @param writer Serialization writer to use to serialize this model
|
|
1118
|
+
*/
|
|
1119
|
+
// @ts-ignore
|
|
1120
|
+
export function serializeTpQueryResponseOfJsonElement(writer: SerializationWriter, tpQueryResponseOfJsonElement: Partial<TpQueryResponseOfJsonElement> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
|
|
1121
|
+
if (!tpQueryResponseOfJsonElement || isSerializingDerivedType) { return; }
|
|
1122
|
+
writer.writeBooleanValue("hasMore", tpQueryResponseOfJsonElement.hasMore);
|
|
1123
|
+
writer.writeObjectValue("items", tpQueryResponseOfJsonElement.items);
|
|
1124
|
+
}
|
|
1092
1125
|
/**
|
|
1093
1126
|
* Serializes information the current object
|
|
1094
1127
|
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
@@ -1286,6 +1319,16 @@ export interface TpFieldDefDto extends AdditionalDataHolder, FieldDefDto, Parsab
|
|
|
1286
1319
|
*/
|
|
1287
1320
|
referenceExpression?: string | null;
|
|
1288
1321
|
}
|
|
1322
|
+
export interface TpQueryResponseOfJsonElement extends Parsable {
|
|
1323
|
+
/**
|
|
1324
|
+
* The hasMore property
|
|
1325
|
+
*/
|
|
1326
|
+
hasMore?: boolean | null;
|
|
1327
|
+
/**
|
|
1328
|
+
* The items property
|
|
1329
|
+
*/
|
|
1330
|
+
items?: UntypedNode | null;
|
|
1331
|
+
}
|
|
1289
1332
|
export interface TpTypeDefDto extends Parsable {
|
|
1290
1333
|
/**
|
|
1291
1334
|
* The id property
|
package/src/v1.json
CHANGED
|
@@ -62,9 +62,51 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
"/mcp
|
|
65
|
+
"/mcp/_userContext/{name}": {
|
|
66
|
+
"post": {
|
|
67
|
+
"operationId": "PostMcpUserContext",
|
|
68
|
+
"parameters": [
|
|
69
|
+
{
|
|
70
|
+
"name": "name",
|
|
71
|
+
"in": "path",
|
|
72
|
+
"required": true,
|
|
73
|
+
"schema": {
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
"x-position": 1
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"requestBody": {
|
|
80
|
+
"x-name": "value",
|
|
81
|
+
"content": {
|
|
82
|
+
"application/json": {
|
|
83
|
+
"schema": {}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": true,
|
|
87
|
+
"x-position": 2
|
|
88
|
+
},
|
|
89
|
+
"responses": {
|
|
90
|
+
"200": {
|
|
91
|
+
"description": ""
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"security": [
|
|
95
|
+
{
|
|
96
|
+
"JWTBearerAuth": []
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"apptio-token-scheme": []
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"OAuth2": []
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"/mcp/_tools/query_entities": {
|
|
66
108
|
"get": {
|
|
67
|
-
"operationId": "
|
|
109
|
+
"operationId": "GetMcpToolsQueryEntities",
|
|
68
110
|
"parameters": [
|
|
69
111
|
{
|
|
70
112
|
"name": "entityType",
|
|
@@ -147,16 +189,26 @@
|
|
|
147
189
|
"content": {
|
|
148
190
|
"application/json": {
|
|
149
191
|
"schema": {
|
|
150
|
-
"
|
|
151
|
-
"items": {}
|
|
192
|
+
"$ref": "#/components/schemas/TpQueryResponseOfJsonElement"
|
|
152
193
|
}
|
|
153
194
|
}
|
|
154
195
|
}
|
|
155
196
|
}
|
|
156
|
-
}
|
|
197
|
+
},
|
|
198
|
+
"security": [
|
|
199
|
+
{
|
|
200
|
+
"JWTBearerAuth": []
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"apptio-token-scheme": []
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"OAuth2": []
|
|
207
|
+
}
|
|
208
|
+
]
|
|
157
209
|
},
|
|
158
210
|
"post": {
|
|
159
|
-
"operationId": "
|
|
211
|
+
"operationId": "PostMcpToolsQueryEntities",
|
|
160
212
|
"parameters": [
|
|
161
213
|
{
|
|
162
214
|
"name": "disableValidation",
|
|
@@ -186,13 +238,23 @@
|
|
|
186
238
|
"content": {
|
|
187
239
|
"application/json": {
|
|
188
240
|
"schema": {
|
|
189
|
-
"
|
|
190
|
-
"items": {}
|
|
241
|
+
"$ref": "#/components/schemas/TpQueryResponseOfJsonElement"
|
|
191
242
|
}
|
|
192
243
|
}
|
|
193
244
|
}
|
|
194
245
|
}
|
|
195
|
-
}
|
|
246
|
+
},
|
|
247
|
+
"security": [
|
|
248
|
+
{
|
|
249
|
+
"JWTBearerAuth": []
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"apptio-token-scheme": []
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"OAuth2": []
|
|
256
|
+
}
|
|
257
|
+
]
|
|
196
258
|
}
|
|
197
259
|
},
|
|
198
260
|
"/api/settings/profile/copy": {
|
|
@@ -2424,6 +2486,23 @@
|
|
|
2424
2486
|
},
|
|
2425
2487
|
"components": {
|
|
2426
2488
|
"schemas": {
|
|
2489
|
+
"TpQueryResponseOfJsonElement": {
|
|
2490
|
+
"type": "object",
|
|
2491
|
+
"additionalProperties": false,
|
|
2492
|
+
"required": [
|
|
2493
|
+
"items",
|
|
2494
|
+
"hasMore"
|
|
2495
|
+
],
|
|
2496
|
+
"properties": {
|
|
2497
|
+
"items": {
|
|
2498
|
+
"type": "array",
|
|
2499
|
+
"items": {}
|
|
2500
|
+
},
|
|
2501
|
+
"hasMore": {
|
|
2502
|
+
"type": "boolean"
|
|
2503
|
+
}
|
|
2504
|
+
}
|
|
2505
|
+
},
|
|
2427
2506
|
"TpEntityRequest": {
|
|
2428
2507
|
"type": "object",
|
|
2429
2508
|
"additionalProperties": false,
|