@shapediver/sdk.platform-api-sdk-v1 2.14.1 → 2.14.4

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 (66) hide show
  1. package/LICENSE +7 -7
  2. package/README.md +61 -61
  3. package/dist/SdPlatformErrors.d.ts +134 -134
  4. package/dist/SdPlatformSdk.d.ts +197 -191
  5. package/dist/SdPlatformSdk.d.ts.map +1 -1
  6. package/dist/SdPlatformSdkContext.d.ts +71 -71
  7. package/dist/SdPlatformSdkCreate.d.ts +7 -7
  8. package/dist/api/SdPlatformRequestId.d.ts +139 -138
  9. package/dist/api/SdPlatformRequestId.d.ts.map +1 -1
  10. package/dist/api/SdPlatformSdkApi.d.ts +66 -66
  11. package/dist/api/SdPlatformSdkConfig.d.ts +18 -18
  12. package/dist/api/SdPlatformSdkErrorMapping.d.ts +6 -6
  13. package/dist/auth/SdPlatformAuthServiceApi.d.ts +79 -79
  14. package/dist/bundle.js +3978 -3931
  15. package/dist/bundle.node.js +4103 -4033
  16. package/dist/index.d.ts +28 -27
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/resources/SdPlatformApiClientsApi.d.ts +43 -43
  19. package/dist/resources/SdPlatformApiClientsApi.d.ts.map +1 -1
  20. package/dist/resources/SdPlatformApiTokenApi.d.ts +43 -43
  21. package/dist/resources/SdPlatformApiTokenApi.d.ts.map +1 -1
  22. package/dist/resources/SdPlatformBackendSystemApi.d.ts +43 -43
  23. package/dist/resources/SdPlatformBackendSystemApi.d.ts.map +1 -1
  24. package/dist/resources/SdPlatformBookmarkApi.d.ts +24 -24
  25. package/dist/resources/SdPlatformChargebeeApi.d.ts +43 -43
  26. package/dist/resources/SdPlatformChargebeeApi.d.ts.map +1 -1
  27. package/dist/resources/SdPlatformDocumentApi.d.ts +83 -83
  28. package/dist/resources/SdPlatformDocumentApi.d.ts.map +1 -1
  29. package/dist/resources/SdPlatformDomainApi.d.ts +46 -46
  30. package/dist/resources/SdPlatformDomainApi.d.ts.map +1 -1
  31. package/dist/resources/SdPlatformHttpLogApi.d.ts +16 -16
  32. package/dist/resources/SdPlatformHttpLogApi.d.ts.map +1 -1
  33. package/dist/resources/SdPlatformImageApi.d.ts +44 -44
  34. package/dist/resources/SdPlatformImageApi.d.ts.map +1 -1
  35. package/dist/resources/SdPlatformJobLogApi.d.ts +16 -16
  36. package/dist/resources/SdPlatformJobLogApi.d.ts.map +1 -1
  37. package/dist/resources/SdPlatformModelApi.d.ts +78 -78
  38. package/dist/resources/SdPlatformModelApi.d.ts.map +1 -1
  39. package/dist/resources/SdPlatformModelSharingApi.d.ts +65 -65
  40. package/dist/resources/SdPlatformModelSharingApi.d.ts.map +1 -1
  41. package/dist/resources/SdPlatformModelTokenApi.d.ts +15 -15
  42. package/dist/resources/SdPlatformModelTransferApi.d.ts +47 -47
  43. package/dist/resources/SdPlatformNotificationApi.d.ts +65 -65
  44. package/dist/resources/SdPlatformNotificationApi.d.ts.map +1 -1
  45. package/dist/resources/SdPlatformOpenIDProviderApi.d.ts +41 -41
  46. package/dist/resources/SdPlatformOpenIDProviderApi.d.ts.map +1 -1
  47. package/dist/resources/SdPlatformOrganizationAnalyticsApi.d.ts +15 -15
  48. package/dist/resources/SdPlatformOrganizationApi.d.ts +95 -95
  49. package/dist/resources/SdPlatformOrganizationApi.d.ts.map +1 -1
  50. package/dist/resources/SdPlatformPolicyApi.d.ts +43 -43
  51. package/dist/resources/SdPlatformPolicyApi.d.ts.map +1 -1
  52. package/dist/resources/SdPlatformSavedStateApi.d.ts +51 -51
  53. package/dist/resources/SdPlatformSavedStateApi.d.ts.map +1 -1
  54. package/dist/resources/SdPlatformSavedStateSharingApi.d.ts +66 -66
  55. package/dist/resources/SdPlatformSavedStateSharingApi.d.ts.map +1 -1
  56. package/dist/resources/SdPlatformStargateApi.d.ts +13 -0
  57. package/dist/resources/SdPlatformStargateApi.d.ts.map +1 -0
  58. package/dist/resources/SdPlatformTagApi.d.ts +25 -25
  59. package/dist/resources/SdPlatformTagApi.d.ts.map +1 -1
  60. package/dist/resources/SdPlatformUserAnalyticsApi.d.ts +15 -15
  61. package/dist/resources/SdPlatformUserApi.d.ts +86 -86
  62. package/dist/resources/SdPlatformUserApi.d.ts.map +1 -1
  63. package/dist/resources/SdPlatformWebhookApi.d.ts +52 -52
  64. package/dist/resources/commons/FilterBuilder.d.ts +54 -54
  65. package/dist/resources/commons/ResourcesApi.d.ts +42 -42
  66. package/package.json +14 -12
