@itentialopensource/adapter-digicert_pki 0.1.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 (87) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +356 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +172 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +337 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +3945 -0
  23. package/adapterBase.js +1787 -0
  24. package/entities/.generic/action.json +214 -0
  25. package/entities/.generic/schema.json +28 -0
  26. package/entities/.system/action.json +50 -0
  27. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  28. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  29. package/entities/.system/schema.json +19 -0
  30. package/entities/.system/schemaTokenReq.json +53 -0
  31. package/entities/.system/schemaTokenResp.json +53 -0
  32. package/entities/AuditAPI/action.json +46 -0
  33. package/entities/AuditAPI/schema.json +20 -0
  34. package/entities/CAAPI/action.json +46 -0
  35. package/entities/CAAPI/schema.json +20 -0
  36. package/entities/CertificateEnrollmentAPI/action.json +166 -0
  37. package/entities/CertificateEnrollmentAPI/schema.json +26 -0
  38. package/entities/CertificateProfileAPI/action.json +46 -0
  39. package/entities/CertificateProfileAPI/mockdatafiles/getAllProfilesUsingGET-default.json +1288 -0
  40. package/entities/CertificateProfileAPI/schema.json +20 -0
  41. package/entities/EnrollStatusAPI/action.json +25 -0
  42. package/entities/EnrollStatusAPI/mockdatafiles/enrollStatusUsingGET-default.json +17 -0
  43. package/entities/EnrollStatusAPI/schema.json +30 -0
  44. package/entities/HelloAPI/action.json +25 -0
  45. package/entities/HelloAPI/schema.json +19 -0
  46. package/entities/PROFILEAPI/action.json +124 -0
  47. package/entities/PROFILEAPI/schema.json +24 -0
  48. package/entities/SearchCertificateAPI/action.json +24 -0
  49. package/entities/SearchCertificateAPI/schema.json +19 -0
  50. package/entities/SeatManagementAPI/action.json +85 -0
  51. package/entities/SeatManagementAPI/schema.json +22 -0
  52. package/entities/UserManagementAPI/action.json +85 -0
  53. package/entities/UserManagementAPI/schema.json +33 -0
  54. package/error.json +190 -0
  55. package/package.json +86 -0
  56. package/pronghorn.json +4141 -0
  57. package/propertiesDecorators.json +14 -0
  58. package/propertiesSchema.json +1248 -0
  59. package/refs?service=git-upload-pack +0 -0
  60. package/report/DigiCert One Swagger v1.0.44.json +1 -0
  61. package/report/adapterInfo.json +10 -0
  62. package/report/creationReport.json +490 -0
  63. package/sampleProperties.json +195 -0
  64. package/test/integration/adapterTestBasicGet.js +83 -0
  65. package/test/integration/adapterTestConnectivity.js +93 -0
  66. package/test/integration/adapterTestIntegration.js +1867 -0
  67. package/test/unit/adapterBaseTestUnit.js +949 -0
  68. package/test/unit/adapterTestUnit.js +2278 -0
  69. package/utils/adapterInfo.js +206 -0
  70. package/utils/addAuth.js +94 -0
  71. package/utils/artifactize.js +146 -0
  72. package/utils/basicGet.js +50 -0
  73. package/utils/checkMigrate.js +63 -0
  74. package/utils/entitiesToDB.js +178 -0
  75. package/utils/findPath.js +74 -0
  76. package/utils/methodDocumentor.js +225 -0
  77. package/utils/modify.js +154 -0
  78. package/utils/packModificationScript.js +35 -0
  79. package/utils/patches2bundledDeps.js +90 -0
  80. package/utils/pre-commit.sh +32 -0
  81. package/utils/removeHooks.js +20 -0
  82. package/utils/setup.js +33 -0
  83. package/utils/tbScript.js +246 -0
  84. package/utils/tbUtils.js +490 -0
  85. package/utils/testRunner.js +298 -0
  86. package/utils/troubleshootingAdapter.js +195 -0
  87. package/workflows/README.md +3 -0
