@griffin-app/griffin-hub-sdk 1.0.0

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 (90) hide show
  1. package/.openapi-generator/FILES +68 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +132 -0
  5. package/api.ts +2057 -0
  6. package/base.ts +62 -0
  7. package/common.ts +113 -0
  8. package/configuration.ts +121 -0
  9. package/dist/api.d.ts +1218 -0
  10. package/dist/api.js +1603 -0
  11. package/dist/base.d.ts +42 -0
  12. package/dist/base.js +46 -0
  13. package/dist/common.d.ts +28 -0
  14. package/dist/common.js +124 -0
  15. package/dist/configuration.d.ts +98 -0
  16. package/dist/configuration.js +44 -0
  17. package/dist/esm/api.d.ts +1218 -0
  18. package/dist/esm/api.js +1579 -0
  19. package/dist/esm/base.d.ts +42 -0
  20. package/dist/esm/base.js +41 -0
  21. package/dist/esm/common.d.ts +28 -0
  22. package/dist/esm/common.js +112 -0
  23. package/dist/esm/configuration.d.ts +98 -0
  24. package/dist/esm/configuration.js +40 -0
  25. package/dist/esm/index.d.ts +13 -0
  26. package/dist/esm/index.js +15 -0
  27. package/dist/index.d.ts +13 -0
  28. package/dist/index.js +31 -0
  29. package/docs/AgentsApi.md +265 -0
  30. package/docs/AgentsGet200Response.md +22 -0
  31. package/docs/AgentsGet200ResponseDataInner.md +30 -0
  32. package/docs/AgentsIdHeartbeatPost200Response.md +20 -0
  33. package/docs/AgentsIdHeartbeatPost404Response.md +20 -0
  34. package/docs/AgentsLocationsGet200Response.md +20 -0
  35. package/docs/AgentsRegisterPost200Response.md +30 -0
  36. package/docs/AgentsRegisterPostRequest.md +22 -0
  37. package/docs/Assertion.md +30 -0
  38. package/docs/Assertion1.md +30 -0
  39. package/docs/Assertion1AnyOf.md +28 -0
  40. package/docs/Assertion1AnyOf1.md +24 -0
  41. package/docs/Assertion1AnyOf2.md +24 -0
  42. package/docs/Assertions.md +24 -0
  43. package/docs/Assertions1.md +24 -0
  44. package/docs/BinaryPredicate.md +22 -0
  45. package/docs/BinaryPredicate1.md +22 -0
  46. package/docs/BinaryPredicateOperator.md +30 -0
  47. package/docs/ConfigApi.md +330 -0
  48. package/docs/ConfigGet200Response.md +20 -0
  49. package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200Response.md +20 -0
  50. package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyGet200ResponseData.md +20 -0
  51. package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200Response.md +20 -0
  52. package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyPut200ResponseData.md +30 -0
  53. package/docs/ConfigOrganizationIdEnvironmentTargetsTargetKeyPutRequest.md +20 -0
  54. package/docs/DefaultApi.md +51 -0
  55. package/docs/Edge.md +22 -0
  56. package/docs/Edge1.md +22 -0
  57. package/docs/Endpoint.md +34 -0
  58. package/docs/Endpoint1.md +34 -0
  59. package/docs/Endpoint1Base.md +22 -0
  60. package/docs/Endpoint1HeadersValue.md +20 -0
  61. package/docs/Endpoint1HeadersValueAnyOf.md +20 -0
  62. package/docs/Endpoint1HeadersValueAnyOfSecret.md +26 -0
  63. package/docs/Frequency.md +22 -0
  64. package/docs/Frequency1.md +22 -0
  65. package/docs/HttpMethod.md +24 -0
  66. package/docs/JSONAssertion.md +26 -0
  67. package/docs/JSONAssertion1Predicate.md +22 -0
  68. package/docs/Node.md +38 -0
  69. package/docs/Node1.md +38 -0
  70. package/docs/PlanApi.md +132 -0
  71. package/docs/PlanGet200Response.md +26 -0
  72. package/docs/PlanPost201Response.md +20 -0
  73. package/docs/ResponseFormat.md +12 -0
  74. package/docs/RunsApi.md +260 -0
  75. package/docs/RunsGet200Response.md +26 -0
  76. package/docs/RunsGet200ResponseDataInner.md +42 -0
  77. package/docs/RunsIdGet200Response.md +20 -0
  78. package/docs/RunsIdGet200ResponseData.md +42 -0
  79. package/docs/RunsIdPatchRequest.md +28 -0
  80. package/docs/RunsTriggerPlanIdPostRequest.md +20 -0
  81. package/docs/TestPlanV1.md +38 -0
  82. package/docs/UnaryPredicate.md +18 -0
  83. package/docs/Wait.md +24 -0
  84. package/docs/Wait1.md +24 -0
  85. package/git_push.sh +57 -0
  86. package/index.ts +18 -0
  87. package/package.json +33 -0
  88. package/scripts/generate_sdk.sh +55 -0
  89. package/tsconfig.esm.json +7 -0
  90. package/tsconfig.json +18 -0
