@azure/digital-twins-core 1.1.1-alpha.20221017.1 → 2.0.0-alpha.20230111.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.
Files changed (42) hide show
  1. package/README.md +7 -7
  2. package/dist/index.js +575 -610
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/src/constants.js +1 -1
  5. package/dist-esm/src/constants.js.map +1 -1
  6. package/dist-esm/src/digitalTwinsClient.js +69 -364
  7. package/dist-esm/src/digitalTwinsClient.js.map +1 -1
  8. package/dist-esm/src/generated/azureDigitalTwinsAPI.js +52 -13
  9. package/dist-esm/src/generated/azureDigitalTwinsAPI.js.map +1 -1
  10. package/dist-esm/src/generated/index.js +13 -0
  11. package/dist-esm/src/generated/index.js.map +1 -0
  12. package/dist-esm/src/generated/models/index.js.map +1 -1
  13. package/dist-esm/src/generated/models/mappers.js +35 -7
  14. package/dist-esm/src/generated/models/mappers.js.map +1 -1
  15. package/dist-esm/src/generated/models/parameters.js +45 -30
  16. package/dist-esm/src/generated/models/parameters.js.map +1 -1
  17. package/dist-esm/src/generated/operations/digitalTwinModels.js +87 -47
  18. package/dist-esm/src/generated/operations/digitalTwinModels.js.map +1 -1
  19. package/dist-esm/src/generated/operations/digitalTwins.js +190 -80
  20. package/dist-esm/src/generated/operations/digitalTwins.js.map +1 -1
  21. package/dist-esm/src/generated/operations/eventRoutes.js +79 -35
  22. package/dist-esm/src/generated/operations/eventRoutes.js.map +1 -1
  23. package/dist-esm/src/generated/operations/query.js +10 -12
  24. package/dist-esm/src/generated/operations/query.js.map +1 -1
  25. package/dist-esm/src/generated/operationsInterfaces/digitalTwinModels.js +9 -0
  26. package/dist-esm/src/generated/operationsInterfaces/digitalTwinModels.js.map +1 -0
  27. package/dist-esm/src/generated/operationsInterfaces/digitalTwins.js +9 -0
  28. package/dist-esm/src/generated/operationsInterfaces/digitalTwins.js.map +1 -0
  29. package/dist-esm/src/generated/operationsInterfaces/eventRoutes.js +9 -0
  30. package/dist-esm/src/generated/operationsInterfaces/eventRoutes.js.map +1 -0
  31. package/dist-esm/src/generated/operationsInterfaces/index.js +12 -0
  32. package/dist-esm/src/generated/operationsInterfaces/index.js.map +1 -0
  33. package/dist-esm/src/generated/operationsInterfaces/query.js +9 -0
  34. package/dist-esm/src/generated/operationsInterfaces/query.js.map +1 -0
  35. package/dist-esm/src/generated/pagingHelper.js +32 -0
  36. package/dist-esm/src/generated/pagingHelper.js.map +1 -0
  37. package/dist-esm/src/index.js +1 -1
  38. package/dist-esm/src/index.js.map +1 -1
  39. package/package.json +13 -11
  40. package/types/digital-twins-core.d.ts +196 -693
  41. package/dist-esm/src/generated/azureDigitalTwinsAPIContext.js +0 -35
  42. package/dist-esm/src/generated/azureDigitalTwinsAPIContext.js.map +0 -1
@@ -1,179 +1,47 @@
1
- /// <reference lib="esnext.asynciterable" />
2
-
3
- import * as coreHttp from '@azure/core-http';
4
- import { OperationOptions } from '@azure/core-http';
1
+ import { CommonClientOptions } from '@azure/core-client';
2
+ import * as coreClient from '@azure/core-client';
3
+ import { OperationOptions } from '@azure/core-client';
5
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
6
- import { PageSettings } from '@azure/core-paging';
7
- import { PipelineOptions } from '@azure/core-http';
8
- import { RestResponse } from '@azure/core-http';
9
- import { TokenCredential } from '@azure/core-http';
5
+ import { TokenCredential } from '@azure/core-auth';
10
6
 
11
- /**
12
- * Contains response data for the add operation.
13
- */
14
- export declare type DigitalTwinModelsAddResponse = DigitalTwinsModelData[] & {
15
- /**
16
- * The underlying HTTP response.
17
- */
18
- _response: coreHttp.HttpResponse & {
19
- /**
20
- * The response body as text (string format)
21
- */
22
- bodyAsText: string;
23
- /**
24
- * The response body as parsed JSON or XML
25
- */
26
- parsedBody: DigitalTwinsModelData[];
27
- };
28
- };
7
+ /** Contains response data for the add operation. */
8
+ export declare type DigitalTwinModelsAddResponse = DigitalTwinsModelData[];
29
9
 
30
- /**
31
- * Contains response data for the getById operation.
32
- */
33
- export declare type DigitalTwinModelsGetByIdResponse = DigitalTwinsModelData & {
34
- /**
35
- * The underlying HTTP response.
36
- */
37
- _response: coreHttp.HttpResponse & {
38
- /**
39
- * The response body as text (string format)
40
- */
41
- bodyAsText: string;
42
- /**
43
- * The response body as parsed JSON or XML
44
- */
45
- parsedBody: DigitalTwinsModelData;
46
- };
47
- };
10
+ /** Contains response data for the getById operation. */
11
+ export declare type DigitalTwinModelsGetByIdResponse = DigitalTwinsModelData;
48
12
 
49
- /**
50
- * Contains response data for the list operation.
51
- */
52
- export declare type DigitalTwinModelsListResponse = PagedDigitalTwinsModelDataCollection & {
53
- /**
54
- * The underlying HTTP response.
55
- */
56
- _response: coreHttp.HttpResponse & {
57
- /**
58
- * The response body as text (string format)
59
- */
60
- bodyAsText: string;
61
- /**
62
- * The response body as parsed JSON or XML
63
- */
64
- parsedBody: PagedDigitalTwinsModelDataCollection;
65
- };
66
- };
13
+ /** Contains response data for the list operation. */
14
+ export declare type DigitalTwinModelsListResponse = PagedDigitalTwinsModelDataCollection;
67
15
 
68
- /**
69
- * Defines headers for DigitalTwins_add operation.
70
- */
16
+ /** Defines headers for DigitalTwins_add operation. */
71
17
  export declare interface DigitalTwinsAddHeaders {
72
- /**
73
- * Weak Etag.
74
- */
18
+ /** Weak Etag. */
75
19
  etag?: string;
76
20
  }
