@targetprocess/shared-data-model-client 1.54.0 → 1.56.0-ci.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.
@@ -35,6 +35,15 @@ export function createCleanCacheRequestDtoFromDiscriminatorValue(parseNode: Pars
35
35
  export function createCopyCurrentProfileRequestDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
36
36
  return deserializeIntoCopyCurrentProfileRequestDto;
37
37
  }
38
+ /**
39
+ * Creates a new instance of the appropriate class based on discriminator value
40
+ * @param parseNode The parse node to use to read the discriminator value and create the object
41
+ * @returns {CreateSkillRequest}
42
+ */
43
+ // @ts-ignore
44
+ export function createCreateSkillRequestFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
45
+ return deserializeIntoCreateSkillRequest;
46
+ }
38
47
  /**
39
48
  * Creates a new instance of the appropriate class based on discriminator value
40
49
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -210,6 +219,31 @@ export function createSharedDataCreateAttachmentResponseItemDtoFromDiscriminator
210
219
  export function createSharedDataDeleteDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
211
220
  return deserializeIntoSharedDataDeleteDto;
212
221
  }
222
+ /**
223
+ * Request DTO for creating a skill.
224
+ */
225
+ export interface CreateSkillRequest extends Parsable {
226
+ /**
227
+ * The body property
228
+ */
229
+ body?: string | null;
230
+ /**
231
+ * The description property
232
+ */
233
+ description?: string | null;
234
+ /**
235
+ * The isEnabled property
236
+ */
237
+ isEnabled?: boolean | null;
238
+ /**
239
+ * The mcpServers property
240
+ */
241
+ mcpServers?: string[] | null;
242
+ /**
243
+ * The name property
244
+ */
245
+ name?: string | null;
246
+ }
213
247
  /**
214
248
  * Creates a new instance of the appropriate class based on discriminator value
215
249
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -313,6 +347,24 @@ export function createTypeMetaDefDtoFromDiscriminatorValue(parseNode: ParseNode
313
347
  export function createTypeTermDtoFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
314
348
  return deserializeIntoTypeTermDto;
315
349
  }
350
+ /**
351
+ * Creates a new instance of the appropriate class based on discriminator value
352
+ * @param parseNode The parse node to use to read the discriminator value and create the object
353
+ * @returns {UpdateSkillRequest}
354
+ */
355
+ // @ts-ignore
356
+ export function createUpdateSkillRequestFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
357
+ return deserializeIntoUpdateSkillRequest;
358
+ }
359
+ /**
360
+ * Creates a new instance of the appropriate class based on discriminator value
361
+ * @param parseNode The parse node to use to read the discriminator value and create the object
362
+ * @returns {UpsertOrganizationContextRequest}
363
+ */
364
+ // @ts-ignore
365
+ export function createUpsertOrganizationContextRequestFromDiscriminatorValue(parseNode: ParseNode | undefined) : ((instance?: Parsable) => Record<string, (node: ParseNode) => void>) {
366
+ return deserializeIntoUpsertOrganizationContextRequest;
367
+ }
316
368
  /**
317
369
  * Creates a new instance of the appropriate class based on discriminator value
318
370
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -368,6 +420,21 @@ export function deserializeIntoCopyCurrentProfileRequestDto(copyCurrentProfileRe
368
420
  "profileName": n => { copyCurrentProfileRequestDto.profileName = n.getStringValue(); },
369
421
  }
370
422
  }
423
+ /**
424
+ * The deserialization information for the current model
425
+ * @param CreateSkillRequest The instance to deserialize into.
426
+ * @returns {Record<string, (node: ParseNode) => void>}
427
+ */
428
+ // @ts-ignore
429
+ export function deserializeIntoCreateSkillRequest(createSkillRequest: Partial<CreateSkillRequest> | undefined = {}) : Record<string, (node: ParseNode) => void> {
430
+ return {
431
+ "body": n => { createSkillRequest.body = n.getStringValue(); },
432
+ "description": n => { createSkillRequest.description = n.getStringValue(); },
433
+ "isEnabled": n => { createSkillRequest.isEnabled = n.getBooleanValue(); },
434
+ "mcpServers": n => { createSkillRequest.mcpServers = n.getCollectionOfPrimitiveValues<string>("string"); },
435
+ "name": n => { createSkillRequest.name = n.getStringValue(); },
436
+ }
437
+ }
371
438
  /**
372
439
  * The deserialization information for the current model
373
440
  * @param DeleteProfileRequestDto The instance to deserialize into.
@@ -714,6 +781,33 @@ export function deserializeIntoTypeTermDto(typeTermDto: Partial<TypeTermDto> | u
714
781
  "term": n => { typeTermDto.term = n.getStringValue(); },
715
782
  }
716
783
  }
784
+ /**
785
+ * The deserialization information for the current model
786
+ * @param UpdateSkillRequest The instance to deserialize into.
787
+ * @returns {Record<string, (node: ParseNode) => void>}
788
+ */
789
+ // @ts-ignore
790
+ export function deserializeIntoUpdateSkillRequest(updateSkillRequest: Partial<UpdateSkillRequest> | undefined = {}) : Record<string, (node: ParseNode) => void> {
791
+ return {
792
+ "body": n => { updateSkillRequest.body = n.getStringValue(); },
793
+ "description": n => { updateSkillRequest.description = n.getStringValue(); },
794
+ "isEnabled": n => { updateSkillRequest.isEnabled = n.getBooleanValue(); },
795
+ "mcpServers": n => { updateSkillRequest.mcpServers = n.getCollectionOfPrimitiveValues<string>("string"); },
796
+ "name": n => { updateSkillRequest.name = n.getStringValue(); },
797
+ }
798
+ }
799
+ /**
800
+ * The deserialization information for the current model
801
+ * @param UpsertOrganizationContextRequest The instance to deserialize into.
802
+ * @returns {Record<string, (node: ParseNode) => void>}
803
+ */
804
+ // @ts-ignore
805
+ export function deserializeIntoUpsertOrganizationContextRequest(upsertOrganizationContextRequest: Partial<UpsertOrganizationContextRequest> | undefined = {}) : Record<string, (node: ParseNode) => void> {
806
+ return {
807
+ "contextText": n => { upsertOrganizationContextRequest.contextText = n.getStringValue(); },
808
+ "isEnabled": n => { upsertOrganizationContextRequest.isEnabled = n.getBooleanValue(); },
809
+ }
810
+ }
717
811
  /**
718
812
  * The deserialization information for the current model
719
813
  * @param ValidatedFieldMappingDto The instance to deserialize into.
@@ -935,6 +1029,21 @@ export function serializeCopyCurrentProfileRequestDto(writer: SerializationWrite
935
1029
  if (!copyCurrentProfileRequestDto || isSerializingDerivedType) { return; }
936
1030
  writer.writeStringValue("profileName", copyCurrentProfileRequestDto.profileName);
937
1031
  }
1032
+ /**
1033
+ * Serializes information the current object
1034
+ * @param CreateSkillRequest The instance to serialize from.
1035
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1036
+ * @param writer Serialization writer to use to serialize this model
1037
+ */
1038
+ // @ts-ignore
1039
+ export function serializeCreateSkillRequest(writer: SerializationWriter, createSkillRequest: Partial<CreateSkillRequest> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
1040
+ if (!createSkillRequest || isSerializingDerivedType) { return; }
1041
+ writer.writeStringValue("body", createSkillRequest.body);
1042
+ writer.writeStringValue("description", createSkillRequest.description);
1043
+ writer.writeBooleanValue("isEnabled", createSkillRequest.isEnabled);
1044
+ writer.writeCollectionOfPrimitiveValues<string>("mcpServers", createSkillRequest.mcpServers);
1045
+ writer.writeStringValue("name", createSkillRequest.name);
1046
+ }
938
1047
  /**
939
1048
  * Serializes information the current object
940
1049
  * @param DeleteProfileRequestDto The instance to serialize from.
@@ -1306,6 +1415,33 @@ export function serializeTypeTermDto(writer: SerializationWriter, typeTermDto: P
1306
1415
  writer.writeCollectionOfPrimitiveValues<number>("processIds", typeTermDto.processIds);
1307
1416
  writer.writeStringValue("term", typeTermDto.term);
1308
1417
  }
1418
+ /**
1419
+ * Serializes information the current object
1420
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1421
+ * @param UpdateSkillRequest The instance to serialize from.
1422
+ * @param writer Serialization writer to use to serialize this model
1423
+ */
1424
+ // @ts-ignore
1425
+ export function serializeUpdateSkillRequest(writer: SerializationWriter, updateSkillRequest: Partial<UpdateSkillRequest> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
1426
+ if (!updateSkillRequest || isSerializingDerivedType) { return; }
1427
+ writer.writeStringValue("body", updateSkillRequest.body);
1428
+ writer.writeStringValue("description", updateSkillRequest.description);
1429
+ writer.writeBooleanValue("isEnabled", updateSkillRequest.isEnabled);
1430
+ writer.writeCollectionOfPrimitiveValues<string>("mcpServers", updateSkillRequest.mcpServers);
1431
+ writer.writeStringValue("name", updateSkillRequest.name);
1432
+ }
1433
+ /**
1434
+ * Serializes information the current object
1435
+ * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
1436
+ * @param UpsertOrganizationContextRequest The instance to serialize from.
1437
+ * @param writer Serialization writer to use to serialize this model
1438
+ */
1439
+ // @ts-ignore
1440
+ export function serializeUpsertOrganizationContextRequest(writer: SerializationWriter, upsertOrganizationContextRequest: Partial<UpsertOrganizationContextRequest> | undefined | null = {}, isSerializingDerivedType: boolean = false) : void {
1441
+ if (!upsertOrganizationContextRequest || isSerializingDerivedType) { return; }
1442
+ writer.writeStringValue("contextText", upsertOrganizationContextRequest.contextText);
1443
+ writer.writeBooleanValue("isEnabled", upsertOrganizationContextRequest.isEnabled);
1444
+ }
1309
1445
  /**
1310
1446
  * Serializes information the current object
1311
1447
  * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
@@ -1570,6 +1706,44 @@ export interface TypeTermDto extends Parsable {
1570
1706
  */
