@shapediver/sdk.platform-api-sdk-v1 1.14.16

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 (152) hide show
  1. package/LICENSE +7 -0
  2. package/README.md +50 -0
  3. package/dist/SdPlatformErrors.d.ts +78 -0
  4. package/dist/SdPlatformErrors.d.ts.map +1 -0
  5. package/dist/SdPlatformSdk.d.ts +162 -0
  6. package/dist/SdPlatformSdk.d.ts.map +1 -0
  7. package/dist/SdPlatformSdkContext.d.ts +72 -0
  8. package/dist/SdPlatformSdkContext.d.ts.map +1 -0
  9. package/dist/SdPlatformSdkCreate.d.ts +8 -0
  10. package/dist/SdPlatformSdkCreate.d.ts.map +1 -0
  11. package/dist/ShapeDiverSDK.d.ts +8 -0
  12. package/dist/ShapeDiverSDKInstance.d.ts +100 -0
  13. package/dist/api/SdPlatformRequestId.d.ts +105 -0
  14. package/dist/api/SdPlatformRequestId.d.ts.map +1 -0
  15. package/dist/api/SdPlatformSdkApi.d.ts +63 -0
  16. package/dist/api/SdPlatformSdkApi.d.ts.map +1 -0
  17. package/dist/api/SdPlatformSdkConfig.d.ts +19 -0
  18. package/dist/api/SdPlatformSdkConfig.d.ts.map +1 -0
  19. package/dist/api/SdPlatformSdkErrorMapping.d.ts +29 -0
  20. package/dist/api/SdPlatformSdkErrorMapping.d.ts.map +1 -0
  21. package/dist/api/ShapeDiverSDKApi.d.ts +65 -0
  22. package/dist/api/ShapeDiverSDKRequestConfig.d.ts +7 -0
  23. package/dist/auth/AuthServiceApi.d.ts +34 -0
  24. package/dist/auth/SdPlatformAuthServiceApi.d.ts +59 -0
  25. package/dist/auth/SdPlatformAuthServiceApi.d.ts.map +1 -0
  26. package/dist/auth/models/AuthRequest.d.ts +12 -0
  27. package/dist/auth/models/AuthResponse.d.ts +8 -0
  28. package/dist/auth/models/ShapeDiverAuthRequest.d.ts +12 -0
  29. package/dist/bundle.js +5454 -0
  30. package/dist/bundle.node.js +7694 -0
  31. package/dist/common/FailedRequestError.d.ts +3 -0
  32. package/dist/common/Filter.d.ts +51 -0
  33. package/dist/common/Parameters.d.ts +28 -0
  34. package/dist/common/RequestId.d.ts +101 -0
  35. package/dist/common/ShapeDiverSDKContext.d.ts +31 -0
  36. package/dist/config/ShapeDiverSDKConfig.d.ts +6 -0
  37. package/dist/index.d.ts +28 -0
  38. package/dist/index.d.ts.map +1 -0
  39. package/dist/resources/ResourcesApi.d.ts +80 -0
  40. package/dist/resources/SdPlatformApiTokenApi.d.ts +19 -0
  41. package/dist/resources/SdPlatformApiTokenApi.d.ts.map +1 -0
  42. package/dist/resources/SdPlatformBackendSystemApi.d.ts +18 -0
  43. package/dist/resources/SdPlatformBackendSystemApi.d.ts.map +1 -0
  44. package/dist/resources/SdPlatformBookmarkApi.d.ts +17 -0
  45. package/dist/resources/SdPlatformBookmarkApi.d.ts.map +1 -0
  46. package/dist/resources/SdPlatformChargebeeApi.d.ts +21 -0
  47. package/dist/resources/SdPlatformChargebeeApi.d.ts.map +1 -0
  48. package/dist/resources/SdPlatformDomainApi.d.ts +45 -0
  49. package/dist/resources/SdPlatformDomainApi.d.ts.map +1 -0
  50. package/dist/resources/SdPlatformHttpLogApi.d.ts +16 -0
  51. package/dist/resources/SdPlatformHttpLogApi.d.ts.map +1 -0
  52. package/dist/resources/SdPlatformImageApi.d.ts +37 -0
  53. package/dist/resources/SdPlatformImageApi.d.ts.map +1 -0
  54. package/dist/resources/SdPlatformModelApi.d.ts +41 -0
  55. package/dist/resources/SdPlatformModelApi.d.ts.map +1 -0
  56. package/dist/resources/SdPlatformModelSharingApi.d.ts +49 -0
  57. package/dist/resources/SdPlatformModelSharingApi.d.ts.map +1 -0
  58. package/dist/resources/SdPlatformModelTokenApi.d.ts +11 -0
  59. package/dist/resources/SdPlatformModelTokenApi.d.ts.map +1 -0
  60. package/dist/resources/SdPlatformModelTransferApi.d.ts +47 -0
  61. package/dist/resources/SdPlatformModelTransferApi.d.ts.map +1 -0
  62. package/dist/resources/SdPlatformNotificationApi.d.ts +23 -0
  63. package/dist/resources/SdPlatformNotificationApi.d.ts.map +1 -0
  64. package/dist/resources/SdPlatformOrganizationApi.d.ts +86 -0
  65. package/dist/resources/SdPlatformOrganizationApi.d.ts.map +1 -0
  66. package/dist/resources/SdPlatformPolicyApi.d.ts +18 -0
  67. package/dist/resources/SdPlatformPolicyApi.d.ts.map +1 -0
  68. package/dist/resources/SdPlatformSavedStateApi.d.ts +50 -0
  69. package/dist/resources/SdPlatformSavedStateApi.d.ts.map +1 -0
  70. package/dist/resources/SdPlatformSavedStateSharingApi.d.ts +50 -0
  71. package/dist/resources/SdPlatformSavedStateSharingApi.d.ts.map +1 -0
  72. package/dist/resources/SdPlatformTagApi.d.ts +16 -0
  73. package/dist/resources/SdPlatformTagApi.d.ts.map +1 -0
  74. package/dist/resources/SdPlatformUserAnalyticsApi.d.ts +16 -0
  75. package/dist/resources/SdPlatformUserAnalyticsApi.d.ts.map +1 -0
  76. package/dist/resources/SdPlatformUserApi.d.ts +74 -0
  77. package/dist/resources/SdPlatformUserApi.d.ts.map +1 -0
  78. package/dist/resources/SdPlatformWebhookApi.d.ts +53 -0
  79. package/dist/resources/SdPlatformWebhookApi.d.ts.map +1 -0
  80. package/dist/resources/apiTokens/ApiTokenApi.d.ts +16 -0
  81. package/dist/resources/apiTokens/models/ApiToken.d.ts +37 -0
  82. package/dist/resources/apiTokens/models/ApiTokenCreate.d.ts +7 -0
  83. package/dist/resources/apiTokens/models/ApiTokenPatch.d.ts +6 -0
  84. package/dist/resources/apiTokens/models/JustCreatedApiToken.d.ts +5 -0
  85. package/dist/resources/backendSystems/BackendSystemApi.d.ts +14 -0
  86. package/dist/resources/backendSystems/models/BackendSystem.d.ts +25 -0
  87. package/dist/resources/backendSystems/models/BackendSystemCreate.d.ts +21 -0
  88. package/dist/resources/backendSystems/models/BackendSystemPatch.d.ts +17 -0
  89. package/dist/resources/bookmarks/BookmarkApi.d.ts +11 -0
  90. package/dist/resources/bookmarks/models/BookmarkCreate.d.ts +4 -0
  91. package/dist/resources/chargebee/ChargebeeApi.d.ts +17 -0
  92. package/dist/resources/chargebee/models/ChargebeeRequestsAndModels.d.ts +44 -0
  93. package/dist/resources/common/FeaturesModel.d.ts +45 -0
  94. package/dist/resources/commons/FilterBuilder.d.ts +55 -0
  95. package/dist/resources/commons/FilterBuilder.d.ts.map +1 -0
  96. package/dist/resources/commons/ResourcesApi.d.ts +41 -0
  97. package/dist/resources/commons/ResourcesApi.d.ts.map +1 -0
  98. package/dist/resources/domains/DomainApi.d.ts +28 -0
  99. package/dist/resources/domains/models/Domain.d.ts +19 -0
  100. package/dist/resources/domains/models/DomainCreateRequest.d.ts +5 -0
  101. package/dist/resources/domains/models/DomainPatchRequest.d.ts +5 -0
  102. package/dist/resources/httplogs/HttpLogApi.d.ts +15 -0
  103. package/dist/resources/httplogs/models.d.ts +14 -0
  104. package/dist/resources/images/ImageApi.d.ts +33 -0
  105. package/dist/resources/images/models/Image.d.ts +7 -0
  106. package/dist/resources/images/models/ImageCreate.d.ts +9 -0
  107. package/dist/resources/modelSharing/ModelSharingApi.d.ts +49 -0
  108. package/dist/resources/modelSharing/models/ModelSharing.d.ts +28 -0
  109. package/dist/resources/modelSharing/models/ModelSharingCreate.d.ts +14 -0
  110. package/dist/resources/modelTransfers/ModelTransferApi.d.ts +44 -0
  111. package/dist/resources/models/ModelApi.d.ts +16 -0
  112. package/dist/resources/models/models/CreateModelTransferRequest.d.ts +7 -0
  113. package/dist/resources/models/models/Model.d.ts +166 -0
  114. package/dist/resources/models/models/ModelCreate.d.ts +20 -0
  115. package/dist/resources/models/models/ModelPatch.d.ts +24 -0
  116. package/dist/resources/notifications/NotificationsApi.d.ts +14 -0
  117. package/dist/resources/notifications/models/Notification.d.ts +60 -0
  118. package/dist/resources/notifications/models/Requests.d.ts +18 -0
  119. package/dist/resources/organizations/OrganizationsApi.d.ts +72 -0
  120. package/dist/resources/organizations/models/Organization.d.ts +78 -0
  121. package/dist/resources/organizations/models/Requests.d.ts +21 -0
  122. package/dist/resources/policies/PoliciesApi.d.ts +15 -0
  123. package/dist/resources/policies/PolicyApi.d.ts +15 -0
  124. package/dist/resources/policies/models/Policy.d.ts +221 -0
  125. package/dist/resources/policies/models/PolicyCreate.d.ts +20 -0
  126. package/dist/resources/policies/models/PolicyPatch.d.ts +18 -0
  127. package/dist/resources/savedStateSharing/SavedStateSharingsApi.d.ts +49 -0
  128. package/dist/resources/savedStateSharing/models/SavedStateSharingsModels.d.ts +14 -0
  129. package/dist/resources/savedStateSharing/models/SavedStatesSharingsRequests.d.ts +5 -0
  130. package/dist/resources/savedStates/SavedStatesApi.d.ts +43 -0
  131. package/dist/resources/savedStates/models/SavedStatesModels.d.ts +32 -0
  132. package/dist/resources/savedStates/models/SavedStatesRequests.d.ts +28 -0
  133. package/dist/resources/sdmodels/SDModelApi.d.ts +14 -0
  134. package/dist/resources/sdmodels/models/SDModel.d.ts +116 -0
  135. package/dist/resources/sdmodels/models/SDModelCreate.d.ts +20 -0
  136. package/dist/resources/sdmodels/models/SDModelPatch.d.ts +11 -0
  137. package/dist/resources/tags/TagApi.d.ts +10 -0
  138. package/dist/resources/tags/models/Tag.d.ts +14 -0
  139. package/dist/resources/tokens/TokenApi.d.ts +8 -0
  140. package/dist/resources/tokens/models/Token.d.ts +7 -0
  141. package/dist/resources/tokens/models/TokenRequest.d.ts +16 -0
  142. package/dist/resources/userModelSessions/UserModelSessionsApi.d.ts +14 -0
  143. package/dist/resources/userModelSessions/models/UserModelSession.d.ts +53 -0
  144. package/dist/resources/users/UserApi.d.ts +49 -0
  145. package/dist/resources/users/models/PasswordResetConfirmRequest.d.ts +6 -0
  146. package/dist/resources/users/models/PatchUserRequest.d.ts +32 -0
  147. package/dist/resources/users/models/RegisterUser.d.ts +7 -0
  148. package/dist/resources/users/models/User.d.ts +104 -0
  149. package/dist/resources/users/models/UserPatchRequest.d.ts +41 -0
  150. package/dist/resources/webhooks/WebhooksApi.d.ts +50 -0
  151. package/dist/resources/webhooks/models/Requests.d.ts +16 -0
  152. package/package.json +59 -0
