@griffin-app/griffin-ts 0.1.21 → 0.1.23
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.
- package/dist/integrations.d.ts +2 -2
- package/dist/integrations.d.ts.map +1 -1
- package/dist/integrations.js +2 -0
- package/dist/integrations.js.map +1 -1
- package/dist/schema.d.ts +232 -232
- package/dist/schema.js +11 -11
- package/dist/schema.js.map +1 -1
- package/dist/sequential-builder.d.ts.map +1 -1
- package/dist/sequential-builder.js +2 -5
- package/dist/sequential-builder.js.map +1 -1
- package/package.json +1 -1
- package/src/schema.ts +10 -10
- package/src/sequential-builder.ts +1 -4
package/dist/integrations.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Type, type Static } from "typebox";
|
|
2
2
|
export declare const IntegrationCategorySchema: Type.TUnsafe<"notifications" | "secrets" | "metrics">;
|
|
3
|
-
export declare const NotificationProviderSchema: Type.TUnsafe<"slack" | "email" | "webhook">;
|
|
3
|
+
export declare const NotificationProviderSchema: Type.TUnsafe<"slack" | "email" | "webhook" | "resend">;
|
|
4
4
|
export declare const SecretsProviderSchema: Type.TUnsafe<"aws" | "vault">;
|
|
5
|
-
export declare const ProviderSchema: Type.TUnsafe<"slack" | "email" | "webhook" | "aws" | "vault">;
|
|
5
|
+
export declare const ProviderSchema: Type.TUnsafe<"slack" | "email" | "webhook" | "resend" | "aws" | "vault">;
|
|
6
6
|
export type IntegrationCategory = Static<typeof IntegrationCategorySchema>;
|
|
7
7
|
export type SecretsProvider = Static<typeof SecretsProviderSchema>;
|
|
8
8
|
export type NotificationProvider = Static<typeof NotificationProviderSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../src/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,yBAAyB,uDAIN,CAAC;AAEjC,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../src/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAE5C,eAAO,MAAM,yBAAyB,uDAIN,CAAC;AAEjC,eAAO,MAAM,0BAA0B,wDAKN,CAAC;AAElC,eAAO,MAAM,qBAAqB,+BAIN,CAAC;AAC7B,eAAO,MAAM,cAAc,0EAON,CAAC;AAEtB,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE3E,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACnE,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC7E,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/dist/integrations.js
CHANGED
|
@@ -8,6 +8,7 @@ export const NotificationProviderSchema = StringEnum([
|
|
|
8
8
|
"slack",
|
|
9
9
|
"email",
|
|
10
10
|
"webhook",
|
|
11
|
+
"resend",
|
|
11
12
|
], { $id: "NotificationProvider" });
|
|
12
13
|
export const SecretsProviderSchema = StringEnum([
|
|
13
14
|
//Type.Literal("env"),
|
|
@@ -20,5 +21,6 @@ export const ProviderSchema = StringEnum([
|
|
|
20
21
|
"slack",
|
|
21
22
|
"email",
|
|
22
23
|
"webhook",
|
|
24
|
+
"resend",
|
|
23
25
|
], { $id: "Provider" });
|
|
24
26
|
//# sourceMappingURL=integrations.js.map
|
package/dist/integrations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../src/integrations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAAC;IAClD,eAAe;IACf,SAAS;IACT,SAAS;CACV,EAAE,EAAC,GAAG,EAAE,qBAAqB,EAAC,CAAC,CAAC;AAEjC,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,CAAC;IACnD,OAAO;IACP,OAAO;IACP,SAAS;
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../src/integrations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAAC;IAClD,eAAe;IACf,SAAS;IACT,SAAS;CACV,EAAE,EAAC,GAAG,EAAE,qBAAqB,EAAC,CAAC,CAAC;AAEjC,MAAM,CAAC,MAAM,0BAA0B,GAAG,UAAU,CAAC;IACnD,OAAO;IACP,OAAO;IACP,SAAS;IACT,QAAQ;CACT,EAAE,EAAC,GAAG,EAAE,sBAAsB,EAAC,CAAC,CAAC;AAElC,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC;IAC9C,sBAAsB;IACtB,KAAK;IACL,OAAO;CACR,EAAE,EAAC,GAAG,EAAE,iBAAiB,EAAC,CAAC,CAAC;AAC7B,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAAC;IACvC,KAAK;IACL,OAAO;IACP,OAAO;IACP,OAAO;IACP,SAAS;IACT,QAAQ;CACT,EAAE,EAAC,GAAG,EAAE,UAAU,EAAC,CAAC,CAAC"}
|
package/dist/schema.d.ts
CHANGED
|
@@ -175,56 +175,56 @@ export declare enum AssertionSubject {
|
|
|
175
175
|
export declare const AssertionSubjectSchema: Type.TUnsafe<AssertionSubject>;
|
|
176
176
|
export declare const AssertionSchema: Type.TUnion<[Type.TObject<{
|
|
177
177
|
subject: Type.TLiteral<AssertionSubject.STATUS>;
|
|
178
|
-
predicate: Type.
|
|
179
|
-
|
|
180
|
-
operator: BinaryPredicateOperator
|
|
181
|
-
|
|
178
|
+
predicate: Type.TObject<{
|
|
179
|
+
expected: Type.TAny;
|
|
180
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
181
|
+
type: Type.TLiteral<"binary">;
|
|
182
182
|
}>;
|
|
183
183
|
nodeId: Type.TString;
|
|
184
184
|
}>, Type.TObject<{
|
|
185
185
|
subject: Type.TLiteral<AssertionSubject.HEADERS>;
|
|
186
186
|
headerName: Type.TString;
|
|
187
|
-
predicate: Type.TUnion<[Type.
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}>, Type.
|
|
191
|
-
|
|
192
|
-
operator: BinaryPredicateOperator
|
|
193
|
-
|
|
187
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
188
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
189
|
+
type: Type.TLiteral<"unary">;
|
|
190
|
+
}>, Type.TObject<{
|
|
191
|
+
expected: Type.TAny;
|
|
192
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
193
|
+
type: Type.TLiteral<"binary">;
|
|
194
194
|
}>]>;
|
|
195
195
|
nodeId: Type.TString;
|
|
196
196
|
}>, Type.TObject<{
|
|
197
197
|
subject: Type.TLiteral<AssertionSubject.LATENCY>;
|
|
198
|
-
predicate: Type.
|
|
199
|
-
|
|
200
|
-
operator: BinaryPredicateOperator
|
|
201
|
-
|
|
198
|
+
predicate: Type.TObject<{
|
|
199
|
+
expected: Type.TAny;
|
|
200
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
201
|
+
type: Type.TLiteral<"binary">;
|
|
202
202
|
}>;
|
|
203
203
|
nodeId: Type.TString;
|
|
204
204
|
}>, Type.TObject<{
|
|
205
205
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
206
206
|
responseType: Type.TLiteral<ResponseFormat.JSON>;
|
|
207
207
|
path: Type.TArray<Type.TString>;
|
|
208
|
-
predicate: Type.TUnion<[Type.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}>, Type.
|
|
212
|
-
|
|
213
|
-
operator: BinaryPredicateOperator
|
|
214
|
-
|
|
208
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
209
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
210
|
+
type: Type.TLiteral<"unary">;
|
|
211
|
+
}>, Type.TObject<{
|
|
212
|
+
expected: Type.TAny;
|
|
213
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
214
|
+
type: Type.TLiteral<"binary">;
|
|
215
215
|
}>]>;
|
|
216
216
|
nodeId: Type.TString;
|
|
217
217
|
}>, Type.TObject<{
|
|
218
218
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
219
219
|
responseType: Type.TLiteral<ResponseFormat.XML>;
|
|
220
220
|
path: Type.TArray<Type.TString>;
|
|
221
|
-
predicate: Type.TUnion<[Type.
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}>, Type.
|
|
225
|
-
|
|
226
|
-
operator: BinaryPredicateOperator
|
|
227
|
-
|
|
221
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
222
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
223
|
+
type: Type.TLiteral<"unary">;
|
|
224
|
+
}>, Type.TObject<{
|
|
225
|
+
expected: Type.TAny;
|
|
226
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
227
|
+
type: Type.TLiteral<"binary">;
|
|
228
228
|
}>]>;
|
|
229
229
|
nodeId: Type.TString;
|
|
230
230
|
}>]>;
|
|
@@ -233,56 +233,56 @@ export declare const AssertionsSchema: Type.TObject<{
|
|
|
233
233
|
type: Type.TLiteral<NodeType.ASSERTION>;
|
|
234
234
|
assertions: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
235
235
|
subject: Type.TLiteral<AssertionSubject.STATUS>;
|
|
236
|
-
predicate: Type.
|
|
237
|
-
|
|
238
|
-
operator: BinaryPredicateOperator
|
|
239
|
-
|
|
236
|
+
predicate: Type.TObject<{
|
|
237
|
+
expected: Type.TAny;
|
|
238
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
239
|
+
type: Type.TLiteral<"binary">;
|
|
240
240
|
}>;
|
|
241
241
|
nodeId: Type.TString;
|
|
242
242
|
}>, Type.TObject<{
|
|
243
243
|
subject: Type.TLiteral<AssertionSubject.HEADERS>;
|
|
244
244
|
headerName: Type.TString;
|
|
245
|
-
predicate: Type.TUnion<[Type.
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}>, Type.
|
|
249
|
-
|
|
250
|
-
operator: BinaryPredicateOperator
|
|
251
|
-
|
|
245
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
246
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
247
|
+
type: Type.TLiteral<"unary">;
|
|
248
|
+
}>, Type.TObject<{
|
|
249
|
+
expected: Type.TAny;
|
|
250
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
251
|
+
type: Type.TLiteral<"binary">;
|
|
252
252
|
}>]>;
|
|
253
253
|
nodeId: Type.TString;
|
|
254
254
|
}>, Type.TObject<{
|
|
255
255
|
subject: Type.TLiteral<AssertionSubject.LATENCY>;
|
|
256
|
-
predicate: Type.
|
|
257
|
-
|
|
258
|
-
operator: BinaryPredicateOperator
|
|
259
|
-
|
|
256
|
+
predicate: Type.TObject<{
|
|
257
|
+
expected: Type.TAny;
|
|
258
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
259
|
+
type: Type.TLiteral<"binary">;
|
|
260
260
|
}>;
|
|
261
261
|
nodeId: Type.TString;
|
|
262
262
|
}>, Type.TObject<{
|
|
263
263
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
264
264
|
responseType: Type.TLiteral<ResponseFormat.JSON>;
|
|
265
265
|
path: Type.TArray<Type.TString>;
|
|
266
|
-
predicate: Type.TUnion<[Type.
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
}>, Type.
|
|
270
|
-
|
|
271
|
-
operator: BinaryPredicateOperator
|
|
272
|
-
|
|
266
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
267
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
268
|
+
type: Type.TLiteral<"unary">;
|
|
269
|
+
}>, Type.TObject<{
|
|
270
|
+
expected: Type.TAny;
|
|
271
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
272
|
+
type: Type.TLiteral<"binary">;
|
|
273
273
|
}>]>;
|
|
274
274
|
nodeId: Type.TString;
|
|
275
275
|
}>, Type.TObject<{
|
|
276
276
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
277
277
|
responseType: Type.TLiteral<ResponseFormat.XML>;
|
|
278
278
|
path: Type.TArray<Type.TString>;
|
|
279
|
-
predicate: Type.TUnion<[Type.
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
}>, Type.
|
|
283
|
-
|
|
284
|
-
operator: BinaryPredicateOperator
|
|
285
|
-
|
|
279
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
280
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
281
|
+
type: Type.TLiteral<"unary">;
|
|
282
|
+
}>, Type.TObject<{
|
|
283
|
+
expected: Type.TAny;
|
|
284
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
285
|
+
type: Type.TLiteral<"binary">;
|
|
286
286
|
}>]>;
|
|
287
287
|
nodeId: Type.TString;
|
|
288
288
|
}>]>>;
|
|
@@ -344,56 +344,56 @@ export declare const NodeDSLSchema: Type.TUnion<[Type.TObject<{
|
|
|
344
344
|
type: Type.TLiteral<NodeType.ASSERTION>;
|
|
345
345
|
assertions: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
346
346
|
subject: Type.TLiteral<AssertionSubject.STATUS>;
|
|
347
|
-
predicate: Type.
|
|
348
|
-
|
|
349
|
-
operator: BinaryPredicateOperator
|
|
350
|
-
|
|
347
|
+
predicate: Type.TObject<{
|
|
348
|
+
expected: Type.TAny;
|
|
349
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
350
|
+
type: Type.TLiteral<"binary">;
|
|
351
351
|
}>;
|
|
352
352
|
nodeId: Type.TString;
|
|
353
353
|
}>, Type.TObject<{
|
|
354
354
|
subject: Type.TLiteral<AssertionSubject.HEADERS>;
|
|
355
355
|
headerName: Type.TString;
|
|
356
|
-
predicate: Type.TUnion<[Type.
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
}>, Type.
|
|
360
|
-
|
|
361
|
-
operator: BinaryPredicateOperator
|
|
362
|
-
|
|
356
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
357
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
358
|
+
type: Type.TLiteral<"unary">;
|
|
359
|
+
}>, Type.TObject<{
|
|
360
|
+
expected: Type.TAny;
|
|
361
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
362
|
+
type: Type.TLiteral<"binary">;
|
|
363
363
|
}>]>;
|
|
364
364
|
nodeId: Type.TString;
|
|
365
365
|
}>, Type.TObject<{
|
|
366
366
|
subject: Type.TLiteral<AssertionSubject.LATENCY>;
|
|
367
|
-
predicate: Type.
|
|
368
|
-
|
|
369
|
-
operator: BinaryPredicateOperator
|
|
370
|
-
|
|
367
|
+
predicate: Type.TObject<{
|
|
368
|
+
expected: Type.TAny;
|
|
369
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
370
|
+
type: Type.TLiteral<"binary">;
|
|
371
371
|
}>;
|
|
372
372
|
nodeId: Type.TString;
|
|
373
373
|
}>, Type.TObject<{
|
|
374
374
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
375
375
|
responseType: Type.TLiteral<ResponseFormat.JSON>;
|
|
376
376
|
path: Type.TArray<Type.TString>;
|
|
377
|
-
predicate: Type.TUnion<[Type.
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}>, Type.
|
|
381
|
-
|
|
382
|
-
operator: BinaryPredicateOperator
|
|
383
|
-
|
|
377
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
378
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
379
|
+
type: Type.TLiteral<"unary">;
|
|
380
|
+
}>, Type.TObject<{
|
|
381
|
+
expected: Type.TAny;
|
|
382
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
383
|
+
type: Type.TLiteral<"binary">;
|
|
384
384
|
}>]>;
|
|
385
385
|
nodeId: Type.TString;
|
|
386
386
|
}>, Type.TObject<{
|
|
387
387
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
388
388
|
responseType: Type.TLiteral<ResponseFormat.XML>;
|
|
389
389
|
path: Type.TArray<Type.TString>;
|
|
390
|
-
predicate: Type.TUnion<[Type.
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
}>, Type.
|
|
394
|
-
|
|
395
|
-
operator: BinaryPredicateOperator
|
|
396
|
-
|
|
390
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
391
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
392
|
+
type: Type.TLiteral<"unary">;
|
|
393
|
+
}>, Type.TObject<{
|
|
394
|
+
expected: Type.TAny;
|
|
395
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
396
|
+
type: Type.TLiteral<"binary">;
|
|
397
397
|
}>]>;
|
|
398
398
|
nodeId: Type.TString;
|
|
399
399
|
}>]>>;
|
|
@@ -497,56 +497,56 @@ export declare const MonitorDSLSchemaV1: Type.TObject<{
|
|
|
497
497
|
type: Type.TLiteral<NodeType.ASSERTION>;
|
|
498
498
|
assertions: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
499
499
|
subject: Type.TLiteral<AssertionSubject.STATUS>;
|
|
500
|
-
predicate: Type.
|
|
501
|
-
|
|
502
|
-
operator: BinaryPredicateOperator
|
|
503
|
-
|
|
500
|
+
predicate: Type.TObject<{
|
|
501
|
+
expected: Type.TAny;
|
|
502
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
503
|
+
type: Type.TLiteral<"binary">;
|
|
504
504
|
}>;
|
|
505
505
|
nodeId: Type.TString;
|
|
506
506
|
}>, Type.TObject<{
|
|
507
507
|
subject: Type.TLiteral<AssertionSubject.HEADERS>;
|
|
508
508
|
headerName: Type.TString;
|
|
509
|
-
predicate: Type.TUnion<[Type.
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
}>, Type.
|
|
513
|
-
|
|
514
|
-
operator: BinaryPredicateOperator
|
|
515
|
-
|
|
509
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
510
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
511
|
+
type: Type.TLiteral<"unary">;
|
|
512
|
+
}>, Type.TObject<{
|
|
513
|
+
expected: Type.TAny;
|
|
514
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
515
|
+
type: Type.TLiteral<"binary">;
|
|
516
516
|
}>]>;
|
|
517
517
|
nodeId: Type.TString;
|
|
518
518
|
}>, Type.TObject<{
|
|
519
519
|
subject: Type.TLiteral<AssertionSubject.LATENCY>;
|
|
520
|
-
predicate: Type.
|
|
521
|
-
|
|
522
|
-
operator: BinaryPredicateOperator
|
|
523
|
-
|
|
520
|
+
predicate: Type.TObject<{
|
|
521
|
+
expected: Type.TAny;
|
|
522
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
523
|
+
type: Type.TLiteral<"binary">;
|
|
524
524
|
}>;
|
|
525
525
|
nodeId: Type.TString;
|
|
526
526
|
}>, Type.TObject<{
|
|
527
527
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
528
528
|
responseType: Type.TLiteral<ResponseFormat.JSON>;
|
|
529
529
|
path: Type.TArray<Type.TString>;
|
|
530
|
-
predicate: Type.TUnion<[Type.
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}>, Type.
|
|
534
|
-
|
|
535
|
-
operator: BinaryPredicateOperator
|
|
536
|
-
|
|
530
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
531
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
532
|
+
type: Type.TLiteral<"unary">;
|
|
533
|
+
}>, Type.TObject<{
|
|
534
|
+
expected: Type.TAny;
|
|
535
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
536
|
+
type: Type.TLiteral<"binary">;
|
|
537
537
|
}>]>;
|
|
538
538
|
nodeId: Type.TString;
|
|
539
539
|
}>, Type.TObject<{
|
|
540
540
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
541
541
|
responseType: Type.TLiteral<ResponseFormat.XML>;
|
|
542
542
|
path: Type.TArray<Type.TString>;
|
|
543
|
-
predicate: Type.TUnion<[Type.
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
}>, Type.
|
|
547
|
-
|
|
548
|
-
operator: BinaryPredicateOperator
|
|
549
|
-
|
|
543
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
544
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
545
|
+
type: Type.TLiteral<"unary">;
|
|
546
|
+
}>, Type.TObject<{
|
|
547
|
+
expected: Type.TAny;
|
|
548
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
549
|
+
type: Type.TLiteral<"binary">;
|
|
550
550
|
}>]>;
|
|
551
551
|
nodeId: Type.TString;
|
|
552
552
|
}>]>>;
|
|
@@ -651,56 +651,56 @@ export declare const MonitorDSLSchema: Type.TObject<{
|
|
|
651
651
|
type: Type.TLiteral<NodeType.ASSERTION>;
|
|
652
652
|
assertions: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
653
653
|
subject: Type.TLiteral<AssertionSubject.STATUS>;
|
|
654
|
-
predicate: Type.
|
|
655
|
-
|
|
656
|
-
operator: BinaryPredicateOperator
|
|
657
|
-
|
|
654
|
+
predicate: Type.TObject<{
|
|
655
|
+
expected: Type.TAny;
|
|
656
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
657
|
+
type: Type.TLiteral<"binary">;
|
|
658
658
|
}>;
|
|
659
659
|
nodeId: Type.TString;
|
|
660
660
|
}>, Type.TObject<{
|
|
661
661
|
subject: Type.TLiteral<AssertionSubject.HEADERS>;
|
|
662
662
|
headerName: Type.TString;
|
|
663
|
-
predicate: Type.TUnion<[Type.
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
}>, Type.
|
|
667
|
-
|
|
668
|
-
operator: BinaryPredicateOperator
|
|
669
|
-
|
|
663
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
664
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
665
|
+
type: Type.TLiteral<"unary">;
|
|
666
|
+
}>, Type.TObject<{
|
|
667
|
+
expected: Type.TAny;
|
|
668
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
669
|
+
type: Type.TLiteral<"binary">;
|
|
670
670
|
}>]>;
|
|
671
671
|
nodeId: Type.TString;
|
|
672
672
|
}>, Type.TObject<{
|
|
673
673
|
subject: Type.TLiteral<AssertionSubject.LATENCY>;
|
|
674
|
-
predicate: Type.
|
|
675
|
-
|
|
676
|
-
operator: BinaryPredicateOperator
|
|
677
|
-
|
|
674
|
+
predicate: Type.TObject<{
|
|
675
|
+
expected: Type.TAny;
|
|
676
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
677
|
+
type: Type.TLiteral<"binary">;
|
|
678
678
|
}>;
|
|
679
679
|
nodeId: Type.TString;
|
|
680
680
|
}>, Type.TObject<{
|
|
681
681
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
682
682
|
responseType: Type.TLiteral<ResponseFormat.JSON>;
|
|
683
683
|
path: Type.TArray<Type.TString>;
|
|
684
|
-
predicate: Type.TUnion<[Type.
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
}>, Type.
|
|
688
|
-
|
|
689
|
-
operator: BinaryPredicateOperator
|
|
690
|
-
|
|
684
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
685
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
686
|
+
type: Type.TLiteral<"unary">;
|
|
687
|
+
}>, Type.TObject<{
|
|
688
|
+
expected: Type.TAny;
|
|
689
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
690
|
+
type: Type.TLiteral<"binary">;
|
|
691
691
|
}>]>;
|
|
692
692
|
nodeId: Type.TString;
|
|
693
693
|
}>, Type.TObject<{
|
|
694
694
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
695
695
|
responseType: Type.TLiteral<ResponseFormat.XML>;
|
|
696
696
|
path: Type.TArray<Type.TString>;
|
|
697
|
-
predicate: Type.TUnion<[Type.
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
}>, Type.
|
|
701
|
-
|
|
702
|
-
operator: BinaryPredicateOperator
|
|
703
|
-
|
|
697
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
698
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
699
|
+
type: Type.TLiteral<"unary">;
|
|
700
|
+
}>, Type.TObject<{
|
|
701
|
+
expected: Type.TAny;
|
|
702
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
703
|
+
type: Type.TLiteral<"binary">;
|
|
704
704
|
}>]>;
|
|
705
705
|
nodeId: Type.TString;
|
|
706
706
|
}>]>>;
|
|
@@ -778,56 +778,56 @@ export declare const NodeResolvedSchema: Type.TUnion<[Type.TObject<{
|
|
|
778
778
|
type: Type.TLiteral<NodeType.ASSERTION>;
|
|
779
779
|
assertions: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
780
780
|
subject: Type.TLiteral<AssertionSubject.STATUS>;
|
|
781
|
-
predicate: Type.
|
|
782
|
-
|
|
783
|
-
operator: BinaryPredicateOperator
|
|
784
|
-
|
|
781
|
+
predicate: Type.TObject<{
|
|
782
|
+
expected: Type.TAny;
|
|
783
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
784
|
+
type: Type.TLiteral<"binary">;
|
|
785
785
|
}>;
|
|
786
786
|
nodeId: Type.TString;
|
|
787
787
|
}>, Type.TObject<{
|
|
788
788
|
subject: Type.TLiteral<AssertionSubject.HEADERS>;
|
|
789
789
|
headerName: Type.TString;
|
|
790
|
-
predicate: Type.TUnion<[Type.
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
}>, Type.
|
|
794
|
-
|
|
795
|
-
operator: BinaryPredicateOperator
|
|
796
|
-
|
|
790
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
791
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
792
|
+
type: Type.TLiteral<"unary">;
|
|
793
|
+
}>, Type.TObject<{
|
|
794
|
+
expected: Type.TAny;
|
|
795
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
796
|
+
type: Type.TLiteral<"binary">;
|
|
797
797
|
}>]>;
|
|
798
798
|
nodeId: Type.TString;
|
|
799
799
|
}>, Type.TObject<{
|
|
800
800
|
subject: Type.TLiteral<AssertionSubject.LATENCY>;
|
|
801
|
-
predicate: Type.
|
|
802
|
-
|
|
803
|
-
operator: BinaryPredicateOperator
|
|
804
|
-
|
|
801
|
+
predicate: Type.TObject<{
|
|
802
|
+
expected: Type.TAny;
|
|
803
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
804
|
+
type: Type.TLiteral<"binary">;
|
|
805
805
|
}>;
|
|
806
806
|
nodeId: Type.TString;
|
|
807
807
|
}>, Type.TObject<{
|
|
808
808
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
809
809
|
responseType: Type.TLiteral<ResponseFormat.JSON>;
|
|
810
810
|
path: Type.TArray<Type.TString>;
|
|
811
|
-
predicate: Type.TUnion<[Type.
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}>, Type.
|
|
815
|
-
|
|
816
|
-
operator: BinaryPredicateOperator
|
|
817
|
-
|
|
811
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
812
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
813
|
+
type: Type.TLiteral<"unary">;
|
|
814
|
+
}>, Type.TObject<{
|
|
815
|
+
expected: Type.TAny;
|
|
816
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
817
|
+
type: Type.TLiteral<"binary">;
|
|
818
818
|
}>]>;
|
|
819
819
|
nodeId: Type.TString;
|
|
820
820
|
}>, Type.TObject<{
|
|
821
821
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
822
822
|
responseType: Type.TLiteral<ResponseFormat.XML>;
|
|
823
823
|
path: Type.TArray<Type.TString>;
|
|
824
|
-
predicate: Type.TUnion<[Type.
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
}>, Type.
|
|
828
|
-
|
|
829
|
-
operator: BinaryPredicateOperator
|
|
830
|
-
|
|
824
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
825
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
826
|
+
type: Type.TLiteral<"unary">;
|
|
827
|
+
}>, Type.TObject<{
|
|
828
|
+
expected: Type.TAny;
|
|
829
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
830
|
+
type: Type.TLiteral<"binary">;
|
|
831
831
|
}>]>;
|
|
832
832
|
nodeId: Type.TString;
|
|
833
833
|
}>]>>;
|
|
@@ -899,56 +899,56 @@ export declare const ResolvedMonitorV1Schema: Type.TObject<{
|
|
|
899
899
|
type: Type.TLiteral<NodeType.ASSERTION>;
|
|
900
900
|
assertions: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
901
901
|
subject: Type.TLiteral<AssertionSubject.STATUS>;
|
|
902
|
-
predicate: Type.
|
|
903
|
-
|
|
904
|
-
operator: BinaryPredicateOperator
|
|
905
|
-
|
|
902
|
+
predicate: Type.TObject<{
|
|
903
|
+
expected: Type.TAny;
|
|
904
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
905
|
+
type: Type.TLiteral<"binary">;
|
|
906
906
|
}>;
|
|
907
907
|
nodeId: Type.TString;
|
|
908
908
|
}>, Type.TObject<{
|
|
909
909
|
subject: Type.TLiteral<AssertionSubject.HEADERS>;
|
|
910
910
|
headerName: Type.TString;
|
|
911
|
-
predicate: Type.TUnion<[Type.
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
}>, Type.
|
|
915
|
-
|
|
916
|
-
operator: BinaryPredicateOperator
|
|
917
|
-
|
|
911
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
912
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
913
|
+
type: Type.TLiteral<"unary">;
|
|
914
|
+
}>, Type.TObject<{
|
|
915
|
+
expected: Type.TAny;
|
|
916
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
917
|
+
type: Type.TLiteral<"binary">;
|
|
918
918
|
}>]>;
|
|
919
919
|
nodeId: Type.TString;
|
|
920
920
|
}>, Type.TObject<{
|
|
921
921
|
subject: Type.TLiteral<AssertionSubject.LATENCY>;
|
|
922
|
-
predicate: Type.
|
|
923
|
-
|
|
924
|
-
operator: BinaryPredicateOperator
|
|
925
|
-
|
|
922
|
+
predicate: Type.TObject<{
|
|
923
|
+
expected: Type.TAny;
|
|
924
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
925
|
+
type: Type.TLiteral<"binary">;
|
|
926
926
|
}>;
|
|
927
927
|
nodeId: Type.TString;
|
|
928
928
|
}>, Type.TObject<{
|
|
929
929
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
930
930
|
responseType: Type.TLiteral<ResponseFormat.JSON>;
|
|
931
931
|
path: Type.TArray<Type.TString>;
|
|
932
|
-
predicate: Type.TUnion<[Type.
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
}>, Type.
|
|
936
|
-
|
|
937
|
-
operator: BinaryPredicateOperator
|
|
938
|
-
|
|
932
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
933
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
934
|
+
type: Type.TLiteral<"unary">;
|
|
935
|
+
}>, Type.TObject<{
|
|
936
|
+
expected: Type.TAny;
|
|
937
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
938
|
+
type: Type.TLiteral<"binary">;
|
|
939
939
|
}>]>;
|
|
940
940
|
nodeId: Type.TString;
|
|
941
941
|
}>, Type.TObject<{
|
|
942
942
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
943
943
|
responseType: Type.TLiteral<ResponseFormat.XML>;
|
|
944
944
|
path: Type.TArray<Type.TString>;
|
|
945
|
-
predicate: Type.TUnion<[Type.
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
}>, Type.
|
|
949
|
-
|
|
950
|
-
operator: BinaryPredicateOperator
|
|
951
|
-
|
|
945
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
946
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
947
|
+
type: Type.TLiteral<"unary">;
|
|
948
|
+
}>, Type.TObject<{
|
|
949
|
+
expected: Type.TAny;
|
|
950
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
951
|
+
type: Type.TLiteral<"binary">;
|
|
952
952
|
}>]>;
|
|
953
953
|
nodeId: Type.TString;
|
|
954
954
|
}>]>>;
|
|
@@ -1025,56 +1025,56 @@ export declare const ResolvedMonitorSchema: Type.TObject<{
|
|
|
1025
1025
|
type: Type.TLiteral<NodeType.ASSERTION>;
|
|
1026
1026
|
assertions: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
1027
1027
|
subject: Type.TLiteral<AssertionSubject.STATUS>;
|
|
1028
|
-
predicate: Type.
|
|
1029
|
-
|
|
1030
|
-
operator: BinaryPredicateOperator
|
|
1031
|
-
|
|
1028
|
+
predicate: Type.TObject<{
|
|
1029
|
+
expected: Type.TAny;
|
|
1030
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
1031
|
+
type: Type.TLiteral<"binary">;
|
|
1032
1032
|
}>;
|
|
1033
1033
|
nodeId: Type.TString;
|
|
1034
1034
|
}>, Type.TObject<{
|
|
1035
1035
|
subject: Type.TLiteral<AssertionSubject.HEADERS>;
|
|
1036
1036
|
headerName: Type.TString;
|
|
1037
|
-
predicate: Type.TUnion<[Type.
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
}>, Type.
|
|
1041
|
-
|
|
1042
|
-
operator: BinaryPredicateOperator
|
|
1043
|
-
|
|
1037
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
1038
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
1039
|
+
type: Type.TLiteral<"unary">;
|
|
1040
|
+
}>, Type.TObject<{
|
|
1041
|
+
expected: Type.TAny;
|
|
1042
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
1043
|
+
type: Type.TLiteral<"binary">;
|
|
1044
1044
|
}>]>;
|
|
1045
1045
|
nodeId: Type.TString;
|
|
1046
1046
|
}>, Type.TObject<{
|
|
1047
1047
|
subject: Type.TLiteral<AssertionSubject.LATENCY>;
|
|
1048
|
-
predicate: Type.
|
|
1049
|
-
|
|
1050
|
-
operator: BinaryPredicateOperator
|
|
1051
|
-
|
|
1048
|
+
predicate: Type.TObject<{
|
|
1049
|
+
expected: Type.TAny;
|
|
1050
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
1051
|
+
type: Type.TLiteral<"binary">;
|
|
1052
1052
|
}>;
|
|
1053
1053
|
nodeId: Type.TString;
|
|
1054
1054
|
}>, Type.TObject<{
|
|
1055
1055
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
1056
1056
|
responseType: Type.TLiteral<ResponseFormat.JSON>;
|
|
1057
1057
|
path: Type.TArray<Type.TString>;
|
|
1058
|
-
predicate: Type.TUnion<[Type.
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
}>, Type.
|
|
1062
|
-
|
|
1063
|
-
operator: BinaryPredicateOperator
|
|
1064
|
-
|
|
1058
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
1059
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
1060
|
+
type: Type.TLiteral<"unary">;
|
|
1061
|
+
}>, Type.TObject<{
|
|
1062
|
+
expected: Type.TAny;
|
|
1063
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
1064
|
+
type: Type.TLiteral<"binary">;
|
|
1065
1065
|
}>]>;
|
|
1066
1066
|
nodeId: Type.TString;
|
|
1067
1067
|
}>, Type.TObject<{
|
|
1068
1068
|
subject: Type.TLiteral<AssertionSubject.BODY>;
|
|
1069
1069
|
responseType: Type.TLiteral<ResponseFormat.XML>;
|
|
1070
1070
|
path: Type.TArray<Type.TString>;
|
|
1071
|
-
predicate: Type.TUnion<[Type.
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
}>, Type.
|
|
1075
|
-
|
|
1076
|
-
operator: BinaryPredicateOperator
|
|
1077
|
-
|
|
1071
|
+
predicate: Type.TUnion<[Type.TObject<{
|
|
1072
|
+
operator: Type.TUnsafe<UnaryPredicateOperator>;
|
|
1073
|
+
type: Type.TLiteral<"unary">;
|
|
1074
|
+
}>, Type.TObject<{
|
|
1075
|
+
expected: Type.TAny;
|
|
1076
|
+
operator: Type.TUnsafe<BinaryPredicateOperator>;
|
|
1077
|
+
type: Type.TLiteral<"binary">;
|
|
1078
1078
|
}>]>;
|
|
1079
1079
|
nodeId: Type.TString;
|
|
1080
1080
|
}>]>>;
|
package/dist/schema.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Type } from "typebox";
|
|
2
|
-
import {
|
|
2
|
+
import { StringEnum } from "./shared.js";
|
|
3
3
|
import { MonitorNotificationSchema, } from "./notifications.js";
|
|
4
4
|
export { MonitorNotificationSchema } from "./notifications.js";
|
|
5
5
|
// Version constants
|
|
@@ -133,7 +133,7 @@ export const UnaryPredicateOperatorSchema = StringEnum([
|
|
|
133
133
|
UnaryPredicateOperator.IS_NOT_EMPTY,
|
|
134
134
|
], { $id: "UnaryPredicateOperator" });
|
|
135
135
|
export const UnaryPredicateSchema = Type.Object({
|
|
136
|
-
operator:
|
|
136
|
+
operator: UnaryPredicateOperatorSchema,
|
|
137
137
|
type: Type.Literal("unary"),
|
|
138
138
|
}, { $id: "UnaryPredicate" });
|
|
139
139
|
export const BinaryPredicateOperatorSchema = StringEnum([
|
|
@@ -152,7 +152,7 @@ export const BinaryPredicateOperatorSchema = StringEnum([
|
|
|
152
152
|
], { $id: "BinaryPredicateOperator" });
|
|
153
153
|
export const BinaryPredicateSchema = Type.Object({
|
|
154
154
|
expected: Type.Any(),
|
|
155
|
-
operator:
|
|
155
|
+
operator: BinaryPredicateOperatorSchema,
|
|
156
156
|
type: Type.Literal("binary"),
|
|
157
157
|
}, { $id: "BinaryPredicate" });
|
|
158
158
|
export var AssertionSubject;
|
|
@@ -177,21 +177,21 @@ const AssertionBaseFields = {
|
|
|
177
177
|
const StatusAssertionSchema = Type.Object({
|
|
178
178
|
...AssertionBaseFields,
|
|
179
179
|
subject: Type.Literal(AssertionSubject.STATUS),
|
|
180
|
-
predicate:
|
|
180
|
+
predicate: BinaryPredicateSchema,
|
|
181
181
|
});
|
|
182
182
|
const HeadersAssertionSchema = Type.Object({
|
|
183
183
|
...AssertionBaseFields,
|
|
184
184
|
subject: Type.Literal(AssertionSubject.HEADERS),
|
|
185
185
|
headerName: Type.String(),
|
|
186
186
|
predicate: Type.Union([
|
|
187
|
-
|
|
188
|
-
|
|
187
|
+
UnaryPredicateSchema,
|
|
188
|
+
BinaryPredicateSchema,
|
|
189
189
|
]),
|
|
190
190
|
});
|
|
191
191
|
const LatencyAssertionSchema = Type.Object({
|
|
192
192
|
...AssertionBaseFields,
|
|
193
193
|
subject: Type.Literal(AssertionSubject.LATENCY),
|
|
194
|
-
predicate:
|
|
194
|
+
predicate: BinaryPredicateSchema,
|
|
195
195
|
});
|
|
196
196
|
// Body assertions: path + responseType must be present and match
|
|
197
197
|
const BodyJsonAssertionSchema = Type.Object({
|
|
@@ -200,8 +200,8 @@ const BodyJsonAssertionSchema = Type.Object({
|
|
|
200
200
|
responseType: Type.Literal(ResponseFormat.JSON),
|
|
201
201
|
path: JSONPathSchema,
|
|
202
202
|
predicate: Type.Union([
|
|
203
|
-
|
|
204
|
-
|
|
203
|
+
UnaryPredicateSchema,
|
|
204
|
+
BinaryPredicateSchema,
|
|
205
205
|
]),
|
|
206
206
|
});
|
|
207
207
|
const BodyXmlAssertionSchema = Type.Object({
|
|
@@ -210,8 +210,8 @@ const BodyXmlAssertionSchema = Type.Object({
|
|
|
210
210
|
responseType: Type.Literal(ResponseFormat.XML),
|
|
211
211
|
path: XMLPathSchema,
|
|
212
212
|
predicate: Type.Union([
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
UnaryPredicateSchema,
|
|
214
|
+
BinaryPredicateSchema,
|
|
215
215
|
]),
|
|
216
216
|
});
|
|
217
217
|
//const BodyTextAssertionSchema = Type.Object({
|
package/dist/schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,SAAS,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAe,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAO,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EACL,yBAAyB,GAE1B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAG/D,oBAAoB;AACpB,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,CAAC;AAC7C,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,KAAK,CAAU,CAAC;AAE3D,8DAA8D;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC,MAAM,CAAC;IAC7C,GAAG,EAA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GAAG,IAAI,CAAC,CAAC;IAE3C;;;;;;;;;;;;;OAaG;IACH,IAAI,CAAC,IAAI,SAAS,MAAM,EACtB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,YAAY,GACrB,qBAAqB,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IAE3C;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,QAAQ,EAAE,iBAAiB,CAAC,SAAS,CAAC,GACrC,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAEpC;;;;;OAKG;IACH,KAAK,IAAI,UAAU,CAAC;CACrB;AAgHD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,aAAa,CAAC,EAAE,mBAAmB,EAAE,CAAC;CACvC,GAAG,qBAAqB,CAExB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpRequest, Wait, Assertion, } from "./builder.js";
|
|
2
2
|
import { START, END } from "./constants.js";
|
|
3
|
-
import { CURRENT_MONITOR_VERSION,
|
|
3
|
+
import { CURRENT_MONITOR_VERSION, } from "./schema.js";
|
|
4
4
|
import { createStateProxy } from "./assertions.js";
|
|
5
5
|
/**
|
|
6
6
|
* Internal implementation class for SequentialTestBuilder.
|
|
@@ -35,10 +35,7 @@ class SequentialTestBuilderImpl {
|
|
|
35
35
|
const stateProxy = createStateProxy(this.nodeNames);
|
|
36
36
|
const serializedAssertions = callback(stateProxy);
|
|
37
37
|
const nodeName = this.generateNodeName();
|
|
38
|
-
const node = Assertion(serializedAssertions
|
|
39
|
-
...assertion,
|
|
40
|
-
assertionType: ResponseFormat.JSON,
|
|
41
|
-
})));
|
|
38
|
+
const node = Assertion(serializedAssertions);
|
|
42
39
|
this.nodes.push({ ...node, id: nodeName });
|
|
43
40
|
this.nodeNames.push(nodeName);
|
|
44
41
|
return this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequential-builder.js","sourceRoot":"","sources":["../src/sequential-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,IAAI,EACJ,SAAS,GAGV,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EACL,uBAAuB,
|
|
1
|
+
{"version":3,"file":"sequential-builder.js","sourceRoot":"","sources":["../src/sequential-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,IAAI,EACJ,SAAS,GAGV,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EACL,uBAAuB,GAOxB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,gBAAgB,EAAmB,MAAM,iBAAiB,CAAC;AAyFpE;;GAEG;AACH,MAAM,yBAAyB;IAQnB;IALF,KAAK,GAAc,EAAE,CAAC;IACtB,SAAS,GAAa,EAAE,CAAC;IACzB,WAAW,GAAG,CAAC,CAAC;IAExB,YACU,MAKP;QALO,WAAM,GAAN,MAAM,CAKb;IACA,CAAC;IAEJ;;OAEG;IACK,gBAAgB;QACtB,OAAO,QAAQ,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;IACtC,CAAC;IAED,OAAO,CACL,IAAU,EACV,MAAyB;QAEzB,MAAM,IAAI,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,IAAI,EAAa,CAAC,CAAC;QAClD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1B,OAAO,IAA0D,CAAC;IACpE,CAAC;IAED,IAAI,CACF,IAAU,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AAI,yBAAyB,CAAC,MAAM,CAAC,CAAC;AAC/C,CAAC"}
|
package/package.json
CHANGED
package/src/schema.ts
CHANGED
|
@@ -179,7 +179,7 @@ export const UnaryPredicateOperatorSchema = StringEnum(
|
|
|
179
179
|
|
|
180
180
|
export const UnaryPredicateSchema = Type.Object(
|
|
181
181
|
{
|
|
182
|
-
operator:
|
|
182
|
+
operator: UnaryPredicateOperatorSchema,
|
|
183
183
|
type: Type.Literal("unary"),
|
|
184
184
|
},
|
|
185
185
|
{ $id: "UnaryPredicate" },
|
|
@@ -206,7 +206,7 @@ export const BinaryPredicateOperatorSchema = StringEnum(
|
|
|
206
206
|
export const BinaryPredicateSchema = Type.Object(
|
|
207
207
|
{
|
|
208
208
|
expected: Type.Any(),
|
|
209
|
-
operator:
|
|
209
|
+
operator: BinaryPredicateOperatorSchema,
|
|
210
210
|
type: Type.Literal("binary"),
|
|
211
211
|
},
|
|
212
212
|
{ $id: "BinaryPredicate" },
|
|
@@ -235,7 +235,7 @@ const AssertionBaseFields = {
|
|
|
235
235
|
const StatusAssertionSchema = Type.Object({
|
|
236
236
|
...AssertionBaseFields,
|
|
237
237
|
subject: Type.Literal(AssertionSubject.STATUS),
|
|
238
|
-
predicate:
|
|
238
|
+
predicate: BinaryPredicateSchema,
|
|
239
239
|
});
|
|
240
240
|
|
|
241
241
|
const HeadersAssertionSchema = Type.Object({
|
|
@@ -243,15 +243,15 @@ const HeadersAssertionSchema = Type.Object({
|
|
|
243
243
|
subject: Type.Literal(AssertionSubject.HEADERS),
|
|
244
244
|
headerName: Type.String(),
|
|
245
245
|
predicate: Type.Union([
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
UnaryPredicateSchema,
|
|
247
|
+
BinaryPredicateSchema,
|
|
248
248
|
]),
|
|
249
249
|
});
|
|
250
250
|
|
|
251
251
|
const LatencyAssertionSchema = Type.Object({
|
|
252
252
|
...AssertionBaseFields,
|
|
253
253
|
subject: Type.Literal(AssertionSubject.LATENCY),
|
|
254
|
-
predicate:
|
|
254
|
+
predicate: BinaryPredicateSchema,
|
|
255
255
|
});
|
|
256
256
|
|
|
257
257
|
// Body assertions: path + responseType must be present and match
|
|
@@ -261,8 +261,8 @@ const BodyJsonAssertionSchema = Type.Object({
|
|
|
261
261
|
responseType: Type.Literal(ResponseFormat.JSON),
|
|
262
262
|
path: JSONPathSchema,
|
|
263
263
|
predicate: Type.Union([
|
|
264
|
-
|
|
265
|
-
|
|
264
|
+
UnaryPredicateSchema,
|
|
265
|
+
BinaryPredicateSchema,
|
|
266
266
|
]),
|
|
267
267
|
});
|
|
268
268
|
|
|
@@ -272,8 +272,8 @@ const BodyXmlAssertionSchema = Type.Object({
|
|
|
272
272
|
responseType: Type.Literal(ResponseFormat.XML),
|
|
273
273
|
path: XMLPathSchema,
|
|
274
274
|
predicate: Type.Union([
|
|
275
|
-
|
|
276
|
-
|
|
275
|
+
UnaryPredicateSchema,
|
|
276
|
+
BinaryPredicateSchema,
|
|
277
277
|
]),
|
|
278
278
|
});
|
|
279
279
|
|
|
@@ -159,10 +159,7 @@ class SequentialTestBuilderImpl<
|
|
|
159
159
|
|
|
160
160
|
const nodeName = this.generateNodeName();
|
|
161
161
|
const node = Assertion(
|
|
162
|
-
serializedAssertions
|
|
163
|
-
...assertion,
|
|
164
|
-
assertionType: ResponseFormat.JSON,
|
|
165
|
-
})),
|
|
162
|
+
serializedAssertions
|
|
166
163
|
);
|
|
167
164
|
this.nodes.push({ ...node, id: nodeName } as NodeDSL);
|
|
168
165
|
this.nodeNames.push(nodeName);
|