New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cognite/sdk

Package Overview
Dependencies
Maintainers
2
Versions
249
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cognite/sdk - npm Package Compare versions

Comparing version 10.0.0-rc.10 to 10.0.0

dist/src/api/files/errors.d.ts

202

dist/src/api/annotations/types.gen.d.ts

@@ -6,3 +6,3 @@ /**

*/
export type AnnotationData = AnnotationsBoundingVolume | AnnotationsClassification | AnnotationsDetection | AnnotationsExtractedText | AnnotationsFileLink | AnnotationsIsoPlanAnnotation | AnnotationsJunction | AnnotationsKeypointCollection | AnnotationsLine | AnnotationsObjectDetection | AnnotationsTextRegion | AnnotationsUnhandledSymbolObject | AnnotationsUnhandledTextObject | AnnotationsCogniteAnnotationTypesDiagramsAssetLink | AnnotationsCogniteAnnotationTypesDiagramsInstanceLink | AnnotationsCogniteAnnotationTypesImagesAssetLink | AnnotationsCogniteAnnotationTypesImagesInstanceLink;
export type AnnotationData = AnnotationsBoundingVolume | AnnotationsClassification | AnnotationsDetection | AnnotationsExtractedText | AnnotationsFileLink | AnnotationsIsoPlanAnnotation | AnnotationsJunction | AnnotationsKeypointCollection | AnnotationsLine | AnnotationsObjectDetection | AnnotationsTextRegion | AnnotationsUnhandledSymbolObject | AnnotationsUnhandledTextObject | AnnotationsTypesDiagramsAssetLink | AnnotationsTypesDiagramsInstanceLink | AnnotationsTypesImagesAssetLink | AnnotationsTypesImagesInstanceLink;
/**

@@ -75,3 +75,3 @@ * A reference to an asset. Either the internal ID or the external ID must be provided (exactly one).

/** The region of the annotation defined by a list of geometry primitives (cylinder and box). */
region: AnnotationsCogniteAnnotationTypesPrimitivesGeometry3DGeometry[];
region: AnnotationsTypesPrimitivesGeometry3DGeometry[];
}

@@ -111,101 +111,2 @@ /**

/**
* Models a link to a CDF Asset referenced in an engineering diagram
*/
export interface AnnotationsCogniteAnnotationTypesDiagramsAssetLink {
/** The asset this annotation is pointing to */
assetRef: AnnotationsAssetRef;
/** The description of a primitive */
description?: string;
/**
* The number of the page on which this annotation is located. The first page has number 1.
* @min 1
* @max 100000
*/
pageNumber?: number;
/** The symbol representing the asset */
symbol?: string;
/** The location of the symbol representing the asset */
symbolRegion?: AnnotationsBoundingBox;
/** The extracted text */
text?: string;
/** The location of the text mentioning the asset */
textRegion: AnnotationsBoundingBox;
}
/**
* Models a link to an FDM instance referenced in an engineering diagram
*/
export interface AnnotationsCogniteAnnotationTypesDiagramsInstanceLink {
/** The description of a primitive */
description?: string;
/** The FDM instance this annotation is pointing to */
instanceRef: AnnotationsInstanceRef;
/**
* The number of the page on which this annotation is located. The first page has number 1.
* @min 1
* @max 100000
*/
pageNumber?: number;
/** The symbol found in the file */
symbol?: string;
/** Optional location of a symbol */
symbolRegion?: AnnotationsBoundingBox;
/** The extracted text */
text: string;
/** The location of the text mentioning the file */
textRegion: AnnotationsBoundingBox;
}
/**
* Models a link to a CDF Asset referenced in an image
*/
export interface AnnotationsCogniteAnnotationTypesImagesAssetLink {
/** The asset this annotation is pointing to */
assetRef: AnnotationsAssetRef;
/**
* The confidence score for the primitive. It should be between 0 and 1.
* @min 0
* @max 1
*/
confidence?: number;
/** The region of the object representing the asset */
objectRegion?: AnnotationsCogniteAnnotationTypesPrimitivesGeometry2DGeometry;
/** The extracted text */
text: string;
/** The location of the text mentioning the asset */
textRegion: AnnotationsBoundingBox;
}
/**
* Models a link to an FDM instance referenced in an image
*/
export interface AnnotationsCogniteAnnotationTypesImagesInstanceLink {
/**
* The confidence score for the primitive. It should be between 0 and 1.
* @min 0
* @max 1
*/
confidence?: number;
/** The FDM instance this annotation is pointing to */
instanceRef: AnnotationsInstanceRef;
/** The extracted text */
text: string;
/** The location of the text mentioning the FDM instance */
textRegion: AnnotationsBoundingBox;
}
/**
* A geometry represented by exactly *one of* ` bounding_box`, `polygon` and
`polyline` which, respectively, represents a BoundingBox, Polygon and
PolyLine.
*/
export interface AnnotationsCogniteAnnotationTypesPrimitivesGeometry2DGeometry {
boundingBox?: AnnotationsBoundingBox;
polygon?: AnnotationsPolygon;
polyline?: AnnotationsPolyLine;
}
/**
* A 3D geometry model represented by exactly *one of* `cylinder` and `box`.
*/
export interface AnnotationsCogniteAnnotationTypesPrimitivesGeometry3DGeometry {
box?: AnnotationsBox;
cylinder?: AnnotationsCylinder;
}
/**
* A cylinder in 3D space, defined by the centers of the two end surfaces and the radius.

@@ -546,2 +447,101 @@ */

