Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 6156050

Browse files
committed
MINOR: Add IfcAccessToken. It is usefull to create read_only tokens to share a viewer or when you're using an app without users
1 parent 64b3131 commit 6156050

30 files changed

Lines changed: 3185 additions & 1195 deletions

README.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ Please follow the [installation](#installation) instruction and execute the foll
101101
var bimdata = require('@bimdata/bimdata-api-client');
102102

103103
var defaultClient = bimdata.ApiClient.instance;
104-
// Configure OAuth2 access token for authorization: BIMDataConnect
105-
var BIMDataConnect = defaultClient.authentications['BIMDataConnect'];
106-
BIMDataConnect.accessToken = "YOUR ACCESS TOKEN"
107104
// Configure API key authorization: Bearer
108105
var Bearer = defaultClient.authentications['Bearer'];
109106
Bearer.apiKey = "YOUR API KEY"
110107
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
111108
//Bearer.apiKeyPrefix['Authorization'] = "Token"
109+
// Configure OAuth2 access token for authorization: bimdata_connect
110+
var bimdata_connect = defaultClient.authentications['bimdata_connect'];
111+
bimdata_connect.accessToken = "YOUR ACCESS TOKEN"
112112
// Configure OAuth2 access token for authorization: client_credentials
113113
var client_credentials = defaultClient.authentications['client_credentials'];
114114
client_credentials.accessToken = "YOUR ACCESS TOKEN"
@@ -227,6 +227,10 @@ Class | Method | HTTP request | Description
227227
*bimdata.CloudApi* | [**inviteCloudUser**](docs/CloudApi.md#inviteCloudUser) | **POST** /cloud/{cloud_pk}/invitation | Invite a cloud administrator
228228
*bimdata.CloudApi* | [**updateCloud**](docs/CloudApi.md#updateCloud) | **PATCH** /cloud/{id} | Update some fields of a cloud
229229
*bimdata.CloudApi* | [**updateCloudUser**](docs/CloudApi.md#updateCloudUser) | **PATCH** /cloud/{cloud_pk}/user/{id} | Update some fields of a cloud user
230+
*bimdata.IdentityProviderApi* | [**acceptInvitation**](docs/IdentityProviderApi.md#acceptInvitation) | **POST** /identity-provider/invitation/{id}/accept | Accept an invitation
231+
*bimdata.IdentityProviderApi* | [**denyInvitation**](docs/IdentityProviderApi.md#denyInvitation) | **POST** /identity-provider/invitation/{id}/deny | Deny an invitation
232+
*bimdata.IdentityProviderApi* | [**getInvitation**](docs/IdentityProviderApi.md#getInvitation) | **GET** /identity-provider/invitation/{id} | Retrieve an invitation
233+
*bimdata.IdentityProviderApi* | [**getInvitations**](docs/IdentityProviderApi.md#getInvitations) | **GET** /identity-provider/invitation | Retrieve all invitations
230234
*bimdata.IfcApi* | [**bulkDeleteIfcClassifications**](docs/IfcApi.md#bulkDeleteIfcClassifications) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification/list_destroy | Remove all classifications from model's elements
231235
*bimdata.IfcApi* | [**bulkDeleteIfcProperties**](docs/IfcApi.md#bulkDeleteIfcProperties) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/bulk_destroy | Delete many Property of a model
232236
*bimdata.IfcApi* | [**bulkDeleteIfcPropertyDefinitions**](docs/IfcApi.md#bulkDeleteIfcPropertyDefinitions) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/propertydefinition/bulk_destroy | Delete many PropertyDefinitions of a model
@@ -239,6 +243,7 @@ Class | Method | HTTP request | Description
239243
*bimdata.IfcApi* | [**bulkUpdateElements**](docs/IfcApi.md#bulkUpdateElements) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/bulk_update | Update many elements at once (all field must be defined)
240244
*bimdata.IfcApi* | [**bulkUpdateIfcProperty**](docs/IfcApi.md#bulkUpdateIfcProperty) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/bulk_update | Update all fields of many properties of a model
241245
*bimdata.IfcApi* | [**cloudProjectIfcProcessorhandlerPartialUpdate**](docs/IfcApi.md#cloudProjectIfcProcessorhandlerPartialUpdate) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/processorhandler/{id} |
246+
*bimdata.IfcApi* | [**createAccessToken**](docs/IfcApi.md#createAccessToken) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token | Create a token for this model
242247
*bimdata.IfcApi* | [**createClassificationElementRelations**](docs/IfcApi.md#createClassificationElementRelations) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification-element | Create association between existing classification and existing element
243248
*bimdata.IfcApi* | [**createClassificationsOfElement**](docs/IfcApi.md#createClassificationsOfElement) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/classification | Create one or many classifications to an element
244249
*bimdata.IfcApi* | [**createElement**](docs/IfcApi.md#createElement) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element | Create an element in the model
@@ -254,6 +259,7 @@ Class | Method | HTTP request | Description
254259
*bimdata.IfcApi* | [**createSpace**](docs/IfcApi.md#createSpace) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/space | Create a space in the model
255260
*bimdata.IfcApi* | [**createZone**](docs/IfcApi.md#createZone) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone | Create a zone in the model
256261
*bimdata.IfcApi* | [**createZoneSpace**](docs/IfcApi.md#createZoneSpace) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space | Create a space in a zone
262+
*bimdata.IfcApi* | [**deleteAccessToken**](docs/IfcApi.md#deleteAccessToken) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token/{token} | Delete a token
257263
*bimdata.IfcApi* | [**deleteElement**](docs/IfcApi.md#deleteElement) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid} | Delete a zone of a model
258264
*bimdata.IfcApi* | [**deleteIfc**](docs/IfcApi.md#deleteIfc) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{id} | Delete a model
259265
*bimdata.IfcApi* | [**deleteIfcProperty**](docs/IfcApi.md#deleteIfcProperty) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/{id} | Delete a Property of a model
@@ -264,6 +270,7 @@ Class | Method | HTTP request | Description
264270
*bimdata.IfcApi* | [**deleteZone**](docs/IfcApi.md#deleteZone) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{id} | Delete a zone of a model
265271
*bimdata.IfcApi* | [**deleteZoneSpace**](docs/IfcApi.md#deleteZoneSpace) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space/{id} | Delete a space of a zone
266272
*bimdata.IfcApi* | [**exportIfc**](docs/IfcApi.md#exportIfc) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/export | Export IFC
273+
*bimdata.IfcApi* | [**fullUpdateAccessToken**](docs/IfcApi.md#fullUpdateAccessToken) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token/{token} | Update all fields of a token
267274
*bimdata.IfcApi* | [**fullUpdateElement**](docs/IfcApi.md#fullUpdateElement) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid} | Update all fields of an element
268275
*bimdata.IfcApi* | [**fullUpdateIfc**](docs/IfcApi.md#fullUpdateIfc) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/ifc/{id} | Update all fields of a model
269276
*bimdata.IfcApi* | [**fullUpdateIfcProperty**](docs/IfcApi.md#fullUpdateIfcProperty) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/property/{id} | Update some fields of a Property
@@ -273,6 +280,8 @@ Class | Method | HTTP request | Description
273280
*bimdata.IfcApi* | [**fullUpdateSpace**](docs/IfcApi.md#fullUpdateSpace) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/space/{id} | Update all fields of a space
274281
*bimdata.IfcApi* | [**fullUpdateZone**](docs/IfcApi.md#fullUpdateZone) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{id} | Update all fields of a zone
275282
*bimdata.IfcApi* | [**fullUpdateZoneSpace**](docs/IfcApi.md#fullUpdateZoneSpace) | **PUT** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space/{id} | Update all fields of a space
283+
*bimdata.IfcApi* | [**getAccessToken**](docs/IfcApi.md#getAccessToken) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token/{token} | Retrieve one token created for this model
284+
*bimdata.IfcApi* | [**getAccessTokens**](docs/IfcApi.md#getAccessTokens) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token | Retrieve all tokens created for this model
276285
*bimdata.IfcApi* | [**getClassificationsOfElement**](docs/IfcApi.md#getClassificationsOfElement) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/classification | Retrieve all classifications of an element
277286
*bimdata.IfcApi* | [**getElement**](docs/IfcApi.md#getElement) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid} | Retrieve an element of a model
278287
*bimdata.IfcApi* | [**getElementPropertySet**](docs/IfcApi.md#getElementPropertySet) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{id} | Retrieve a PropertySet of an element
@@ -317,6 +326,7 @@ Class | Method | HTTP request | Description
317326
*bimdata.IfcApi* | [**removeElementPropertySetPropertyDefinition**](docs/IfcApi.md#removeElementPropertySetPropertyDefinition) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{property_pk}/propertydefinition/{id} | Remove a Definition from a Property
318327
*bimdata.IfcApi* | [**removeElementPropertySetPropertyDefinitionUnit**](docs/IfcApi.md#removeElementPropertySetPropertyDefinitionUnit) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{element_uuid}/propertyset/{propertyset_pk}/property/{property_pk}/propertydefinition/{propertydefinition_pk}/unit/{id} | Remove a Unit from a Definition
319328
*bimdata.IfcApi* | [**removeElementsFromClassification**](docs/IfcApi.md#removeElementsFromClassification) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/classification/{ifc_classification_pk}/element/{uuid} | Remove the classification from all elements
329+
*bimdata.IfcApi* | [**updateAccessToken**](docs/IfcApi.md#updateAccessToken) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token/{token} | Update some fields of a token
320330
*bimdata.IfcApi* | [**updateElement**](docs/IfcApi.md#updateElement) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/element/{uuid} | Update some fields of a zone
321331
*bimdata.IfcApi* | [**updateIfc**](docs/IfcApi.md#updateIfc) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{id} | Update some fields of a model
322332
*bimdata.IfcApi* | [**updateIfcFiles**](docs/IfcApi.md#updateIfcFiles) | **PATCH** /cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/files | Update models file (gltf, svg, structure, etc)
@@ -393,11 +403,13 @@ Class | Method | HTTP request | Description
393403
- [bimdata.Folder](docs/Folder.md)
394404
- [bimdata.FullTopic](docs/FullTopic.md)
395405
- [bimdata.Ifc](docs/Ifc.md)
406+
- [bimdata.IfcAccessToken](docs/IfcAccessToken.md)
396407
- [bimdata.IfcChecker](docs/IfcChecker.md)
397408
- [bimdata.IfcCheckerCheckplan](docs/IfcCheckerCheckplan.md)
398409
- [bimdata.IfcCheckerResults](docs/IfcCheckerResults.md)
399410
- [bimdata.IfcExport](docs/IfcExport.md)
400411
- [bimdata.IfcFiles](docs/IfcFiles.md)
412+
- [bimdata.Invitation](docs/Invitation.md)
401413
- [bimdata.Label](docs/Label.md)
402414
- [bimdata.LineSeriaizer](docs/LineSeriaizer.md)
403415
- [bimdata.OrthogonalCamera](docs/OrthogonalCamera.md)
@@ -447,22 +459,22 @@ Class | Method | HTTP request | Description
447459

448460

449461

450-
### BIMDataConnect
462+
### Bearer
451463

452464

453-
- **Type**: OAuth
454-
- **Flow**: implicit
455-
- **Authorization URL**: http://localhost:8081/authorize
456-
- **Scopes**: N/A
465+
- **Type**: API key
466+
- **API key parameter name**: Authorization
467+
- **Location**: HTTP header
457468

458469

459470

460-
### Bearer
471+
### bimdata_connect
461472

462473

463-
- **Type**: API key
464-
- **API key parameter name**: Authorization
465-
- **Location**: HTTP header
474+
- **Type**: OAuth
475+
- **Flow**: implicit
476+
- **Authorization URL**: http://localhost:8080/auth/realms/bimdata/authorize
477+
- **Scopes**: N/A
466478

467479

468480

0 commit comments

Comments
 (0)