@@ -1,192 +1,198 @@
1
- import { SdPlatformRequestFinishedEvent, SdPlatformRequestStartEvent } from "./api/SdPlatformSdkApi";
2
- import { SdPlatformSdkConfig } from "./api/SdPlatformSdkConfig";
3
- import { SdPlatformAuthServiceApi } from './auth/SdPlatformAuthServiceApi';
4
- import { SdPlatformApiTokenApi } from "./resources/SdPlatformApiTokenApi";
5
- import { SdPlatformBackendSystemApi } from "./resources/SdPlatformBackendSystemApi";
6
- import { SdPlatformBookmarkApi } from "./resources/SdPlatformBookmarkApi";
7
- import { SdPlatformChargebeeApi } from "./resources/SdPlatformChargebeeApi";
8
- import { SdPlatformDocumentApi } from "./resources/SdPlatformDocumentApi";
9
- import { SdPlatformDomainApi } from "./resources/SdPlatformDomainApi";
10
- import { SdPlatformHttpLogApi } from './resources/SdPlatformHttpLogApi';
11
- import { SdPlatformImageApi } from "./resources/SdPlatformImageApi";
12
- import { SdPlatformModelApi } from "./resources/SdPlatformModelApi";
13
- import { SdPlatformModelSharingApi } from "./resources/SdPlatformModelSharingApi";
14
- import { SdPlatformModelTokenApi } from "./resources/SdPlatformModelTokenApi";
15
- import { SdPlatformModelTransferApi } from './resources/SdPlatformModelTransferApi';
16
- import { SdPlatformNotificationApi } from "./resources/SdPlatformNotificationApi";
17
- import { SdPlatformOrganizationApi } from "./resources/SdPlatformOrganizationApi";
18
- import { SdPlatformPolicyApi } from "./resources/SdPlatformPolicyApi";
19
- import { SdPlatformSavedStateApi } from './resources/SdPlatformSavedStateApi';
20
- import { SdPlatformSavedStateSharingApi } from "./resources/SdPlatformSavedStateSharingApi";
21
- import { SdPlatformTagApi } from "./resources/SdPlatformTagApi";
22
- import { SdPlatformUserAnalyticsApi } from "./resources/SdPlatformUserAnalyticsApi";
23
- import { SdPlatformUserApi } from "./resources/SdPlatformUserApi";
24
- import { SdPlatformWebhookApi } from './resources/SdPlatformWebhookApi';
25
- import { SdPlatformOrganizationAnalyticsApi } from "./resources/SdPlatformOrganizationAnalyticsApi";
26
- import { SdPlatformOpenIDProviderApi } from './resources/SdPlatformOpenIDProviderApi';
27
- import { SdPlatformApiClientsApi } from "./resources/SdPlatformApiClientsApi";
28
- import { SdPlatformJobLogApi } from "./resources/SdPlatformJobLogApi";
29
- export declare class SdPlatformSdk {
30
- private __config;
31
- private __api;
32
- private __authorization;
33
- private __apiClients;
34
- private __api_tokens;
35
- private __backendSystem;
36
- private __bookmarks;
37
- private __chargebee;
38
- private __documents;
39
- private __domains;
40
- private __http_logs;
41
- private __jobLogs;
42
- private __images;
43
- private __model_sharing;
44
- private __models;
45
- private __modelTokens;
46
- private __modelTransfers;
47
- private __notifications;
48
- private __openidProviders;
49
- private __organizations;
50
- private __policies;
51
- private __savedStates;
52
- private __savedStateSharing;
53
- private __tags;
54
- private __userAnalytics;
55
- private __organizationAnalytics;
56
- private __users;
57
- private __webhooks;
58
- /**
59
- * ShapeDiverSDK constructor
60
- * @param clientId - the client id
61
- * @param clientSecret - the client secret
62
- * @param baseUrl - the base url
63
- */
64
- constructor(clientId?: string | null, clientSecret?: string | null, baseUrl?: string | null);
65
- /**
66
- * Configuration for this instance of the Platform SDK.
67
- */
68
- get config(): SdPlatformSdkConfig;
69
- /**
70
- * Authentication service for ShapeDiver Platform.
71
- */
72
- get authorization(): SdPlatformAuthServiceApi;
73
- /**
74
- * CRUD operations for Platform API clients.
75
- */
76
- get apiClients(): SdPlatformApiClientsApi;
77
- /**
78
- * CRUD operations for Platform API tokens.
79
- * Platform API tokens can be limited in scope and lifetime.
80
- * Use Platform API tokens for applications making use of the Platform API.
81
- * Limit their scope as much as possible.
82
- */
83
- get apiTokens(): SdPlatformApiTokenApi;
84
- /**
85
- * Operations for ShapeDiver Geometry Backend Systems known by the Platform Backend.
86
- */
87
- get backendSystem(): SdPlatformBackendSystemApi;
88
- /**
89
- * Operations for creating and deleting bookmarks
90
- */
91
- get bookmarks(): SdPlatformBookmarkApi;
92
- /**
93
- * Actions related to Chargebee subscription management.
94
- */
95
- get chargebee(): SdPlatformChargebeeApi;
96
- /**
97
- * The documents api actions.
98
- */
99
- get documents(): SdPlatformDocumentApi;
100
- /**
101
- * Operations for domains which can be attached to users, organizations, models.
102
- */
103
- get domains(): SdPlatformDomainApi;
104
- /**
105
- * HTTP logs.
106
- */
107
- get httpLogs(): SdPlatformHttpLogApi;
108
- /**
109
- * Operations for job logs.
110
- */
111
- get jobLogs(): SdPlatformJobLogApi;
112
- /**
113
- * Operations for images which can be attached to models
114
- */
115
- get images(): SdPlatformImageApi;
116
- /**
117
- * Operations for model sharing relationships.
118
- */
119
- get modelSharing(): SdPlatformModelSharingApi;
120
- /**
121
- * Operations for models on the ShapeDiver Platform.
122
- */
123
- get models(): SdPlatformModelApi;
124
- /**
125
- * Operations for creating tokens for models on Geometry Backend Systems
126
- */
127
- get modelTokens(): SdPlatformModelTokenApi;
128
- /**
129
- * Operations for creating, revoking, accepting, denying, model ownership transfer notifications.
130
- */
131
- get modelTransfers(): SdPlatformModelTransferApi;
132
- /**
133
- * Operations for querying, reading/unreading, creating notifications.
134
- */
135
- get notifications(): SdPlatformNotificationApi;
136
- /**
137
- * Gets the openid providers.
138
- */
139
- get openidProviders(): SdPlatformOpenIDProviderApi;
140
- /**
141
- * Operations for organizations.
142
- */
143
- get organizations(): SdPlatformOrganizationApi;
144
- /**
145
- * Operations for policies.
146
- */
147
- get policies(): SdPlatformPolicyApi;
148
- /**
149
- * Operations for saved states.
150
- */
151
- get savedStates(): SdPlatformSavedStateApi;
152
- /**
153
- * Operations for saved state sharing relationships.
154
- */
155
- get savedStateSharing(): SdPlatformSavedStateSharingApi;
156
- /**
157
- * Operations for tags which can be attached to models.
158
- */
159
- get tags(): SdPlatformTagApi;
160
- /**
161
- * Analytics for users.
162
- */
163
- get userAnalytics(): SdPlatformUserAnalyticsApi;
164
- /**
165
- * Analytics for organizations.
166
- */
167
- get organizationAnalytics(): SdPlatformOrganizationAnalyticsApi;
168
- /**
169
- * Operations for users.
170
- */
171
- get users(): SdPlatformUserApi;
172
- /**
173
- * Webhook calls.
174
- */
175
- get webhooks(): SdPlatformWebhookApi;
176
- /**
177
- * Register callbacks for request start events.
178
- * onRequestStart is fired before each request. This does not modify request, it is used only as notification that request is starting.
179
- * NOTE: requestParams is as shallow copy.
180
- * @param cb
181
- */
182
- onRequestStart(cb: (event: SdPlatformRequestStartEvent) => void): void;
183
- /**
184
- * Register callbacks for request finished events.
185
- * onRequestFinished is fired after request has been resolved.
186
- * NOTE: response is passed as shallow copy.
187
- * NOTE: requestParams is as shallow copy.
188
- * @param cb
189
- */
190
- onRequestFinished(cb: (event: SdPlatformRequestFinishedEvent) => void): void;
191
- }
1
+ import { SdPlatformRequestFinishedEvent, SdPlatformRequestStartEvent } from "./api/SdPlatformSdkApi";
2
+ import { SdPlatformSdkConfig } from "./api/SdPlatformSdkConfig";
3
+ import { SdPlatformAuthServiceApi } from './auth/SdPlatformAuthServiceApi';
4
+ import { SdPlatformApiTokenApi } from "./resources/SdPlatformApiTokenApi";
5
+ import { SdPlatformBackendSystemApi } from "./resources/SdPlatformBackendSystemApi";
6
+ import { SdPlatformBookmarkApi } from "./resources/SdPlatformBookmarkApi";
7
+ import { SdPlatformChargebeeApi } from "./resources/SdPlatformChargebeeApi";
8
+ import { SdPlatformDocumentApi } from "./resources/SdPlatformDocumentApi";
9
+ import { SdPlatformDomainApi } from "./resources/SdPlatformDomainApi";
10
+ import { SdPlatformHttpLogApi } from './resources/SdPlatformHttpLogApi';
11
+ import { SdPlatformImageApi } from "./resources/SdPlatformImageApi";
12
+ import { SdPlatformModelApi } from "./resources/SdPlatformModelApi";
13
+ import { SdPlatformModelSharingApi } from "./resources/SdPlatformModelSharingApi";
14
+ import { SdPlatformModelTokenApi } from "./resources/SdPlatformModelTokenApi";
15
+ import { SdPlatformModelTransferApi } from './resources/SdPlatformModelTransferApi';
16
+ import { SdPlatformNotificationApi } from "./resources/SdPlatformNotificationApi";
17
+ import { SdPlatformOrganizationApi } from "./resources/SdPlatformOrganizationApi";
18
+ import { SdPlatformPolicyApi } from "./resources/SdPlatformPolicyApi";
19
+ import { SdPlatformSavedStateApi } from './resources/SdPlatformSavedStateApi';
20
+ import { SdPlatformSavedStateSharingApi } from "./resources/SdPlatformSavedStateSharingApi";
21
+ import { SdPlatformTagApi } from "./resources/SdPlatformTagApi";
22
+ import { SdPlatformUserAnalyticsApi } from "./resources/SdPlatformUserAnalyticsApi";
23
+ import { SdPlatformUserApi } from "./resources/SdPlatformUserApi";
24
+ import { SdPlatformWebhookApi } from './resources/SdPlatformWebhookApi';
25
+ import { SdPlatformOrganizationAnalyticsApi } from "./resources/SdPlatformOrganizationAnalyticsApi";
26
+ import { SdPlatformOpenIDProviderApi } from './resources/SdPlatformOpenIDProviderApi';
27
+ import { SdPlatformApiClientsApi } from "./resources/SdPlatformApiClientsApi";
28
+ import { SdPlatformJobLogApi } from "./resources/SdPlatformJobLogApi";
29
+ import { SdPlatformStargateApi } from './resources/SdPlatformStargateApi';
30
+ export declare class SdPlatformSdk {
31
+ private __config;
32
+ private __api;
33
+ private __authorization;
34
+ private __apiClients;
35
+ private __api_tokens;
36
+ private __backendSystem;
37
+ private __bookmarks;
38
+ private __chargebee;
39
+ private __documents;
40
+ private __domains;
41
+ private __http_logs;
42
+ private __jobLogs;
43
+ private __images;
44
+ private __model_sharing;
45
+ private __models;
46
+ private __modelTokens;
47
+ private __modelTransfers;
48
+ private __notifications;
49
+ private __openidProviders;
50
+ private __organizations;
51
+ private __policies;
52
+ private __savedStates;
53
+ private __savedStateSharing;
54
+ private __tags;
55
+ private __userAnalytics;
56
+ private __organizationAnalytics;
57
+ private __users;
58
+ private __webhooks;
59
+ private __stargate;
60
+ /**
61
+ * ShapeDiverSDK constructor
62
+ * @param clientId - the client id
63
+ * @param clientSecret - the client secret
64
+ * @param baseUrl - the base url
65
+ */
66
+ constructor(clientId?: string | null, clientSecret?: string | null, baseUrl?: string | null);
67
+ /**
68
+ * Configuration for this instance of the Platform SDK.
69
+ */
70
+ get config(): SdPlatformSdkConfig;
71
+ /**
72
+ * Authentication service for ShapeDiver Platform.
73
+ */
74
+ get authorization(): SdPlatformAuthServiceApi;
75
+ /**
76
+ * CRUD operations for Platform API clients.
77
+ */
78
+ get apiClients(): SdPlatformApiClientsApi;
79
+ /**
80
+ * CRUD operations for Platform API tokens.
81
+ * Platform API tokens can be limited in scope and lifetime.
82
+ * Use Platform API tokens for applications making use of the Platform API.
83
+ * Limit their scope as much as possible.
84
+ */
85
+ get apiTokens(): SdPlatformApiTokenApi;
86
+ /**
87
+ * Operations for ShapeDiver Geometry Backend Systems known by the Platform Backend.
88
+ */
89
+ get backendSystem(): SdPlatformBackendSystemApi;
90
+ /**
91
+ * Operations for creating and deleting bookmarks
92
+ */
93
+ get bookmarks(): SdPlatformBookmarkApi;
94
+ /**
95
+ * Actions related to Chargebee subscription management.
96
+ */
97
+ get chargebee(): SdPlatformChargebeeApi;
98
+ /**
99
+ * The documents api actions.
100
+ */
101
+ get documents(): SdPlatformDocumentApi;
102
+ /**
103
+ * Operations for domains which can be attached to users, organizations, models.
104
+ */
105
+ get domains(): SdPlatformDomainApi;
106
+ /**
107
+ * HTTP logs.
108
+ */
109
+ get httpLogs(): SdPlatformHttpLogApi;
110
+ /**
111
+ * Operations for job logs.
112
+ */
113
+ get jobLogs(): SdPlatformJobLogApi;
114
+ /**
115
+ * Operations for images which can be attached to models
116
+ */
117
+ get images(): SdPlatformImageApi;
118
+ /**
119
+ * Operations for model sharing relationships.
120
+ */
121
+ get modelSharing(): SdPlatformModelSharingApi;
122
+ /**
123
+ * Operations for models on the ShapeDiver Platform.
124
+ */
125
+ get models(): SdPlatformModelApi;
126
+ /**
127
+ * Operations for creating tokens for models on Geometry Backend Systems
128
+ */
129
+ get modelTokens(): SdPlatformModelTokenApi;
130
+ /**
131
+ * Operations for creating, revoking, accepting, denying, model ownership transfer notifications.
132
+ */
133
+ get modelTransfers(): SdPlatformModelTransferApi;
134
+ /**
135
+ * Operations for querying, reading/unreading, creating notifications.
136
+ */
137
+ get notifications(): SdPlatformNotificationApi;
138
+ /**
139
+ * Gets the openid providers.
140
+ */
141
+ get openidProviders(): SdPlatformOpenIDProviderApi;
142
+ /**
143
+ * Operations for organizations.
144
+ */
145
+ get organizations(): SdPlatformOrganizationApi;
146
+ /**
147
+ * Operations for policies.
148
+ */
149
+ get policies(): SdPlatformPolicyApi;
150
+ /**
151
+ * Operations for saved states.
152
+ */
153
+ get savedStates(): SdPlatformSavedStateApi;
154
+ /**
155
+ * Operations related to stargate api.
156
+ */
157
+ get stargate(): SdPlatformStargateApi;
158
+ /**
159
+ * Operations for saved state sharing relationships.
160
+ */
161
+ get savedStateSharing(): SdPlatformSavedStateSharingApi;
162
+ /**
163
+ * Operations for tags which can be attached to models.
164
+ */
165
+ get tags(): SdPlatformTagApi;
166
+ /**
167
+ * Analytics for users.
168
+ */
169
+ get userAnalytics(): SdPlatformUserAnalyticsApi;
170
+ /**
171
+ * Analytics for organizations.
172
+ */
173
+ get organizationAnalytics(): SdPlatformOrganizationAnalyticsApi;
174
+ /**
175
+ * Operations for users.
176
+ */
177
+ get users(): SdPlatformUserApi;
178
+ /**
179
+ * Webhook calls.
180
+ */
181
+ get webhooks(): SdPlatformWebhookApi;
182
+ /**
183
+ * Register callbacks for request start events.
184
+ * onRequestStart is fired before each request. This does not modify request, it is used only as notification that request is starting.
185
+ * NOTE: requestParams is as shallow copy.
186
+ * @param cb
187
+ */
188
+ onRequestStart(cb: (event: SdPlatformRequestStartEvent) => void): void;
189
+ /**
190
+ * Register callbacks for request finished events.
191
+ * onRequestFinished is fired after request has been resolved.
192
+ * NOTE: response is passed as shallow copy.
193
+ * NOTE: requestParams is as shallow copy.
194
+ * @param cb
195
+ */
196
+ onRequestFinished(cb: (event: SdPlatformRequestFinishedEvent) => void): void;
197
+ }
192
198
  //# sourceMappingURL=SdPlatformSdk.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SdPlatformSdk.d.ts","sourceRoot":"","sources":["../src/SdPlatformSdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,2BAA2B,EAAoB,MAAM,wBAAwB,CAAC;AACvH,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,mBAA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AED;;;;;OAKG;IACI,cAAc,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,GAAG,IAAI;IAK7E;;;;;;OAMG;IACI,iBAAiB,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,GAAG,IAAI;CAItF"}