77
21
 
78
- /**
79
- * Optional parameters.
80
- */
81
- export declare interface DigitalTwinsAddOptionalParams extends coreHttp.OperationOptions {
82
- /**
83
- * Identifies the request in a distributed tracing system.
84
- */
85
- traceparent?: string;
86
- /**
87
- * Provides vendor-specific trace identification information and is a companion to traceparent.
88
- */
89
- tracestate?: string;
90
- /**
91
- * Only perform the operation if the entity does not already exist.
92
- */
22
+ /** Optional parameters. */
23
+ export declare interface DigitalTwinsAddOptionalParams extends coreClient.OperationOptions {
24
+ /** Only perform the operation if the entity does not already exist. */
93
25
  ifNoneMatch?: string;
94
26
  }
95
27
 
96
- /**
97
- * Defines headers for DigitalTwins_addRelationship operation.
98
- */
28
+ /** Defines headers for DigitalTwins_addRelationship operation. */
99
29
  export declare interface DigitalTwinsAddRelationshipHeaders {
100
- /**
101
- * Weak Etag.
102
- */
30
+ /** Weak Etag. */
103
31
  etag?: string;
104
32
  }
105
33
 
106
- /**
107
- * Optional parameters.
108
- */
109
- export declare interface DigitalTwinsAddRelationshipOptionalParams extends coreHttp.OperationOptions {
110
- /**
111
- * Identifies the request in a distributed tracing system.
112
- */
113
- traceparent?: string;
114
- /**
115
- * Provides vendor-specific trace identification information and is a companion to traceparent.
116
- */
117
- tracestate?: string;
118
- /**
119
- * Only perform the operation if the entity does not already exist.
120
- */
34
+ /** Optional parameters. */
35
+ export declare interface DigitalTwinsAddRelationshipOptionalParams extends coreClient.OperationOptions {
36
+ /** Only perform the operation if the entity does not already exist. */
121
37
  ifNoneMatch?: string;
122
38
  }
123
39
 
124
- /**
125
- * Contains response data for the addRelationship operation.
126
- */
127
- export declare type DigitalTwinsAddRelationshipResponse = DigitalTwinsAddRelationshipHeaders & {
128
- /**
129
- * The parsed response body.
130
- */
131
- body: any;
132
- /**
133
- * The underlying HTTP response.
134
- */
135
- _response: coreHttp.HttpResponse & {
136
- /**
137
- * The response body as text (string format)
138
- */
139
- bodyAsText: string;
140
- /**
141
- * The response body as parsed JSON or XML
142
- */
143
- parsedBody: any;
144
- /**
145
- * The parsed HTTP response headers.
146
- */
147
- parsedHeaders: DigitalTwinsAddRelationshipHeaders;
148
- };
149
- };
40
+ /** Contains response data for the addRelationship operation. */
41
+ export declare type DigitalTwinsAddRelationshipResponse = DigitalTwinsAddRelationshipHeaders & Record<string, unknown>;
150
42
 
151
- /**
152
- * Contains response data for the add operation.
153
- */
154
- export declare type DigitalTwinsAddResponse = DigitalTwinsAddHeaders & {
155
- /**
156
- * The parsed response body.
157
- */
158
- body: any;
159
- /**
160
- * The underlying HTTP response.
161
- */
162
- _response: coreHttp.HttpResponse & {
163
- /**
164
- * The response body as text (string format)
165
- */
166
- bodyAsText: string;
167
- /**
168
- * The response body as parsed JSON or XML
169
- */
170
- parsedBody: any;
171
- /**
172
- * The parsed HTTP response headers.
173
- */
174
- parsedHeaders: DigitalTwinsAddHeaders;
175
- };
176
- };
43
+ /** Contains response data for the add operation. */
44
+ export declare type DigitalTwinsAddResponse = DigitalTwinsAddHeaders & Record<string, unknown>;
177
45
 
178
46
  /**
179
47
  * Client for Azure IoT DigitalTwins API.
@@ -205,7 +73,7 @@ export declare class DigitalTwinsClient {
205
73
  *
206
74
  * @param digitalTwinId - The Id of the digital twin.
207
75
  * @param options - The operation options
208
- * @returns The application/json digital twin and the http response.
76
+ * @returns The application/json digital twin.
209
77
  */
210
78
  getDigitalTwin(digitalTwinId: string, options?: OperationOptions): Promise<DigitalTwinsGetByIdResponse>;
211
79
  /**
@@ -215,7 +83,7 @@ export declare class DigitalTwinsClient {
215
83
  * @param digitalTwinJson - The application/json digital twin to create.
216
84
  * @param options - Extended operation options including
217
85
  * ifNoneMatch: Only perform the operation if the entity does not already exist.
218
- * @returns The created application/json digital twin and the http response.
86
+ * @returns The created application/json digital twin.
219
87
  */
220
88
  upsertDigitalTwin(digitalTwinId: string, digitalTwinJson: string, options?: DigitalTwinsAddOptionalParams): Promise<DigitalTwinsAddResponse>;
221
89
  /**
@@ -227,25 +95,25 @@ export declare class DigitalTwinsClient {
227
95
  * remove.
228
96
  * @param options - Extended operation options including
229
97
  * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.
230
- * @returns The http response.
98
+
231
99
  */
232
- updateDigitalTwin(digitalTwinId: string, jsonPatch: any, options?: DigitalTwinsUpdateOptionalParams): Promise<DigitalTwinsUpdateResponse>;
100
+ updateDigitalTwin(digitalTwinId: string, jsonPatch: Array<Record<string, unknown>>, options?: DigitalTwinsUpdateOptionalParams): Promise<DigitalTwinsUpdateResponse>;
233
101
  /**
234
102
  * Delete a digital twin
235
103
  *
236
104
  * @param digitalTwinId - The Id of the digital twin to delete.
237
105
  * @param options - Extended operation options including
238
106
  * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.
239
- * @returns The http response.
107
+
240
108
  */
241
- deleteDigitalTwin(digitalTwinId: string, options?: DigitalTwinsDeleteOptionalParams): Promise<RestResponse>;
109
+ deleteDigitalTwin(digitalTwinId: string, options?: DigitalTwinsDeleteOptionalParams): Promise<void>;
242
110
  /**
243
111
  * Get a component on a digital twin.
244
112
  *
245
113
  * @param digitalTwinId - The Id of the digital twin.
246
114
  * @param componentName - The component being retrieved.
247
115
  * @param options - The operation options
248
- * @returns Json string representation of the component corresponding to the provided componentName and the HTTP response.
116
+ * @returns Json string representation of the component corresponding to the provided componentName.
249
117
  */
250
118
  getComponent(digitalTwinId: string, componentName: string, options?: OperationOptions): Promise<DigitalTwinsGetComponentResponse>;
251
119
  /**
@@ -257,16 +125,16 @@ export declare class DigitalTwinsClient {
257
125
  * @param enableUpdate - If true then update of an existing digital twin is enabled.
258
126
  * @param options - Extended operation options including
259
127
  * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.
260
- * @returns The http response.
128
+
261
129
  */
262
- updateComponent(digitalTwinId: string, componentName: string, jsonPatch: any[], options?: DigitalTwinsUpdateComponentOptionalParams): Promise<DigitalTwinsUpdateComponentResponse>;
130
+ updateComponent(digitalTwinId: string, componentName: string, jsonPatch: Array<Record<string, unknown>>, options?: DigitalTwinsUpdateComponentOptionalParams): Promise<DigitalTwinsUpdateComponentResponse>;
263
131
  /**
264
132
  * Get a relationship on a digital twin.
265
133
  *
266
134
  * @param digitalTwinId - The Id of the source digital twin.
267
135
  * @param relationshipId - The Id of the relationship to retrieve.
268
136
  * @param options - The operation options
269
- * @returns The pageable list of application/json relationships belonging to the specified digital twin and the http response.
137
+ * @returns The pageable list of application/json relationships belonging to the specified digital twin.
270
138
  */
271
139
  getRelationship(digitalTwinId: string, relationshipId: string, options?: OperationOptions): Promise<DigitalTwinsGetRelationshipByIdResponse>;
272
140
  /**
@@ -278,7 +146,7 @@ export declare class DigitalTwinsClient {
278
146
  * @param options - Extended operation options including
279
147
  * ifNoneMatch: Only perform the operation if the entity does not already exist.
280
148
  */
281
- upsertRelationship(digitalTwinId: string, relationshipId: string, relationship: any, options?: DigitalTwinsAddRelationshipOptionalParams): Promise<DigitalTwinsAddRelationshipResponse>;
149
+ upsertRelationship(digitalTwinId: string, relationshipId: string, relationship: Record<string, unknown>, options?: DigitalTwinsAddRelationshipOptionalParams): Promise<DigitalTwinsAddRelationshipResponse>;
282
150
  /**
283
151
  * Updates the properties of a relationship on a digital twin using a JSON patch.
284
152
  *
@@ -288,7 +156,7 @@ export declare class DigitalTwinsClient {
288
156
  * @param options - Extended operation options
289
157
  * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is provided.
290
158
  */
291
- updateRelationship(digitalTwinId: string, relationshipId: string, jsonPatch: any[], options?: DigitalTwinsUpdateRelationshipOptionalParams): Promise<DigitalTwinsUpdateRelationshipResponse>;
159
+ updateRelationship(digitalTwinId: string, relationshipId: string, jsonPatch: Array<Record<string, unknown>>, options?: DigitalTwinsUpdateRelationshipOptionalParams): Promise<DigitalTwinsUpdateRelationshipResponse>;
292
160
  /**
293
161
  * Delete a relationship on a digital twin.
294
162
  *
@@ -296,50 +164,21 @@ export declare class DigitalTwinsClient {
296
164
  * @param relationshipId - The Id of the relationship to delete.
297
165
  * @param options - The operation options
298
166
  * ifMatch: Only perform the operation if the entity's etag matches one of the etags provided or * is
299
- * @returns The http response.
300
- */
301
- deleteRelationship(digitalTwinId: string, relationshipId: string, options?: DigitalTwinsDeleteRelationshipOptionalParams): Promise<RestResponse>;
302
- /**
303
- * Deals with the pagination of {@link listRelationships}.
304
- *
305
- * @param digitalTwinId - The Id of the digital twin.
306
- * @param options - Common options for the iterative endpoints.
307
- * @param continuationState - An object that indicates the position of the paginated request.
308
- *
309
- */
310
- private listRelationshipsPage;
311
- /**
312
- * Deals with the iteration of all the available results of {@link listRelationships}.
313
- * @param options - Common options for the iterative endpoints.
167
+
314
168
  */
315
- private listRelationshipsAll;
169
+ deleteRelationship(digitalTwinId: string, relationshipId: string, options?: DigitalTwinsDeleteRelationshipOptionalParams): Promise<void>;
316
170
  /**
317
171
  * Retrieve relationships for a digital twin.
318
172
  *
319
173
  * @param digitalTwinId - The Id of the digital twin.
320
174
  */
321
- listRelationships(digitalTwinId: string, options?: OperationOptions & PageSettings): PagedAsyncIterableIterator<any, DigitalTwinsListRelationshipsResponse>;
322
- /**
323
- * Deals with the pagination of {@link listIncomingRelationships}.
324
- *
325
- * @param digitalTwinId - The Id of the digital twin.
326
- * @param options - Common options for the iterative endpoints.
327
- * @param continuationState - An object that indicates the position of the paginated request.
328
- *
329
- */
330
- private listIncomingRelationshipsPage;
331
- /**
332
- * Deals with the iteration of all the available results of {@link listIncomingRelationships}.
333
- * @param digitalTwinId - The Id of the digital twin.
334
- * @param options - Common options for the iterative endpoints.
335
- */
336
- private listIncomingRelationshipsAll;
175
+ listRelationships(digitalTwinId: string, options?: ListRelationshipsOptions): PagedAsyncIterableIterator<Record<string, unknown>>;
337
176
  /**
338
177
  * Retrieve all incoming relationships for a digital twin.
339
178
  *
340
179
  * @param digitalTwinId - The Id of the digital twin.
341
180
  */
342
- listIncomingRelationships(digitalTwinId: string, options?: OperationOptions & PageSettings): PagedAsyncIterableIterator<IncomingRelationship, DigitalTwinsListIncomingRelationshipsResponse>;
181
+ listIncomingRelationships(digitalTwinId: string, options?: ListIncomingRelationshipsOptions): PagedAsyncIterableIterator<IncomingRelationship>;
343
182
  /**
344
183
  * Publish telemetry from a digital twin, which is then consumed by one or many destination endpoints (subscribers) defined under.
345
184
  *
@@ -347,9 +186,9 @@ export declare class DigitalTwinsClient {
347
186
  * @param payload - The application/json telemetry payload to be sent.
348
187
  * @param messageId - The message Id.
349
188
  * @param options - The operation options
350
- * @returns The http response.
189
+
351
190
  */
352
- publishTelemetry(digitalTwinId: string, payload: any, messageId: string, options?: OperationOptions): Promise<RestResponse>;
191
+ publishTelemetry(digitalTwinId: string, payload: Record<string, unknown>, messageId: string, options?: OperationOptions): Promise<void>;
353
192
  /**
354
193
  * Publish telemetry from a digital twin's component, which is then consumed by one or many destination endpoints (subscribers) defined under.
355
194
  *
@@ -358,48 +197,32 @@ export declare class DigitalTwinsClient {
358
197
  * @param payload - The application/json telemetry payload to be sent.
359
198
  * @param messageId - The message Id.
360
199
  * @param options - The operation options
361
- * @returns The http response.
200
+
362
201
  */
363
- publishComponentTelemetry(digitalTwinId: string, componentName: string, payload: string, messageId: string, options?: OperationOptions): Promise<RestResponse>;
202
+ publishComponentTelemetry(digitalTwinId: string, componentName: string, payload: Record<string, unknown>, messageId: string, options?: OperationOptions): Promise<void>;
364
203
  /**
365
204
  * Get a model, including the model metadata and the model definition.
366
205
  *
367
206
  * @param modelId - The Id of the model.
368
- * @param options - Extended operation options including
369
- * includeModelDefinition: When true the model definition will be returned as part of the result. Default value: false.
370
- * @returns The application/json model and the http response.
371
- */
372
- getModel(modelId: string, includeModelDefinition?: boolean, options?: OperationOptions): Promise<DigitalTwinModelsGetByIdResponse>;
373
- /**
374
- * Deals with the pagination of {@link list}.
375
- *
376
- * @param options - Common options for the iterative endpoints.
377
- * @param continuationState - An object that indicates the position of the paginated request.
378
- *
379
- */
380
- private getModelsPage;
381
- /**
382
- * Deals with the iteration of all the available results of {@link list}.
383
- * @param options - Common options for the iterative endpoints.
207
+ * @param options - Options for this operation
208
+ * @returns The application/json model.
384
209
  */
385
- private getModelsAll;
210
+ getModel(modelId: string, options?: GetModelOptions): Promise<DigitalTwinModelsGetByIdResponse>;
386
211
  /**
387
212
  * Get the list of models
388
213
  *
389
- * @param dependeciesFor - The model Ids to have dependencies retrieved. If omitted, all models are retrieved.
390
- * @param includeModelDefinition - Whether to include the model definition in the result. If false, only the model metadata will be returned.
391
- * @param resultsPerPage - The maximum number of items to retrieve per request. The server may choose to return less than the requested max.
392
- * @returns A pageable set of application/json models and the http response.
214
+ * @param options - Options for listing models.
215
+ * @returns A pageable set of application/json models.
393
216
  */
394
- listModels(dependeciesFor?: string[], includeModelDefinition?: boolean, resultsPerPage?: number, options?: OperationOptions & PageSettings): PagedAsyncIterableIterator<DigitalTwinsModelData, DigitalTwinModelsListResponse>;
217
+ listModels(options?: ListModelsOptions): PagedAsyncIterableIterator<DigitalTwinsModelData>;
395
218
  /**
396
219
  * Create one or many
397
220
  *
398
- * @param models - The set of models to create. Each string corresponds to exactly one model.
221
+ * @param dtdlModels - The set of models to create. Each string corresponds to exactly one model.
399
222
  * @param options - The operation options
400
- * @returns The created application/json models and the http response.
223
+ * @returns The created application/json models.
401
224
  */
402
- createModels(dtdlModels: any[], options?: OperationOptions): Promise<DigitalTwinModelsAddResponse>;
225
+ createModels(dtdlModels: Array<Record<string, unknown>>, options?: OperationOptions): Promise<DigitalTwinModelsAddResponse>;
403
226
  /**
404
227
  * Decommission a model using a json patch.
405
228
  * When a model is decommissioned, new digital twins will no longer be able to be
@@ -409,47 +232,33 @@ export declare class DigitalTwinsClient {
409
232
  * @param modelId - The Id of the model to decommission.
410
233
  * property can be replaced.
411
234
  * @param options - The operation options
412
- * @returns The http response.
235
+
413
236
  *
414
237
  */
415
- decomissionModel(modelId: string, options?: OperationOptions): Promise<RestResponse>;
238
+ decomissionModel(modelId: string, options?: OperationOptions): Promise<void>;
416
239
  /**
417
240
  * Delete a model.
418
241
  *
419
242
  * @param modelId - The Id of the model to delete.
420
243
  * @param options - The operation options
421
- * @returns The http response.
244
+
422
245
  */
423
- deleteModel(modelId: string, options?: OperationOptions): Promise<RestResponse>;
246
+ deleteModel(modelId: string, options?: OperationOptions): Promise<void>;
424
247
  /**
425
248
  * Get an event route.
426
249
  *
427
250
  * @param modelId - The Id of the event route.
428
251
  * @param options - The operation options
429
- * @returns The application/json event route and the http response.
252
+ * @returns The application/json event route.
430
253
  */
431
254
  getEventRoute(eventRouteId: string, options?: OperationOptions): Promise<EventRoutesGetByIdResponse>;
432
- /**
433
- * Deals with the pagination of {@link list}.
434
- *
435
- * @param options - Common options for the iterative endpoints.
436
- * @param continuationState - An object that indicates the position of the paginated request.
437
- *
438
- */
439
- private getEventRoutesPage;
440
- /**
441
- * Deals with the iteration of all the available results of {@link list}.
442
- * @param options - Common options for the iterative endpoints.
443
- */
444
- private getEventRoutesAll;
445
255
  /**
446
256
  * List the event routes in a digital twins instance.
447
257
  *
448
- * @param resultsPerPage - The maximum number of items to retrieve per request. The server may choose to return less than
449
- * the requested max.
450
- * @returns The application/json event route and the http response.
258
+ * @param options - Options for listEventRoutes.
259
+ * @returns The application/json event route.
451
260
  */
452
- listEventRoutes(resultsPerPage?: number, options?: OperationOptions & PageSettings): PagedAsyncIterableIterator<EventRoute, EventRoutesListNextResponse>;
261
+ listEventRoutes(options?: ListEventRoutesOptions): PagedAsyncIterableIterator<EventRoute>;
453
262
  /**
454
263
  * Create or update an event route.
455
264
  *
@@ -457,17 +266,17 @@ export declare class DigitalTwinsClient {
457
266
  * @param endpointId - The id of the endpoint this event route is bound to.
458
267
  * @param filter - An expression which describes the events which are routed to the endpoint.
459
268
  * @param options - The operation options
460
- * @returns The http response.
269
+
461
270
  */
462
- upsertEventRoute(eventRouteId: string, endpointId: string, filter: string, options?: OperationOptions): Promise<RestResponse>;
271
+ upsertEventRoute(eventRouteId: string, endpointId: string, filter: string, options?: OperationOptions): Promise<void>;
463
272
  /**
464
273
  * Delete an event route.
465
274
  *
466
275
  * @param eventRouteId - The Id of the eventRoute to delete.
467
276
  * @param options - The operation options
468
- * @returns The http response.
277
+
469
278
  */
470
- deleteEventRoute(eventRouteId: string, options?: OperationOptions): Promise<RestResponse>;
279
+ deleteEventRoute(eventRouteId: string, options?: OperationOptions): Promise<void>;
471
280
  /**
472
281
  * Deals with the pagination of {@link query}.
473
282
  *
@@ -487,556 +296,250 @@ export declare class DigitalTwinsClient {
487
296
  * Query for digital twins.
488
297
  *
489
298
  * @param query - The query string, in SQL-like syntax.
490
- * @param resultsPerPage - The maximum number of items to retrieve per request. The server may choose to return less than the requested max.
299
+ * @param options - Options for the query operation.
491
300
  * @returns The pageable list of query results.
492
301
  */
493
- queryTwins(query: string, resultsPerPage?: number, options?: OperationOptions & PageSettings): PagedAsyncIterableIterator<any, QueryQueryTwinsResponse>;
494
- }
495
-
496
- export declare interface DigitalTwinsClientOptions extends PipelineOptions {
497
- /**
498
- * Api Version
499
- */
500
- apiVersion?: string;
302
+ queryTwins(query: string, options?: QueryTwinsOptions): PagedAsyncIterableIterator<Record<string, unknown>, QueryQueryTwinsResponse>;
501
303
  }
502
304
 
503
305
  /**
504
- * Optional parameters.
306
+ * Options for the DigitalTwinsClient class
505
307
  */
506
- export declare interface DigitalTwinsDeleteOptionalParams extends coreHttp.OperationOptions {
507
- /**
508
- * Identifies the request in a distributed tracing system.
509
- */
510
- traceparent?: string;
511
- /**
512
- * Provides vendor-specific trace identification information and is a companion to traceparent.
513
- */
514
- tracestate?: string;
515
- /**
516
- * Only perform the operation if the entity's etag matches one of the etags provided or * is provided.
517
- */
308
+ export declare interface DigitalTwinsClientOptions extends CommonClientOptions {
309
+ }
310
+
311
+ /** Optional parameters. */
312
+ export declare interface DigitalTwinsDeleteOptionalParams extends coreClient.OperationOptions {
313
+ /** Only perform the operation if the entity's etag matches one of the etags provided or * is provided. */
518
314
  ifMatch?: string;
519
315
  }
520
316
 
521
- /**
522
- * Optional parameters.
523
- */
524
- export declare interface DigitalTwinsDeleteRelationshipOptionalParams extends coreHttp.OperationOptions {
525
- /**
526
- * Identifies the request in a distributed tracing system.
527
- */
528
- traceparent?: string;
529
- /**
530
- * Provides vendor-specific trace identification information and is a companion to traceparent.
531
- */
532
- tracestate?: string;
533
- /**
534
- * Only perform the operation if the entity's etag matches one of the etags provided or * is provided.
535
- */
317
+ /** Optional parameters. */
318
+ export declare interface DigitalTwinsDeleteRelationshipOptionalParams extends coreClient.OperationOptions {
319
+ /** Only perform the operation if the entity's etag matches one of the etags provided or * is provided. */
536
320
  ifMatch?: string;
537
321
  }
538
322
 
539
- /**
540
- * Defines headers for DigitalTwins_getById operation.
541
- */
323
+ /** Defines headers for DigitalTwins_getById operation. */
542
324
  export declare interface DigitalTwinsGetByIdHeaders {
543
- /**
544
- * Weak Etag.
545
- */
325
+ /** Weak Etag. */
546
326
  etag?: string;
547
327
  }
548
328
 
549
- /**
550
- * Contains response data for the getById operation.
551
- */
552
- export declare type DigitalTwinsGetByIdResponse = DigitalTwinsGetByIdHeaders & {
553
- /**
554
- * The parsed response body.
555
- */
556
- body: any;
557
- /**
558
- * The underlying HTTP response.
559
- */
560
- _response: coreHttp.HttpResponse & {
561
- /**
562
- * The response body as text (string format)
563
- */
564
- bodyAsText: string;
565
- /**
566
- * The response body as parsed JSON or XML
567
- */
568
- parsedBody: any;
569
- /**
570
- * The parsed HTTP response headers.
571
- */
572
- parsedHeaders: DigitalTwinsGetByIdHeaders;
573
- };
574
- };
329
+ /** Contains response data for the getById operation. */
330
+ export declare type DigitalTwinsGetByIdResponse = DigitalTwinsGetByIdHeaders & Record<string, unknown>;
575
331
 
576
- /**
577
- * Defines headers for DigitalTwins_getComponent operation.
578
- */
332
+ /** Defines headers for DigitalTwins_getComponent operation. */
579
333
  export declare interface DigitalTwinsGetComponentHeaders {
580
- /**
581
- * Weak Etag.
582
- */
334
+ /** Weak Etag. */
583
335
  etag?: string;
584
336
  }
585
337
 
586
- /**
587
- * Contains response data for the getComponent operation.
588
- */
589
- export declare type DigitalTwinsGetComponentResponse = DigitalTwinsGetComponentHeaders & {
590
- /**
591
- * The parsed response body.
592
- */
593
- body: any;
594
- /**
595
- * The underlying HTTP response.
596
- */
597
- _response: coreHttp.HttpResponse & {
598
- /**
599
- * The response body as text (string format)
600
- */
601
- bodyAsText: string;
602
- /**
603
- * The response body as parsed JSON or XML
604
- */
605
- parsedBody: any;
606
- /**
607
- * The parsed HTTP response headers.
608
- */
609
- parsedHeaders: DigitalTwinsGetComponentHeaders;
610
- };
611
- };
338
+ /** Contains response data for the getComponent operation. */
339
+ export declare type DigitalTwinsGetComponentResponse = DigitalTwinsGetComponentHeaders & Record<string, unknown>;
612
340
 
613
- /**
614
- * Defines headers for DigitalTwins_getRelationshipById operation.
615
- */
341
+ /** Defines headers for DigitalTwins_getRelationshipById operation. */
616
342
  export declare interface DigitalTwinsGetRelationshipByIdHeaders {
617
- /**
618
- * Weak Etag.
619
- */
343
+ /** Weak Etag. */
620
344
  etag?: string;
621
345
  }
622
346
 
623
- /**
624
- * Contains response data for the getRelationshipById operation.
625
- */
626
- export declare type DigitalTwinsGetRelationshipByIdResponse = DigitalTwinsGetRelationshipByIdHeaders & {
627
- /**
628
- * The parsed response body.
629
- */
630
- body: any;
631
- /**
632
- * The underlying HTTP response.
633
- */
634
- _response: coreHttp.HttpResponse & {
635
- /**
636
- * The response body as text (string format)
637
- */
638
- bodyAsText: string;
639
- /**
640
- * The response body as parsed JSON or XML
641
- */
642
- parsedBody: any;
643
- /**
644
- * The parsed HTTP response headers.
645
- */
646
- parsedHeaders: DigitalTwinsGetRelationshipByIdHeaders;
647
- };
648
- };
347
+ /** Contains response data for the getRelationshipById operation. */
348
+ export declare type DigitalTwinsGetRelationshipByIdResponse = DigitalTwinsGetRelationshipByIdHeaders & Record<string, unknown>;
649
349
 
650
- /**
651
- * Contains response data for the listIncomingRelationships operation.
652
- */
653
- export declare type DigitalTwinsListIncomingRelationshipsResponse = IncomingRelationshipCollection & {
654
- /**
655
- * The underlying HTTP response.
656
- */
657
- _response: coreHttp.HttpResponse & {
658
- /**
659
- * The response body as text (string format)
660
- */
661
- bodyAsText: string;
662
- /**
663
- * The response body as parsed JSON or XML
664
- */
665
- parsedBody: IncomingRelationshipCollection;
666
- };
667
- };
350
+ /** Contains response data for the listIncomingRelationships operation. */
351
+ export declare type DigitalTwinsListIncomingRelationshipsResponse = IncomingRelationshipCollection;
668
352
 
669
- /**
670
- * Contains response data for the listRelationships operation.
671
- */
672
- export declare type DigitalTwinsListRelationshipsResponse = RelationshipCollection & {
673
- /**
674
- * The underlying HTTP response.
675
- */
676
- _response: coreHttp.HttpResponse & {
677
- /**
678
- * The response body as text (string format)
679
- */
680
- bodyAsText: string;
681
- /**
682
- * The response body as parsed JSON or XML
683
- */
684
- parsedBody: RelationshipCollection;
685
- };
686
- };
353
+ /** Contains response data for the listRelationships operation. */
354
+ export declare type DigitalTwinsListRelationshipsResponse = RelationshipCollection;
687
355
 
688
- /**
689
- * A model definition and metadata for that model.
690
- */
356
+ /** A model definition and metadata for that model. */
691
357
  export declare interface DigitalTwinsModelData {
692
- /**
693
- * A language map that contains the localized display names as specified in the model definition.
694
- */
358
+ /** A language map that contains the localized display names as specified in the model definition. */
695
359
  displayName?: {
696
360
  [propertyName: string]: string;
697
361
  };
698
- /**
699
- * A language map that contains the localized descriptions as specified in the model definition.
700
- */
362
+ /** A language map that contains the localized descriptions as specified in the model definition. */
701
363
  description?: {
702
364
  [propertyName: string]: string;
703
365
  };
704
- /**
705
- * The id of the model as specified in the model definition.
706
- */
366
+ /** The id of the model as specified in the model definition. */
707
367
  id: string;
708
- /**
709
- * The time the model was uploaded to the service.
710
- */
368
+ /** The time the model was uploaded to the service. */
711
369
  uploadTime?: Date;
712
- /**
713
- * Indicates if the model is decommissioned. Decommissioned models cannot be referenced by newly created digital twins.
714
- */
370
+ /** Indicates if the model is decommissioned. Decommissioned models cannot be referenced by newly created digital twins. */
715
371
  decommissioned?: boolean;
716
- /**
717
- * The model definition.
718
- */
719
- model?: any;
372
+ /** The model definition. */
373
+ model?: Record<string, unknown>;
720
374
  }
721
375
 
722
- /**
723
- * Defines headers for DigitalTwins_updateComponent operation.
724
- */
376
+ /** Defines headers for DigitalTwins_updateComponent operation. */
725
377
  export declare interface DigitalTwinsUpdateComponentHeaders {
726
- /**
727
- * Weak Etag.
728
- */
378
+ /** Weak Etag. */
729
379
  etag?: string;
730
380
  }
731
381
 
732
- /**
733
- * Optional parameters.
734
- */
735
- export declare interface DigitalTwinsUpdateComponentOptionalParams extends coreHttp.OperationOptions {
736
- /**
737
- * Identifies the request in a distributed tracing system.
738
- */
739
- traceparent?: string;
740
- /**
741
- * Provides vendor-specific trace identification information and is a companion to traceparent.
742
- */
743
- tracestate?: string;
744
- /**
745
- * Only perform the operation if the entity's etag matches one of the etags provided or * is provided.
746
- */
382
+ /** Optional parameters. */
383
+ export declare interface DigitalTwinsUpdateComponentOptionalParams extends coreClient.OperationOptions {
384
+ /** Only perform the operation if the entity's etag matches one of the etags provided or * is provided. */
747
385
  ifMatch?: string;
748
386
  }
749
387
 
750
- /**
751
- * Contains response data for the updateComponent operation.
752
- */
753
- export declare type DigitalTwinsUpdateComponentResponse = DigitalTwinsUpdateComponentHeaders & {
754
- /**
755
- * The underlying HTTP response.
756
- */
757
- _response: coreHttp.HttpResponse & {
758
- /**
759
- * The parsed HTTP response headers.
760
- */
761
- parsedHeaders: DigitalTwinsUpdateComponentHeaders;
762
- };
763
- };
388
+ /** Contains response data for the updateComponent operation. */
389
+ export declare type DigitalTwinsUpdateComponentResponse = DigitalTwinsUpdateComponentHeaders;
764
390
 
765
- /**
766
- * Defines headers for DigitalTwins_update operation.
767
- */
391
+ /** Defines headers for DigitalTwins_update operation. */
768
392
  export declare interface DigitalTwinsUpdateHeaders {
769
- /**
770
- * Weak Etag.
771
- */
393
+ /** Weak Etag. */
772
394
  etag?: string;
773
395
  }
774
396
 
775
- /**
776
- * Optional parameters.
777
- */
778
- export declare interface DigitalTwinsUpdateOptionalParams extends coreHttp.OperationOptions {
779
- /**
780
- * Identifies the request in a distributed tracing system.
781
- */
782
- traceparent?: string;
783
- /**
784
- * Provides vendor-specific trace identification information and is a companion to traceparent.
785
- */
786
- tracestate?: string;
787
- /**
788
- * Only perform the operation if the entity's etag matches one of the etags provided or * is provided.
789
- */
397
+ /** Optional parameters. */
398
+ export declare interface DigitalTwinsUpdateOptionalParams extends coreClient.OperationOptions {
399
+ /** Only perform the operation if the entity's etag matches one of the etags provided or * is provided. */
790
400
  ifMatch?: string;
791
401
  }
792
402
 
793
- /**
794
- * Defines headers for DigitalTwins_updateRelationship operation.
795
- */
403
+ /** Defines headers for DigitalTwins_updateRelationship operation. */
796
404
  export declare interface DigitalTwinsUpdateRelationshipHeaders {
797
- /**
798
- * Weak Etag.
799
- */
405
+ /** Weak Etag. */
800
406
  etag?: string;
801
407
  }
802
408
 
803
- /**
804
- * Optional parameters.
805
- */
806
- export declare interface DigitalTwinsUpdateRelationshipOptionalParams extends coreHttp.OperationOptions {
807
- /**
808
- * Identifies the request in a distributed tracing system.
809
- */
810
- traceparent?: string;
811
- /**
812
- * Provides vendor-specific trace identification information and is a companion to traceparent.
813
- */
814
- tracestate?: string;
815
- /**
816
- * Only perform the operation if the entity's etag matches one of the etags provided or * is provided.
817
- */
409
+ /** Optional parameters. */
410
+ export declare interface DigitalTwinsUpdateRelationshipOptionalParams extends coreClient.OperationOptions {
411
+ /** Only perform the operation if the entity's etag matches one of the etags provided or * is provided. */
818
412
  ifMatch?: string;
819
413
  }
820
414
 
821
- /**
822
- * Contains response data for the updateRelationship operation.
823
- */
824
- export declare type DigitalTwinsUpdateRelationshipResponse = DigitalTwinsUpdateRelationshipHeaders & {
825
- /**
826
- * The underlying HTTP response.
827
- */
828
- _response: coreHttp.HttpResponse & {
829
- /**
830
- * The parsed HTTP response headers.
831
- */
832
- parsedHeaders: DigitalTwinsUpdateRelationshipHeaders;
833
- };
834
- };
415
+ /** Contains response data for the updateRelationship operation. */
416
+ export declare type DigitalTwinsUpdateRelationshipResponse = DigitalTwinsUpdateRelationshipHeaders;
835
417
 
836
- /**
837
- * Contains response data for the update operation.
838
- */
839
- export declare type DigitalTwinsUpdateResponse = DigitalTwinsUpdateHeaders & {
840
- /**
841
- * The underlying HTTP response.
842
- */
843
- _response: coreHttp.HttpResponse & {
844
- /**
845
- * The parsed HTTP response headers.
846
- */
847
- parsedHeaders: DigitalTwinsUpdateHeaders;
848
- };
849
- };
418
+ /** Contains response data for the update operation. */
419
+ export declare type DigitalTwinsUpdateResponse = DigitalTwinsUpdateHeaders;
850
420
 
851
- /**
852
- * A route which directs notification and telemetry events to an endpoint. Endpoints are a destination outside of Azure Digital Twins such as an EventHub.
853
- */
421
+ /** A route which directs notification and telemetry events to an endpoint. Endpoints are a destination outside of Azure Digital Twins such as an EventHub. */
854
422
  export declare interface EventRoute {
855
423
  /**
856
424
  * The id of the event route.
425
+ * NOTE: This property will not be serialized. It can only be populated by the server.
857
426
  */
858
427
  readonly id?: string;
859
- /**
860
- * The name of the endpoint this event route is bound to.
861
- */
428
+ /** The name of the endpoint this event route is bound to. */
862
429
  endpointName: string;
863
- /**
864
- * An expression which describes the events which are routed to the endpoint.
865
- */
430
+ /** An expression which describes the events which are routed to the endpoint. */
866
431
  filter: string;
867
432
  }
868
433
 
869
- /**
870
- * A collection of EventRoute objects.
871
- */
434
+ /** A collection of EventRoute objects. */
872
435
  export declare interface EventRouteCollection {
873
- /**
874
- * The EventRoute objects.
875
- */
436
+ /** The EventRoute objects. */
876
437
  value?: EventRoute[];
877
- /**
878
- * A URI to retrieve the next page of results.
879
- */
438
+ /** A URI to retrieve the next page of results. */
880
439
  nextLink?: string;
881
440
  }
882
441
 
883
- /**
884
- * Contains response data for the getById operation.
885
- */
886
- export declare type EventRoutesGetByIdResponse = EventRoute & {
887
- /**
888
- * The underlying HTTP response.
889
- */
890
- _response: coreHttp.HttpResponse & {
891
- /**
892
- * The response body as text (string format)
893
- */
894
- bodyAsText: string;
895
- /**
896
- * The response body as parsed JSON or XML
897
- */
898
- parsedBody: EventRoute;
899
- };
900
- };
442
+ /** Contains response data for the getById operation. */
443
+ export declare type EventRoutesGetByIdResponse = EventRoute;
901
444
 
902
- /**
903
- * Contains response data for the listNext operation.
904
- */
905
- export declare type EventRoutesListNextResponse = EventRouteCollection & {
906
- /**
907
- * The underlying HTTP response.
908
- */
909
- _response: coreHttp.HttpResponse & {
910
- /**
911
- * The response body as text (string format)
912
- */
913
- bodyAsText: string;
914
- /**
915
- * The response body as parsed JSON or XML
916
- */
917
- parsedBody: EventRouteCollection;
918
- };
919
- };
445
+ /** Contains response data for the listNext operation. */
446
+ export declare type EventRoutesListNextResponse = EventRouteCollection;
920
447
 
921
- /**
922
- * An incoming relationship.
923
- */
448
+ /** Optional parameters. */
449
+ export declare interface GetModelOptions extends coreClient.OperationOptions {
450
+ /** When true the model definition will be returned as part of the result. */
451
+ includeModelDefinition?: boolean;
452
+ }
453
+
454
+ /** An incoming relationship. */
924
455
  export declare interface IncomingRelationship {
925
- /**
926
- * A user-provided string representing the id of this relationship, unique in the context of the source digital twin, i.e. sourceId + relationshipId is unique in the context of the service.
927
- */
456
+ /** A user-provided string representing the id of this relationship, unique in the context of the source digital twin, i.e. sourceId + relationshipId is unique in the context of the service. */
928
457
  relationshipId?: string;
929
- /**
930
- * The id of the source digital twin.
931
- */
458
+ /** The id of the source digital twin. */
932
459
  sourceId?: string;
933
- /**
934
- * The name of the relationship.
935
- */
460
+ /** The name of the relationship. */
936
461
  relationshipName?: string;
937
- /**
938
- * Link to the relationship, to be used for deletion.
939
- */
462
+ /** Link to the relationship, to be used for deletion. */
940
463
  relationshipLink?: string;
941
464
  }
942
465
 
943
- /**
944
- * A collection of incoming relationships which relate digital twins together.
945
- */
466
+ /** A collection of incoming relationships which relate digital twins together. */
946
467
  export declare interface IncomingRelationshipCollection {
947
468
  value?: IncomingRelationship[];
948
- /**
949
- * A URI to retrieve the next page of objects.
950
- */
469
+ /** A URI to retrieve the next page of objects. */
951
470
  nextLink?: string;
952
471
  }
953
472
 
954
- /**
955
- * A collection of DigitalTwinsModelData objects.
956
- */
473
+ /** Optional parameters. */
474
+ export declare interface ListEventRoutesOptions extends coreClient.OperationOptions {
475
+ /** The maximum number of items to retrieve per request. The server may choose to return less than the requested number. */
476
+ resultsPerPage?: number;
477
+ }
478
+
479
+ /** Optional parameters. */
480
+ export declare interface ListIncomingRelationshipsOptions extends coreClient.OperationOptions {
481
+ }
482
+
483
+ /** Optional parameters. */
484
+ export declare interface ListModelsOptions extends coreClient.OperationOptions {
485
+ /** The set of the models which will have their dependencies retrieved. If omitted, all models are retrieved. */
486
+ dependenciesFor?: string[];
487
+ /** When true the model definition will be returned as part of the result. */
488
+ includeModelDefinition?: boolean;
489
+ /** The maximum number of items to retrieve per request. The server may choose to return less than the requested number. */
490
+ resultsPerPage?: number;
491
+ }
492
+
493
+ /** Optional parameters. */
494
+ export declare interface ListRelationshipsOptions extends coreClient.OperationOptions {
495
+ /** The name of the relationship. */
496
+ relationshipName?: string;
497
+ }
498
+
499
+ /** A collection of DigitalTwinsModelData objects. */
957
500
  export declare interface PagedDigitalTwinsModelDataCollection {
958
- /**
959
- * The DigitalTwinsModelData objects.
960
- */
501
+ /** The DigitalTwinsModelData objects. */
961
502
  value?: DigitalTwinsModelData[];
962
- /**
963
- * A URI to retrieve the next page of objects.
964
- */
503
+ /** A URI to retrieve the next page of objects. */
965
504
  nextLink?: string;
966
505
  }
967
506
 
968
- /**
969
- * Defines headers for Query_queryTwins operation.
970
- */
507
+ /** Defines headers for Query_queryTwins operation. */
971
508
  export declare interface QueryQueryTwinsHeaders {
972
- /**
973
- * The query charge.
974
- */
509
+ /** The query charge. */
975
510
  queryCharge?: number;
976
511
  }
977
512
 
978
- /**
979
- * Contains response data for the queryTwins operation.
980
- */
981
- export declare type QueryQueryTwinsResponse = QueryQueryTwinsHeaders & QueryResult & {
982
- /**
983
- * The underlying HTTP response.
984
- */
985
- _response: coreHttp.HttpResponse & {
986
- /**
987
- * The response body as text (string format)
988
- */
989
- bodyAsText: string;
990
- /**
991
- * The response body as parsed JSON or XML
992
- */
993
- parsedBody: QueryResult;
994
- /**
995
- * The parsed HTTP response headers.
996
- */
997
- parsedHeaders: QueryQueryTwinsHeaders;
998
- };
999
- };
513
+ /** Contains response data for the queryTwins operation. */
514
+ export declare type QueryQueryTwinsResponse = QueryQueryTwinsHeaders & QueryResult;
1000
515
 
1001
- /**
1002
- * The results of a query operation and an optional continuation token.
1003
- */
516
+ /** The results of a query operation and an optional continuation token. */
1004
517
  export declare interface QueryResult {
1005
- /**
1006
- * The query results.
1007
- */
1008
- value?: any[];
1009
- /**
1010
- * A token which can be used to construct a new QuerySpecification to retrieve the next set of results.
1011
- */
518
+ /** The query results. */
519
+ value?: Record<string, unknown>[];
520
+ /** A token which can be used to construct a new QuerySpecification to retrieve the next set of results. */
1012
521
  continuationToken?: string;
1013
522
  }
1014
523
 
1015
- /**
1016
- * A query specification containing either a query statement or a continuation token from a previous query result.
1017
- */
524
+ /** A query specification containing either a query statement or a continuation token from a previous query result. */
1018
525
  export declare interface QuerySpecification {
1019
- /**
1020
- * The query to execute. This value is ignored if a continuation token is provided.
1021
- */
526
+ /** The query to execute. This value is ignored if a continuation token is provided. */
1022
527
  query?: string;
1023
- /**
1024
- * A token which is used to retrieve the next set of results from a previous query.
1025
- */
528
+ /** A token which is used to retrieve the next set of results from a previous query. */
1026
529
  continuationToken?: string;
1027
530
  }
1028
531
 
1029
- /**
1030
- * A collection of relationships which relate digital twins together.
1031
- */
532
+ /** Optional parameters. */
533
+ export declare interface QueryTwinsOptions extends coreClient.OperationOptions {
534
+ /** The maximum number of items to retrieve per request. The server may choose to return less than the requested number. */
535
+ resultsPerPage?: number;
536
+ }
537
+
538
+ /** A collection of relationships which relate digital twins together. */
1032
539
  export declare interface RelationshipCollection {
1033
- /**
1034
- * The relationship objects.
1035
- */
1036
- value?: any[];
1037
- /**
1038
- * A URI to retrieve the next page of objects.
1039
- */
540
+ /** The relationship objects. */
541
+ value?: Record<string, unknown>[];
542
+ /** A URI to retrieve the next page of objects. */
1040
543
  nextLink?: string;
1041
544
  }
1042
545