@griffin-app/griffin-ts 0.1.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 (89) hide show
  1. package/ASSERTIONS_QUICK_REF.md +161 -0
  2. package/README.md +297 -0
  3. package/dist/assertions.d.ts +136 -0
  4. package/dist/assertions.d.ts.map +1 -0
  5. package/dist/assertions.js +230 -0
  6. package/dist/assertions.js.map +1 -0
  7. package/dist/builder.d.ts +168 -0
  8. package/dist/builder.d.ts.map +1 -0
  9. package/dist/builder.js +165 -0
  10. package/dist/builder.js.map +1 -0
  11. package/dist/constants.d.ts +5 -0
  12. package/dist/constants.d.ts.map +1 -0
  13. package/dist/constants.js +6 -0
  14. package/dist/constants.js.map +1 -0
  15. package/dist/example-sequential.d.ts +11 -0
  16. package/dist/example-sequential.d.ts.map +1 -0
  17. package/dist/example-sequential.js +160 -0
  18. package/dist/example-sequential.js.map +1 -0
  19. package/dist/example.d.ts +9 -0
  20. package/dist/example.d.ts.map +1 -0
  21. package/dist/example.js +36 -0
  22. package/dist/example.js.map +1 -0
  23. package/dist/frequency.d.ts +15 -0
  24. package/dist/frequency.d.ts.map +1 -0
  25. package/dist/frequency.js +34 -0
  26. package/dist/frequency.js.map +1 -0
  27. package/dist/http-methods.d.ts +6 -0
  28. package/dist/http-methods.d.ts.map +1 -0
  29. package/dist/http-methods.js +9 -0
  30. package/dist/http-methods.js.map +1 -0
  31. package/dist/index.d.ts +24 -0
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +62 -0
  34. package/dist/index.js.map +1 -0
  35. package/dist/response-formats.d.ts +4 -0
  36. package/dist/response-formats.d.ts.map +1 -0
  37. package/dist/response-formats.js +7 -0
  38. package/dist/response-formats.js.map +1 -0
  39. package/dist/schema-exports.d.ts +6 -0
  40. package/dist/schema-exports.d.ts.map +1 -0
  41. package/dist/schema-exports.js +43 -0
  42. package/dist/schema-exports.js.map +1 -0
  43. package/dist/schema.d.ts +311 -0
  44. package/dist/schema.d.ts.map +1 -0
  45. package/dist/schema.js +214 -0
  46. package/dist/schema.js.map +1 -0
  47. package/dist/secrets.d.ts +56 -0
  48. package/dist/secrets.d.ts.map +1 -0
  49. package/dist/secrets.js +74 -0
  50. package/dist/secrets.js.map +1 -0
  51. package/dist/sequential-builder.d.ts +127 -0
  52. package/dist/sequential-builder.d.ts.map +1 -0
  53. package/dist/sequential-builder.js +128 -0
  54. package/dist/sequential-builder.js.map +1 -0
  55. package/dist/shared.d.ts +8 -0
  56. package/dist/shared.d.ts.map +1 -0
  57. package/dist/shared.js +36 -0
  58. package/dist/shared.js.map +1 -0
  59. package/dist/target.d.ts +33 -0
  60. package/dist/target.d.ts.map +1 -0
  61. package/dist/target.js +53 -0
  62. package/dist/target.js.map +1 -0
  63. package/dist/type-exports.d.ts +6 -0
  64. package/dist/type-exports.d.ts.map +1 -0
  65. package/dist/type-exports.js +7 -0
  66. package/dist/type-exports.js.map +1 -0
  67. package/dist/wait.d.ts +9 -0
  68. package/dist/wait.d.ts.map +1 -0
  69. package/dist/wait.js +8 -0
  70. package/dist/wait.js.map +1 -0
  71. package/package.json +43 -0
  72. package/src/assertions.ts +327 -0
  73. package/src/builder.ts +336 -0
  74. package/src/constants.ts +5 -0
  75. package/src/example-sequential.ts +191 -0
  76. package/src/example.ts +55 -0
  77. package/src/frequency.ts +38 -0
  78. package/src/http-methods.ts +5 -0
  79. package/src/index.ts +70 -0
  80. package/src/response-formats.ts +3 -0
  81. package/src/schema-exports.ts +43 -0
  82. package/src/schema.ts +289 -0
  83. package/src/secrets.ts +112 -0
  84. package/src/sequential-builder.ts +254 -0
  85. package/src/shared.ts +46 -0
  86. package/src/target.ts +55 -0
  87. package/src/type-exports.ts +20 -0
  88. package/src/wait.ts +4 -0
  89. package/tsconfig.json +20 -0