/**
* Models a link to a CDF Asset referenced in an engineering diagram
*/
export interface AnnotationsTypesDiagramsAssetLink {
/** The asset this annotation is pointing to */
assetRef: AnnotationsAssetRef;
/** The description of a primitive */
description?: string;
/**
* The number of the page on which this annotation is located. The first page has number 1.
* @min 1
* @max 100000
*/
pageNumber?: number;
/** The symbol representing the asset */
symbol?: string;
/** The location of the symbol representing the asset */
symbolRegion?: AnnotationsBoundingBox;
/** The extracted text */
text?: string;
/** The location of the text mentioning the asset */
textRegion: AnnotationsBoundingBox;
}
/**
* Models a link to an FDM instance referenced in an engineering diagram
*/
export interface AnnotationsTypesDiagramsInstanceLink {
/** The description of a primitive */
description?: string;
/** The FDM instance this annotation is pointing to */
instanceRef: AnnotationsInstanceRef;
/**
* The number of the page on which this annotation is located. The first page has number 1.
* @min 1
* @max 100000
*/
pageNumber?: number;
/** The symbol found in the file */
symbol?: string;
/** Optional location of a symbol */
symbolRegion?: AnnotationsBoundingBox;
/** The extracted text */
text: string;
/** The location of the text mentioning the file */
textRegion: AnnotationsBoundingBox;
}
/**
* Models a link to a CDF Asset referenced in an image
*/
export interface AnnotationsTypesImagesAssetLink {
/** The asset this annotation is pointing to */
assetRef: AnnotationsAssetRef;
/**
* The confidence score for the primitive. It should be between 0 and 1.
* @min 0
* @max 1
*/
confidence?: number;
/** The region of the object representing the asset */
objectRegion?: AnnotationsTypesPrimitivesGeometry2DGeometry;
/** The extracted text */
text: string;
/** The location of the text mentioning the asset */
textRegion: AnnotationsBoundingBox;
}
/**
* Models a link to an FDM instance referenced in an image
*/
export interface AnnotationsTypesImagesInstanceLink {
/**
* The confidence score for the primitive. It should be between 0 and 1.
* @min 0
* @max 1
*/
confidence?: number;
/** The FDM instance this annotation is pointing to */
instanceRef: AnnotationsInstanceRef;
/** The extracted text */
text: string;
/** The location of the text mentioning the FDM instance */
textRegion: AnnotationsBoundingBox;
}
/**
* A geometry represented by exactly *one of* ` bounding_box`, `polygon` and
`polyline` which, respectively, represents a BoundingBox, Polygon and
PolyLine.
*/
export interface AnnotationsTypesPrimitivesGeometry2DGeometry {
boundingBox?: AnnotationsBoundingBox;
polygon?: AnnotationsPolygon;
polyline?: AnnotationsPolyLine;
}
/**
* A 3D geometry model represented by exactly *one of* `cylinder` and `box`.
*/
export interface AnnotationsTypesPrimitivesGeometry3DGeometry {
box?: AnnotationsBox;
cylinder?: AnnotationsCylinder;
}
/**
* Models an extracted symbol region in an engineering diagram

@@ -548,0 +548,0 @@ */

@@ -1,4 +0,10 @@