1571
1707
  term?: string | null;
1572
1708
  }
1709
+ /**
1710
+ * Request DTO for updating a skill.
1711
+ */
1712
+ export interface UpdateSkillRequest extends Parsable {
1713
+ /**
1714
+ * The body property
1715
+ */
1716
+ body?: string | null;
1717
+ /**
1718
+ * The description property
1719
+ */
1720
+ description?: string | null;
1721
+ /**
1722
+ * The isEnabled property
1723
+ */
1724
+ isEnabled?: boolean | null;
1725
+ /**
1726
+ * The mcpServers property
1727
+ */
1728
+ mcpServers?: string[] | null;
1729
+ /**
1730
+ * The name property
1731
+ */
1732
+ name?: string | null;
1733
+ }
1734
+ /**
1735
+ * Request DTO for creating/updating organization context.
1736
+ */
1737
+ export interface UpsertOrganizationContextRequest extends Parsable {
1738
+ /**
1739
+ * The contextText property
1740
+ */
1741
+ contextText?: string | null;
1742
+ /**
1743
+ * The isEnabled property
1744
+ */
1745
+ isEnabled?: boolean | null;
1746
+ }
1573
1747
  export interface ValidatedFieldMappingDto extends AdditionalDataHolder, FieldMappingDto, Parsable {
1574
1748
  /**
1575
1749
  * The errors property
@@ -6,6 +6,8 @@ import { AiRequestBuilderNavigationMetadata, type AiRequestBuilder } from './ai/
6
6
  // @ts-ignore
7
7
  import { ApiRequestBuilderNavigationMetadata, type ApiRequestBuilder } from './api/index.js';
8
8
  // @ts-ignore
9
+ import { CognifyContextRequestBuilderNavigationMetadata, type CognifyContextRequestBuilder } from './cognifyContext/index.js';
10
+ // @ts-ignore
9
11
  import { McpRequestBuilderNavigationMetadata, type McpRequestBuilder } from './mcp/index.js';
10
12
  // @ts-ignore
11
13
  import { apiClientProxifier, ParseNodeFactoryRegistry, SerializationWriterFactoryRegistry, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestAdapter } from '@microsoft/kiota-abstractions';
@@ -61,6 +63,10 @@ export interface TpSharedDataModelClient extends BaseRequestBuilder<TpSharedData
61
63
  * The api property
62
64
  */
63
65
  get api(): ApiRequestBuilder;
66
+ /**
67
+ * The cognifyContext property
68
+ */
69
+ get cognifyContext(): CognifyContextRequestBuilder;
64
70
  /**
65
71
  * The mcp property
66
72
  */
@@ -80,6 +86,9 @@ export const TpSharedDataModelClientNavigationMetadata: Record<Exclude<keyof TpS
80
86
  api: {
81
87
  navigationMetadata: ApiRequestBuilderNavigationMetadata,
82
88
  },
89
+ cognifyContext: {
90
+ navigationMetadata: CognifyContextRequestBuilderNavigationMetadata,
91
+ },
83
92
  mcp: {
84
93
  navigationMetadata: McpRequestBuilderNavigationMetadata,
85
94
  },
package/src/v1.json CHANGED
@@ -52,6 +52,276 @@
52
52
  ]