@@ -0,0 +1,49 @@
1
+ import { ResourcesApi } from "./commons/ResourcesApi";
2
+ import { SdPlatformRequestModelSharingCreate, SdPlatformResponseModelSharing } from "@shapediver/api.platform-api-dto-v1";
3
+ import { SdPlatformQueryParameters, SdPlatformGetResponse, SdPlatformQueryResponse, SdPlatformPostResponse, SdPlatformDeleteResponse } from "@shapediver/api.platform-api-dto-v1";
4
+ export declare type SdPlatformModelSharingQueryParameters = SdPlatformQueryParameters<null>;
5
+ /**
6
+ * Operations for model sharing relationships.
7
+ */
8
+ export declare class SdPlatformModelSharingApi extends ResourcesApi {
9
+ protected get __resourcePath(): string;
10
+ /**
11
+ * Create a model sharing relationship.
12
+ * @param body
13
+ * @returns
14
+ */
15
+ create(body: SdPlatformRequestModelSharingCreate): Promise<SdPlatformPostResponse<SdPlatformResponseModelSharing>>;
16
+ /**
17
+ * Query model sharing relationships.
18
+ * @param query
19
+ * @returns
20
+ */
21
+ query(query?: SdPlatformModelSharingQueryParameters): Promise<SdPlatformQueryResponse<SdPlatformResponseModelSharing>>;
22
+ /**
23
+ * Query model sharing relationships by model id.
24
+ * @param model_id
25
+ * @param query
26
+ * @returns
27
+ */
28
+ queryByModel(model_id: string, query?: SdPlatformModelSharingQueryParameters): Promise<SdPlatformQueryResponse<SdPlatformResponseModelSharing>>;
29
+ /**
30
+ * Query model sharing relationships by user id.
31
+ * @param user_id
32
+ * @param query
33
+ */
34
+ queryByUser(user_id: string, query?: SdPlatformModelSharingQueryParameters): Promise<SdPlatformQueryResponse<SdPlatformResponseModelSharing>>;
35
+ /**
36
+ * Get model sharing relationships by model id and user id.
37
+ * @param model_id
38
+ * @param user_id
39
+ * @returns
40
+ */
41
+ getByModelAndUser(model_id: string, user_id: string): Promise<SdPlatformGetResponse<Array<SdPlatformResponseModelSharing>>>;
42
+ /**
43
+ * Delete a model sharing relationship.
44
+ * @param model_sharing_id Id of the model sharing relationship to delete.
45
+ * @returns
46
+ */
47
+ delete(model_sharing_id: string): Promise<SdPlatformDeleteResponse>;
48
+ }
49
+ //# sourceMappingURL=SdPlatformModelSharingApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformModelSharingApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformModelSharingApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAS,YAAY,EAAC,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAC,mCAAmC,EAAE,8BAA8B,EAAC,MAAM,qCAAqC,CAAA;AACvH,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAEjL,oBAAY,qCAAqC,GAAG,yBAAyB,CAAC,IAAI,CAAC,CAAC;AAEpF;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,YAAY;IAEvD,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAED;;;;OAIG;IACI,MAAM,CAAC,IAAI,EAAE,mCAAmC,GAAG,OAAO,CAAC,sBAAsB,CAAC,8BAA8B,CAAC,CAAC;IAKzH;;;;OAIG;IACI,KAAK,CAAC,KAAK,GAAE,qCAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,CAAC;IAKjI;;;;;QAKI;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,GAAE,qCAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,CAAC;IAK1J;;;;OAIG;IACI,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,GAAE,qCAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,CAAC;IAKxJ;;;;;OAKG;IACI,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,CAAC;IAKlI;;;;OAIG;IACI,MAAM,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAI7E"}
@@ -0,0 +1,11 @@
1
+ import { ResourcesApi } from "./commons/ResourcesApi";
2
+ import { SdPlatformResponseModelToken, SdPlatformRequestModelTokenCreate } from "@shapediver/api.platform-api-dto-v1";
3
+ import { SdPlatformPostResponse } from "@shapediver/api.platform-api-dto-v1";
4
+ /**
5
+ * Operations for creating tokens for models on Geometry Backend Systems
6
+ */
7
+ export declare class SdPlatformModelTokenApi extends ResourcesApi {
8
+ protected get __resourcePath(): string;
9
+ create(body: SdPlatformRequestModelTokenCreate): Promise<SdPlatformPostResponse<SdPlatformResponseModelToken>>;
10
+ }
11
+ //# sourceMappingURL=SdPlatformModelTokenApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformModelTokenApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformModelTokenApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,4BAA4B,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACtH,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAE5E;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,YAAY;IAErD,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAEM,MAAM,CAAC,IAAI,EAAE,iCAAiC,GAAG,OAAO,CAAC,sBAAsB,CAAC,4BAA4B,CAAC,CAAC;CAIxH"}
@@ -0,0 +1,47 @@
1
+ import { ResourcesApi } from "./commons/ResourcesApi";
2
+ import { SdPlatformRequestModelTransferCreate, SdPlatformResponseNotification } from "@shapediver/api.platform-api-dto-v1";
3
+ import { SdPlatformGetResponse, SdPlatformPostResponse, SdPlatformDeleteResponse } from "@shapediver/api.platform-api-dto-v1";
4
+ /**
5
+ * Operations for creating, revoking, accepting, denying, model ownership transfer notifications.
6
+ */
7
+ export declare class SdPlatformModelTransferApi extends ResourcesApi {
8
+ protected get __resourcePath(): string;
9
+ /**
10
+ * Get all model transfer requests for models currently owned by the authenticated user.
11
+ * @returns
12
+ */
13
+ getModelTransferRequests(): Promise<SdPlatformGetResponse<Array<SdPlatformResponseNotification>>>;
14
+ /**
15
+ * Creates a model transfer request. The calling user must have permission "update_owner" for the model.
16
+ * @param model_id
17
+ * @param body
18
+ * @returns
19
+ */
20
+ createModelTransferRequest(model_id: string, body: SdPlatformRequestModelTransferCreate): Promise<SdPlatformPostResponse<SdPlatformResponseNotification>>;
21
+ /**
22
+ * Deletes a model transfer request by model id. The calling user must have permission "update_owner" for the model.
23
+ * @param model_id
24
+ * @returns
25
+ */
26
+ deleteModelTransferRequest(model_id: string): Promise<SdPlatformDeleteResponse>;
27
+ /**
28
+ * Get a model transfer request by model id. The calling user must have permission "update_owner" for the model.
29
+ * The receiving user can see the model transfer request when querying notifications in general.
30
+ * @param model_id
31
+ * @returns
32
+ */
33
+ getModelTransferRequest(model_id: string): Promise<SdPlatformGetResponse<SdPlatformResponseNotification>>;
34
+ /**
35
+ * Accept a model transfer request. This must be called by the receiving user.
36
+ * @param model_id
37
+ * @returns
38
+ */
39
+ acceptModelTransferRequest(model_id: string): Promise<SdPlatformPostResponse<void>>;
40
+ /**
41
+ * Deny the model transfer request. This must be called by the receiving user.
42
+ * @param model_id
43
+ * @returns
44
+ */
45
+ denyModelTransferRequest(model_id: string): Promise<SdPlatformPostResponse<void>>;
46
+ }
47
+ //# sourceMappingURL=SdPlatformModelTransferApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformModelTransferApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformModelTransferApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAU,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAC,oCAAoC,EAAE,8BAA8B,EAAC,MAAM,qCAAqC,CAAA;AACxH,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAE7H;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,YAAY;IAExD,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAED;;;OAGG;IACI,wBAAwB,IAAI,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,CAAC;IAKxG;;;;;OAKG;IACI,0BAA0B,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,oCAAoC,GAAG,OAAO,CAAC,sBAAsB,CAAC,8BAA8B,CAAC,CAAC;IAKhK;;;;OAIG;IACI,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAKtF;;;;;OAKG;IACI,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,8BAA8B,CAAC,CAAC;IAKhH;;;;OAIG;IACI,0BAA0B,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAM1F;;;;OAIG;IACI,wBAAwB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;CAI3F"}
@@ -0,0 +1,23 @@
1
+ import { ResourcesApi } from "./commons/ResourcesApi";
2
+ import { SdPlatformRequestNotificationCreate, SdPlatformRequestNotificationPatch, SdPlatformResponseNotification } from "@shapediver/api.platform-api-dto-v1";
3
+ import { SdPlatformQueryParameters, SdPlatformQueryResponse, SdPlatformPatchResponse, SdPlatformPostResponse, SdPlatformDeleteResponse } from "@shapediver/api.platform-api-dto-v1";
4
+ export declare enum SdPlatformNotificationEmbeddableFields {
5
+ Received = "receiver",
6
+ User = "user",
7
+ Model = "model",
8
+ SavedState = "saved_state",
9
+ Document = "document",
10
+ Organization = "organization"
11
+ }
12
+ export declare type SdPlatformNotificationQueryParameters = SdPlatformQueryParameters<SdPlatformNotificationEmbeddableFields>;
13
+ /**
14
+ * Operations for querying, reading/unreading, creating notifications.
15
+ */
16
+ export declare class SdPlatformNotificationApi extends ResourcesApi {
17
+ protected get __resourcePath(): string;
18
+ query(body?: SdPlatformNotificationQueryParameters): Promise<SdPlatformQueryResponse<SdPlatformResponseNotification>>;
19
+ create(body: SdPlatformRequestNotificationCreate): Promise<SdPlatformPostResponse<SdPlatformResponseNotification>>;
20
+ patch(id: string, body: SdPlatformRequestNotificationPatch): Promise<SdPlatformPatchResponse<SdPlatformResponseNotification>>;
21
+ delete(id: string): Promise<SdPlatformDeleteResponse>;
22
+ }
23
+ //# sourceMappingURL=SdPlatformNotificationApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformNotificationApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformNotificationApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,mCAAmC,EAAE,kCAAkC,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAA;AAC7J,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAEnL,oBAAY,sCAAsC;IAE9C,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,UAAU,gBAAgB;IAC1B,QAAQ,aAAa;IACrB,YAAY,iBAAiB;CAChC;AAED,oBAAY,qCAAqC,GAAG,yBAAyB,CAAC,sCAAsC,CAAC,CAAA;AAErH;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,YAAY;IAEvD,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAEM,KAAK,CAAC,IAAI,GAAE,qCAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,CAAC;IAKzH,MAAM,CAAC,IAAI,EAAE,mCAAmC,GAAG,OAAO,CAAC,sBAAsB,CAAC,8BAA8B,CAAC,CAAC;IAKlH,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kCAAkC,GAAG,OAAO,CAAC,uBAAuB,CAAC,8BAA8B,CAAC,CAAC;IAK7H,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAI/D"}
@@ -0,0 +1,86 @@
1
+ import { ResourcesApi } from "./commons/ResourcesApi";
2
+ import { SdPlatformResponseNotification, SdPlatformRequestOrganizationCreate, SdPlatformRequestOrganizationPatchAny, SdPlatformResponseOrganizationPublic, SdPlatformResponseOrganizationOwner, SdPlatformResponseOrganizationAdministrator, SdPlatformOrganizationMemberRole } from "@shapediver/api.platform-api-dto-v1";
3
+ import { SdPlatformQueryParameters, SdPlatformGetResponse, SdPlatformQueryResponse, SdPlatformPatchResponse, SdPlatformPostResponse, SdPlatformDeleteResponse } from "@shapediver/api.platform-api-dto-v1";
4
+ export declare enum SdPlatformOrganizationEmbeddableFields {
5
+ AccessDomains = "accessdomains",
6
+ BackendSystem = "backend_system",
7
+ Members = "members",
8
+ ChargebeeCustomer = "chargebee_customer",
9
+ ChargebeeSubscription = "chargebee_subscription",
10
+ ChargebeePlan = "chargebee_plan",
11
+ ChargebeeAddons = "chargebee_addons"
12
+ }
13
+ export declare type SdPlatformOrganizationQueryParameters = SdPlatformQueryParameters<SdPlatformOrganizationEmbeddableFields>;
14
+ /**
15
+ * Operations for organizations.
16
+ */
17
+ export declare class SdPlatformOrganizationApi extends ResourcesApi {
18
+ protected get __resourcePath(): string;
19
+ /**
20
+ * Get organization by id.
21
+ * @param id - organization id.
22
+ * @param embed - embeddable resources.
23
+ */
24
+ get<T = SdPlatformResponseOrganizationPublic>(id: string, embed?: Array<SdPlatformOrganizationEmbeddableFields>): Promise<SdPlatformGetResponse<T>>;
25
+ /**
26
+ * Query organizations.
27
+ * @param body
28
+ */
29
+ query<T = SdPlatformResponseOrganizationPublic>(body?: SdPlatformOrganizationQueryParameters): Promise<SdPlatformQueryResponse<T>>;
30
+ /**
31
+ * Create an organization, and make the calling user owner of the organization. Will fail in case the user is member of an organization already.
32
+ * @param body
33
+ * @returns
34
+ */
35
+ create(body: SdPlatformRequestOrganizationCreate): Promise<SdPlatformPostResponse<SdPlatformResponseOrganizationOwner>>;
36
+ /**
37
+ * Patch an organization.
38
+ * @param id - id of the organization
39
+ * @param body - properties to patch
40
+ */
41
+ patch<T = SdPlatformResponseOrganizationAdministrator>(id: string, body: SdPlatformRequestOrganizationPatchAny): Promise<SdPlatformPatchResponse<T>>;
42
+ /**
43
+ * Delete an organization.
44
+ * @param id
45
+ * @returns
46
+ */
47
+ delete(id: string): Promise<SdPlatformDeleteResponse>;
48
+ /**
49
+ * Create organization invitation.
50
+ * @param organization_id
51
+ * @param receiver_id
52
+ * @returns
53
+ */
54
+ createOrganizationInvitation(organization_id: string, receiver_id: string): Promise<SdPlatformPostResponse<SdPlatformResponseNotification>>;
55
+ /**
56
+ * Delete organization invitation.
57
+ * @param organization_id
58
+ * @param receiver_id
59
+ * @returns
60
+ */
61
+ deleteOrganizationInvitation(organization_id: string, receiver_id: string): Promise<SdPlatformDeleteResponse>;
62
+ /**
63
+ * Get organization invitations.
64
+ * @param organization_id
65
+ * @returns
66
+ */
67
+ getOrganizationInvitations(organization_id: string): Promise<SdPlatformGetResponse<Array<SdPlatformResponseNotification>>>;
68
+ /**
69
+ * Accept organization invitation.
70
+ * @param organization_id
71
+ * @returns
72
+ */
73
+ acceptOrganizationInvitation(organization_id: string): Promise<SdPlatformPostResponse<void>>;
74
+ /**
75
+ * Deny organization invitation.
76
+ * @param organization_id
77
+ * @returns
78
+ */
79
+ denyOrganizationInvitation(organization_id: string): Promise<SdPlatformPostResponse<void>>;
80
+ /**
81
+ * Patch role of organization member.
82
+ * @param email
83
+ */
84
+ patchMemberRole(organization_id: string, user_id: string, organization_role: SdPlatformOrganizationMemberRole): Promise<SdPlatformPatchResponse<void>>;
85
+ }
86
+ //# sourceMappingURL=SdPlatformOrganizationApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformOrganizationApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformOrganizationApi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAU,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,8BAA8B,EAAE,mCAAmC,EAAE,qCAAqC,EAAE,oCAAoC,EAAE,mCAAmC,EAAE,2CAA2C,EAAE,gCAAgC,EAAE,MAAM,qCAAqC,CAAA;AAC1T,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAE1M,oBAAY,sCAAsC;IAE9C,aAAa,kBAAkB;IAC/B,aAAa,mBAAmB;IAChC,OAAO,YAAY;IACnB,iBAAiB,uBAAuB;IACxC,qBAAqB,2BAA2B;IAChD,aAAa,mBAAmB;IAChC,eAAe,qBAAqB;CACvC;AAED,oBAAY,qCAAqC,GAAG,yBAAyB,CAAC,sCAAsC,CAAC,CAAA;AAErH;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,YAAY;IAEvD,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAED;;;;MAIE;IACK,GAAG,CAAC,CAAC,GAAG,oCAAoC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,sCAAsC,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAK1J;;;OAGG;IACI,KAAK,CAAC,CAAC,GAAG,oCAAoC,EAAE,IAAI,GAAE,qCAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAK7I;;;;OAIG;IACI,MAAM,CAAC,IAAI,EAAE,mCAAmC,GAAG,OAAO,CAAC,sBAAsB,CAAC,mCAAmC,CAAC,CAAC;IAK9H;;;;OAIG;IACI,KAAK,CAAC,CAAC,GAAG,2CAA2C,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,qCAAqC,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAK3J;;;;OAIG;IACI,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAK5D;;;;;OAKG;IACI,4BAA4B,CAAC,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,8BAA8B,CAAC,CAAC;IAKlJ;;;;;OAKG;IACI,4BAA4B,CAAC,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAKpH;;;;OAIG;IACI,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC,CAAC;IAMjI;;;;OAIG;IACI,4BAA4B,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAMnG;;;;OAIG;IACI,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAKjG;;;OAGG;IACK,eAAe,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,gCAAgC,GAAI,OAAO,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;CAOlK"}
@@ -0,0 +1,18 @@
1
+ import { ResourcesApi } from "./commons/ResourcesApi";
2
+ import { SdPlatformResponsePolicy } from "@shapediver/api.platform-api-dto-v1";
3
+ import { SdPlatformRequestPolicyCreate } from "@shapediver/api.platform-api-dto-v1";
4
+ import { SdPlatformRequestPolicyPatch } from "@shapediver/api.platform-api-dto-v1";
5
+ import { SdPlatformQueryParameters, SdPlatformGetResponse, SdPlatformQueryResponse, SdPlatformPatchResponse, SdPlatformPostResponse, SdPlatformDeleteResponse } from "@shapediver/api.platform-api-dto-v1";
6
+ export declare type SdPlatformPolicyQueryParameters = SdPlatformQueryParameters<null>;
7
+ /**
8
+ * Operations for policies.
9
+ */
10
+ export declare class SdPlatformPolicyApi extends ResourcesApi {
11
+ protected get __resourcePath(): string;
12
+ query(body?: SdPlatformPolicyQueryParameters): Promise<SdPlatformQueryResponse<SdPlatformResponsePolicy>>;
13
+ get(id: string): Promise<SdPlatformGetResponse<SdPlatformResponsePolicy>>;
14
+ create(body: SdPlatformRequestPolicyCreate): Promise<SdPlatformPostResponse<SdPlatformResponsePolicy>>;
15
+ patch(id: string, body: SdPlatformRequestPolicyPatch): Promise<SdPlatformPatchResponse<SdPlatformResponsePolicy>>;
16
+ delete(id: string): Promise<SdPlatformDeleteResponse>;
17
+ }
18
+ //# sourceMappingURL=SdPlatformPolicyApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformPolicyApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformPolicyApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAE1M,oBAAY,+BAA+B,GAAG,yBAAyB,CAAC,IAAI,CAAC,CAAC;AAE9E;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,YAAY;IAEjD,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAEM,KAAK,CAAC,IAAI,GAAE,+BAAoC,GAAG,OAAO,CAAC,uBAAuB,CAAC,wBAAwB,CAAC,CAAC;IAK7G,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,wBAAwB,CAAC,CAAC;IAKzE,MAAM,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,sBAAsB,CAAC,wBAAwB,CAAC,CAAC;IAKtG,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,uBAAuB,CAAC,wBAAwB,CAAC,CAAC;IAKjH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAI/D"}
@@ -0,0 +1,50 @@
1
+ import { ResourcesApi } from "./commons/ResourcesApi";
2
+ import { SdPlatformResponseSavedStatePublic, SdPlatformRequestSavedStateCreate, SdPlatformRequestSavedStatePatch, SdPlatformResponseSavedStateOwner } from "@shapediver/api.platform-api-dto-v1";
3
+ import { SdPlatformQueryParameters, SdPlatformGetResponse, SdPlatformQueryResponse, SdPlatformPatchResponse, SdPlatformPostResponse, SdPlatformDeleteResponse } from "@shapediver/api.platform-api-dto-v1";
4
+ export declare enum SdPlatformSavedStateQueryEmbeddableFields {
5
+ Model = "model",
6
+ Owner = "owner"
7
+ }
8
+ export declare enum SdPlatformSavedStateGetEmbedFields {
9
+ Model = "model",
10
+ Owner = "owner"
11
+ }
12
+ export declare type SdPlatformSavedStateApiQueryParameters = SdPlatformQueryParameters<SdPlatformSavedStateQueryEmbeddableFields>;
13
+ /**
14
+ * Operations for saved states.
15
+ */
16
+ export declare class SdPlatformSavedStateApi extends ResourcesApi {
17
+ protected get __resourcePath(): string;
18
+ /**
19
+ * Gets a saved state by id.
20
+ * @param id - saved state id.
21
+ * @param embed - embeddable fields.
22
+ */
23
+ get<T = SdPlatformResponseSavedStatePublic>(id: string, embed?: Array<SdPlatformSavedStateGetEmbedFields>): Promise<SdPlatformGetResponse<T>>;
24
+ /**
25
+ * Create a new saved state.
26
+ * @param body
27
+ * @returns
28
+ */
29
+ create<T = SdPlatformResponseSavedStateOwner>(body: SdPlatformRequestSavedStateCreate): Promise<SdPlatformPostResponse<T>>;
30
+ /**
31
+ * Patch a saved state.
32
+ * @param id
33
+ * @param body
34
+ * @returns
35
+ */
36
+ patch<T = SdPlatformResponseSavedStateOwner>(id: string, body: SdPlatformRequestSavedStatePatch): Promise<SdPlatformPatchResponse<T>>;
37
+ /**
38
+ * Delete a saved state.
39
+ * @param id
40
+ * @returns
41
+ */
42
+ delete(id: string): Promise<SdPlatformDeleteResponse>;
43
+ /**
44
+ * Query saved states.
45
+ * @param params
46
+ * @returns
47
+ */
48
+ query<T = SdPlatformResponseSavedStatePublic>(params?: SdPlatformSavedStateApiQueryParameters): Promise<SdPlatformQueryResponse<T>>;
49
+ }
50
+ //# sourceMappingURL=SdPlatformSavedStateApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformSavedStateApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformSavedStateApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,kCAAkC,EAAE,iCAAiC,EAAE,gCAAgC,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAA;AAChM,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAG1M,oBAAY,yCAAyC;IAEjD,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAGD,oBAAY,kCAAkC;IAE1C,KAAK,UAAU;IACf,KAAK,UAAU;CAClB;AAED,oBAAY,sCAAsC,GAAG,yBAAyB,CAAC,yCAAyC,CAAC,CAAC;AAE1H;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,YAAY;IAErD,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAED;;;;QAII;IACG,GAAG,CAAC,CAAC,GAAG,kCAAkC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,kCAAkC,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAKpJ;;;;OAIG;IACI,MAAM,CAAC,CAAC,GAAG,iCAAiC,EAAE,IAAI,EAAE,iCAAiC,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAKjI;;;;;OAKG;IACI,KAAK,CAAC,CAAC,GAAG,iCAAiC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gCAAgC,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAK5I;;;;OAIG;IACI,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAK5D;;;;OAIG;IACI,KAAK,CAAC,CAAC,GAAG,kCAAkC,EAAE,MAAM,CAAC,EAAE,sCAAsC,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;CAI7I"}
@@ -0,0 +1,50 @@
1
+ import { SdPlatformResponseSavedStateSharing, SdPlatformResponseSavedStateSharingCreate } from "@shapediver/api.platform-api-dto-v1";
2
+ import { ResourcesApi } from "./commons/ResourcesApi";
3
+ import { SdPlatformQueryParameters, SdPlatformGetResponse, SdPlatformQueryResponse, SdPlatformPostResponse, SdPlatformDeleteResponse } from "@shapediver/api.platform-api-dto-v1";
4
+ export declare type SdPlatformSavedStateSharingQueryParameters = SdPlatformQueryParameters<null>;
5
+ /**
6
+ * Operations for saved state sharing relationships.
7
+ */
8
+ export declare class SdPlatformSavedStateSharingApi extends ResourcesApi {
9
+ protected get __resourcePath(): string;
10
+ /**
11
+ * Create a saved state sharing relationship
12
+ * @param body
13
+ * @returns
14
+ */
15
+ create(body: SdPlatformResponseSavedStateSharingCreate): Promise<SdPlatformPostResponse<SdPlatformResponseSavedStateSharing>>;
16
+ /**
17
+ * Delete a saved state.
18
+ * @param saved_state_sharing_id Id of the saved state sharing relationship to delete.
19
+ * @returns
20
+ */
21
+ delete(saved_state_sharing_id: string): Promise<SdPlatformDeleteResponse>;
22
+ /**
23
+ * Get saved state sharing relationships by saved state id and user id.
24
+ * @param saved_state_id - saved state id.
25
+ * @param user_id - user id.
26
+ * @returns
27
+ */
28
+ getBySavedStateAndUser(saved_state_id: string, user_id: string): Promise<SdPlatformGetResponse<Array<SdPlatformResponseSavedStateSharing>>>;
29
+ /**
30
+ * Query saved state sharing relationships.
31
+ * @param params
32
+ * @returns
33
+ */
34
+ query(query?: SdPlatformSavedStateSharingQueryParameters): Promise<SdPlatformQueryResponse<SdPlatformResponseSavedStateSharing>>;
35
+ /**
36
+ * Query saved state sharing relationships by saved state id.
37
+ * @param saved_state_id
38
+ * @param query
39
+ * @returns
40
+ */
41
+ queryBySavedState(saved_state_id: string, query?: SdPlatformSavedStateSharingQueryParameters): Promise<SdPlatformQueryResponse<SdPlatformResponseSavedStateSharing>>;
42
+ /**
43
+ * Query saved state sharing relationships by user id.
44
+ * @param user_id
45
+ * @param query
46
+ * @returns
47
+ */
48
+ queryByUser(user_id: string, query?: SdPlatformSavedStateSharingQueryParameters): Promise<SdPlatformQueryResponse<SdPlatformResponseSavedStateSharing>>;
49
+ }
50
+ //# sourceMappingURL=SdPlatformSavedStateSharingApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformSavedStateSharingApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformSavedStateSharingApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,yCAAyC,EAAE,MAAM,qCAAqC,CAAC;AACrI,OAAO,EAAU,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAGjL,oBAAY,0CAA0C,GAAG,yBAAyB,CAAC,IAAI,CAAC,CAAC;AAEzF;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,YAAY;IAE5D,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAED;;;;QAII;IACG,MAAM,CAAC,IAAI,EAAE,yCAAyC,GAAG,OAAO,CAAC,sBAAsB,CAAC,mCAAmC,CAAC,CAAC;IAKpI;;;;OAIG;IACI,MAAM,CAAC,sBAAsB,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAKhF;;;;;QAKI;IACG,sBAAsB,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC,CAAC;IAKlJ;;;;OAIG;IACI,KAAK,CAAC,KAAK,CAAC,EAAE,0CAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,mCAAmC,CAAC,CAAC;IAKvI;;;;;OAKG;IACI,iBAAiB,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,0CAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,mCAAmC,CAAC,CAAC;IAK3K;;;;;OAKG;IACI,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,0CAA0C,GAAG,OAAO,CAAC,uBAAuB,CAAC,mCAAmC,CAAC,CAAC;CAMjK"}
@@ -0,0 +1,16 @@
1
+ import { ResourcesApi } from "./commons/ResourcesApi";
2
+ import { SdPlatformResponseTag, SdPlatformResponseTagAdmin } from "@shapediver/api.platform-api-dto-v1";
3
+ import { SdPlatformQueryParameters, SdPlatformGetResponse, SdPlatformQueryResponse } from "@shapediver/api.platform-api-dto-v1";
4
+ export declare enum SdPlatformTagQueryEmbeddableFields {
5
+ ModelsCount = "models_count"
6
+ }
7
+ export declare type SdPlatformTagQueryParameters = SdPlatformQueryParameters<SdPlatformTagQueryEmbeddableFields>;
8
+ /**
9
+ * Operations for tags which can be attached to models.
10
+ */
11
+ export declare class SdPlatformTagApi extends ResourcesApi {
12
+ protected get __resourcePath(): string;
13
+ get(id: string): Promise<SdPlatformGetResponse<SdPlatformResponseTag | SdPlatformResponseTagAdmin>>;
14
+ query(query?: SdPlatformTagQueryParameters): Promise<SdPlatformQueryResponse<SdPlatformResponseTag | SdPlatformResponseTagAdmin>>;
15
+ }
16
+ //# sourceMappingURL=SdPlatformTagApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformTagApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformTagApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAA;AACvG,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA;AAE/H,oBAAY,kCAAkC;IAE1C,WAAW,iBAAiB;CAC/B;AAED,oBAAY,4BAA4B,GAAG,yBAAyB,CAAC,kCAAkC,CAAC,CAAC;AAEzG;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAE9C,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAEM,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,CAAC;IAKnG,KAAK,CAAC,KAAK,GAAE,4BAAiC,GAAG,OAAO,CAAC,uBAAuB,CAAC,qBAAqB,GAAG,0BAA0B,CAAC,CAAC;CAI/I"}
@@ -0,0 +1,16 @@
1
+ import { SdPlatformResponseUserModelSessionAnalyticsPerTimestamp } from "@shapediver/api.platform-api-dto-v1";
2
+ import { ResourcesApi } from "./commons/ResourcesApi";
3
+ import { SdPlatformQueryParameters, SdPlatformQueryResponse } from "@shapediver/api.platform-api-dto-v1";
4
+ /**
5
+ * Analytics for users.
6
+ */
7
+ export declare class SdPlatformUserAnalyticsApi extends ResourcesApi {
8
+ protected get __resourcePath(): string;
9
+ /**
10
+ * Query session analytics aggregated per user.
11
+ * @param body
12
+ * @returns
13
+ */
14
+ query(body?: SdPlatformQueryParameters<unknown>): Promise<SdPlatformQueryResponse<SdPlatformResponseUserModelSessionAnalyticsPerTimestamp>>;
15
+ }
16
+ //# sourceMappingURL=SdPlatformUserAnalyticsApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformUserAnalyticsApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformUserAnalyticsApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uDAAuD,EAAE,MAAM,qCAAqC,CAAC;AAE9G,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAA;AAExG;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,YAAY;IAExD,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAED;;;;OAIG;IACI,KAAK,CAAC,IAAI,GAAE,yBAAyB,CAAC,OAAO,CAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,uDAAuD,CAAC,CAAC;CAKzJ"}
@@ -0,0 +1,74 @@
1
+ import { SdPlatformRequestUserPatchAdmin, SdPlatformRequestUserPasswordResetConfirm, SdPlatformRequestUserPatch, SdPlatformRequestUserRegister, SdPlatformResponseUserSelf, SdPlatformResponseUserMinimal } from "@shapediver/api.platform-api-dto-v1";
2
+ import { ResourcesApi } from "./commons/ResourcesApi";
3
+ import { SdPlatformQueryParameters, SdPlatformGetResponse, SdPlatformQueryResponse, SdPlatformPatchResponse, SdPlatformPostResponse, SdPlatformDeleteResponse } from "@shapediver/api.platform-api-dto-v1";
4
+ export declare enum SdPlatformUserQueryEmbeddableFields {
5
+ BackendSystem = "backend_system",
6
+ ChargebeeAddons = "chargebee_addons",
7
+ ChargebeeCustomer = "chargebee_customer",
8
+ ChargebeePlan = "chargebee_plan",
9
+ ChargebeeSubscription = "chargebee_subscription",
10
+ GlobalAccessDomains = "global_accessdomains",
11
+ Organization = "organization"
12
+ }
13
+ export declare enum SdPlatformUserGetEmbeddableFields {
14
+ BackendSystem = "backend_system",
15
+ ChargebeeAddons = "chargebee_addons",
16
+ ChargebeeCustomer = "chargebee_customer",
17
+ ChargebeePlan = "chargebee_plan",
18
+ ChargebeeSubscription = "chargebee_subscription",
19
+ GlobalAccessDomains = "global_accessdomains",
20
+ Organization = "organization",
21
+ UsedCredits = "used_credits"
22
+ }
23
+ export declare type SdPlatformUserQueryParameters = SdPlatformQueryParameters<SdPlatformUserQueryEmbeddableFields>;
24
+ /**
25
+ * Operations for users.
26
+ */
27
+ export declare class SdPlatformUserApi extends ResourcesApi {
28
+ protected get __resourcePath(): string;
29
+ /**
30
+ * Gets the specific user by id
31
+ * @param id - user id.
32
+ * @param embed - embeddable resources.
33
+ */
34
+ get<T = SdPlatformResponseUserMinimal>(id: string, embed?: Array<SdPlatformUserGetEmbeddableFields>): Promise<SdPlatformGetResponse<T>>;
35
+ /**
36
+ * Register a new user. If successful a registration confirmation email will be sent.
37
+ * @param body
38
+ */
39
+ register(body: SdPlatformRequestUserRegister): Promise<SdPlatformPostResponse<void>>;
40
+ /**
41
+ * Query users.
42
+ * @param body
43
+ */
44
+ query<T = SdPlatformResponseUserMinimal>(body?: SdPlatformUserQueryParameters): Promise<SdPlatformQueryResponse<T>>;
45
+ /**
46
+ * Patch a user.
47
+ * @param id - the id of a user
48
+ * @param body - properties to patch
49
+ */
50
+ patch<T = SdPlatformResponseUserSelf>(id: string, body: SdPlatformRequestUserPatch | SdPlatformRequestUserPatchAdmin): Promise<SdPlatformPatchResponse<T>>;
51
+ /**
52
+ * Delete a user
53
+ * @param id
54
+ * @returns
55
+ */
56
+ delete(id: string): Promise<SdPlatformDeleteResponse>;
57
+ /**
58
+ * Confirm a user registration.
59
+ * @param token Token which was provided via registration confirmation email.
60
+ * @returns
61
+ */
62
+ confirm(token: string): Promise<SdPlatformPostResponse<SdPlatformResponseUserSelf>>;
63
+ /**
64
+ * Request reset password token by email
65
+ * @param email
66
+ */
67
+ passwordReset(email: string): Promise<SdPlatformPostResponse<void>>;
68
+ /**
69
+ * Change password using token
70
+ * @param body
71
+ */
72
+ passwordResetConfirm(body: SdPlatformRequestUserPasswordResetConfirm): Promise<SdPlatformPostResponse<void>>;
73
+ }
74
+ //# sourceMappingURL=SdPlatformUserApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformUserApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformUserApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,yCAAyC,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEvP,OAAO,EAAU,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAE1M,oBAAY,mCAAmC;IAE3C,aAAa,mBAAmB;IAChC,eAAe,qBAAqB;IACpC,iBAAiB,uBAAuB;IACxC,aAAa,mBAAmB;IAChC,qBAAqB,2BAA2B;IAChD,mBAAmB,yBAAyB;IAC5C,YAAY,iBAAiB;CAChC;AAED,oBAAY,iCAAiC;IAEzC,aAAa,mBAAmB;IAChC,eAAe,qBAAqB;IACpC,iBAAiB,uBAAuB;IACxC,aAAa,mBAAmB;IAChC,qBAAqB,2BAA2B;IAChD,mBAAmB,yBAAyB;IAC5C,YAAY,iBAAiB;IAC7B,WAAW,iBAAiB;CAC/B;AAED,oBAAY,6BAA6B,GAAG,yBAAyB,CAAC,mCAAmC,CAAC,CAAC;AAE3G;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IAE/C,SAAS,KAAK,cAAc,IAAI,MAAM,CAGrC;IAED;;;;OAIG;IACI,GAAG,CAAC,CAAC,GAAG,6BAA6B,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,iCAAiC,CAAC,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAK9I;;;OAGG;IACI,QAAQ,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAK3F;;;OAGG;IACI,KAAK,CAAC,CAAC,GAAG,6BAA6B,EAAE,IAAI,GAAE,6BAAkC,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAK9H;;;;OAIG;IAEI,KAAK,CAAC,CAAC,GAAG,0BAA0B,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,GAAG,+BAA+B,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAKjK;;;;OAIG;IACI,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAK5D;;;;OAIG;IACI,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,0BAA0B,CAAC,CAAC;IAO1F;;;OAGG;IACI,aAAa,CAAC,KAAK,EAAE,MAAM,GAAI,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAO3E;;;OAGG;IACI,oBAAoB,CAAC,IAAI,EAAE,yCAAyC,GAAI,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;CAIvH"}
@@ -0,0 +1,53 @@
1
+ import { SdPlatformSdkApi, SdPlatformSdkRequestConfig } from "../api/SdPlatformSdkApi";
2
+ import { SdPlatformSdkContext } from "../SdPlatformSdkContext";
3
+ import { SdPlatformRequestWebhookChargebeeEvent, SdPlatformRequestWebhookModelMessage, SdPlatformRequestWebhookNotification, SdPlatformResponseNotification } from "@shapediver/api.platform-api-dto-v1";
4
+ import { SdPlatformPostResponse } from "@shapediver/api.platform-api-dto-v1";
5
+ export interface SdPlatformWebhookBasicAuth {
6
+ username: string;
7
+ password: string;
8
+ }
9
+ export interface SdPlatformWebhookTokenAuth {
10
+ bearer_access_token?: string;
11
+ basic_access_token?: string;
12
+ }
13
+ /**
14
+ * Webhook calls.
15
+ */
16
+ export declare class SdPlatformWebhookApi {
17
+ protected __context: SdPlatformSdkContext;
18
+ protected __commonPath: string;
19
+ protected __api: SdPlatformSdkApi;
20
+ /**
21
+ * @param { ShapeDiverSDKContext } __context
22
+ */
23
+ constructor(__context: SdPlatformSdkContext);
24
+ protected __getPath(pathSufix?: null | string): string;
25
+ protected __resolveRequestConfig(options: {
26
+ username?: string;
27
+ password?: string;
28
+ bearer_access_token?: string;
29
+ basic_access_token?: string;
30
+ }): SdPlatformSdkRequestConfig;
31
+ /**
32
+ * Webhook which notifies the platform of chargebee events.
33
+ * @param auth
34
+ * @param body
35
+ * @returns
36
+ */
37
+ chargebeeEvent(auth: SdPlatformWebhookBasicAuth, body: SdPlatformRequestWebhookChargebeeEvent): Promise<SdPlatformPostResponse<void>>;
38
+ /**
39
+ * Model message webhook call - send a message to the owner of a model.
40
+ * @param auth
41
+ * @param body
42
+ * @returns
43
+ */
44
+ modelMessage(auth: SdPlatformWebhookTokenAuth, body: SdPlatformRequestWebhookModelMessage): Promise<SdPlatformPostResponse<void>>;
45
+ /**
46
+ * Notification webhook call - create a notification related to a model.
47
+ * @param auth
48
+ * @param body
49
+ * @returns
50
+ */
51
+ notification(auth: SdPlatformWebhookTokenAuth, body: SdPlatformRequestWebhookNotification): Promise<SdPlatformPostResponse<SdPlatformResponseNotification>>;
52
+ }
53
+ //# sourceMappingURL=SdPlatformWebhookApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SdPlatformWebhookApi.d.ts","sourceRoot":"","sources":["../../src/resources/SdPlatformWebhookApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAEvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,sCAAsC,EAAE,oCAAoC,EAAE,oCAAoC,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAA;AACxM,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAE5E,MAAM,WAAW,0BAA0B;IAEvC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IAEvC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;GAEG;AACH,qBAAa,oBAAoB;IAQjB,SAAS,CAAC,SAAS,EAAE,oBAAoB;IANrD,SAAS,CAAC,YAAY,EAAE,MAAM,CAAgB;IAC9C,SAAS,CAAC,KAAK,EAAE,gBAAgB,CAAC;IAElC;;OAEG;gBACmB,SAAS,EAAE,oBAAoB;IAKrD,SAAS,CAAC,SAAS,CAAC,SAAS,GAAE,IAAI,GAAG,MAAa,GAAG,MAAM;IAK5D,SAAS,CAAC,sBAAsB,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,mBAAmB,CAAC,EAAE,MAAM,CAAE;QAAC,kBAAkB,CAAC,EAAE,MAAM,CAAA;KAAC,GAAG,0BAA0B;IAW1K;;;;;OAKG;IACI,cAAc,CAAC,IAAI,EAAE,0BAA0B,EAAE,IAAI,EAAE,sCAAsC,GAAG,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAQ5I;;;;;MAKE;IACK,YAAY,CAAC,IAAI,EAAE,0BAA0B,EAAE,IAAI,EAAE,oCAAoC,GAAG,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAQxI;;;;;MAKE;IACK,YAAY,CAAC,IAAI,EAAE,0BAA0B,EAAE,IAAI,EAAE,oCAAoC,GAAG,OAAO,CAAC,sBAAsB,CAAC,8BAA8B,CAAC,CAAC;CAQrK"}
@@ -0,0 +1,16 @@
1
+ import { DeleteResponse, GetResponse, PatchResponse, PostResponse, QueryResponse, ResourcesApi } from "../ResourcesApi";
2
+ import { ApiToken } from "./models/ApiToken";
3
+ import { ApiTokenCreate } from "./models/ApiTokenCreate";
4
+ import { JustCreatedApiToken } from "./models/JustCreatedApiToken";
5
+ import { ApiTokenPatch } from "./models/ApiTokenPatch";
6
+ import { QueryParameters } from "../../common/Parameters";
7
+ export declare type ApiTokenQueryParameters = QueryParameters<null>;
8
+ declare class ApiTokenApi extends ResourcesApi {
9
+ protected get __resourcePath(): string;
10
+ get(id: string): Promise<GetResponse<ApiToken>>;
11
+ query(query?: ApiTokenQueryParameters): Promise<QueryResponse<ApiToken>>;
12
+ create(body: ApiTokenCreate): Promise<PostResponse<JustCreatedApiToken>>;
13
+ patch(key_id: string, body: ApiTokenPatch): Promise<PatchResponse<ApiToken>>;
14
+ delete(id: string): Promise<DeleteResponse>;
15
+ }
16
+ export { ApiTokenApi };
@@ -0,0 +1,37 @@
1
+ declare enum ApiTokenScopes {
2
+ ModelsRead = "models-read",
3
+ ModelsWrite = "models-write",
4
+ ModelsFull = "models-full",
5
+ BookmarksFull = "bookmarks-full",
6
+ ImagesRead = "images-read",
7
+ ImagesWrite = "images-write",
8
+ ImagesFull = "images-full",
9
+ Tokens = "tokens",
10
+ TagsRead = "tags-read",
11
+ UsersRead = "users-read",
12
+ UsersWrite = "users-write",
13
+ ModelSharingRead = "model-sharing-read",
14
+ ModelSharingWrite = "model-sharing-write",
15
+ ModelSharingFull = "model-sharing-full",
16
+ SavedStatesRead = "saved-states-read",
17
+ SavedStatesWrite = "saved-states-write",
18
+ SavedStatesFull = "saved-states-full",
19
+ SavedStateSharingRead = "saved-state-sharing-read",
20
+ SavedStateSharingWrite = "saved-state-sharing-write",
21
+ SavedStateSharingFull = "saved-state-sharing-full",
22
+ ActionsFull = "actions-full",
23
+ ApiClientsFull = "apiclients-full",
24
+ BackendSystemsFull = "backendsystems-full",
25
+ DomainsFull = "domains-full",
26
+ HttpLogsFull = "httplogs-full",
27
+ PoliciesFull = "policies-full",
28
+ All = "*"
29
+ }
30
+ interface ApiToken {
31
+ readonly key_id: string;
32
+ readonly scope: Array<ApiTokenScopes>;
33
+ readonly valid_until: number;
34
+ readonly active: boolean;
35
+ readonly description: string;
36
+ }
37
+ export { ApiTokenScopes, ApiToken, };
@@ -0,0 +1,7 @@
1
+ import { ApiTokenScopes } from "./ApiToken";
2
+ interface ApiTokenCreate {
3
+ readonly description: string;
4
+ readonly scope: Array<ApiTokenScopes>;
5
+ readonly valid_until?: string;
6
+ }
7
+ export { ApiTokenCreate, };
@@ -0,0 +1,6 @@
1
+ interface ApiTokenPatch {
2
+ readonly description?: string;
3
+ readonly valid_until?: string;
4
+ readonly active?: boolean;
5
+ }
6
+ export { ApiTokenPatch, };