import { BaseResourceAPI, CursorAndAsyncIterator, IdEitherWithInstance } from '@cognite/sdk-core';
import { BaseResourceAPI, CDFHttpClient, CursorAndAsyncIterator, IdEitherWithInstance, MetadataMap } from '@cognite/sdk-core';
import { ExternalFileInfo, FileAggregate, FileAggregateQuery, FileChangeUpdate, FileContent, FileInfo, FileLink, FileRequestFilter, FileUploadResponse, FilesSearchFilter, IdEither, IgnoreUnknownIds } from '../../types';
import { FilesMultipartUploadSessionAPI } from './filesMultipartUploadSessionApi';
export declare class FilesAPI extends BaseResourceAPI<FileInfo> {
private limits;
private _client;
private _map;
private _baseUrl;
constructor(...args: [string, CDFHttpClient, MetadataMap]);
/**

@@ -98,3 +104,15 @@ * Specify that dates should be parsed in requests and responses

private getDownloadUrlsEndpoint;
/**
* [Init a multipart file upload](https://api-docs.cognite.com/20230101/tag/Files/operation/initMultiPartUpload)
*
* ```js
* // Each file part must be larger than 5 MiB, and smaller than 4000 MiB. The file part for the last uploadURL can be smaller than 5 MiB.
* const numberOfParts = 5;
* // automatic upload:
* const multiPartUploadApi = await client.files.multipartUploadSession({name: 'examplefile.jpg', mimeType: 'image/jpeg'}, numberOfParts);
* ```
*/
multipartUploadSession(fileInfo: ExternalFileInfo, parts: number, overwrite?: boolean): Promise<FilesMultipartUploadSessionAPI>;
private getMultipartUploadSession;
}
export type FileRetrieveParams = IgnoreUnknownIds;

@@ -54,31 +54,2 @@ /**

/**
* Models a link to a CDF Asset referenced in an image
*/
export interface AnnotationsCogniteAnnotationTypesImagesAssetLink {
/** The asset this annotation is pointing to */
assetRef: AnnotationsAssetRef;
/**
* The confidence score for the primitive. It should be between 0 and 1.
* @min 0
* @max 1
*/
confidence?: number;
/** The region of the object representing the asset */
objectRegion?: AnnotationsCogniteAnnotationTypesPrimitivesGeometry2DGeometry;
/** The extracted text */
text: string;
/** The location of the text mentioning the asset */
textRegion: AnnotationsBoundingBox;
}
/**
* A geometry represented by exactly *one of* ` bounding_box`, `polygon` and
`polyline` which, respectively, represents a BoundingBox, Polygon and
PolyLine.
*/
export interface AnnotationsCogniteAnnotationTypesPrimitivesGeometry2DGeometry {
boundingBox?: AnnotationsBoundingBox;
polygon?: AnnotationsPolygon;
polyline?: AnnotationsPolyLine;
}
/**
* A point attached with additional information such as a confidence value and

@@ -211,2 +182,31 @@ various attribute(s).

/**
* Models a link to a CDF Asset referenced in an image
*/
export interface AnnotationsTypesImagesAssetLink {
/** The asset this annotation is pointing to */
assetRef: AnnotationsAssetRef;
/**
* The confidence score for the primitive. It should be between 0 and 1.
* @min 0
* @max 1
*/
confidence?: number;
/** The region of the object representing the asset */
objectRegion?: AnnotationsTypesPrimitivesGeometry2DGeometry;
/** The extracted text */
text: string;
/** The location of the text mentioning the asset */
textRegion: AnnotationsBoundingBox;
}
/**
* A geometry represented by exactly *one of* ` bounding_box`, `polygon` and
`polyline` which, respectively, represents a BoundingBox, Polygon and
PolyLine.
*/
export interface AnnotationsTypesPrimitivesGeometry2DGeometry {
boundingBox?: AnnotationsBoundingBox;
polygon?: AnnotationsPolygon;
polyline?: AnnotationsPolyLine;
}
/**
* Detect external ID or name of assets (from your CDF projects) in images. Usage of this feature requires `['assetsAcl:READ']` capability.

@@ -537,3 +537,3 @@ */