@@ -0,0 +1,311 @@
1
+ import { Type, type Static } from "typebox";
2
+ export declare const TEST_PLAN_VERSION = "1.0";
3
+ export declare const SecretRefDataSchema: Type.TObject<{
4
+ provider: Type.TString;
5
+ ref: Type.TString;
6
+ version: Type.TOptional<Type.TString>;
7
+ field: Type.TOptional<Type.TString>;
8
+ }>;
9
+ export declare const SecretRefSchema: Type.TObject<{
10
+ $secret: Type.TObject<{
11
+ provider: Type.TString;
12
+ ref: Type.TString;
13
+ version: Type.TOptional<Type.TString>;
14
+ field: Type.TOptional<Type.TString>;
15
+ }>;
16
+ }>;
17
+ export declare const SecretOrStringSchema: Type.TUnion<[Type.TString, Type.TObject<{
18
+ $secret: Type.TObject<{
19
+ provider: Type.TString;
20
+ ref: Type.TString;
21
+ version: Type.TOptional<Type.TString>;
22
+ field: Type.TOptional<Type.TString>;
23
+ }>;
24
+ }>]>;
25
+ export declare enum FrequencyUnit {
26
+ MINUTE = "MINUTE",
27
+ HOUR = "HOUR",
28
+ DAY = "DAY"
29
+ }
30
+ export declare enum ResponseFormat {
31
+ JSON = "JSON",
32
+ XML = "XML",
33
+ TEXT = "TEXT"
34
+ }
35
+ export declare enum HttpMethod {
36
+ GET = "GET",
37
+ POST = "POST",
38
+ PUT = "PUT",
39
+ DELETE = "DELETE",
40
+ PATCH = "PATCH",
41
+ HEAD = "HEAD",
42
+ OPTIONS = "OPTIONS",
43
+ CONNECT = "CONNECT",
44
+ TRACE = "TRACE"
45
+ }
46
+ export declare enum NodeType {
47
+ ENDPOINT = "ENDPOINT",
48
+ WAIT = "WAIT",
49
+ ASSERTION = "ASSERTION"
50
+ }
51
+ export declare const ResponseFormatSchema: Type.TUnion<[Type.TLiteral<ResponseFormat.JSON>, Type.TLiteral<ResponseFormat.XML>, Type.TLiteral<ResponseFormat.TEXT>]>;
52
+ export declare const HttpMethodSchema: Type.TUnion<[Type.TLiteral<HttpMethod.GET>, Type.TLiteral<HttpMethod.POST>, Type.TLiteral<HttpMethod.PUT>, Type.TLiteral<HttpMethod.DELETE>, Type.TLiteral<HttpMethod.PATCH>, Type.TLiteral<HttpMethod.HEAD>, Type.TLiteral<HttpMethod.OPTIONS>, Type.TLiteral<HttpMethod.CONNECT>, Type.TLiteral<HttpMethod.TRACE>]>;
53
+ export declare const TargetRefSchema: Type.TObject<{
54
+ type: Type.TLiteral<"target">;
55
+ key: Type.TString;
56
+ }>;
57
+ export type TargetRef = Static<typeof TargetRefSchema>;
58
+ export declare const EndpointSchema: Type.TObject<{
59
+ id: Type.TString;
60
+ type: Type.TLiteral<NodeType.ENDPOINT>;
61
+ method: Type.TUnion<[Type.TLiteral<HttpMethod.GET>, Type.TLiteral<HttpMethod.POST>, Type.TLiteral<HttpMethod.PUT>, Type.TLiteral<HttpMethod.DELETE>, Type.TLiteral<HttpMethod.PATCH>, Type.TLiteral<HttpMethod.HEAD>, Type.TLiteral<HttpMethod.OPTIONS>, Type.TLiteral<HttpMethod.CONNECT>, Type.TLiteral<HttpMethod.TRACE>]>;
62
+ path: Type.TString;
63
+ base: Type.TObject<{
64
+ type: Type.TLiteral<"target">;
65
+ key: Type.TString;
66
+ }>;
67
+ headers: Type.TOptional<Type.TRecord<"^.*$", Type.TUnion<[Type.TString, Type.TObject<{
68
+ $secret: Type.TObject<{
69
+ provider: Type.TString;
70
+ ref: Type.TString;
71
+ version: Type.TOptional<Type.TString>;
72
+ field: Type.TOptional<Type.TString>;
73
+ }>;
74
+ }>]>>>;
75
+ body: Type.TOptional<Type.TAny>;
76
+ response_format: Type.TUnion<[Type.TLiteral<ResponseFormat.JSON>, Type.TLiteral<ResponseFormat.XML>, Type.TLiteral<ResponseFormat.TEXT>]>;
77
+ }>;
78
+ export type Endpoint = Static<typeof EndpointSchema>;
79
+ export declare const FrequencySchema: Type.TObject<{
80
+ every: Type.TNumber;
81
+ unit: Type.TUnion<[Type.TLiteral<FrequencyUnit.MINUTE>, Type.TLiteral<FrequencyUnit.HOUR>, Type.TLiteral<FrequencyUnit.DAY>]>;
82
+ }>;
83
+ export type Frequency = Static<typeof FrequencySchema>;
84
+ export declare const WaitSchema: Type.TObject<{
85
+ id: Type.TString;
86
+ type: Type.TLiteral<NodeType.WAIT>;
87
+ duration_ms: Type.TNumber;
88
+ }>;
89
+ export type Wait = Static<typeof WaitSchema>;
90
+ export declare const JSONPathSchema: Type.TArray<Type.TString>;
91
+ export declare const XMLPathSchema: Type.TArray<Type.TString>;
92
+ export declare const TextPathSchema: Type.TString;
93
+ export declare enum UnaryPredicate {
94
+ IS_NULL = "IS_NULL",
95
+ IS_NOT_NULL = "IS_NOT_NULL",
96
+ IS_TRUE = "IS_TRUE",
97
+ IS_FALSE = "IS_FALSE",
98
+ IS_EMPTY = "IS_EMPTY",
99
+ IS_NOT_EMPTY = "IS_NOT_EMPTY"
100
+ }
101
+ export declare const UnaryPredicateSchema: Type.TUnion<[Type.TLiteral<UnaryPredicate.IS_NULL>, Type.TLiteral<UnaryPredicate.IS_NOT_NULL>, Type.TLiteral<UnaryPredicate.IS_TRUE>, Type.TLiteral<UnaryPredicate.IS_FALSE>, Type.TLiteral<UnaryPredicate.IS_EMPTY>, Type.TLiteral<UnaryPredicate.IS_NOT_EMPTY>]>;
102
+ export declare enum BinaryPredicateOperator {
103
+ EQUAL = "EQUAL",
104
+ NOT_EQUAL = "NOT_EQUAL",
105
+ GREATER_THAN = "GREATER_THAN",
106
+ LESS_THAN = "LESS_THAN",
107
+ GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
108
+ LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
109
+ CONTAINS = "CONTAINS",
110
+ NOT_CONTAINS = "NOT_CONTAINS",
111
+ STARTS_WITH = "STARTS_WITH",
112
+ ENDS_WITH = "ENDS_WITH",
113
+ NOT_STARTS_WITH = "NOT_STARTS_WITH",
114
+ NOT_ENDS_WITH = "NOT_ENDS_WITH"
115
+ }
116
+ export declare const BinaryPredicateOperatorSchema: Type.TUnion<[Type.TLiteral<BinaryPredicateOperator.EQUAL>, Type.TLiteral<BinaryPredicateOperator.NOT_EQUAL>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.CONTAINS>, Type.TLiteral<BinaryPredicateOperator.NOT_CONTAINS>, Type.TLiteral<BinaryPredicateOperator.STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.ENDS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_ENDS_WITH>]>;
117
+ export declare const BinaryPredicateSchema: Type.TObject<{
118
+ expected: Type.TAny;
119
+ operator: Type.TUnion<[Type.TLiteral<BinaryPredicateOperator.EQUAL>, Type.TLiteral<BinaryPredicateOperator.NOT_EQUAL>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.CONTAINS>, Type.TLiteral<BinaryPredicateOperator.NOT_CONTAINS>, Type.TLiteral<BinaryPredicateOperator.STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.ENDS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_ENDS_WITH>]>;
120
+ }>;
121
+ export type BinaryPredicate = Static<typeof BinaryPredicateSchema>;
122
+ export declare const JSONAssertionSchema: Type.TObject<{
123
+ nodeId: Type.TString;
124
+ accessor: Type.TUnion<[Type.TLiteral<"body">, Type.TLiteral<"headers">, Type.TLiteral<"status">]>;
125
+ path: Type.TArray<Type.TString>;
126
+ predicate: Type.TUnion<[Type.TUnion<[Type.TLiteral<UnaryPredicate.IS_NULL>, Type.TLiteral<UnaryPredicate.IS_NOT_NULL>, Type.TLiteral<UnaryPredicate.IS_TRUE>, Type.TLiteral<UnaryPredicate.IS_FALSE>, Type.TLiteral<UnaryPredicate.IS_EMPTY>, Type.TLiteral<UnaryPredicate.IS_NOT_EMPTY>]>, Type.TObject<{
127
+ expected: Type.TAny;
128
+ operator: Type.TUnion<[Type.TLiteral<BinaryPredicateOperator.EQUAL>, Type.TLiteral<BinaryPredicateOperator.NOT_EQUAL>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.CONTAINS>, Type.TLiteral<BinaryPredicateOperator.NOT_CONTAINS>, Type.TLiteral<BinaryPredicateOperator.STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.ENDS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_ENDS_WITH>]>;
129
+ }>]>;
130
+ }>;
131
+ export type JSONAssertion = Static<typeof JSONAssertionSchema>;
132
+ export declare const XMLAssertionSchema: Type.TObject<{
133
+ path: Type.TArray<Type.TString>;
134
+ expected: Type.TAny;
135
+ }>;
136
+ export type XMLAssertion = Static<typeof XMLAssertionSchema>;
137
+ export declare const TextAssertionSchema: Type.TObject<{
138
+ path: Type.TString;
139
+ expected: Type.TAny;
140
+ }>;
141
+ export type TextAssertion = Static<typeof TextAssertionSchema>;
142
+ export declare const AssertionSchema: Type.TUnion<[Type.TIntersect<[Type.TObject<{
143
+ assertionType: Type.TLiteral<ResponseFormat.JSON>;
144
+ }>, Type.TObject<{
145
+ nodeId: Type.TString;
146
+ accessor: Type.TUnion<[Type.TLiteral<"body">, Type.TLiteral<"headers">, Type.TLiteral<"status">]>;
147
+ path: Type.TArray<Type.TString>;
148
+ predicate: Type.TUnion<[Type.TUnion<[Type.TLiteral<UnaryPredicate.IS_NULL>, Type.TLiteral<UnaryPredicate.IS_NOT_NULL>, Type.TLiteral<UnaryPredicate.IS_TRUE>, Type.TLiteral<UnaryPredicate.IS_FALSE>, Type.TLiteral<UnaryPredicate.IS_EMPTY>, Type.TLiteral<UnaryPredicate.IS_NOT_EMPTY>]>, Type.TObject<{
149
+ expected: Type.TAny;
150
+ operator: Type.TUnion<[Type.TLiteral<BinaryPredicateOperator.EQUAL>, Type.TLiteral<BinaryPredicateOperator.NOT_EQUAL>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.CONTAINS>, Type.TLiteral<BinaryPredicateOperator.NOT_CONTAINS>, Type.TLiteral<BinaryPredicateOperator.STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.ENDS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_ENDS_WITH>]>;
151
+ }>]>;
152
+ }>]>, Type.TIntersect<[Type.TObject<{
153
+ assertionType: Type.TLiteral<ResponseFormat.XML>;
154
+ }>, Type.TObject<{
155
+ path: Type.TArray<Type.TString>;
156
+ expected: Type.TAny;
157
+ }>]>, Type.TIntersect<[Type.TObject<{
158
+ assertionType: Type.TLiteral<ResponseFormat.TEXT>;
159
+ }>, Type.TObject<{
160
+ path: Type.TString;
161
+ expected: Type.TAny;
162
+ }>]>]>;
163
+ export type Assertion = Static<typeof AssertionSchema>;
164
+ export declare const AssertionsSchema: Type.TObject<{
165
+ id: Type.TString;
166
+ type: Type.TLiteral<NodeType.ASSERTION>;
167
+ assertions: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
168
+ assertionType: Type.TLiteral<ResponseFormat.JSON>;
169
+ }>, Type.TObject<{
170
+ nodeId: Type.TString;
171
+ accessor: Type.TUnion<[Type.TLiteral<"body">, Type.TLiteral<"headers">, Type.TLiteral<"status">]>;
172
+ path: Type.TArray<Type.TString>;
173
+ predicate: Type.TUnion<[Type.TUnion<[Type.TLiteral<UnaryPredicate.IS_NULL>, Type.TLiteral<UnaryPredicate.IS_NOT_NULL>, Type.TLiteral<UnaryPredicate.IS_TRUE>, Type.TLiteral<UnaryPredicate.IS_FALSE>, Type.TLiteral<UnaryPredicate.IS_EMPTY>, Type.TLiteral<UnaryPredicate.IS_NOT_EMPTY>]>, Type.TObject<{
174
+ expected: Type.TAny;
175
+ operator: Type.TUnion<[Type.TLiteral<BinaryPredicateOperator.EQUAL>, Type.TLiteral<BinaryPredicateOperator.NOT_EQUAL>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.CONTAINS>, Type.TLiteral<BinaryPredicateOperator.NOT_CONTAINS>, Type.TLiteral<BinaryPredicateOperator.STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.ENDS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_ENDS_WITH>]>;
176
+ }>]>;
177
+ }>]>, Type.TIntersect<[Type.TObject<{
178
+ assertionType: Type.TLiteral<ResponseFormat.XML>;
179
+ }>, Type.TObject<{
180
+ path: Type.TArray<Type.TString>;
181
+ expected: Type.TAny;
182
+ }>]>, Type.TIntersect<[Type.TObject<{
183
+ assertionType: Type.TLiteral<ResponseFormat.TEXT>;
184
+ }>, Type.TObject<{
185
+ path: Type.TString;
186
+ expected: Type.TAny;
187
+ }>]>]>>;
188
+ }>;
189
+ export type Assertions = Static<typeof AssertionsSchema>;
190
+ export declare const NodeTypeSchema: Type.TUnion<[Type.TLiteral<NodeType.ENDPOINT>, Type.TLiteral<NodeType.WAIT>, Type.TLiteral<NodeType.ASSERTION>]>;
191
+ export declare const NodeSchema: Type.TUnion<[Type.TObject<{
192
+ id: Type.TString;
193
+ type: Type.TLiteral<NodeType.ENDPOINT>;
194
+ method: Type.TUnion<[Type.TLiteral<HttpMethod.GET>, Type.TLiteral<HttpMethod.POST>, Type.TLiteral<HttpMethod.PUT>, Type.TLiteral<HttpMethod.DELETE>, Type.TLiteral<HttpMethod.PATCH>, Type.TLiteral<HttpMethod.HEAD>, Type.TLiteral<HttpMethod.OPTIONS>, Type.TLiteral<HttpMethod.CONNECT>, Type.TLiteral<HttpMethod.TRACE>]>;
195
+ path: Type.TString;
196
+ base: Type.TObject<{
197
+ type: Type.TLiteral<"target">;
198
+ key: Type.TString;
199
+ }>;
200
+ headers: Type.TOptional<Type.TRecord<"^.*$", Type.TUnion<[Type.TString, Type.TObject<{
201
+ $secret: Type.TObject<{
202
+ provider: Type.TString;
203
+ ref: Type.TString;
204
+ version: Type.TOptional<Type.TString>;
205
+ field: Type.TOptional<Type.TString>;
206
+ }>;
207
+ }>]>>>;
208
+ body: Type.TOptional<Type.TAny>;
209
+ response_format: Type.TUnion<[Type.TLiteral<ResponseFormat.JSON>, Type.TLiteral<ResponseFormat.XML>, Type.TLiteral<ResponseFormat.TEXT>]>;
210
+ }>, Type.TObject<{
211
+ id: Type.TString;
212
+ type: Type.TLiteral<NodeType.WAIT>;
213
+ duration_ms: Type.TNumber;
214
+ }>, Type.TObject<{
215
+ id: Type.TString;
216
+ type: Type.TLiteral<NodeType.ASSERTION>;
217
+ assertions: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
218
+ assertionType: Type.TLiteral<ResponseFormat.JSON>;
219
+ }>, Type.TObject<{
220
+ nodeId: Type.TString;
221
+ accessor: Type.TUnion<[Type.TLiteral<"body">, Type.TLiteral<"headers">, Type.TLiteral<"status">]>;
222
+ path: Type.TArray<Type.TString>;
223
+ predicate: Type.TUnion<[Type.TUnion<[Type.TLiteral<UnaryPredicate.IS_NULL>, Type.TLiteral<UnaryPredicate.IS_NOT_NULL>, Type.TLiteral<UnaryPredicate.IS_TRUE>, Type.TLiteral<UnaryPredicate.IS_FALSE>, Type.TLiteral<UnaryPredicate.IS_EMPTY>, Type.TLiteral<UnaryPredicate.IS_NOT_EMPTY>]>, Type.TObject<{
224
+ expected: Type.TAny;
225
+ operator: Type.TUnion<[Type.TLiteral<BinaryPredicateOperator.EQUAL>, Type.TLiteral<BinaryPredicateOperator.NOT_EQUAL>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.CONTAINS>, Type.TLiteral<BinaryPredicateOperator.NOT_CONTAINS>, Type.TLiteral<BinaryPredicateOperator.STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.ENDS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_ENDS_WITH>]>;
226
+ }>]>;
227
+ }>]>, Type.TIntersect<[Type.TObject<{
228
+ assertionType: Type.TLiteral<ResponseFormat.XML>;
229
+ }>, Type.TObject<{
230
+ path: Type.TArray<Type.TString>;
231
+ expected: Type.TAny;
232
+ }>]>, Type.TIntersect<[Type.TObject<{
233
+ assertionType: Type.TLiteral<ResponseFormat.TEXT>;
234
+ }>, Type.TObject<{
235
+ path: Type.TString;
236
+ expected: Type.TAny;
237
+ }>]>]>>;
238
+ }>]>;
239
+ export declare const EdgeSchema: Type.TObject<{
240
+ from: Type.TString;
241
+ to: Type.TString;
242
+ }>;
243
+ export type Node = Static<typeof NodeSchema>;
244
+ export type Edge = Static<typeof EdgeSchema>;
245
+ export declare const TestPlanV1Schema: Type.TObject<{
246
+ organization: Type.TOptional<Type.TString>;
247
+ project: Type.TOptional<Type.TString>;
248
+ locations: Type.TOptional<Type.TArray<Type.TString>>;
249
+ id: Type.TReadonly<Type.TString>;
250
+ name: Type.TString;
251
+ version: Type.TLiteral<"1.0">;
252
+ frequency: Type.TOptional<Type.TObject<{
253
+ every: Type.TNumber;
254
+ unit: Type.TUnion<[Type.TLiteral<FrequencyUnit.MINUTE>, Type.TLiteral<FrequencyUnit.HOUR>, Type.TLiteral<FrequencyUnit.DAY>]>;
255
+ }>>;
256
+ environment: Type.TString;
257
+ nodes: Type.TArray<Type.TUnion<[Type.TObject<{
258
+ id: Type.TString;
259
+ type: Type.TLiteral<NodeType.ENDPOINT>;
260
+ method: Type.TUnion<[Type.TLiteral<HttpMethod.GET>, Type.TLiteral<HttpMethod.POST>, Type.TLiteral<HttpMethod.PUT>, Type.TLiteral<HttpMethod.DELETE>, Type.TLiteral<HttpMethod.PATCH>, Type.TLiteral<HttpMethod.HEAD>, Type.TLiteral<HttpMethod.OPTIONS>, Type.TLiteral<HttpMethod.CONNECT>, Type.TLiteral<HttpMethod.TRACE>]>;
261
+ path: Type.TString;
262
+ base: Type.TObject<{
263
+ type: Type.TLiteral<"target">;
264
+ key: Type.TString;
265
+ }>;
266
+ headers: Type.TOptional<Type.TRecord<"^.*$", Type.TUnion<[Type.TString, Type.TObject<{
267
+ $secret: Type.TObject<{
268
+ provider: Type.TString;
269
+ ref: Type.TString;
270
+ version: Type.TOptional<Type.TString>;
271
+ field: Type.TOptional<Type.TString>;
272
+ }>;
273
+ }>]>>>;
274
+ body: Type.TOptional<Type.TAny>;
275
+ response_format: Type.TUnion<[Type.TLiteral<ResponseFormat.JSON>, Type.TLiteral<ResponseFormat.XML>, Type.TLiteral<ResponseFormat.TEXT>]>;
276
+ }>, Type.TObject<{
277
+ id: Type.TString;
278
+ type: Type.TLiteral<NodeType.WAIT>;
279
+ duration_ms: Type.TNumber;
280
+ }>, Type.TObject<{
281
+ id: Type.TString;
282
+ type: Type.TLiteral<NodeType.ASSERTION>;
283
+ assertions: Type.TArray<Type.TUnion<[Type.TIntersect<[Type.TObject<{
284
+ assertionType: Type.TLiteral<ResponseFormat.JSON>;
285
+ }>, Type.TObject<{
286
+ nodeId: Type.TString;
287
+ accessor: Type.TUnion<[Type.TLiteral<"body">, Type.TLiteral<"headers">, Type.TLiteral<"status">]>;
288
+ path: Type.TArray<Type.TString>;
289
+ predicate: Type.TUnion<[Type.TUnion<[Type.TLiteral<UnaryPredicate.IS_NULL>, Type.TLiteral<UnaryPredicate.IS_NOT_NULL>, Type.TLiteral<UnaryPredicate.IS_TRUE>, Type.TLiteral<UnaryPredicate.IS_FALSE>, Type.TLiteral<UnaryPredicate.IS_EMPTY>, Type.TLiteral<UnaryPredicate.IS_NOT_EMPTY>]>, Type.TObject<{
290
+ expected: Type.TAny;
291
+ operator: Type.TUnion<[Type.TLiteral<BinaryPredicateOperator.EQUAL>, Type.TLiteral<BinaryPredicateOperator.NOT_EQUAL>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN>, Type.TLiteral<BinaryPredicateOperator.GREATER_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.LESS_THAN_OR_EQUAL>, Type.TLiteral<BinaryPredicateOperator.CONTAINS>, Type.TLiteral<BinaryPredicateOperator.NOT_CONTAINS>, Type.TLiteral<BinaryPredicateOperator.STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.ENDS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_STARTS_WITH>, Type.TLiteral<BinaryPredicateOperator.NOT_ENDS_WITH>]>;
292
+ }>]>;
293
+ }>]>, Type.TIntersect<[Type.TObject<{
294
+ assertionType: Type.TLiteral<ResponseFormat.XML>;
295
+ }>, Type.TObject<{
296
+ path: Type.TArray<Type.TString>;
297
+ expected: Type.TAny;
298
+ }>]>, Type.TIntersect<[Type.TObject<{
299
+ assertionType: Type.TLiteral<ResponseFormat.TEXT>;
300
+ }>, Type.TObject<{
301
+ path: Type.TString;
302
+ expected: Type.TAny;
303
+ }>]>]>>;
304
+ }>]>>;
305
+ edges: Type.TArray<Type.TObject<{
306
+ from: Type.TString;
307
+ to: Type.TString;
308
+ }>>;
309
+ }>;
310
+ export type TestPlanV1 = Static<typeof TestPlanV1Schema>;
311
+ //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,MAAM,EAAgB,MAAM,SAAS,CAAC;AAE1D,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AAGvC,eAAO,MAAM,mBAAmB;;;;;EAK9B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;EAE1B,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;IAG/B,CAAC;AAEH,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,GAAG,QAAQ;CACZ;AAED,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,UAAU;IACpB,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AACD,oBAAY,QAAQ;IAClB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,SAAS,cAAc;CACxB;AACD,eAAO,MAAM,oBAAoB,0HAOhC,CAAC;AAEF,eAAO,MAAM,gBAAgB,uTAa5B,CAAC;AAEF,eAAO,MAAM,eAAe;;;EAG1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAEvD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;EAY1B,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM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CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAC/D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;MAsB3B,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAEvD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;EAO5B,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEzD,eAAO,MAAM,cAAc,kHAO1B,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;EAMtB,CAAC;AACF,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAC7C,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC;AAE7C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgB5B,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
package/dist/schema.js ADDED
@@ -0,0 +1,214 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TestPlanV1Schema = exports.EdgeSchema = exports.NodeSchema = exports.NodeTypeSchema = exports.AssertionsSchema = exports.AssertionSchema = exports.TextAssertionSchema = exports.XMLAssertionSchema = exports.JSONAssertionSchema = exports.BinaryPredicateSchema = exports.BinaryPredicateOperatorSchema = exports.BinaryPredicateOperator = exports.UnaryPredicateSchema = exports.UnaryPredicate = exports.TextPathSchema = exports.XMLPathSchema = exports.JSONPathSchema = exports.WaitSchema = exports.FrequencySchema = exports.EndpointSchema = exports.TargetRefSchema = exports.HttpMethodSchema = exports.ResponseFormatSchema = exports.NodeType = exports.HttpMethod = exports.ResponseFormat = exports.FrequencyUnit = exports.SecretOrStringSchema = exports.SecretRefSchema = exports.SecretRefDataSchema = exports.TEST_PLAN_VERSION = void 0;
4
+ const typebox_1 = require("typebox");
5
+ exports.TEST_PLAN_VERSION = "1.0";
6
+ // Secret reference schema for values that may contain secrets
7
+ exports.SecretRefDataSchema = typebox_1.Type.Object({
8
+ provider: typebox_1.Type.String(),
9
+ ref: typebox_1.Type.String(),
10
+ version: typebox_1.Type.Optional(typebox_1.Type.String()),
11
+ field: typebox_1.Type.Optional(typebox_1.Type.String()),
12
+ });
13
+ exports.SecretRefSchema = typebox_1.Type.Object({
14
+ $secret: exports.SecretRefDataSchema,
15
+ });
16
+ // Union type for values that can be either a literal or a secret reference
17
+ exports.SecretOrStringSchema = typebox_1.Type.Union([
18
+ typebox_1.Type.String(),
19
+ exports.SecretRefSchema,
20
+ ]);
21
+ var FrequencyUnit;
22
+ (function (FrequencyUnit) {
23
+ FrequencyUnit["MINUTE"] = "MINUTE";
24
+ FrequencyUnit["HOUR"] = "HOUR";
25
+ FrequencyUnit["DAY"] = "DAY";
26
+ })(FrequencyUnit || (exports.FrequencyUnit = FrequencyUnit = {}));
27
+ var ResponseFormat;
28
+ (function (ResponseFormat) {
29
+ ResponseFormat["JSON"] = "JSON";
30
+ ResponseFormat["XML"] = "XML";
31
+ ResponseFormat["TEXT"] = "TEXT";
32
+ })(ResponseFormat || (exports.ResponseFormat = ResponseFormat = {}));
33
+ var HttpMethod;
34
+ (function (HttpMethod) {
35
+ HttpMethod["GET"] = "GET";
36
+ HttpMethod["POST"] = "POST";
37
+ HttpMethod["PUT"] = "PUT";
38
+ HttpMethod["DELETE"] = "DELETE";
39
+ HttpMethod["PATCH"] = "PATCH";
40
+ HttpMethod["HEAD"] = "HEAD";
41
+ HttpMethod["OPTIONS"] = "OPTIONS";
42
+ HttpMethod["CONNECT"] = "CONNECT";
43
+ HttpMethod["TRACE"] = "TRACE";
44
+ })(HttpMethod || (exports.HttpMethod = HttpMethod = {}));
45
+ var NodeType;
46
+ (function (NodeType) {
47
+ NodeType["ENDPOINT"] = "ENDPOINT";
48
+ NodeType["WAIT"] = "WAIT";
49
+ NodeType["ASSERTION"] = "ASSERTION";
50
+ })(NodeType || (exports.NodeType = NodeType = {}));
51
+ exports.ResponseFormatSchema = typebox_1.Type.Union([
52
+ typebox_1.Type.Literal(ResponseFormat.JSON),
53
+ typebox_1.Type.Literal(ResponseFormat.XML),
54
+ typebox_1.Type.Literal(ResponseFormat.TEXT),
55
+ ], { $id: "ResponseFormat" });
56
+ exports.HttpMethodSchema = typebox_1.Type.Union([
57
+ typebox_1.Type.Literal(HttpMethod.GET),
58
+ typebox_1.Type.Literal(HttpMethod.POST),
59
+ typebox_1.Type.Literal(HttpMethod.PUT),
60
+ typebox_1.Type.Literal(HttpMethod.DELETE),
61
+ typebox_1.Type.Literal(HttpMethod.PATCH),
62
+ typebox_1.Type.Literal(HttpMethod.HEAD),
63
+ typebox_1.Type.Literal(HttpMethod.OPTIONS),
64
+ typebox_1.Type.Literal(HttpMethod.CONNECT),
65
+ typebox_1.Type.Literal(HttpMethod.TRACE),
66
+ ], { $id: "HttpMethod" });
67
+ exports.TargetRefSchema = typebox_1.Type.Object({
68
+ type: typebox_1.Type.Literal("target"),
69
+ key: typebox_1.Type.String(),
70
+ });
71
+ exports.EndpointSchema = typebox_1.Type.Object({
72
+ id: typebox_1.Type.String(),
73
+ type: typebox_1.Type.Literal(NodeType.ENDPOINT),
74
+ method: exports.HttpMethodSchema,
75
+ path: typebox_1.Type.String(),
76
+ base: exports.TargetRefSchema,
77
+ headers: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), exports.SecretOrStringSchema)),
78
+ body: typebox_1.Type.Optional(typebox_1.Type.Any()), // Body can contain nested SecretRefs
79
+ response_format: exports.ResponseFormatSchema,
80
+ }, { $id: "Endpoint" });
81
+ exports.FrequencySchema = typebox_1.Type.Object({
82
+ every: typebox_1.Type.Number(),
83
+ unit: typebox_1.Type.Union([
84
+ typebox_1.Type.Literal(FrequencyUnit.MINUTE),
85
+ typebox_1.Type.Literal(FrequencyUnit.HOUR),
86
+ typebox_1.Type.Literal(FrequencyUnit.DAY),
87
+ ]),
88
+ }, { $id: "Frequency" });
89
+ exports.WaitSchema = typebox_1.Type.Object({
90
+ id: typebox_1.Type.String(),
91
+ type: typebox_1.Type.Literal(NodeType.WAIT),
92
+ duration_ms: typebox_1.Type.Number(),
93
+ }, { $id: "Wait" });
94
+ exports.JSONPathSchema = typebox_1.Type.Array(typebox_1.Type.String());
95
+ exports.XMLPathSchema = typebox_1.Type.Array(typebox_1.Type.String());
96
+ exports.TextPathSchema = typebox_1.Type.String(); // Is there a regex to validate regex ????
97
+ var UnaryPredicate;
98
+ (function (UnaryPredicate) {
99
+ UnaryPredicate["IS_NULL"] = "IS_NULL";
100
+ UnaryPredicate["IS_NOT_NULL"] = "IS_NOT_NULL";
101
+ UnaryPredicate["IS_TRUE"] = "IS_TRUE";
102
+ UnaryPredicate["IS_FALSE"] = "IS_FALSE";
103
+ UnaryPredicate["IS_EMPTY"] = "IS_EMPTY";
104
+ UnaryPredicate["IS_NOT_EMPTY"] = "IS_NOT_EMPTY";
105
+ })(UnaryPredicate || (exports.UnaryPredicate = UnaryPredicate = {}));
106
+ exports.UnaryPredicateSchema = typebox_1.Type.Union([
107
+ typebox_1.Type.Literal(UnaryPredicate.IS_NULL),
108
+ typebox_1.Type.Literal(UnaryPredicate.IS_NOT_NULL),
109
+ typebox_1.Type.Literal(UnaryPredicate.IS_TRUE),
110
+ typebox_1.Type.Literal(UnaryPredicate.IS_FALSE),
111
+ typebox_1.Type.Literal(UnaryPredicate.IS_EMPTY),
112
+ typebox_1.Type.Literal(UnaryPredicate.IS_NOT_EMPTY),
113
+ ], { $id: "UnaryPredicate" });
114
+ var BinaryPredicateOperator;
115
+ (function (BinaryPredicateOperator) {
116
+ BinaryPredicateOperator["EQUAL"] = "EQUAL";
117
+ BinaryPredicateOperator["NOT_EQUAL"] = "NOT_EQUAL";
118
+ BinaryPredicateOperator["GREATER_THAN"] = "GREATER_THAN";
119
+ BinaryPredicateOperator["LESS_THAN"] = "LESS_THAN";
120
+ BinaryPredicateOperator["GREATER_THAN_OR_EQUAL"] = "GREATER_THAN_OR_EQUAL";
121
+ BinaryPredicateOperator["LESS_THAN_OR_EQUAL"] = "LESS_THAN_OR_EQUAL";
122
+ BinaryPredicateOperator["CONTAINS"] = "CONTAINS";
123
+ BinaryPredicateOperator["NOT_CONTAINS"] = "NOT_CONTAINS";
124
+ BinaryPredicateOperator["STARTS_WITH"] = "STARTS_WITH";
125
+ BinaryPredicateOperator["ENDS_WITH"] = "ENDS_WITH";
126
+ BinaryPredicateOperator["NOT_STARTS_WITH"] = "NOT_STARTS_WITH";
127
+ BinaryPredicateOperator["NOT_ENDS_WITH"] = "NOT_ENDS_WITH";
128
+ })(BinaryPredicateOperator || (exports.BinaryPredicateOperator = BinaryPredicateOperator = {}));
129
+ exports.BinaryPredicateOperatorSchema = typebox_1.Type.Union([
130
+ typebox_1.Type.Literal(BinaryPredicateOperator.EQUAL),
131
+ typebox_1.Type.Literal(BinaryPredicateOperator.NOT_EQUAL),
132
+ typebox_1.Type.Literal(BinaryPredicateOperator.GREATER_THAN),
133
+ typebox_1.Type.Literal(BinaryPredicateOperator.LESS_THAN),
134
+ typebox_1.Type.Literal(BinaryPredicateOperator.GREATER_THAN_OR_EQUAL),
135
+ typebox_1.Type.Literal(BinaryPredicateOperator.LESS_THAN_OR_EQUAL),
136
+ typebox_1.Type.Literal(BinaryPredicateOperator.CONTAINS),
137
+ typebox_1.Type.Literal(BinaryPredicateOperator.NOT_CONTAINS),
138
+ typebox_1.Type.Literal(BinaryPredicateOperator.STARTS_WITH),
139
+ typebox_1.Type.Literal(BinaryPredicateOperator.ENDS_WITH),
140
+ typebox_1.Type.Literal(BinaryPredicateOperator.NOT_STARTS_WITH),
141
+ typebox_1.Type.Literal(BinaryPredicateOperator.NOT_ENDS_WITH),
142
+ ], { $id: "BinaryPredicateOperator" });
143
+ exports.BinaryPredicateSchema = typebox_1.Type.Object({
144
+ expected: typebox_1.Type.Any(),
145
+ operator: exports.BinaryPredicateOperatorSchema,
146
+ }, { $id: "BinaryPredicate" });
147
+ exports.JSONAssertionSchema = typebox_1.Type.Object({
148
+ nodeId: typebox_1.Type.String(),
149
+ accessor: typebox_1.Type.Union([
150
+ typebox_1.Type.Literal("body"),
151
+ typebox_1.Type.Literal("headers"),
152
+ typebox_1.Type.Literal("status"),
153
+ ]),
154
+ path: exports.JSONPathSchema,
155
+ predicate: typebox_1.Type.Union([exports.UnaryPredicateSchema, exports.BinaryPredicateSchema]),
156
+ }, { $id: "JSONAssertion" });
157
+ exports.XMLAssertionSchema = typebox_1.Type.Object({
158
+ path: exports.XMLPathSchema,
159
+ expected: typebox_1.Type.Any(),
160
+ });
161
+ exports.TextAssertionSchema = typebox_1.Type.Object({
162
+ path: exports.TextPathSchema,
163
+ expected: typebox_1.Type.Any(),
164
+ });
165
+ exports.AssertionSchema = typebox_1.Type.Union([
166
+ typebox_1.Type.Intersect([
167
+ typebox_1.Type.Object({
168
+ assertionType: typebox_1.Type.Literal(ResponseFormat.JSON),
169
+ }),
170
+ exports.JSONAssertionSchema,
171
+ ]),
172
+ typebox_1.Type.Intersect([
173
+ typebox_1.Type.Object({
174
+ assertionType: typebox_1.Type.Literal(ResponseFormat.XML),
175
+ }),
176
+ exports.XMLAssertionSchema,
177
+ ]),
178
+ typebox_1.Type.Intersect([
179
+ typebox_1.Type.Object({
180
+ assertionType: typebox_1.Type.Literal(ResponseFormat.TEXT),
181
+ }),
182
+ exports.TextAssertionSchema,
183
+ ]),
184
+ ], { $id: "Assertion" });
185
+ exports.AssertionsSchema = typebox_1.Type.Object({
186
+ id: typebox_1.Type.String(),
187
+ type: typebox_1.Type.Literal(NodeType.ASSERTION),
188
+ assertions: typebox_1.Type.Array(exports.AssertionSchema),
189
+ }, { $id: "Assertions" });
190
+ exports.NodeTypeSchema = typebox_1.Type.Union([
191
+ typebox_1.Type.Literal(NodeType.ENDPOINT),
192
+ typebox_1.Type.Literal(NodeType.WAIT),
193
+ typebox_1.Type.Literal(NodeType.ASSERTION),
194
+ ], { $id: "NodeType" });
195
+ exports.NodeSchema = typebox_1.Type.Union([exports.EndpointSchema, exports.WaitSchema, exports.AssertionsSchema], { $id: "Node" });
196
+ exports.EdgeSchema = typebox_1.Type.Object({
197
+ from: typebox_1.Type.String(),
198
+ to: typebox_1.Type.String(),
199
+ }, { $id: "Edge" });
200
+ exports.TestPlanV1Schema = typebox_1.Type.Object({
201
+ organization: typebox_1.Type.Optional(typebox_1.Type.String()), // TODO: make these required
202
+ project: typebox_1.Type.Optional(typebox_1.Type.String()), // TODO: make these required
203
+ locations: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
204
+ id: typebox_1.Type.Readonly(typebox_1.Type.String()),
205
+ name: typebox_1.Type.String(),
206
+ version: typebox_1.Type.Literal("1.0"),
207
+ frequency: typebox_1.Type.Optional(exports.FrequencySchema),
208
+ environment: typebox_1.Type.String({ default: "default" }),
209
+ nodes: typebox_1.Type.Array(exports.NodeSchema),
210
+ edges: typebox_1.Type.Array(exports.EdgeSchema),
211
+ }, {
212
+ $id: "TestPlanV1",
213
+ });
214
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":";;;AAAA,qCAA0D;AAE7C,QAAA,iBAAiB,GAAG,KAAK,CAAC;AAEvC,8DAA8D;AACjD,QAAA,mBAAmB,GAAG,cAAI,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,cAAI,CAAC,MAAM,EAAE;IACvB,GAAG,EAAE,cAAI,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,C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AAC,MAAM,EAAE;IACnB,EAAE,EAAE,cAAI,CAAC,MAAM,EAAE;CAClB,EACD,EAAE,GAAG,EAAE,MAAM,EAAE,CAChB,CAAC;AAIW,QAAA,gBAAgB,GAAG,cAAI,CAAC,MAAM,CACzC;IACE,YAAY,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,EAAE,4BAA4B;IACxE,OAAO,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,EAAE,4BAA4B;IACnE,SAAS,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,KAAK,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IACnD,EAAE,EAAE,cAAI,CAAC,QAAQ,CAAC,cAAI,CAAC,MAAM,EAAE,CAAC;IAChC,IAAI,EAAE,cAAI,CAAC,MAAM,EAAE;IACnB,OAAO,EAAE,cAAI,CAAC,OAAO,CAAC,KAAK,CAAC;IAC5B,SAAS,EAAE,cAAI,CAAC,QAAQ,CAAC,uBAAe,CAAC;IACzC,WAAW,EAAE,cAAI,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAChD,KAAK,EAAE,cAAI,CAAC,KAAK,CAAC,kBAAU,CAAC;IAC7B,KAAK,EAAE,cAAI,CAAC,KAAK,CAAC,kBAAU,CAAC;CAC9B,EACD;IACE,GAAG,EAAE,YAAY;CAClB,CACF,CAAC"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Secret reference types and utilities for griffin DSL.
3
+ *
4
+ * Secrets are referenced by provider and path, and resolved at runtime
5
+ * by the plan executor using configured secret providers.
6
+ */
7
+ export interface SecretRefData {
8
+ provider: string;
9
+ ref: string;
10
+ version?: string;
11
+ field?: string;
12
+ }
13
+ export interface SecretRef {
14
+ $secret: SecretRefData;
15
+ }
16
+ export interface SecretOptions {
17
+ /** Pin to a specific version (provider-dependent) */
18
+ version?: string;
19
+ /** Extract a specific field from a JSON secret */
20
+ field?: string;
21
+ }
22
+ /**
23
+ * Create a secret reference for use in endpoint headers or body.
24
+ *
25
+ * @param path - Provider-qualified path in format "provider:path"
26
+ * Examples:
27
+ * - "env:API_KEY" - Environment variable
28
+ * - "aws:prod/api-key" - AWS Secrets Manager
29
+ * - "vault:secret/data/api" - HashiCorp Vault
30
+ * - "doppler:backend/prod/API_KEY" - Doppler
31
+ *
32
+ * @param options - Optional version pinning or field extraction
33
+ *
34
+ * @example
35
+ * ```typescript
36
+ * builder.addEndpoint("call", {
37
+ * method: GET,
38
+ * path: "/api/data",
39
+ * headers: {
40
+ * "Authorization": secret("aws:prod/api-key"),
41
+ * "X-API-Key": secret("env:LOCAL_API_KEY"),
42
+ * },
43
+ * })
44
+ * ```
45
+ */
46
+ export declare function secret(path: string, options?: SecretOptions): SecretRef;
47
+ /**
48
+ * Type guard to check if a value is a secret reference.
49
+ */
50
+ export declare function isSecretRef(value: unknown): value is SecretRef;
51
+ /**
52
+ * Type that allows either a literal value or a secret reference.
53
+ * Used for headers and other fields that may contain secrets.
54
+ */
55
+ export type SecretOrValue<T> = T | SecretRef;
56
+ //# sourceMappingURL=secrets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../src/secrets.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,aAAa,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAgCvE;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAmB9D;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC"}