53
53
  }
54
54
  },
55
+ "/cognify-context/organization-context": {
56
+ "get": {
57
+ "operationId": "GetCognifyContextOrganizationContext",
58
+ "responses": {
59
+ "200": {
60
+ "description": ""
61
+ }
62
+ },
63
+ "security": [
64
+ {
65
+ "JWTBearerAuth": []
66
+ },
67
+ {
68
+ "apptio-token-scheme": []
69
+ },
70
+ {
71
+ "OAuth2": []
72
+ }
73
+ ]
74
+ },
75
+ "put": {
76
+ "operationId": "PutCognifyContextOrganizationContext",
77
+ "requestBody": {
78
+ "x-name": "request",
79
+ "content": {
80
+ "application/json": {
81
+ "schema": {
82
+ "$ref": "#/components/schemas/UpsertOrganizationContextRequest"
83
+ }
84
+ }
85
+ },
86
+ "required": true,
87
+ "x-position": 1
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
+ "/cognify-context/skills": {
108
+ "get": {
109
+ "summary": "Admin list: includes all skills (enabled/disabled), metadata, pagination.",
110
+ "operationId": "GetCognifyContextSkills",
111
+ "parameters": [
112
+ {
113
+ "name": "enabledOnly",
114
+ "in": "query",
115
+ "schema": {
116
+ "type": "boolean",
117
+ "nullable": true
118
+ },
119
+ "x-position": 1
120
+ },
121
+ {
122
+ "name": "offset",
123
+ "in": "query",
124
+ "schema": {
125
+ "type": "integer",
126
+ "format": "int32",
127
+ "nullable": true
128
+ },
129
+ "x-position": 2
130
+ },
131
+ {
132
+ "name": "limit",
133
+ "in": "query",
134
+ "schema": {
135
+ "type": "integer",
136
+ "format": "int32",
137
+ "nullable": true
138
+ },
139
+ "x-position": 3
140
+ },
141
+ {
142
+ "name": "search",
143
+ "in": "query",
144
+ "schema": {
145
+ "type": "string",
146
+ "nullable": true
147
+ },
148
+ "x-position": 4
149
+ },
150
+ {
151
+ "name": "sortBy",
152
+ "in": "query",
153
+ "schema": {
154
+ "type": "string",
155
+ "nullable": true
156
+ },
157
+ "x-position": 5
158
+ },
159
+ {
160
+ "name": "sortDirection",
161
+ "in": "query",
162
+ "schema": {
163
+ "type": "string",
164
+ "nullable": true
165
+ },
166
+ "x-position": 6
167
+ }
168
+ ],
169
+ "responses": {
170
+ "200": {
171
+ "description": ""
172
+ }
173
+ },
174
+ "security": [
175
+ {
176
+ "JWTBearerAuth": []
177
+ },
178
+ {
179
+ "apptio-token-scheme": []
180
+ },
181
+ {
182
+ "OAuth2": []
183
+ }
184
+ ]
185
+ },
186
+ "post": {
187
+ "operationId": "PostCognifyContextSkills",
188
+ "requestBody": {
189
+ "x-name": "request",
190
+ "content": {
191
+ "application/json": {
192
+ "schema": {
193
+ "$ref": "#/components/schemas/CreateSkillRequest"
194
+ }
195
+ }
196
+ },
197
+ "required": true,
198
+ "x-position": 1
199
+ },
200
+ "responses": {
201
+ "200": {
202
+ "description": ""
203
+ }
204
+ },
205
+ "security": [
206
+ {
207
+ "JWTBearerAuth": []
208
+ },
209
+ {
210
+ "apptio-token-scheme": []
211
+ },
212
+ {
213
+ "OAuth2": []
214
+ }
215
+ ]
216
+ }
217
+ },
218
+ "/cognify-context/skills/{id}": {
219
+ "get": {
220
+ "operationId": "GetCognifyContextSkills2",
221
+ "parameters": [
222
+ {
223
+ "name": "id",
224
+ "in": "path",
225
+ "required": true,
226
+ "schema": {
227
+ "type": "string",
228
+ "format": "guid"
229
+ },
230
+ "x-position": 1
231
+ }
232
+ ],
233
+ "responses": {
234
+ "200": {
235
+ "description": ""
236
+ }
237
+ },
238
+ "security": [
239
+ {
240
+ "JWTBearerAuth": []
241
+ },
242
+ {
243
+ "apptio-token-scheme": []
244
+ },
245
+ {
246
+ "OAuth2": []
247
+ }
248
+ ]
249
+ },
250
+ "put": {
251
+ "operationId": "PutCognifyContextSkills",
252
+ "parameters": [
253
+ {
254
+ "name": "id",
255
+ "in": "path",
256
+ "required": true,
257
+ "schema": {
258
+ "type": "string",
259
+ "format": "guid"
260
+ },
261
+ "x-position": 1
262
+ }
263
+ ],
264
+ "requestBody": {
265
+ "x-name": "request",
266
+ "content": {
267
+ "application/json": {
268
+ "schema": {
269
+ "$ref": "#/components/schemas/UpdateSkillRequest"
270
+ }
271
+ }
272
+ },
273
+ "required": true,
274
+ "x-position": 2
275
+ },
276
+ "responses": {
277
+ "200": {
278
+ "description": ""
279
+ }
280
+ },
281
+ "security": [
282
+ {
283
+ "JWTBearerAuth": []
284
+ },
285
+ {
286
+ "apptio-token-scheme": []
287
+ },
288
+ {
289
+ "OAuth2": []
290
+ }
291
+ ]
292
+ },
293
+ "delete": {
294
+ "operationId": "DeleteCognifyContextSkills",
295
+ "parameters": [
296
+ {
297
+ "name": "id",
298
+ "in": "path",
299
+ "required": true,
300
+ "schema": {
301
+ "type": "string",
302
+ "format": "guid"
303
+ },
304
+ "x-position": 1
305
+ }
306
+ ],
307
+ "responses": {
308
+ "200": {
309
+ "description": ""
310
+ }
311
+ },
312
+ "security": [
313
+ {
314
+ "JWTBearerAuth": []
315
+ },
316
+ {
317
+ "apptio-token-scheme": []
318
+ },
319
+ {
320
+ "OAuth2": []
321
+ }
322
+ ]
323
+ }
324
+ },
55
325
  "/mcp/.well-known/openid-configuration": {
56
326
  "get": {
57
327
  "operationId": "GetMcp.wellKnownOpenidConfiguration",
@@ -2658,6 +2928,87 @@
2658
2928
  },
2659
2929
  "components": {
2660
2930
  "schemas": {
2931
+ "UpsertOrganizationContextRequest": {
2932
+ "type": "object",
2933
+ "description": "Request DTO for creating/updating organization context.",
2934
+ "additionalProperties": false,
2935
+ "required": [
2936
+ "contextText",
2937
+ "isEnabled"
2938
+ ],
2939
+ "properties": {
2940
+ "contextText": {
2941
+ "type": "string"
2942
+ },
2943
+ "isEnabled": {
2944
+ "type": "boolean"
2945
+ }
2946
+ }
2947
+ },
2948
+ "CreateSkillRequest": {
2949
+ "type": "object",
2950
+ "description": "Request DTO for creating a skill.",
2951
+ "additionalProperties": false,
2952
+ "required": [
2953
+ "name",
2954
+ "description",
2955
+ "body",
2956
+ "isEnabled"
2957
+ ],
2958
+ "properties": {
2959
+ "name": {
2960
+ "type": "string"
2961
+ },
2962
+ "description": {
2963
+ "type": "string"
2964
+ },
2965
+ "body": {
2966
+ "type": "string"
2967
+ },
2968
+ "mcpServers": {
2969
+ "type": "array",
2970
+ "nullable": true,
2971
+ "items": {
2972
+ "type": "string"
2973
+ }
2974
+ },
2975
+ "isEnabled": {
2976
+ "type": "boolean"
2977
+ }
2978
+ }
2979
+ },
2980
+ "UpdateSkillRequest": {
2981
+ "type": "object",
2982
+ "description": "Request DTO for updating a skill.",
2983
+ "additionalProperties": false,
2984
+ "required": [
2985
+ "name",
2986
+ "description",
2987
+ "body",
2988
+ "isEnabled"
2989
+ ],
2990
+ "properties": {
2991
+ "name": {
2992
+ "type": "string"
2993
+ },
2994
+ "description": {
2995
+ "type": "string"
2996
+ },
2997
+ "body": {
2998
+ "type": "string"
2999
+ },
3000
+ "mcpServers": {
3001
+ "type": "array",
3002
+ "nullable": true,
3003
+ "items": {
3004
+ "type": "string"
3005
+ }
3006
+ },
3007
+ "isEnabled": {
3008
+ "type": "boolean"
3009
+ }
3010
+ }
3011
+ },
2661
3012
  "TpMcpQueryResponseOfJsonElement": {
2662
3013
  "type": "object",
2663
3014
  "description": "Separate model for MCP; HasMore field is confusing for LLM's, LLM can retry exact same call to get more data",