@@ -0,0 +1,20 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getAllProfilesUsingGET",
12
+ "enum": [
13
+ "getAllProfilesUsingGET",
14
+ "getProfileUsingGET"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "enrollStatusUsingGET",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/api/v1/enrollstatus/{pathv1}?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": "mockdatafiles/enrollStatusUsingGET-default.json"
21
+ }
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,17 @@
1
+ [
2
+ {
3
+ "certificates": [
4
+ "string",
5
+ "string",
6
+ "string",
7
+ "string",
8
+ "string",
9
+ "string",
10
+ "string"
11
+ ],
12
+ "created_at": "string",
13
+ "profile_id": "string",
14
+ "status": "string",
15
+ "updated_at": "string"
16
+ }
17
+ ]
@@ -0,0 +1,30 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "enrollStatusUsingGET",
12
+ "enum": [
13
+ "enrollStatusUsingGET"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ },
17
+ "profileId": {
18
+ "type": "string",
19
+ "description": "profile_id",
20
+ "parse": false,
21
+ "encode": false,
22
+ "encrypt": {
23
+ "type": "AES",
24
+ "key": ""
25
+ },
26
+ "external_name": "profile_id"
27
+ }
28
+ },
29
+ "definitions": {}
30
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "helloUsingGET",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/api/v1/hello?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ }
24
+ ]
25
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "helloUsingGET",
12
+ "enum": [
13
+ "helloUsingGET"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,124 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "activateProfileUsingPUT",
5
+ "protocol": "REST",
6
+ "method": "PUT",
7
+ "entitypath": "{base_path}/{version}/api/v1/profile/activate?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "createProfileUsingPOST",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/api/v1/profile/create?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "deleteProfileUsingPUT",
45
+ "protocol": "REST",
46
+ "method": "PUT",
47
+ "entitypath": "{base_path}/{version}/api/v1/profile/delete?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "requestDatatype": "JSON",
53
+ "responseDatatype": "JSON",
54
+ "headers": {},
55
+ "responseObjects": [
56
+ {
57
+ "type": "default",
58
+ "key": "",
59
+ "mockFile": ""
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "name": "updateProfileUsingPUT",
65
+ "protocol": "REST",
66
+ "method": "PUT",
67
+ "entitypath": "{base_path}/{version}/api/v1/profile/edit?{query}",
68
+ "requestSchema": "schema.json",
69
+ "responseSchema": "schema.json",
70
+ "timeout": 0,
71
+ "sendEmpty": false,
72
+ "requestDatatype": "JSON",
73
+ "responseDatatype": "JSON",
74
+ "headers": {},
75
+ "responseObjects": [
76
+ {
77
+ "type": "default",
78
+ "key": "",
79
+ "mockFile": ""
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "name": "suspendProfileUsingPUT",
85
+ "protocol": "REST",
86
+ "method": "PUT",
87
+ "entitypath": "{base_path}/{version}/api/v1/profile/suspend?{query}",
88
+ "requestSchema": "schema.json",
89
+ "responseSchema": "schema.json",
90
+ "timeout": 0,
91
+ "sendEmpty": false,
92
+ "requestDatatype": "JSON",
93
+ "responseDatatype": "JSON",
94
+ "headers": {},
95
+ "responseObjects": [
96
+ {
97
+ "type": "default",
98
+ "key": "",
99
+ "mockFile": ""
100
+ }
101
+ ]
102
+ },
103
+ {
104
+ "name": "testCreateUsingPOST",
105
+ "protocol": "REST",
106
+ "method": "POST",
107
+ "entitypath": "{base_path}/{version}/api/v1/profile/test?{query}",
108
+ "requestSchema": "schema.json",
109
+ "responseSchema": "schema.json",
110
+ "timeout": 0,
111
+ "sendEmpty": false,
112
+ "requestDatatype": "JSON",
113
+ "responseDatatype": "JSON",
114
+ "headers": {},
115
+ "responseObjects": [
116
+ {
117
+ "type": "default",
118
+ "key": "",
119
+ "mockFile": ""
120
+ }
121
+ ]
122
+ }
123
+ ]
124
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "activateProfileUsingPUT",
12
+ "enum": [
13
+ "activateProfileUsingPUT",
14
+ "createProfileUsingPOST",
15
+ "deleteProfileUsingPUT",
16
+ "updateProfileUsingPUT",
17
+ "suspendProfileUsingPUT",
18
+ "testCreateUsingPOST"
19
+ ],
20
+ "external_name": "ph_request_type"
21
+ }
22
+ },
23
+ "definitions": {}
24
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "searchCertUsingPOST",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/v1/searchcert?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "searchCertUsingPOST",
12
+ "enum": [
13
+ "searchCertUsingPOST"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "createSeatUsingPOST",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/v1/seat?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "getSeatUsingGET",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/api/v1/seat/{pathv1}?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "updateSeatUsingPUT",
46
+ "protocol": "REST",
47
+ "method": "PUT",
48
+ "entitypath": "{base_path}/{version}/api/v1/seat/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "deleteSeatUsingDELETE",
66
+ "protocol": "REST",
67
+ "method": "DELETE",
68
+ "entitypath": "{base_path}/{version}/api/v1/seat/{pathv1}?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "createSeatUsingPOST",
12
+ "enum": [
13
+ "createSeatUsingPOST",
14
+ "getSeatUsingGET",
15
+ "updateSeatUsingPUT",
16
+ "deleteSeatUsingDELETE"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ }
20
+ },
21
+ "definitions": {}
22
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "createPasscodeUsingPOST",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/api/v1/enrollment?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "getEnrollmentUsingGET",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/api/v1/enrollment/{pathv1}?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "resetPasscodeUsingPUT",
46
+ "protocol": "REST",
47
+ "method": "PUT",
48
+ "entitypath": "{base_path}/{version}/api/v1/enrollment/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "requestDatatype": "JSON",
54
+ "responseDatatype": "JSON",
55
+ "headers": {},
56
+ "responseObjects": [
57
+ {
58
+ "type": "default",
59
+ "key": "",
60
+ "mockFile": ""
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "name": "deleteEnrollmentUsingDELETE",
66
+ "protocol": "REST",
67
+ "method": "DELETE",
68
+ "entitypath": "{base_path}/{version}/api/v1/enrollment/{pathv1}?{query}",
69
+ "requestSchema": "schema.json",
70
+ "responseSchema": "schema.json",
71
+ "timeout": 0,
72
+ "sendEmpty": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "createPasscodeUsingPOST",
12
+ "enum": [
13
+ "createPasscodeUsingPOST",
14
+ "getEnrollmentUsingGET",
15
+ "resetPasscodeUsingPUT",
16
+ "deleteEnrollmentUsingDELETE"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ },
20
+ "seatId": {
21
+ "type": "string",
22
+ "description": "seat_id",
23
+ "parse": false,
24
+ "encode": false,
25
+ "encrypt": {
26
+ "type": "AES",
27
+ "key": ""
28
+ },
29
+ "external_name": "seat_id"
30
+ }
31
+ },
32
+ "definitions": {}
33
+ }