@@ -1,72 +1,72 @@
1
- import { SdPlatformSdkApi } from "./api/SdPlatformSdkApi";
2
- import { SdPlatformSdkConfig } from "./api/SdPlatformSdkConfig";
3
- /**
4
- * Access token details
5
- */
6
- export interface SdPlatformAccessTokenDetails {
7
- access_token?: string;
8
- refresh_token?: string;
9
- expires_in?: number;
10
- token_type?: string;
11
- user_id?: string;
12
- expirationDate?: Date;
13
- }
14
- /**
15
- * Status of the access token
16
- */
17
- export declare enum SdPlatformAccessTokenState {
18
- /** no access token has been set */
19
- NoToken = 0,
20
- /** the access token has expired */
21
- Expired = 1,
22
- /** the access token has been set and is not expired yet */
23
- Valid = 2
24
- }
25
- /**
26
- * Status of authentication.
27
- */
28
- export interface SdPlatformAuthenticationStatus {
29
- /** true if an access token is present, not considering its state */
30
- readonly isAuthenticated: boolean;
31
- /** status of access token */
32
- readonly accessTokenState: SdPlatformAccessTokenState;
33
- /** id of authenticated user (ShapeDiver Platform user id) */
34
- readonly userId: string | null;
35
- }
36
- /**
37
- * Contextual information shared between the authentication API
38
- * and the ShapeDiver Platform resource APIs.
39
- */
40
- export declare class SdPlatformSdkContext {
41
- private __api;
42
- private __config;
43
- private __accessTokenDetails;
44
- constructor(__api: SdPlatformSdkApi, __config: SdPlatformSdkConfig);
45
- private cloneTokenDetails;
46
- /**
47
- * Get details of the access token
48
- */
49
- get accessTokenDetails(): SdPlatformAccessTokenDetails;
50
- /**
51
- * Set details of the access token
52
- * @param details
53
- */
54
- setAccessTokenDetails(details: SdPlatformAccessTokenDetails): void;
55
- /**
56
- * Base API.
57
- */
58
- get api(): SdPlatformSdkApi;
59
- /**
60
- * SDK Configuration.
61
- */
62
- get config(): SdPlatformSdkConfig;
63
- /**
64
- * Status of the access token.
65
- */
66
- get accessTokenState(): SdPlatformAccessTokenState;
67
- /**
68
- * Status of authentication.
69
- */
70
- get authData(): SdPlatformAuthenticationStatus;
71
- }
1
+ import { SdPlatformSdkApi } from "./api/SdPlatformSdkApi";
2
+ import { SdPlatformSdkConfig } from "./api/SdPlatformSdkConfig";
3
+ /**
4
+ * Access token details
5
+ */
6
+ export interface SdPlatformAccessTokenDetails {
7
+ access_token?: string;
8
+ refresh_token?: string;
9
+ expires_in?: number;
10
+ token_type?: string;
11
+ user_id?: string;
12
+ expirationDate?: Date;
13
+ }
14
+ /**
15
+ * Status of the access token
16
+ */
17
+ export declare enum SdPlatformAccessTokenState {
18
+ /** no access token has been set */
19
+ NoToken = 0,
20
+ /** the access token has expired */
21
+ Expired = 1,
22
+ /** the access token has been set and is not expired yet */
23
+ Valid = 2
24
+ }
25
+ /**
26
+ * Status of authentication.
27
+ */
28
+ export interface SdPlatformAuthenticationStatus {
29
+ /** true if an access token is present, not considering its state */
30
+ readonly isAuthenticated: boolean;
31
+ /** status of access token */
32
+ readonly accessTokenState: SdPlatformAccessTokenState;
33
+ /** id of authenticated user (ShapeDiver Platform user id) */
34
+ readonly userId: string | null;
35
+ }
36
+ /**
37
+ * Contextual information shared between the authentication API
38
+ * and the ShapeDiver Platform resource APIs.
39
+ */
40
+ export declare class SdPlatformSdkContext {
41
+ private __api;
42
+ private __config;
43
+ private __accessTokenDetails;
44
+ constructor(__api: SdPlatformSdkApi, __config: SdPlatformSdkConfig);
45
+ private cloneTokenDetails;
46
+ /**
47
+ * Get details of the access token
48
+ */
49
+ get accessTokenDetails(): SdPlatformAccessTokenDetails;
50
+ /**
51
+ * Set details of the access token
52
+ * @param details
53
+ */
54
+ setAccessTokenDetails(details: SdPlatformAccessTokenDetails): void;
55
+ /**
56
+ * Base API.
57
+ */
58
+ get api(): SdPlatformSdkApi;
59
+ /**
60
+ * SDK Configuration.
61
+ */
62
+ get config(): SdPlatformSdkConfig;
63
+ /**
64
+ * Status of the access token.
65
+ */
66
+ get accessTokenState(): SdPlatformAccessTokenState;
67
+ /**
68
+ * Status of authentication.
69
+ */
70
+ get authData(): SdPlatformAuthenticationStatus;
71
+ }
72
72
  //# sourceMappingURL=SdPlatformSdkContext.d.ts.map
@@ -1,8 +1,8 @@
1
- import { SdPlatformSdk } from "./SdPlatformSdk";
2
- export interface SdPlatformClientConfig {
3
- clientId?: string;
4
- clientSecret?: string;
5
- baseUrl?: string;
6
- }
7
- export declare function create(clientId?: SdPlatformClientConfig | string | null, clientSecret?: string | null, baseUrl?: string | null): SdPlatformSdk;
1
+ import { SdPlatformSdk } from "./SdPlatformSdk";
2
+ export interface SdPlatformClientConfig {
3
+ clientId?: string;
4
+ clientSecret?: string;
5
+ baseUrl?: string;
6
+ }
7
+ export declare function create(clientId?: SdPlatformClientConfig | string | null, clientSecret?: string | null, baseUrl?: string | null): SdPlatformSdk;
8
8
  //# sourceMappingURL=SdPlatformSdkCreate.d.ts.map