@shapediver/sdk.platform-api-sdk-v1 2.12.2 → 2.12.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +7 -7
- package/README.md +61 -61
- package/dist/SdPlatformErrors.d.ts +134 -134
- package/dist/SdPlatformSdk.d.ts +185 -185
- package/dist/SdPlatformSdkContext.d.ts +71 -71
- package/dist/SdPlatformSdkCreate.d.ts +7 -7
- package/dist/api/SdPlatformRequestId.d.ts +136 -133
- package/dist/api/SdPlatformRequestId.d.ts.map +1 -1
- package/dist/api/SdPlatformSdkApi.d.ts +66 -62
- package/dist/api/SdPlatformSdkApi.d.ts.map +1 -1
- package/dist/api/SdPlatformSdkConfig.d.ts +18 -18
- package/dist/api/SdPlatformSdkErrorMapping.d.ts +6 -6
- package/dist/auth/SdPlatformAuthServiceApi.d.ts +77 -71
- package/dist/auth/SdPlatformAuthServiceApi.d.ts.map +1 -1
- package/dist/bundle.js +3483 -3282
- package/dist/bundle.node.js +3529 -3304
- package/dist/index.d.ts +27 -27
- package/dist/resources/SdPlatformApiClientsApi.d.ts +16 -16
- package/dist/resources/SdPlatformApiTokenApi.d.ts +44 -18
- package/dist/resources/SdPlatformApiTokenApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformBackendSystemApi.d.ts +35 -17
- package/dist/resources/SdPlatformBackendSystemApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformBookmarkApi.d.ts +21 -16
- package/dist/resources/SdPlatformBookmarkApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformChargebeeApi.d.ts +20 -20
- package/dist/resources/SdPlatformDocumentApi.d.ts +83 -83
- package/dist/resources/SdPlatformDomainApi.d.ts +44 -44
- package/dist/resources/SdPlatformHttpLogApi.d.ts +15 -15
- package/dist/resources/SdPlatformImageApi.d.ts +36 -36
- package/dist/resources/SdPlatformModelApi.d.ts +76 -40
- package/dist/resources/SdPlatformModelApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformModelSharingApi.d.ts +64 -64
- package/dist/resources/SdPlatformModelTokenApi.d.ts +10 -10
- package/dist/resources/SdPlatformModelTransferApi.d.ts +47 -47
- package/dist/resources/SdPlatformNotificationApi.d.ts +65 -33
- package/dist/resources/SdPlatformNotificationApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformOpenIDProviderApi.d.ts +41 -41
- package/dist/resources/SdPlatformOrganizationAnalyticsApi.d.ts +15 -15
- package/dist/resources/SdPlatformOrganizationApi.d.ts +92 -86
- package/dist/resources/SdPlatformOrganizationApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformPolicyApi.d.ts +43 -17
- package/dist/resources/SdPlatformPolicyApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformSavedStateApi.d.ts +51 -50
- package/dist/resources/SdPlatformSavedStateApi.d.ts.map +1 -1
- package/dist/resources/SdPlatformSavedStateSharingApi.d.ts +66 -66
- package/dist/resources/SdPlatformTagApi.d.ts +15 -15
- package/dist/resources/SdPlatformUserAnalyticsApi.d.ts +15 -15
- package/dist/resources/SdPlatformUserApi.d.ts +86 -86
- package/dist/resources/SdPlatformWebhookApi.d.ts +52 -52
- package/dist/resources/commons/FilterBuilder.d.ts +54 -54
- package/dist/resources/commons/ResourcesApi.d.ts +42 -40
- package/dist/resources/commons/ResourcesApi.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/ShapeDiverErrors.d.ts +0 -79
- package/dist/ShapeDiverErrors.d.ts.map +0 -1
- package/dist/ShapeDiverSDK.d.ts +0 -9
- package/dist/ShapeDiverSDK.d.ts.map +0 -1
- package/dist/ShapeDiverSDKContext.d.ts +0 -47
- package/dist/ShapeDiverSDKContext.d.ts.map +0 -1
- package/dist/ShapeDiverSDKInstance.d.ts +0 -91
- package/dist/ShapeDiverSDKInstance.d.ts.map +0 -1
- package/dist/api/RequestId.d.ts +0 -105
- package/dist/api/RequestId.d.ts.map +0 -1
- package/dist/api/ShapeDiverSDKApi.d.ts +0 -40
- package/dist/api/ShapeDiverSDKApi.d.ts.map +0 -1
- package/dist/api/ShapeDiverSDKApiErrors.d.ts +0 -7
- package/dist/api/ShapeDiverSDKApiErrors.d.ts.map +0 -1
- package/dist/api/ShapeDiverSDKConfig.d.ts +0 -7
- package/dist/api/ShapeDiverSDKConfig.d.ts.map +0 -1
- package/dist/api/ShapeDiverSDKRequestConfig.d.ts +0 -8
- package/dist/api/ShapeDiverSDKRequestConfig.d.ts.map +0 -1
- package/dist/auth/AuthServiceApi.d.ts +0 -34
- package/dist/auth/AuthServiceApi.d.ts.map +0 -1
- package/dist/auth/models/AuthRequest.d.ts +0 -13
- package/dist/auth/models/AuthRequest.d.ts.map +0 -1
- package/dist/auth/models/AuthResponse.d.ts +0 -12
- package/dist/auth/models/AuthResponse.d.ts.map +0 -1
- package/dist/common/FailedRequestError.d.ts +0 -4
- package/dist/common/FailedRequestError.d.ts.map +0 -1
- package/dist/common/Filter.d.ts +0 -52
- package/dist/common/Filter.d.ts.map +0 -1
- package/dist/common/FilterBuilder.d.ts +0 -55
- package/dist/common/FilterBuilder.d.ts.map +0 -1
- package/dist/common/Parameters.d.ts +0 -29
- package/dist/common/Parameters.d.ts.map +0 -1
- package/dist/common/QueryRequestParameters.d.ts +0 -46
- package/dist/common/QueryRequestParameters.d.ts.map +0 -1
- package/dist/common/RequestId.d.ts +0 -106
- package/dist/common/RequestId.d.ts.map +0 -1
- package/dist/common/ShapeDiverSDKContext.d.ts +0 -32
- package/dist/common/ShapeDiverSDKContext.d.ts.map +0 -1
- package/dist/config/ShapeDiverSDKConfig.d.ts +0 -7
- package/dist/config/ShapeDiverSDKConfig.d.ts.map +0 -1
- package/dist/resources/ResourcesApi.d.ts +0 -84
- package/dist/resources/ResourcesApi.d.ts.map +0 -1
- package/dist/resources/chargebee/ChargebeeApi.d.ts +0 -18
- package/dist/resources/chargebee/ChargebeeApi.d.ts.map +0 -1
- package/dist/resources/chargebee/models/ChargebeeRequestsAndModels.d.ts +0 -45
- package/dist/resources/chargebee/models/ChargebeeRequestsAndModels.d.ts.map +0 -1
- package/dist/resources/commons/QueryRequestParameters.d.ts +0 -46
- package/dist/resources/commons/QueryRequestParameters.d.ts.map +0 -1
- package/dist/resources/httplogs/HttpLogApi.d.ts +0 -16
- package/dist/resources/httplogs/HttpLogApi.d.ts.map +0 -1
- package/dist/resources/httplogs/models.d.ts +0 -15
- package/dist/resources/httplogs/models.d.ts.map +0 -1
- package/dist/resources/modelSharing/ModelSharingApi.d.ts +0 -50
- package/dist/resources/modelSharing/ModelSharingApi.d.ts.map +0 -1
- package/dist/resources/modelSharing/models/ModelSharing.d.ts +0 -29
- package/dist/resources/modelSharing/models/ModelSharing.d.ts.map +0 -1
- package/dist/resources/modelSharing/models/ModelSharingCreate.d.ts +0 -15
- package/dist/resources/modelSharing/models/ModelSharingCreate.d.ts.map +0 -1
- package/dist/resources/modelTransfers/CreateModelTransferRequest.d.ts +0 -8
- package/dist/resources/modelTransfers/CreateModelTransferRequest.d.ts.map +0 -1
- package/dist/resources/modelTransfers/ModelTransferApi.d.ts +0 -45
- package/dist/resources/modelTransfers/ModelTransferApi.d.ts.map +0 -1
- package/dist/resources/models/ModelApi.d.ts +0 -17
- package/dist/resources/models/ModelApi.d.ts.map +0 -1
- package/dist/resources/models/models/CreateModelTransferRequest.d.ts +0 -8
- package/dist/resources/models/models/CreateModelTransferRequest.d.ts.map +0 -1
- package/dist/resources/models/models/Model.d.ts +0 -166
- package/dist/resources/models/models/Model.d.ts.map +0 -1
- package/dist/resources/models/models/ModelCreate.d.ts +0 -21
- package/dist/resources/models/models/ModelCreate.d.ts.map +0 -1
- package/dist/resources/models/models/ModelPatch.d.ts +0 -25
- package/dist/resources/models/models/ModelPatch.d.ts.map +0 -1
- package/dist/resources/notifications/NotificationsApi.d.ts +0 -13
- package/dist/resources/notifications/NotificationsApi.d.ts.map +0 -1
- package/dist/resources/notifications/models/Notification.d.ts +0 -62
- package/dist/resources/notifications/models/Notification.d.ts.map +0 -1
- package/dist/resources/notifications/models/Requests.d.ts +0 -19
- package/dist/resources/notifications/models/Requests.d.ts.map +0 -1
- package/dist/resources/organizations/OrganizationsApi.d.ts +0 -73
- package/dist/resources/organizations/OrganizationsApi.d.ts.map +0 -1
- package/dist/resources/organizations/models/Organization.d.ts +0 -79
- package/dist/resources/organizations/models/Organization.d.ts.map +0 -1
- package/dist/resources/organizations/models/Requests.d.ts +0 -22
- package/dist/resources/organizations/models/Requests.d.ts.map +0 -1
- package/dist/resources/savedStateSharing/SavedStateSharingsApi.d.ts +0 -50
- package/dist/resources/savedStateSharing/SavedStateSharingsApi.d.ts.map +0 -1
- package/dist/resources/savedStateSharing/models/SavedStateSharingsModels.d.ts +0 -15
- package/dist/resources/savedStateSharing/models/SavedStateSharingsModels.d.ts.map +0 -1
- package/dist/resources/savedStateSharing/models/SavedStatesSharingsRequests.d.ts +0 -6
- package/dist/resources/savedStateSharing/models/SavedStatesSharingsRequests.d.ts.map +0 -1
- package/dist/resources/savedStates/SavedStatesApi.d.ts +0 -44
- package/dist/resources/savedStates/SavedStatesApi.d.ts.map +0 -1
- package/dist/resources/savedStates/models/SavedStatesModels.d.ts +0 -33
- package/dist/resources/savedStates/models/SavedStatesModels.d.ts.map +0 -1
- package/dist/resources/savedStates/models/SavedStatesRequests.d.ts +0 -29
- package/dist/resources/savedStates/models/SavedStatesRequests.d.ts.map +0 -1
- package/dist/resources/userModelSessions/UserModelSessionsApi.d.ts +0 -15
- package/dist/resources/userModelSessions/UserModelSessionsApi.d.ts.map +0 -1
- package/dist/resources/userModelSessions/models/UserModelSession.d.ts +0 -54
- package/dist/resources/userModelSessions/models/UserModelSession.d.ts.map +0 -1
- package/dist/resources/webhooks/WebhooksApi.d.ts +0 -51
- package/dist/resources/webhooks/WebhooksApi.d.ts.map +0 -1
- package/dist/resources/webhooks/models/Requests.d.ts +0 -17
- package/dist/resources/webhooks/models/Requests.d.ts.map +0 -1
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
Copyright 2021 ShapeDiver GmbH
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
-
|
|
5
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1
|
+
Copyright 2021 ShapeDiver GmbH
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
<p style="text-align: center">
|
|
2
|
-
<a href="https://www.shapediver.com/">
|
|
3
|
-
<img
|
|
4
|
-
alt="ShapeDiver"
|
|
5
|
-
src="https://sduse1-assets.shapediver.com/production/assets/img/apple-icon.png"
|
|
6
|
-
/>
|
|
7
|
-
</a>
|
|
8
|
-
</p>
|
|
9
|
-
|
|
10
|
-
# ShapeDiver Platform SDK
|
|
11
|
-
[ShapeDiver](https://www.shapediver.com/) is a cloud platform that provides the right tools and scalable infrastructure to help you transform your Grasshopper files into online applications. It allows you to share the power of Grasshopper and Parametric Design with partners, clients and other key stakeholders wherever they are.
|
|
12
|
-
|
|
13
|
-
The **ShapeDiver Platform SDK** allows to access the functionality of the [ShapeDiver Platform](https://www.shapediver.com/app/) (or white labelled instances of it) by means of the [ShapeDiver Platform API](https://help.shapediver.com/doc/platform-backend).
|
|
14
|
-
The SDK exposes all TypeScript-types describing request and response objects.
|
|
15
|
-
|
|
16
|
-
The authentication system is based on **JWT tokens**, which the SDK allows you to request from the **ShapeDiver Platform** using the OAuth 2.0 functionality integrated with the [ShapeDiver Platform API](https://help.shapediver.com/doc/platform-backend).
|
|
17
|
-
|
|
18
|
-
## Usage
|
|
19
|
-
|
|
20
|
-
* Add npm package:
|
|
21
|
-
```sh
|
|
22
|
-
npm i @shapediver/sdk.platform-api-sdk-v1
|
|
23
|
-
```
|
|
24
|
-
* Import constructor function:
|
|
25
|
-
```javascript
|
|
26
|
-
import { create } from '@shapediver/sdk.platform-api-sdk-v1';
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
* Create and authorize client:
|
|
30
|
-
```javascript
|
|
31
|
-
const client = create({clientId: "CLIENT_ID", baseUrl: "SHAPEDIVER_PLATFORM_API_ENDPOINT"});
|
|
32
|
-
await client.authorization.passwordGrant("USERNAME OR ACCESS KEY ID", "PASSWORD OR ACCESS KEY SECRET");
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Whenever possible do not use your username and password for usage of the SDK. Instead log in to the [ShapeDiver Platform](https://www.shapediver.com/app/) and create an access key pair, consisting of an
|
|
36
|
-
|
|
37
|
-
* access key id (to be used instead of your username), and an
|
|
38
|
-
* access key secret (to be used instead of your password).
|
|
39
|
-
|
|
40
|
-
Using access keys allows you to keep your application secure, because access keys
|
|
41
|
-
|
|
42
|
-
* can be limited in scope (e.g. they can be limited to be read only)
|
|
43
|
-
* can easily be revoked at any time
|
|
44
|
-
* can be time limited.
|
|
45
|
-
|
|
46
|
-
## Versioning
|
|
47
|
-
We take care to provide backwards compatibility for older versions of the SDK and the API, but might introduce breaking changes in case of major version upgrades.
|
|
48
|
-
New features of the SDK might be limited to newer versions of the API. We recommend always using the newest SDK version out there.
|
|
49
|
-
|
|
50
|
-
## Support
|
|
51
|
-
|
|
52
|
-
* [Plaform Backend documentation](https://help.shapediver.com/doc/platform-backend)
|
|
53
|
-
* [ShapeDiver Help Center](https://help.shapediver.com)
|
|
54
|
-
* [Forum](https://forum.shapediver.com)
|
|
55
|
-
|
|
56
|
-
If you have further questions, [reach out to us](https://www.shapediver.com/?open_contact=true).
|
|
57
|
-
|
|
58
|
-
Find out more about ShapeDiver [right here](https://www.shapediver.com/)!
|
|
59
|
-
|
|
60
|
-
## Licensing
|
|
61
|
-
The ShapeDiver Platform SDK is released under the [MIT License](LICENSE).
|
|
1
|
+
<p style="text-align: center">
|
|
2
|
+
<a href="https://www.shapediver.com/">
|
|
3
|
+
<img
|
|
4
|
+
alt="ShapeDiver"
|
|
5
|
+
src="https://sduse1-assets.shapediver.com/production/assets/img/apple-icon.png"
|
|
6
|
+
/>
|
|
7
|
+
</a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
# ShapeDiver Platform SDK
|
|
11
|
+
[ShapeDiver](https://www.shapediver.com/) is a cloud platform that provides the right tools and scalable infrastructure to help you transform your Grasshopper files into online applications. It allows you to share the power of Grasshopper and Parametric Design with partners, clients and other key stakeholders wherever they are.
|
|
12
|
+
|
|
13
|
+
The **ShapeDiver Platform SDK** allows to access the functionality of the [ShapeDiver Platform](https://www.shapediver.com/app/) (or white labelled instances of it) by means of the [ShapeDiver Platform API](https://help.shapediver.com/doc/platform-backend).
|
|
14
|
+
The SDK exposes all TypeScript-types describing request and response objects.
|
|
15
|
+
|
|
16
|
+
The authentication system is based on **JWT tokens**, which the SDK allows you to request from the **ShapeDiver Platform** using the OAuth 2.0 functionality integrated with the [ShapeDiver Platform API](https://help.shapediver.com/doc/platform-backend).
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
* Add npm package:
|
|
21
|
+
```sh
|
|
22
|
+
npm i @shapediver/sdk.platform-api-sdk-v1
|
|
23
|
+
```
|
|
24
|
+
* Import constructor function:
|
|
25
|
+
```javascript
|
|
26
|
+
import { create } from '@shapediver/sdk.platform-api-sdk-v1';
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
* Create and authorize client:
|
|
30
|
+
```javascript
|
|
31
|
+
const client = create({clientId: "CLIENT_ID", baseUrl: "SHAPEDIVER_PLATFORM_API_ENDPOINT"});
|
|
32
|
+
await client.authorization.passwordGrant("USERNAME OR ACCESS KEY ID", "PASSWORD OR ACCESS KEY SECRET");
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Whenever possible do not use your username and password for usage of the SDK. Instead log in to the [ShapeDiver Platform](https://www.shapediver.com/app/) and create an access key pair, consisting of an
|
|
36
|
+
|
|
37
|
+
* access key id (to be used instead of your username), and an
|
|
38
|
+
* access key secret (to be used instead of your password).
|
|
39
|
+
|
|
40
|
+
Using access keys allows you to keep your application secure, because access keys
|
|
41
|
+
|
|
42
|
+
* can be limited in scope (e.g. they can be limited to be read only)
|
|
43
|
+
* can easily be revoked at any time
|
|
44
|
+
* can be time limited.
|
|
45
|
+
|
|
46
|
+
## Versioning
|
|
47
|
+
We take care to provide backwards compatibility for older versions of the SDK and the API, but might introduce breaking changes in case of major version upgrades.
|
|
48
|
+
New features of the SDK might be limited to newer versions of the API. We recommend always using the newest SDK version out there.
|
|
49
|
+
|
|
50
|
+
## Support
|
|
51
|
+
|
|
52
|
+
* [Plaform Backend documentation](https://help.shapediver.com/doc/platform-backend)
|
|
53
|
+
* [ShapeDiver Help Center](https://help.shapediver.com)
|
|
54
|
+
* [Forum](https://forum.shapediver.com)
|
|
55
|
+
|
|
56
|
+
If you have further questions, [reach out to us](https://www.shapediver.com/?open_contact=true).
|
|
57
|
+
|
|
58
|
+
Find out more about ShapeDiver [right here](https://www.shapediver.com/)!
|
|
59
|
+
|
|
60
|
+
## Licensing
|
|
61
|
+
The ShapeDiver Platform SDK is released under the [MIT License](LICENSE).
|
|
@@ -1,135 +1,135 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generic error
|
|
3
|
-
*/
|
|
4
|
-
export declare class SdPlatformError extends Error {
|
|
5
|
-
constructor(message: string);
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Request error (request could not be sent etc)
|
|
9
|
-
*/
|
|
10
|
-
export declare class SdPlatformRequestError extends SdPlatformError {
|
|
11
|
-
readonly desc: string;
|
|
12
|
-
constructor(message: string, desc: string);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Generic response error
|
|
16
|
-
*/
|
|
17
|
-
export declare abstract class SdPlatformResponseError extends SdPlatformError {
|
|
18
|
-
readonly http_status_code: number;
|
|
19
|
-
constructor(message: string, http_status_code: number);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* The server error which can just contain message and status code.
|
|
23
|
-
*/
|
|
24
|
-
export declare class SdPlatformServerResponseError extends SdPlatformResponseError {
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Resource response error
|
|
28
|
-
*/
|
|
29
|
-
export declare class SdPlatformResourceResponseError extends SdPlatformResponseError {
|
|
30
|
-
readonly error: string;
|
|
31
|
-
readonly error_description: string;
|
|
32
|
-
readonly error_uri?: string | undefined;
|
|
33
|
-
readonly code?: string | number | undefined;
|
|
34
|
-
constructor(message: string, http_status_code: number, error: string, error_description: string, error_uri?: string | undefined, code?: string | number | undefined);
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Not found error, returned with 404 status.
|
|
38
|
-
*/
|
|
39
|
-
export declare class SdPlatformNotFoundResponseError extends SdPlatformResourceResponseError {
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Forbidden error, returned with 403 status.
|
|
43
|
-
*/
|
|
44
|
-
export declare class SdPlatformForbiddenResponseError extends SdPlatformResourceResponseError {
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Unauthorized error, returned with 401 status.
|
|
48
|
-
*/
|
|
49
|
-
export declare class SdPlatformUnauthorizedResponseError extends SdPlatformResourceResponseError {
|
|
50
|
-
}
|
|
51
|
-
export declare class SdPlatformValidationResponseError extends SdPlatformResourceResponseError {
|
|
52
|
-
readonly fields?: {
|
|
53
|
-
[key: string]: string[];
|
|
54
|
-
} | undefined;
|
|
55
|
-
constructor(message: string, http_status_code: number, error: string, error_description: string, error_uri?: string, code?: number | string, fields?: {
|
|
56
|
-
[key: string]: string[];
|
|
57
|
-
} | undefined);
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Authentication response error.
|
|
61
|
-
* Follows principles of OAuth 2.0
|
|
62
|
-
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2.1
|
|
63
|
-
*/
|
|
64
|
-
export declare class SdPlatformOAuthResponseError extends SdPlatformResponseError {
|
|
65
|
-
/**
|
|
66
|
-
* required error code
|
|
67
|
-
*
|
|
68
|
-
* * invalid_request
|
|
69
|
-
* * unauthorized_client
|
|
70
|
-
* * access_denied
|
|
71
|
-
* * unsupported_response_type
|
|
72
|
-
* * invalid_scope
|
|
73
|
-
* * server_error
|
|
74
|
-
* * temporarily_unavailable
|
|
75
|
-
*/
|
|
76
|
-
readonly error: string;
|
|
77
|
-
/** optional human-readable text providing additional information */
|
|
78
|
-
readonly error_description: string;
|
|
79
|
-
/** optional URI identifying a human-readable web page with
|
|
80
|
-
information about the error */
|
|
81
|
-
readonly error_uri?: string | undefined;
|
|
82
|
-
constructor(message: string, http_status_code: number,
|
|
83
|
-
/**
|
|
84
|
-
* required error code
|
|
85
|
-
*
|
|
86
|
-
* * invalid_request
|
|
87
|
-
* * unauthorized_client
|
|
88
|
-
* * access_denied
|
|
89
|
-
* * unsupported_response_type
|
|
90
|
-
* * invalid_scope
|
|
91
|
-
* * server_error
|
|
92
|
-
* * temporarily_unavailable
|
|
93
|
-
*/
|
|
94
|
-
error: string,
|
|
95
|
-
/** optional human-readable text providing additional information */
|
|
96
|
-
error_description: string,
|
|
97
|
-
/** optional URI identifying a human-readable web page with
|
|
98
|
-
information about the error */
|
|
99
|
-
error_uri?: string | undefined);
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Authentication response error.
|
|
103
|
-
* Follows principles of OAuth 2.0
|
|
104
|
-
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
105
|
-
*/
|
|
106
|
-
export declare class SdPlatformInvalidRequestOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Authentication response error.
|
|
110
|
-
* Follows principles of OAuth 2.0
|
|
111
|
-
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
112
|
-
*/
|
|
113
|
-
export declare class SdPlatformInvalidClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Authentication response error.
|
|
117
|
-
* Follows principles of OAuth 2.0
|
|
118
|
-
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
119
|
-
*/
|
|
120
|
-
export declare class SdPlatformInvalidGrantOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Authentication response error.
|
|
124
|
-
* Follows principles of OAuth 2.0
|
|
125
|
-
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
126
|
-
*/
|
|
127
|
-
export declare class SdPlatformUnauthorizedClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Authentication response error.
|
|
131
|
-
* Follows principles of OAuth 2.0
|
|
132
|
-
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
133
|
-
*/ export declare class SdPlatformUnsupportedGrantTypeClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
134
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Generic error
|
|
3
|
+
*/
|
|
4
|
+
export declare class SdPlatformError extends Error {
|
|
5
|
+
constructor(message: string);
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Request error (request could not be sent etc)
|
|
9
|
+
*/
|
|
10
|
+
export declare class SdPlatformRequestError extends SdPlatformError {
|
|
11
|
+
readonly desc: string;
|
|
12
|
+
constructor(message: string, desc: string);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Generic response error
|
|
16
|
+
*/
|
|
17
|
+
export declare abstract class SdPlatformResponseError extends SdPlatformError {
|
|
18
|
+
readonly http_status_code: number;
|
|
19
|
+
constructor(message: string, http_status_code: number);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The server error which can just contain message and status code.
|
|
23
|
+
*/
|
|
24
|
+
export declare class SdPlatformServerResponseError extends SdPlatformResponseError {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Resource response error
|
|
28
|
+
*/
|
|
29
|
+
export declare class SdPlatformResourceResponseError extends SdPlatformResponseError {
|
|
30
|
+
readonly error: string;
|
|
31
|
+
readonly error_description: string;
|
|
32
|
+
readonly error_uri?: string | undefined;
|
|
33
|
+
readonly code?: string | number | undefined;
|
|
34
|
+
constructor(message: string, http_status_code: number, error: string, error_description: string, error_uri?: string | undefined, code?: string | number | undefined);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Not found error, returned with 404 status.
|
|
38
|
+
*/
|
|
39
|
+
export declare class SdPlatformNotFoundResponseError extends SdPlatformResourceResponseError {
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Forbidden error, returned with 403 status.
|
|
43
|
+
*/
|
|
44
|
+
export declare class SdPlatformForbiddenResponseError extends SdPlatformResourceResponseError {
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Unauthorized error, returned with 401 status.
|
|
48
|
+
*/
|
|
49
|
+
export declare class SdPlatformUnauthorizedResponseError extends SdPlatformResourceResponseError {
|
|
50
|
+
}
|
|
51
|
+
export declare class SdPlatformValidationResponseError extends SdPlatformResourceResponseError {
|
|
52
|
+
readonly fields?: {
|
|
53
|
+
[key: string]: string[];
|
|
54
|
+
} | undefined;
|
|
55
|
+
constructor(message: string, http_status_code: number, error: string, error_description: string, error_uri?: string, code?: number | string, fields?: {
|
|
56
|
+
[key: string]: string[];
|
|
57
|
+
} | undefined);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Authentication response error.
|
|
61
|
+
* Follows principles of OAuth 2.0
|
|
62
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2.1
|
|
63
|
+
*/
|
|
64
|
+
export declare class SdPlatformOAuthResponseError extends SdPlatformResponseError {
|
|
65
|
+
/**
|
|
66
|
+
* required error code
|
|
67
|
+
*
|
|
68
|
+
* * invalid_request
|
|
69
|
+
* * unauthorized_client
|
|
70
|
+
* * access_denied
|
|
71
|
+
* * unsupported_response_type
|
|
72
|
+
* * invalid_scope
|
|
73
|
+
* * server_error
|
|
74
|
+
* * temporarily_unavailable
|
|
75
|
+
*/
|
|
76
|
+
readonly error: string;
|
|
77
|
+
/** optional human-readable text providing additional information */
|
|
78
|
+
readonly error_description: string;
|
|
79
|
+
/** optional URI identifying a human-readable web page with
|
|
80
|
+
information about the error */
|
|
81
|
+
readonly error_uri?: string | undefined;
|
|
82
|
+
constructor(message: string, http_status_code: number,
|
|
83
|
+
/**
|
|
84
|
+
* required error code
|
|
85
|
+
*
|
|
86
|
+
* * invalid_request
|
|
87
|
+
* * unauthorized_client
|
|
88
|
+
* * access_denied
|
|
89
|
+
* * unsupported_response_type
|
|
90
|
+
* * invalid_scope
|
|
91
|
+
* * server_error
|
|
92
|
+
* * temporarily_unavailable
|
|
93
|
+
*/
|
|
94
|
+
error: string,
|
|
95
|
+
/** optional human-readable text providing additional information */
|
|
96
|
+
error_description: string,
|
|
97
|
+
/** optional URI identifying a human-readable web page with
|
|
98
|
+
information about the error */
|
|
99
|
+
error_uri?: string | undefined);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Authentication response error.
|
|
103
|
+
* Follows principles of OAuth 2.0
|
|
104
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
105
|
+
*/
|
|
106
|
+
export declare class SdPlatformInvalidRequestOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Authentication response error.
|
|
110
|
+
* Follows principles of OAuth 2.0
|
|
111
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
112
|
+
*/
|
|
113
|
+
export declare class SdPlatformInvalidClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Authentication response error.
|
|
117
|
+
* Follows principles of OAuth 2.0
|
|
118
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
119
|
+
*/
|
|
120
|
+
export declare class SdPlatformInvalidGrantOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Authentication response error.
|
|
124
|
+
* Follows principles of OAuth 2.0
|
|
125
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
126
|
+
*/
|
|
127
|
+
export declare class SdPlatformUnauthorizedClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Authentication response error.
|
|
131
|
+
* Follows principles of OAuth 2.0
|
|
132
|
+
* Please see https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
|
|
133
|
+
*/ export declare class SdPlatformUnsupportedGrantTypeClientOAuthResponseError extends SdPlatformOAuthResponseError {
|
|
134
|
+
}
|
|
135
135
|
//# sourceMappingURL=SdPlatformErrors.d.ts.map
|