@@ -0,0 +1,20 @@
1
+ # Endpoint1HeadersValue
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **$secret** | [**Endpoint1HeadersValueAnyOfSecret**](Endpoint1HeadersValueAnyOfSecret.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { Endpoint1HeadersValue } from 'griffin-hub-sdk';
14
+
15
+ const instance: Endpoint1HeadersValue = {
16
+ $secret,
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,20 @@
1
+ # Endpoint1HeadersValueAnyOf
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **$secret** | [**Endpoint1HeadersValueAnyOfSecret**](Endpoint1HeadersValueAnyOfSecret.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { Endpoint1HeadersValueAnyOf } from 'griffin-hub-sdk';
14
+
15
+ const instance: Endpoint1HeadersValueAnyOf = {
16
+ $secret,
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,26 @@
1
+ # Endpoint1HeadersValueAnyOfSecret
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **provider** | **string** | | [default to undefined]
9
+ **ref** | **string** | | [default to undefined]
10
+ **version** | **string** | | [optional] [default to undefined]
11
+ **field** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { Endpoint1HeadersValueAnyOfSecret } from 'griffin-hub-sdk';
17
+
18
+ const instance: Endpoint1HeadersValueAnyOfSecret = {
19
+ provider,
20
+ ref,
21
+ version,
22
+ field,
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
+ # Frequency
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **every** | **number** | | [default to undefined]
9
+ **unit** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { Frequency } from 'griffin-hub-sdk';
15
+
16
+ const instance: Frequency = {
17
+ every,
18
+ unit,
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,22 @@
1
+ # Frequency1
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **every** | **number** | | [default to undefined]
9
+ **unit** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { Frequency1 } from 'griffin-hub-sdk';
15
+
16
+ const instance: Frequency1 = {
17
+ every,
18
+ unit,
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,24 @@
1
+ # HttpMethod
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Get` (value: `'GET'`)
7
+
8
+ * `Post` (value: `'POST'`)
9
+
10
+ * `Put` (value: `'PUT'`)
11
+
12
+ * `Delete` (value: `'DELETE'`)
13
+
14
+ * `Patch` (value: `'PATCH'`)
15
+
16
+ * `Head` (value: `'HEAD'`)
17
+
18
+ * `Options` (value: `'OPTIONS'`)
19
+
20
+ * `Connect` (value: `'CONNECT'`)
21
+
22
+ * `Trace` (value: `'TRACE'`)
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
+ # JSONAssertion
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **nodeId** | **string** | | [default to undefined]
9
+ **accessor** | **string** | | [default to undefined]
10
+ **path** | **Array<string>** | | [default to undefined]
11
+ **predicate** | [**JSONAssertion1Predicate**](JSONAssertion1Predicate.md) | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { JSONAssertion } from 'griffin-hub-sdk';
17
+
18
+ const instance: JSONAssertion = {
19
+ nodeId,
20
+ accessor,
21
+ path,
22
+ predicate,
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
+ # JSONAssertion1Predicate
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **expected** | **any** | | [default to undefined]
9
+ **operator** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { JSONAssertion1Predicate } from 'griffin-hub-sdk';
15
+
16
+ const instance: JSONAssertion1Predicate = {
17
+ expected,
18
+ operator,
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)
package/docs/Node.md ADDED
@@ -0,0 +1,38 @@
1
+ # Node
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **type** | **string** | | [default to undefined]
10
+ **method** | **string** | | [default to undefined]
11
+ **path** | **string** | | [default to undefined]
12
+ **base** | [**Endpoint1Base**](Endpoint1Base.md) | | [default to undefined]
13
+ **headers** | [**{ [key: string]: Endpoint1HeadersValue; }**](Endpoint1HeadersValue.md) | | [optional] [default to undefined]
14
+ **body** | **any** | | [optional] [default to undefined]
15
+ **response_format** | **string** | | [default to undefined]
16
+ **duration_ms** | **number** | | [default to undefined]
17
+ **assertions** | [**Array<Assertion1>**](Assertion1.md) | | [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { Node } from 'griffin-hub-sdk';
23
+
24
+ const instance: Node = {
25
+ id,
26
+ type,
27
+ method,
28
+ path,
29
+ base,
30
+ headers,
31
+ body,
32
+ response_format,
33
+ duration_ms,
34
+ assertions,
35
+ };
36
+ ```
37
+
38
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/Node1.md ADDED
@@ -0,0 +1,38 @@
1
+ # Node1
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **type** | **string** | | [default to undefined]
10
+ **method** | **string** | | [default to undefined]
11
+ **path** | **string** | | [default to undefined]
12
+ **base** | [**Endpoint1Base**](Endpoint1Base.md) | | [default to undefined]
13
+ **headers** | [**{ [key: string]: Endpoint1HeadersValue; }**](Endpoint1HeadersValue.md) | | [optional] [default to undefined]
14
+ **body** | **any** | | [optional] [default to undefined]
15
+ **response_format** | **string** | | [default to undefined]
16
+ **duration_ms** | **number** | | [default to undefined]
17
+ **assertions** | [**Array<Assertion1>**](Assertion1.md) | | [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { Node1 } from 'griffin-hub-sdk';
23
+
24
+ const instance: Node1 = {
25
+ id,
26
+ type,
27
+ method,
28
+ path,
29
+ base,
30
+ headers,
31
+ body,
32
+ response_format,
33
+ duration_ms,
34
+ assertions,
35
+ };
36
+ ```
37
+
38
+ [[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,132 @@
1
+ # PlanApi
2
+
3
+ All URIs are relative to *http://localhost:3000*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**planGet**](#planget) | **GET** /plan/ | |
8
+ |[**planPost**](#planpost) | **POST** /plan/ | |
9
+
10
+ # **planGet**
11
+ > PlanGet200Response planGet()
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ PlanApi,
19
+ Configuration
20
+ } from 'griffin-hub-sdk';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new PlanApi(configuration);
24
+
25
+ let projectId: string; // (optional) (default to undefined)
26
+ let limit: number; // (optional) (default to undefined)
27
+ let offset: number; // (optional) (default to undefined)
28
+
29
+ const { status, data } = await apiInstance.planGet(
30
+ projectId,
31
+ limit,
32
+ offset
33
+ );
34
+ ```
35
+
36
+ ### Parameters
37
+
38
+ |Name | Type | Description | Notes|
39
+ |------------- | ------------- | ------------- | -------------|
40
+ | **projectId** | [**string**] | | (optional) defaults to undefined|
41
+ | **limit** | [**number**] | | (optional) defaults to undefined|
42
+ | **offset** | [**number**] | | (optional) defaults to undefined|
43
+
44
+
45
+ ### Return type
46
+
47
+ **PlanGet200Response**
48
+
49
+ ### Authorization
50
+
51
+ No authorization required
52
+
53
+ ### HTTP request headers
54
+
55
+ - **Content-Type**: Not defined
56
+ - **Accept**: application/json
57
+
58
+
59
+ ### HTTP response details
60
+ | Status code | Description | Response headers |
61
+ |-------------|-------------|------------------|
62
+ |**200** | Default Response | - |
63
+ |**400** | Default Response | - |
64
+ |**401** | Default Response | - |
65
+ |**403** | Default Response | - |
66
+ |**404** | Default Response | - |
67
+ |**500** | Default Response | - |
68
+ |**502** | Default Response | - |
69
+ |**503** | Default Response | - |
70
+ |**504** | Default Response | - |
71
+
72
+ [[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)
73
+
74
+ # **planPost**
75
+ > PlanPost201Response planPost()
76
+
77
+
78
+ ### Example
79
+
80
+ ```typescript
81
+ import {
82
+ PlanApi,
83
+ Configuration,
84
+ TestPlanV1
85
+ } from 'griffin-hub-sdk';
86
+
87
+ const configuration = new Configuration();
88
+ const apiInstance = new PlanApi(configuration);
89
+
90
+ let testPlanV1: TestPlanV1; // (optional)
91
+
92
+ const { status, data } = await apiInstance.planPost(
93
+ testPlanV1
94
+ );
95
+ ```
96
+
97
+ ### Parameters
98
+
99
+ |Name | Type | Description | Notes|
100
+ |------------- | ------------- | ------------- | -------------|
101
+ | **testPlanV1** | **TestPlanV1**| | |
102
+
103
+
104
+ ### Return type
105
+
106
+ **PlanPost201Response**
107
+
108
+ ### Authorization
109
+
110
+ No authorization required
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: application/json
115
+ - **Accept**: application/json
116
+
117
+
118
+ ### HTTP response details
119
+ | Status code | Description | Response headers |
120
+ |-------------|-------------|------------------|
121
+ |**201** | Default Response | - |
122
+ |**400** | Default Response | - |
123
+ |**401** | Default Response | - |
124
+ |**403** | Default Response | - |
125
+ |**404** | Default Response | - |
126
+ |**500** | Default Response | - |
127
+ |**502** | Default Response | - |
128
+ |**503** | Default Response | - |
129
+ |**504** | Default Response | - |
130
+
131
+ [[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)
132
+
@@ -0,0 +1,26 @@
1
+ # PlanGet200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**Array<TestPlanV1>**](TestPlanV1.md) | | [default to undefined]
9
+ **total** | **number** | | [default to undefined]
10
+ **page** | **number** | | [default to undefined]
11
+ **limit** | **number** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { PlanGet200Response } from 'griffin-hub-sdk';
17
+
18
+ const instance: PlanGet200Response = {
19
+ data,
20
+ total,
21
+ page,
22
+ limit,
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,20 @@
1
+ # PlanPost201Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **data** | [**TestPlanV1**](TestPlanV1.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { PlanPost201Response } from 'griffin-hub-sdk';
14
+
15
+ const instance: PlanPost201Response = {
16
+ data,
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,12 @@
1
+ # ResponseFormat
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Json` (value: `'JSON'`)
7
+
8
+ * `Xml` (value: `'XML'`)
9
+
10
+ * `Text` (value: `'TEXT'`)
11
+
12
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)