export interface VisionExtractPredictions {
assetTagPredictions?: AnnotationsCogniteAnnotationTypesImagesAssetLink[];
assetTagPredictions?: AnnotationsTypesImagesAssetLink[];
/** In beta. Available only when the `cdf-version: beta` header is provided. */

@@ -540,0 +540,0 @@ dialGaugePredictions?: {

@@ -26,2 +26,3 @@ import { BaseCogniteClient, RetryValidator } from '@cognite/sdk-core';

import { SequencesAPI } from './api/sequences/sequencesApi';
import { SessionsApi } from './api/sessions/sessionsApi';
import { SpacesAPI } from './api/spaces/spacesApi';

@@ -59,2 +60,3 @@ import { TemplateGroupVersionsApi, TemplateGroupsApi, TemplateInstancesApi, ViewsApi } from './api/templates';

get profiles(): ProfilesAPI;
get sessions(): SessionsApi;
get templates(): {

@@ -111,2 +113,3 @@ groups: TemplateGroupsApi;

private dataModelsApi?;
private sessionsApi?;
protected get version(): string;

@@ -113,0 +116,0 @@ protected getRetryValidator(): RetryValidator;

export type { EpochTimestamp } from './types.gen';
export type { AnnotationData, AnnotationsAssetRef, AnnotationsBoolean, AnnotationsBoundingBox, AnnotationsBoundingVolume, AnnotationsBox, AnnotationsClassification, AnnotationsCogniteAnnotationTypesDiagramsAssetLink, AnnotationsCogniteAnnotationTypesDiagramsInstanceLink, AnnotationsCogniteAnnotationTypesImagesAssetLink, AnnotationsCogniteAnnotationTypesImagesInstanceLink, AnnotationsCogniteAnnotationTypesPrimitivesGeometry2DGeometry, AnnotationsCogniteAnnotationTypesPrimitivesGeometry3DGeometry, AnnotationsCylinder, AnnotationsDetection, AnnotationsExtractedText, AnnotationsFileLink, AnnotationsFileRef, AnnotationsInstanceRef, AnnotationsIsoPlanAnnotation, AnnotationsJunction, AnnotationsKeypoint, AnnotationsKeypointCollection, AnnotationsLine, AnnotationsNumerical, AnnotationsObjectDetection, AnnotationsPoint, AnnotationsPolyLine, AnnotationsPolygon, AnnotationsSizeAndClassType, AnnotationsTextRegion, AnnotationsUnhandledSymbolObject, AnnotationsUnhandledTextObject, AnnotationsView, } from './api/annotations/types.gen';
export type { BtreeIndex, CDFExternalIdReference, ConstraintDefinition, ContainerCollectionResponse, ContainerCollectionResponseWithCursorResponse, ContainerCorePropertyDefinition, ContainerCreateCollection, ContainerCreateDefinition, ContainerDefinition, ContainerPropertyDefinition, ContainerReference, CorePropertyDefinition, DMSExternalId, DirectNodeRelation, IndexDefinition, InvertedIndex, ListOfContainerSubObjectIdentifierRequest, ListOfContainerSubObjectIdentifierResponse, ListOfSpaceExternalIdsRequest, ListOfSpaceExternalIdsResponse, PrimitiveProperty, RequiresConstraintDefinition, SpaceQueryParameter, TextProperty, UniquenessConstraintDefinition, UsedFor, } from './api/containers/types.gen';
export type { AnnotationData, AnnotationsAssetRef, AnnotationsBoolean, AnnotationsBoundingBox, AnnotationsBoundingVolume, AnnotationsBox, AnnotationsClassification, AnnotationsCylinder, AnnotationsDetection, AnnotationsExtractedText, AnnotationsFileLink, AnnotationsFileRef, AnnotationsInstanceRef, AnnotationsIsoPlanAnnotation, AnnotationsJunction, AnnotationsKeypoint, AnnotationsKeypointCollection, AnnotationsLine, AnnotationsNumerical, AnnotationsObjectDetection, AnnotationsPoint, AnnotationsPolyLine, AnnotationsPolygon, AnnotationsSizeAndClassType, AnnotationsTextRegion, AnnotationsTypesDiagramsAssetLink, AnnotationsTypesDiagramsInstanceLink, AnnotationsTypesImagesAssetLink, AnnotationsTypesImagesInstanceLink, AnnotationsTypesPrimitivesGeometry2DGeometry, AnnotationsTypesPrimitivesGeometry3DGeometry, AnnotationsUnhandledSymbolObject, AnnotationsUnhandledTextObject, AnnotationsView, } from './api/annotations/types.gen';
export type { CogniteExternalId, CogniteInternalId, Document, DocumentAggregateFilter, DocumentAggregateFilterBool, DocumentAggregateFilterLeaf, DocumentAggregateFilterPrefix, DocumentAggregateValue, DocumentCursor, DocumentFilter, DocumentFilterBool, DocumentFilterContainsAll, DocumentFilterContainsAny, DocumentFilterEquals, DocumentFilterExists, DocumentFilterGeoJsonDisjoint, DocumentFilterGeoJsonIntersects, DocumentFilterGeoJsonWithin, DocumentFilterIn, DocumentFilterInAssetSubtree, DocumentFilterLeaf, DocumentFilterPrefix, DocumentFilterProperty, DocumentFilterRange, DocumentFilterRangeValue, DocumentFilterSearch, DocumentFilterValue, DocumentFilterValueList, DocumentGeoJsonGeometry, DocumentHighlight, DocumentListFilter, DocumentListLimit, DocumentListRequest, DocumentListResponse, DocumentSearch, DocumentSearchAggregate, DocumentSearchAggregateGroup, DocumentSearchAggregateGroupIdentifier, DocumentSearchAggregates, DocumentSearchCountAggregate, DocumentSearchCountAggregatesGroup, DocumentSearchFilter, DocumentSearchHighlight, DocumentSearchInAggregate, DocumentSearchItem, DocumentSearchLimit, DocumentSearchRequest, DocumentSearchResponse, DocumentSort, DocumentSortItem, DocumentSourceFile, DocumentsAggregateAllUniquePropertiesItem, DocumentsAggregateAllUniquePropertiesRequest, DocumentsAggregateAllUniquePropertiesResponse, DocumentsAggregateAllUniqueValuesItem, DocumentsAggregateAllUniqueValuesRequest, DocumentsAggregateAllUniqueValuesResponse, DocumentsAggregateCardinalityPropertiesItem, DocumentsAggregateCardinalityPropertiesRequest, DocumentsAggregateCardinalityPropertiesResponse, DocumentsAggregateCardinalityValuesItem, DocumentsAggregateCardinalityValuesRequest, DocumentsAggregateCardinalityValuesResponse, DocumentsAggregateCountItem, DocumentsAggregateCountRequest, DocumentsAggregateCountResponse, DocumentsAggregateRequest, DocumentsAggregateResponse, DocumentsAggregateUniquePropertiesItem, DocumentsAggregateUniquePropertiesRequest, DocumentsAggregateUniquePropertiesResponse, DocumentsAggregateUniqueValuesItem, DocumentsAggregateUniqueValuesRequest, DocumentsAggregateUniqueValuesResponse, DocumentsPreviewTemporaryLinkResponse, Label, LabelList, } from './api/documents/types.gen';

@@ -5,0 +4,0 @@ export type { CursorQueryParameter, IncludeGlobalQueryParameter, ListOfSpaceIdsRequest, ListOfSpaceIdsResponse, NextCursorV3, ReducedLimitQueryParameter, SpaceCollectionResponseV3Response, SpaceCollectionResponseWithCursorResponse, SpaceCreateCollection, SpaceCreateDefinition, SpaceDefinition, SpaceSpecification, UpsertConflict, } from './api/spaces/types.gen';

@@ -19,2 +19,3 @@ export { HttpError, type HttpQueryParams, type HttpHeaders, type HttpRequestOptions, type HttpResponse, HttpResponseType, CogniteError, CogniteMultiError, type ClientOptions, } from '@cognite/sdk-core';

export { FilesAPI } from './api/files/filesApi';
export { FilesMultipartUploadSessionAPI } from './api/files/filesMultipartUploadSessionApi';
export { GroupsAPI } from './api/groups/groupsApi';

@@ -21,0 +22,0 @@ export { LabelsAPI } from './api/labels/labelsApi';

@@ -14,3 +14,3 @@ {

},
"version": "10.0.0-rc.10",
"version": "10.0.0",
"type": "module",

@@ -32,3 +32,3 @@ "scripts": {

"dependencies": {
"@cognite/sdk-core": "^5.0.0-rc.9",
"@cognite/sdk-core": "^5.0.0",
"@types/geojson": "^7946.0.14",

@@ -44,3 +44,3 @@ "geojson": "^0.5.0",

},
"gitHead": "17a23c088919267b116182a6dfadf5a60837a3d1"
"gitHead": "ab608849e1199fb539aa63f44bd83d7feda41396"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc