@rasadov/lumoar-sdk 1.0.1

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 (73) hide show
  1. package/.openapi-generator/FILES +60 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/api.ts +5133 -0
  5. package/base.ts +86 -0
  6. package/common.ts +150 -0
  7. package/configuration.ts +228 -0
  8. package/dist/api.d.ts +3329 -0
  9. package/dist/api.js +3498 -0
  10. package/dist/base.d.ts +66 -0
  11. package/dist/base.js +60 -0
  12. package/dist/common.d.ts +65 -0
  13. package/dist/common.js +149 -0
  14. package/dist/configuration.d.ts +125 -0
  15. package/dist/configuration.js +124 -0
  16. package/dist/index.d.ts +13 -0
  17. package/dist/index.js +15 -0
  18. package/docs/AuthApi.md +560 -0
  19. package/docs/AuthenticationSuccess.md +25 -0
  20. package/docs/CheckoutSessionResponse.md +22 -0
  21. package/docs/CompanyApi.md +363 -0
  22. package/docs/CompanyCreate.md +44 -0
  23. package/docs/CompanyInDBBase.md +48 -0
  24. package/docs/CompanyUpdate.md +42 -0
  25. package/docs/CompanyWithControls.md +50 -0
  26. package/docs/CompanyWithRoles.md +50 -0
  27. package/docs/ComplianceGoal.md +8 -0
  28. package/docs/ControlStatus.md +18 -0
  29. package/docs/ControlWithEvidences.md +30 -0
  30. package/docs/ControlWithRelationships.md +32 -0
  31. package/docs/ControlsApi.md +124 -0
  32. package/docs/CustomerDoesNotExist.md +20 -0
  33. package/docs/CustomerPortalSession.md +20 -0
  34. package/docs/DefaultApi.md +183 -0
  35. package/docs/Details.md +20 -0
  36. package/docs/EvidenceApi.md +309 -0
  37. package/docs/EvidenceBase.md +40 -0
  38. package/docs/EvidenceFileSchema.md +32 -0
  39. package/docs/EvidenceTextSchema.md +24 -0
  40. package/docs/FileDownload.md +26 -0
  41. package/docs/FrameworkControlsBase.md +26 -0
  42. package/docs/GetControl.md +22 -0
  43. package/docs/HTTPValidationError.md +20 -0
  44. package/docs/InviteToCompany.md +24 -0
  45. package/docs/LoginSchema.md +25 -0
  46. package/docs/PaymentsApi.md +164 -0
  47. package/docs/PermissionType.md +14 -0
  48. package/docs/PoliciesApi.md +302 -0
  49. package/docs/PolicyCreate.md +26 -0
  50. package/docs/PolicyRead.md +32 -0
  51. package/docs/PolicyUpdate.md +24 -0
  52. package/docs/RegisterSchema.md +31 -0
  53. package/docs/RemoveFromCompany.md +22 -0
  54. package/docs/ResponseGetCheckoutSessionPaymentsCheckoutGet.md +24 -0
  55. package/docs/ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet.md +22 -0
  56. package/docs/RolesApi.md +127 -0
  57. package/docs/RolesWithUser.md +22 -0
  58. package/docs/UpdateControlSchema.md +24 -0
  59. package/docs/UpdatePassword.md +22 -0
  60. package/docs/UserApi.md +280 -0
  61. package/docs/UserBase.md +24 -0
  62. package/docs/UserInDBBase.md +30 -0
  63. package/docs/UserPermissionsWithCompany.md +22 -0
  64. package/docs/UserRole.md +20 -0
  65. package/docs/UserUpdate.md +24 -0
  66. package/docs/UserWithRelations.md +28 -0
  67. package/docs/ValidationError.md +24 -0
  68. package/docs/ValidationErrorLocInner.md +18 -0
  69. package/git_push.sh +57 -0
  70. package/index.ts +18 -0
  71. package/openapitools.json +7 -0
  72. package/package.json +33 -0
  73. package/tsconfig.json +14 -0
@@ -0,0 +1,40 @@
1
+ # EvidenceBase
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **control_id** | **string** | | [default to undefined]
10
+ **expires_at** | **string** | | [optional] [default to undefined]
11
+ **status** | **string** | | [default to undefined]
12
+ **version** | **number** | | [default to undefined]
13
+ **type** | **string** | | [default to undefined]
14
+ **text** | [**EvidenceTextSchema**](EvidenceTextSchema.md) | | [optional] [default to undefined]
15
+ **files** | [**Array<EvidenceFileSchema>**](EvidenceFileSchema.md) | | [optional] [default to undefined]
16
+ **tags** | **Array<string>** | | [optional] [default to undefined]
17
+ **uploaded_by** | [**UserBase**](UserBase.md) | | [optional] [default to undefined]
18
+ **submitted_at** | **string** | | [optional] [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { EvidenceBase } from './api';
24
+
25
+ const instance: EvidenceBase = {
26
+ id,
27
+ control_id,
28
+ expires_at,
29
+ status,
30
+ version,
31
+ type,
32
+ text,
33
+ files,
34
+ tags,
35
+ uploaded_by,
36
+ submitted_at,
37
+ };
38
+ ```
39
+
40
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,32 @@
1
+ # EvidenceFileSchema
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [default to undefined]
9
+ **evidence_id** | **string** | | [default to undefined]
10
+ **filename** | **string** | | [default to undefined]
11
+ **storage_key** | **string** | | [default to undefined]
12
+ **checksum** | **string** | | [default to undefined]
13
+ **file_size** | **number** | | [default to undefined]
14
+ **file_type** | **string** | | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { EvidenceFileSchema } from './api';
20
+
21
+ const instance: EvidenceFileSchema = {
22
+ id,
23
+ evidence_id,
24
+ filename,
25
+ storage_key,
26
+ checksum,
27
+ file_size,
28
+ file_type,
29
+ };
30
+ ```
31
+
32
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # EvidenceTextSchema
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | | [default to undefined]
9
+ **evidence_id** | **string** | | [default to undefined]
10
+ **content** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { EvidenceTextSchema } from './api';
16
+
17
+ const instance: EvidenceTextSchema = {
18
+ id,
19
+ evidence_id,
20
+ content,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # FileDownload
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **url** | **string** | | [default to undefined]
9
+ **filename** | **string** | | [optional] [default to undefined]
10
+ **file_size** | **number** | | [optional] [default to undefined]
11
+ **file_type** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { FileDownload } from './api';
17
+
18
+ const instance: FileDownload = {
19
+ url,
20
+ filename,
21
+ file_size,
22
+ file_type,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # FrameworkControlsBase
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [default to undefined]
9
+ **category** | **string** | | [default to undefined]
10
+ **description** | **string** | | [default to undefined]
11
+ **control_key** | **string** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { FrameworkControlsBase } from './api';
17
+
18
+ const instance: FrameworkControlsBase = {
19
+ name,
20
+ category,
21
+ description,
22
+ control_key,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # GetControl
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **control** | [**ControlWithRelationships**](ControlWithRelationships.md) | | [default to undefined]
9
+ **role** | [**UserRole**](UserRole.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { GetControl } from './api';
15
+
16
+ const instance: GetControl = {
17
+ control,
18
+ role,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # HTTPValidationError
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **detail** | [**Array<ValidationError>**](ValidationError.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { HTTPValidationError } from './api';
14
+
15
+ const instance: HTTPValidationError = {
16
+ detail,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # InviteToCompany
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **user_email** | **string** | | [default to undefined]
9
+ **company_id** | **string** | | [default to undefined]
10
+ **role** | [**PermissionType**](PermissionType.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { InviteToCompany } from './api';
16
+
17
+ const instance: InviteToCompany = {
18
+ user_email,
19
+ company_id,
20
+ role,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,25 @@
1
+ # LoginSchema
2
+
3
+ Login schema for user authentication. Attributes: - email: EmailStr - password: SecretStr - turnstile_token: str
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **email** | **string** | | [default to undefined]
10
+ **password** | **string** | | [default to undefined]
11
+ **turnstile_token** | **string** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { LoginSchema } from './api';
17
+
18
+ const instance: LoginSchema = {
19
+ email,
20
+ password,
21
+ turnstile_token,
22
+ };
23
+ ```
24
+
25
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,164 @@
1
+ # PaymentsApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getCheckoutSessionPaymentsCheckoutGet**](#getcheckoutsessionpaymentscheckoutget) | **GET** /payments/checkout | Get Checkout Session|
8
+ |[**getCustomerManagementSessionPaymentsCustomerManagementGet**](#getcustomermanagementsessionpaymentscustomermanagementget) | **GET** /payments/customer/management | Get Customer Management Session|
9
+ |[**webhookPaymentsWebhookPost**](#webhookpaymentswebhookpost) | **POST** /payments/webhook | Webhook|
10
+
11
+ # **getCheckoutSessionPaymentsCheckoutGet**
12
+ > ResponseGetCheckoutSessionPaymentsCheckoutGet getCheckoutSessionPaymentsCheckoutGet()
13
+
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ PaymentsApi,
20
+ Configuration
21
+ } from './api';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new PaymentsApi(configuration);
25
+
26
+ let userId: string; // (default to undefined)
27
+ let companyId: string; // (default to undefined)
28
+ let productId: string; // (default to undefined)
29
+
30
+ const { status, data } = await apiInstance.getCheckoutSessionPaymentsCheckoutGet(
31
+ userId,
32
+ companyId,
33
+ productId
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **userId** | [**string**] | | defaults to undefined|
42
+ | **companyId** | [**string**] | | defaults to undefined|
43
+ | **productId** | [**string**] | | defaults to undefined|
44
+
45
+
46
+ ### Return type
47
+
48
+ **ResponseGetCheckoutSessionPaymentsCheckoutGet**
49
+
50
+ ### Authorization
51
+
52
+ No authorization required
53
+
54
+ ### HTTP request headers
55
+
56
+ - **Content-Type**: Not defined
57
+ - **Accept**: application/json
58
+
59
+
60
+ ### HTTP response details
61
+ | Status code | Description | Response headers |
62
+ |-------------|-------------|------------------|
63
+ |**200** | Successful Response | - |
64
+ |**422** | Validation Error | - |
65
+
66
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
67
+
68
+ # **getCustomerManagementSessionPaymentsCustomerManagementGet**
69
+ > ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet getCustomerManagementSessionPaymentsCustomerManagementGet()
70
+
71
+
72
+ ### Example
73
+
74
+ ```typescript
75
+ import {
76
+ PaymentsApi,
77
+ Configuration
78
+ } from './api';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new PaymentsApi(configuration);
82
+
83
+ let authorization: string; // (optional) (default to undefined)
84
+ let sessionId: string; // (optional) (default to undefined)
85
+
86
+ const { status, data } = await apiInstance.getCustomerManagementSessionPaymentsCustomerManagementGet(
87
+ authorization,
88
+ sessionId
89
+ );
90
+ ```
91
+
92
+ ### Parameters
93
+
94
+ |Name | Type | Description | Notes|
95
+ |------------- | ------------- | ------------- | -------------|
96
+ | **authorization** | [**string**] | | (optional) defaults to undefined|
97
+ | **sessionId** | [**string**] | | (optional) defaults to undefined|
98
+
99
+
100
+ ### Return type
101
+
102
+ **ResponseGetCustomerManagementSessionPaymentsCustomerManagementGet**
103
+
104
+ ### Authorization
105
+
106
+ No authorization required
107
+
108
+ ### HTTP request headers
109
+
110
+ - **Content-Type**: Not defined
111
+ - **Accept**: application/json
112
+
113
+
114
+ ### HTTP response details
115
+ | Status code | Description | Response headers |
116
+ |-------------|-------------|------------------|
117
+ |**200** | Successful Response | - |
118
+ |**422** | Validation Error | - |
119
+
120
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
121
+
122
+ # **webhookPaymentsWebhookPost**
123
+ > any webhookPaymentsWebhookPost()
124
+
125
+
126
+ ### Example
127
+
128
+ ```typescript
129
+ import {
130
+ PaymentsApi,
131
+ Configuration
132
+ } from './api';
133
+
134
+ const configuration = new Configuration();
135
+ const apiInstance = new PaymentsApi(configuration);
136
+
137
+ const { status, data } = await apiInstance.webhookPaymentsWebhookPost();
138
+ ```
139
+
140
+ ### Parameters
141
+ This endpoint does not have any parameters.
142
+
143
+
144
+ ### Return type
145
+
146
+ **any**
147
+
148
+ ### Authorization
149
+
150
+ No authorization required
151
+
152
+ ### HTTP request headers
153
+
154
+ - **Content-Type**: Not defined
155
+ - **Accept**: application/json
156
+
157
+
158
+ ### HTTP response details
159
+ | Status code | Description | Response headers |
160
+ |-------------|-------------|------------------|
161
+ |**200** | Successful Response | - |
162
+
163
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
164
+
@@ -0,0 +1,14 @@
1
+ # PermissionType
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Owner` (value: `'owner'`)
7
+
8
+ * `Admin` (value: `'admin'`)
9
+
10
+ * `Member` (value: `'member'`)
11
+
12
+ * `Auditor` (value: `'auditor'`)
13
+
14
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)