@objectstack/spec 0.8.2 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -4
- package/dist/ai/devops-agent.zod.d.ts +1 -1
- package/dist/ai/feedback-loop.zod.d.ts +4293 -0
- package/dist/ai/feedback-loop.zod.d.ts.map +1 -0
- package/dist/ai/feedback-loop.zod.js +53 -0
- package/dist/ai/index.d.ts +1 -0
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +1 -0
- package/dist/api/documentation.zod.d.ts +1073 -0
- package/dist/api/documentation.zod.d.ts.map +1 -0
- package/dist/api/documentation.zod.js +487 -0
- package/dist/api/errors.zod.d.ts +6 -6
- package/dist/api/graphql.zod.d.ts +3 -3
- package/dist/api/hub.zod.d.ts +5239 -0
- package/dist/api/hub.zod.d.ts.map +1 -0
- package/dist/api/hub.zod.js +784 -0
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +4 -0
- package/dist/api/odata.zod.d.ts +1 -1
- package/dist/api/registry.example.d.ts +411 -0
- package/dist/api/registry.example.d.ts.map +1 -0
- package/dist/api/registry.example.js +470 -0
- package/dist/api/registry.zod.d.ts +2095 -0
- package/dist/api/registry.zod.d.ts.map +1 -0
- package/dist/api/registry.zod.js +755 -0
- package/dist/api/websocket.zod.d.ts +8 -8
- package/dist/auth/scim.zod.d.ts +3 -3
- package/dist/automation/flow.zod.d.ts +3 -3
- package/dist/contracts/index.d.ts +1 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +1 -0
- package/dist/contracts/schema-driver.d.ts +21 -0
- package/dist/contracts/schema-driver.d.ts.map +1 -0
- package/dist/contracts/schema-driver.js +2 -0
- package/dist/hub/composer.zod.d.ts +226 -0
- package/dist/hub/composer.zod.d.ts.map +1 -1
- package/dist/hub/hub-federation.zod.d.ts +764 -0
- package/dist/hub/hub-federation.zod.d.ts.map +1 -0
- package/dist/hub/hub-federation.zod.js +441 -0
- package/dist/hub/index.d.ts +2 -0
- package/dist/hub/index.d.ts.map +1 -1
- package/dist/hub/index.js +3 -0
- package/dist/hub/plugin-security.zod.d.ts +1029 -0
- package/dist/hub/plugin-security.zod.d.ts.map +1 -0
- package/dist/hub/plugin-security.zod.js +637 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/integration/connector/vercel.zod.d.ts +2 -2
- package/dist/qa/index.d.ts +11 -0
- package/dist/qa/index.d.ts.map +1 -0
- package/dist/qa/index.js +26 -0
- package/dist/qa/testing.zod.d.ts +345 -0
- package/dist/qa/testing.zod.d.ts.map +1 -0
- package/dist/qa/testing.zod.js +69 -0
- package/dist/stack.zod.d.ts +3395 -596
- package/dist/stack.zod.d.ts.map +1 -1
- package/dist/stack.zod.js +20 -2
- package/dist/system/index.d.ts +2 -0
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +2 -0
- package/dist/system/manifest.zod.d.ts +226 -0
- package/dist/system/manifest.zod.d.ts.map +1 -1
- package/dist/system/manifest.zod.js +8 -0
- package/dist/system/message-queue.zod.d.ts +2 -2
- package/dist/system/metadata-loader.zod.d.ts +1 -1
- package/dist/system/migration.zod.d.ts +4205 -0
- package/dist/system/migration.zod.d.ts.map +1 -0
- package/dist/system/migration.zod.js +70 -0
- package/dist/system/plugin-loading.zod.d.ts +575 -0
- package/dist/system/plugin-loading.zod.d.ts.map +1 -0
- package/dist/system/plugin-loading.zod.js +612 -0
- package/json-schema/ai/FeedbackLoop.json +7 -0
- package/json-schema/ai/Issue.json +7 -0
- package/json-schema/ai/MetadataSource.json +7 -0
- package/json-schema/ai/Resolution.json +7 -0
- package/json-schema/api/ApiChangelogEntry.json +7 -0
- package/json-schema/api/ApiDiscoveryQuery.json +7 -0
- package/json-schema/api/ApiDiscoveryResponse.json +7 -0
- package/json-schema/api/ApiDocumentationConfig.json +7 -0
- package/json-schema/api/ApiEndpointRegistration.json +7 -0
- package/json-schema/api/ApiMetadata.json +7 -0
- package/json-schema/api/ApiParameter.json +7 -0
- package/json-schema/api/ApiProtocolType.json +7 -0
- package/json-schema/api/ApiRegistry.json +7 -0
- package/json-schema/api/ApiRegistryEntry.json +7 -0
- package/json-schema/api/ApiResponse.json +7 -0
- package/json-schema/api/ApiTestCollection.json +7 -0
- package/json-schema/api/ApiTestRequest.json +7 -0
- package/json-schema/api/ApiTestingUiConfig.json +7 -0
- package/json-schema/api/ApiTestingUiType.json +7 -0
- package/json-schema/api/BuildStatusResponse.json +7 -0
- package/json-schema/api/CodeGenerationTemplate.json +7 -0
- package/json-schema/api/CompileManifestRequest.json +7 -0
- package/json-schema/api/CompileManifestResponse.json +7 -0
- package/json-schema/api/ConflictResolutionStrategy.json +7 -0
- package/json-schema/api/CreateSpaceRequest.json +7 -0
- package/json-schema/api/CreateTenantRequest.json +7 -0
- package/json-schema/api/GeneratedApiDocumentation.json +7 -0
- package/json-schema/api/GetBuildStatusRequest.json +7 -0
- package/json-schema/api/GetMarketplacePluginRequest.json +7 -0
- package/json-schema/api/GetPluginVersionsRequest.json +7 -0
- package/json-schema/api/GetPluginVersionsResponse.json +7 -0
- package/json-schema/api/HttpStatusCode.json +7 -0
- package/json-schema/api/HubHealthResponse.json +7 -0
- package/json-schema/api/HubMetricsResponse.json +7 -0
- package/json-schema/api/IssueLicenseRequest.json +7 -0
- package/json-schema/api/LicenseResponse.json +7 -0
- package/json-schema/api/ListLicensesRequest.json +7 -0
- package/json-schema/api/ListLicensesResponse.json +7 -0
- package/json-schema/api/ListMarketplaceRequest.json +7 -0
- package/json-schema/api/ListMarketplaceResponse.json +7 -0
- package/json-schema/api/ListSpacesRequest.json +7 -0
- package/json-schema/api/ListSpacesResponse.json +7 -0
- package/json-schema/api/ListTenantsRequest.json +7 -0
- package/json-schema/api/ListTenantsResponse.json +7 -0
- package/json-schema/api/MarketplacePluginResponse.json +7 -0
- package/json-schema/api/ObjectQLReference.json +7 -0
- package/json-schema/api/OpenApiSecurityScheme.json +7 -0
- package/json-schema/api/OpenApiServer.json +7 -0
- package/json-schema/api/OpenApiSpec.json +7 -0
- package/json-schema/api/PaginationRequest.json +7 -0
- package/json-schema/api/PaginationResponse.json +7 -0
- package/json-schema/api/PluginResponse.json +7 -0
- package/json-schema/api/PluginVersionInfo.json +7 -0
- package/json-schema/api/PublishPluginRequest.json +7 -0
- package/json-schema/api/RevokeLicenseRequest.json +7 -0
- package/json-schema/api/SchemaDefinition.json +7 -0
- package/json-schema/api/SearchPluginsRequest.json +7 -0
- package/json-schema/api/SearchPluginsResponse.json +7 -0
- package/json-schema/api/SpaceResponse.json +7 -0
- package/json-schema/api/TenantResponse.json +7 -0
- package/json-schema/api/UpdatePluginRequest.json +7 -0
- package/json-schema/api/UpdateSpaceRequest.json +7 -0
- package/json-schema/api/UpdateTenantRequest.json +7 -0
- package/json-schema/api/ValidateLicenseRequest.json +7 -0
- package/json-schema/api/ValidateLicenseResponse.json +7 -0
- package/json-schema/hub/DependencyConflict.json +7 -0
- package/json-schema/hub/DependencyGraph.json +7 -0
- package/json-schema/hub/DependencyGraphNode.json +7 -0
- package/json-schema/hub/DependencyResolutionResult.json +7 -0
- package/json-schema/hub/EdgeLocation.json +7 -0
- package/json-schema/hub/FederationTopology.json +7 -0
- package/json-schema/hub/GlobalRegistryEntry.json +7 -0
- package/json-schema/hub/HubInstance.json +7 -0
- package/json-schema/hub/PackageDependency.json +7 -0
- package/json-schema/hub/PluginProvenance.json +7 -0
- package/json-schema/hub/PluginTrustScore.json +7 -0
- package/json-schema/hub/Region.json +7 -0
- package/json-schema/hub/ReplicationJob.json +7 -0
- package/json-schema/hub/SBOM.json +7 -0
- package/json-schema/hub/SBOMEntry.json +7 -0
- package/json-schema/hub/SecurityPolicy.json +7 -0
- package/json-schema/hub/SecurityScanResult.json +7 -0
- package/json-schema/hub/SecurityVulnerability.json +7 -0
- package/json-schema/hub/TenantPlacementPolicy.json +7 -0
- package/json-schema/hub/VulnerabilitySeverity.json +7 -0
- package/json-schema/qa/TestAction.json +7 -0
- package/json-schema/qa/TestActionType.json +7 -0
- package/json-schema/qa/TestAssertion.json +7 -0
- package/json-schema/qa/TestAssertionType.json +7 -0
- package/json-schema/qa/TestContext.json +7 -0
- package/json-schema/qa/TestScenario.json +7 -0
- package/json-schema/qa/TestStep.json +7 -0
- package/json-schema/qa/TestSuite.json +7 -0
- package/json-schema/system/AddFieldOperation.json +7 -0
- package/json-schema/system/ChangeSet.json +7 -0
- package/json-schema/system/CreateObjectOperation.json +7 -0
- package/json-schema/system/DeleteObjectOperation.json +7 -0
- package/json-schema/system/ExecuteSqlOperation.json +7 -0
- package/json-schema/system/MigrationDependency.json +7 -0
- package/json-schema/system/MigrationOperation.json +7 -0
- package/json-schema/system/ModifyFieldOperation.json +7 -0
- package/json-schema/system/PluginCaching.json +7 -0
- package/json-schema/system/PluginCodeSplitting.json +7 -0
- package/json-schema/system/PluginDependencyResolution.json +7 -0
- package/json-schema/system/PluginDynamicImport.json +7 -0
- package/json-schema/system/PluginHotReload.json +7 -0
- package/json-schema/system/PluginInitialization.json +7 -0
- package/json-schema/system/PluginLoadingConfig.json +7 -0
- package/json-schema/system/PluginLoadingEvent.json +7 -0
- package/json-schema/system/PluginLoadingState.json +7 -0
- package/json-schema/system/PluginLoadingStrategy.json +7 -0
- package/json-schema/system/PluginPerformanceMonitoring.json +7 -0
- package/json-schema/system/PluginPreloadConfig.json +7 -0
- package/json-schema/system/PluginSandboxing.json +7 -0
- package/json-schema/system/RemoveFieldOperation.json +7 -0
- package/json-schema/system/RenameObjectOperation.json +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/qa/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,eAAe,CAAC"}
|
package/dist/qa/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Quality Assurance (QA) Protocol
|
|
4
|
+
*
|
|
5
|
+
* Defines how business logic and metadata are tested.
|
|
6
|
+
* Includes:
|
|
7
|
+
* - Test Scenarios
|
|
8
|
+
* - Test Cases
|
|
9
|
+
* - Expected Outcomes
|
|
10
|
+
*/
|
|
11
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
14
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
15
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
16
|
+
}
|
|
17
|
+
Object.defineProperty(o, k2, desc);
|
|
18
|
+
}) : (function(o, m, k, k2) {
|
|
19
|
+
if (k2 === undefined) k2 = k;
|
|
20
|
+
o[k2] = m[k];
|
|
21
|
+
}));
|
|
22
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
23
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
__exportStar(require("./testing.zod"), exports);
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const TestContextSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3
|
+
export declare const TestActionTypeSchema: z.ZodEnum<{
|
|
4
|
+
create_record: "create_record";
|
|
5
|
+
update_record: "update_record";
|
|
6
|
+
delete_record: "delete_record";
|
|
7
|
+
read_record: "read_record";
|
|
8
|
+
query_records: "query_records";
|
|
9
|
+
api_call: "api_call";
|
|
10
|
+
run_script: "run_script";
|
|
11
|
+
wait: "wait";
|
|
12
|
+
}>;
|
|
13
|
+
export declare const TestActionSchema: z.ZodObject<{
|
|
14
|
+
type: z.ZodEnum<{
|
|
15
|
+
create_record: "create_record";
|
|
16
|
+
update_record: "update_record";
|
|
17
|
+
delete_record: "delete_record";
|
|
18
|
+
read_record: "read_record";
|
|
19
|
+
query_records: "query_records";
|
|
20
|
+
api_call: "api_call";
|
|
21
|
+
run_script: "run_script";
|
|
22
|
+
wait: "wait";
|
|
23
|
+
}>;
|
|
24
|
+
target: z.ZodString;
|
|
25
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
26
|
+
user: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export declare const TestAssertionTypeSchema: z.ZodEnum<{
|
|
29
|
+
error: "error";
|
|
30
|
+
lt: "lt";
|
|
31
|
+
lte: "lte";
|
|
32
|
+
gt: "gt";
|
|
33
|
+
gte: "gte";
|
|
34
|
+
equals: "equals";
|
|
35
|
+
not_equals: "not_equals";
|
|
36
|
+
contains: "contains";
|
|
37
|
+
not_contains: "not_contains";
|
|
38
|
+
is_null: "is_null";
|
|
39
|
+
not_null: "not_null";
|
|
40
|
+
}>;
|
|
41
|
+
export declare const TestAssertionSchema: z.ZodObject<{
|
|
42
|
+
field: z.ZodString;
|
|
43
|
+
operator: z.ZodEnum<{
|
|
44
|
+
error: "error";
|
|
45
|
+
lt: "lt";
|
|
46
|
+
lte: "lte";
|
|
47
|
+
gt: "gt";
|
|
48
|
+
gte: "gte";
|
|
49
|
+
equals: "equals";
|
|
50
|
+
not_equals: "not_equals";
|
|
51
|
+
contains: "contains";
|
|
52
|
+
not_contains: "not_contains";
|
|
53
|
+
is_null: "is_null";
|
|
54
|
+
not_null: "not_null";
|
|
55
|
+
}>;
|
|
56
|
+
expectedValue: z.ZodUnknown;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export declare const TestStepSchema: z.ZodObject<{
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
description: z.ZodOptional<z.ZodString>;
|
|
61
|
+
action: z.ZodObject<{
|
|
62
|
+
type: z.ZodEnum<{
|
|
63
|
+
create_record: "create_record";
|
|
64
|
+
update_record: "update_record";
|
|
65
|
+
delete_record: "delete_record";
|
|
66
|
+
read_record: "read_record";
|
|
67
|
+
query_records: "query_records";
|
|
68
|
+
api_call: "api_call";
|
|
69
|
+
run_script: "run_script";
|
|
70
|
+
wait: "wait";
|
|
71
|
+
}>;
|
|
72
|
+
target: z.ZodString;
|
|
73
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
74
|
+
user: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
77
|
+
field: z.ZodString;
|
|
78
|
+
operator: z.ZodEnum<{
|
|
79
|
+
error: "error";
|
|
80
|
+
lt: "lt";
|
|
81
|
+
lte: "lte";
|
|
82
|
+
gt: "gt";
|
|
83
|
+
gte: "gte";
|
|
84
|
+
equals: "equals";
|
|
85
|
+
not_equals: "not_equals";
|
|
86
|
+
contains: "contains";
|
|
87
|
+
not_contains: "not_contains";
|
|
88
|
+
is_null: "is_null";
|
|
89
|
+
not_null: "not_null";
|
|
90
|
+
}>;
|
|
91
|
+
expectedValue: z.ZodUnknown;
|
|
92
|
+
}, z.core.$strip>>>;
|
|
93
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
export declare const TestScenarioSchema: z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
description: z.ZodOptional<z.ZodString>;
|
|
99
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
100
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
101
|
+
name: z.ZodString;
|
|
102
|
+
description: z.ZodOptional<z.ZodString>;
|
|
103
|
+
action: z.ZodObject<{
|
|
104
|
+
type: z.ZodEnum<{
|
|
105
|
+
create_record: "create_record";
|
|
106
|
+
update_record: "update_record";
|
|
107
|
+
delete_record: "delete_record";
|
|
108
|
+
read_record: "read_record";
|
|
109
|
+
query_records: "query_records";
|
|
110
|
+
api_call: "api_call";
|
|
111
|
+
run_script: "run_script";
|
|
112
|
+
wait: "wait";
|
|
113
|
+
}>;
|
|
114
|
+
target: z.ZodString;
|
|
115
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
116
|
+
user: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
119
|
+
field: z.ZodString;
|
|
120
|
+
operator: z.ZodEnum<{
|
|
121
|
+
error: "error";
|
|
122
|
+
lt: "lt";
|
|
123
|
+
lte: "lte";
|
|
124
|
+
gt: "gt";
|
|
125
|
+
gte: "gte";
|
|
126
|
+
equals: "equals";
|
|
127
|
+
not_equals: "not_equals";
|
|
128
|
+
contains: "contains";
|
|
129
|
+
not_contains: "not_contains";
|
|
130
|
+
is_null: "is_null";
|
|
131
|
+
not_null: "not_null";
|
|
132
|
+
}>;
|
|
133
|
+
expectedValue: z.ZodUnknown;
|
|
134
|
+
}, z.core.$strip>>>;
|
|
135
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
136
|
+
}, z.core.$strip>>>;
|
|
137
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
138
|
+
name: z.ZodString;
|
|
139
|
+
description: z.ZodOptional<z.ZodString>;
|
|
140
|
+
action: z.ZodObject<{
|
|
141
|
+
type: z.ZodEnum<{
|
|
142
|
+
create_record: "create_record";
|
|
143
|
+
update_record: "update_record";
|
|
144
|
+
delete_record: "delete_record";
|
|
145
|
+
read_record: "read_record";
|
|
146
|
+
query_records: "query_records";
|
|
147
|
+
api_call: "api_call";
|
|
148
|
+
run_script: "run_script";
|
|
149
|
+
wait: "wait";
|
|
150
|
+
}>;
|
|
151
|
+
target: z.ZodString;
|
|
152
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
153
|
+
user: z.ZodOptional<z.ZodString>;
|
|
154
|
+
}, z.core.$strip>;
|
|
155
|
+
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
156
|
+
field: z.ZodString;
|
|
157
|
+
operator: z.ZodEnum<{
|
|
158
|
+
error: "error";
|
|
159
|
+
lt: "lt";
|
|
160
|
+
lte: "lte";
|
|
161
|
+
gt: "gt";
|
|
162
|
+
gte: "gte";
|
|
163
|
+
equals: "equals";
|
|
164
|
+
not_equals: "not_equals";
|
|
165
|
+
contains: "contains";
|
|
166
|
+
not_contains: "not_contains";
|
|
167
|
+
is_null: "is_null";
|
|
168
|
+
not_null: "not_null";
|
|
169
|
+
}>;
|
|
170
|
+
expectedValue: z.ZodUnknown;
|
|
171
|
+
}, z.core.$strip>>>;
|
|
172
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
173
|
+
}, z.core.$strip>>;
|
|
174
|
+
teardown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
175
|
+
name: z.ZodString;
|
|
176
|
+
description: z.ZodOptional<z.ZodString>;
|
|
177
|
+
action: z.ZodObject<{
|
|
178
|
+
type: z.ZodEnum<{
|
|
179
|
+
create_record: "create_record";
|
|
180
|
+
update_record: "update_record";
|
|
181
|
+
delete_record: "delete_record";
|
|
182
|
+
read_record: "read_record";
|
|
183
|
+
query_records: "query_records";
|
|
184
|
+
api_call: "api_call";
|
|
185
|
+
run_script: "run_script";
|
|
186
|
+
wait: "wait";
|
|
187
|
+
}>;
|
|
188
|
+
target: z.ZodString;
|
|
189
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
190
|
+
user: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, z.core.$strip>;
|
|
192
|
+
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
193
|
+
field: z.ZodString;
|
|
194
|
+
operator: z.ZodEnum<{
|
|
195
|
+
error: "error";
|
|
196
|
+
lt: "lt";
|
|
197
|
+
lte: "lte";
|
|
198
|
+
gt: "gt";
|
|
199
|
+
gte: "gte";
|
|
200
|
+
equals: "equals";
|
|
201
|
+
not_equals: "not_equals";
|
|
202
|
+
contains: "contains";
|
|
203
|
+
not_contains: "not_contains";
|
|
204
|
+
is_null: "is_null";
|
|
205
|
+
not_null: "not_null";
|
|
206
|
+
}>;
|
|
207
|
+
expectedValue: z.ZodUnknown;
|
|
208
|
+
}, z.core.$strip>>>;
|
|
209
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
210
|
+
}, z.core.$strip>>>;
|
|
211
|
+
requires: z.ZodOptional<z.ZodObject<{
|
|
212
|
+
params: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
213
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
215
|
+
}, z.core.$strip>;
|
|
216
|
+
export declare const TestSuiteSchema: z.ZodObject<{
|
|
217
|
+
name: z.ZodString;
|
|
218
|
+
scenarios: z.ZodArray<z.ZodObject<{
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
name: z.ZodString;
|
|
221
|
+
description: z.ZodOptional<z.ZodString>;
|
|
222
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
223
|
+
setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
224
|
+
name: z.ZodString;
|
|
225
|
+
description: z.ZodOptional<z.ZodString>;
|
|
226
|
+
action: z.ZodObject<{
|
|
227
|
+
type: z.ZodEnum<{
|
|
228
|
+
create_record: "create_record";
|
|
229
|
+
update_record: "update_record";
|
|
230
|
+
delete_record: "delete_record";
|
|
231
|
+
read_record: "read_record";
|
|
232
|
+
query_records: "query_records";
|
|
233
|
+
api_call: "api_call";
|
|
234
|
+
run_script: "run_script";
|
|
235
|
+
wait: "wait";
|
|
236
|
+
}>;
|
|
237
|
+
target: z.ZodString;
|
|
238
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
239
|
+
user: z.ZodOptional<z.ZodString>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
242
|
+
field: z.ZodString;
|
|
243
|
+
operator: z.ZodEnum<{
|
|
244
|
+
error: "error";
|
|
245
|
+
lt: "lt";
|
|
246
|
+
lte: "lte";
|
|
247
|
+
gt: "gt";
|
|
248
|
+
gte: "gte";
|
|
249
|
+
equals: "equals";
|
|
250
|
+
not_equals: "not_equals";
|
|
251
|
+
contains: "contains";
|
|
252
|
+
not_contains: "not_contains";
|
|
253
|
+
is_null: "is_null";
|
|
254
|
+
not_null: "not_null";
|
|
255
|
+
}>;
|
|
256
|
+
expectedValue: z.ZodUnknown;
|
|
257
|
+
}, z.core.$strip>>>;
|
|
258
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
259
|
+
}, z.core.$strip>>>;
|
|
260
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
261
|
+
name: z.ZodString;
|
|
262
|
+
description: z.ZodOptional<z.ZodString>;
|
|
263
|
+
action: z.ZodObject<{
|
|
264
|
+
type: z.ZodEnum<{
|
|
265
|
+
create_record: "create_record";
|
|
266
|
+
update_record: "update_record";
|
|
267
|
+
delete_record: "delete_record";
|
|
268
|
+
read_record: "read_record";
|
|
269
|
+
query_records: "query_records";
|
|
270
|
+
api_call: "api_call";
|
|
271
|
+
run_script: "run_script";
|
|
272
|
+
wait: "wait";
|
|
273
|
+
}>;
|
|
274
|
+
target: z.ZodString;
|
|
275
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
276
|
+
user: z.ZodOptional<z.ZodString>;
|
|
277
|
+
}, z.core.$strip>;
|
|
278
|
+
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
279
|
+
field: z.ZodString;
|
|
280
|
+
operator: z.ZodEnum<{
|
|
281
|
+
error: "error";
|
|
282
|
+
lt: "lt";
|
|
283
|
+
lte: "lte";
|
|
284
|
+
gt: "gt";
|
|
285
|
+
gte: "gte";
|
|
286
|
+
equals: "equals";
|
|
287
|
+
not_equals: "not_equals";
|
|
288
|
+
contains: "contains";
|
|
289
|
+
not_contains: "not_contains";
|
|
290
|
+
is_null: "is_null";
|
|
291
|
+
not_null: "not_null";
|
|
292
|
+
}>;
|
|
293
|
+
expectedValue: z.ZodUnknown;
|
|
294
|
+
}, z.core.$strip>>>;
|
|
295
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
296
|
+
}, z.core.$strip>>;
|
|
297
|
+
teardown: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
298
|
+
name: z.ZodString;
|
|
299
|
+
description: z.ZodOptional<z.ZodString>;
|
|
300
|
+
action: z.ZodObject<{
|
|
301
|
+
type: z.ZodEnum<{
|
|
302
|
+
create_record: "create_record";
|
|
303
|
+
update_record: "update_record";
|
|
304
|
+
delete_record: "delete_record";
|
|
305
|
+
read_record: "read_record";
|
|
306
|
+
query_records: "query_records";
|
|
307
|
+
api_call: "api_call";
|
|
308
|
+
run_script: "run_script";
|
|
309
|
+
wait: "wait";
|
|
310
|
+
}>;
|
|
311
|
+
target: z.ZodString;
|
|
312
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
313
|
+
user: z.ZodOptional<z.ZodString>;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
316
|
+
field: z.ZodString;
|
|
317
|
+
operator: z.ZodEnum<{
|
|
318
|
+
error: "error";
|
|
319
|
+
lt: "lt";
|
|
320
|
+
lte: "lte";
|
|
321
|
+
gt: "gt";
|
|
322
|
+
gte: "gte";
|
|
323
|
+
equals: "equals";
|
|
324
|
+
not_equals: "not_equals";
|
|
325
|
+
contains: "contains";
|
|
326
|
+
not_contains: "not_contains";
|
|
327
|
+
is_null: "is_null";
|
|
328
|
+
not_null: "not_null";
|
|
329
|
+
}>;
|
|
330
|
+
expectedValue: z.ZodUnknown;
|
|
331
|
+
}, z.core.$strip>>>;
|
|
332
|
+
capture: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
333
|
+
}, z.core.$strip>>>;
|
|
334
|
+
requires: z.ZodOptional<z.ZodObject<{
|
|
335
|
+
params: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
336
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
337
|
+
}, z.core.$strip>>;
|
|
338
|
+
}, z.core.$strip>>;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
export type TestSuite = z.infer<typeof TestSuiteSchema>;
|
|
341
|
+
export type TestScenario = z.infer<typeof TestScenarioSchema>;
|
|
342
|
+
export type TestStep = z.infer<typeof TestStepSchema>;
|
|
343
|
+
export type TestAction = z.infer<typeof TestActionSchema>;
|
|
344
|
+
export type TestAssertion = z.infer<typeof TestAssertionSchema>;
|
|
345
|
+
//# sourceMappingURL=testing.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.zod.d.ts","sourceRoot":"","sources":["../../src/qa/testing.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB,wCAA0F,CAAC;AAGzH,eAAO,MAAM,oBAAoB;;;;;;;;;EAS/B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;iBAK3B,CAAC;AAGH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAYlC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;iBAI9B,CAAC;AAIH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOzB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe7B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestSuiteSchema = exports.TestScenarioSchema = exports.TestStepSchema = exports.TestAssertionSchema = exports.TestAssertionTypeSchema = exports.TestActionSchema = exports.TestActionTypeSchema = exports.TestContextSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// --- Building Blocks ---
|
|
6
|
+
exports.TestContextSchema = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).describe('Initial context or variables for the test');
|
|
7
|
+
// Action Types
|
|
8
|
+
exports.TestActionTypeSchema = zod_1.z.enum([
|
|
9
|
+
'create_record',
|
|
10
|
+
'update_record',
|
|
11
|
+
'delete_record',
|
|
12
|
+
'read_record',
|
|
13
|
+
'query_records',
|
|
14
|
+
'api_call',
|
|
15
|
+
'run_script',
|
|
16
|
+
'wait' // Testing async processes
|
|
17
|
+
]);
|
|
18
|
+
exports.TestActionSchema = zod_1.z.object({
|
|
19
|
+
type: exports.TestActionTypeSchema,
|
|
20
|
+
target: zod_1.z.string().describe('Target Object, API Endpoint, or Function Name'),
|
|
21
|
+
payload: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe('Data to send or use'),
|
|
22
|
+
user: zod_1.z.string().optional().describe('Run as specific user/role') // Impersonation
|
|
23
|
+
});
|
|
24
|
+
// Assertion Types
|
|
25
|
+
exports.TestAssertionTypeSchema = zod_1.z.enum([
|
|
26
|
+
'equals',
|
|
27
|
+
'not_equals',
|
|
28
|
+
'contains',
|
|
29
|
+
'not_contains',
|
|
30
|
+
'is_null',
|
|
31
|
+
'not_null',
|
|
32
|
+
'gt',
|
|
33
|
+
'gte',
|
|
34
|
+
'lt',
|
|
35
|
+
'lte',
|
|
36
|
+
'error' // Expecting an error
|
|
37
|
+
]);
|
|
38
|
+
exports.TestAssertionSchema = zod_1.z.object({
|
|
39
|
+
field: zod_1.z.string().describe('Field path in the result to check (e.g. "body.data.0.status")'),
|
|
40
|
+
operator: exports.TestAssertionTypeSchema,
|
|
41
|
+
expectedValue: zod_1.z.unknown()
|
|
42
|
+
});
|
|
43
|
+
// --- Test Structure ---
|
|
44
|
+
exports.TestStepSchema = zod_1.z.object({
|
|
45
|
+
name: zod_1.z.string(),
|
|
46
|
+
description: zod_1.z.string().optional(),
|
|
47
|
+
action: exports.TestActionSchema,
|
|
48
|
+
assertions: zod_1.z.array(exports.TestAssertionSchema).optional(),
|
|
49
|
+
// Capture outputs to variables for subsequent steps
|
|
50
|
+
capture: zod_1.z.record(zod_1.z.string(), zod_1.z.string()).optional().describe('Map result fields to context variables: { "newId": "body._id" }')
|
|
51
|
+
});
|
|
52
|
+
exports.TestScenarioSchema = zod_1.z.object({
|
|
53
|
+
id: zod_1.z.string(),
|
|
54
|
+
name: zod_1.z.string(),
|
|
55
|
+
description: zod_1.z.string().optional(),
|
|
56
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(), // e.g. "critical", "regression", "crm"
|
|
57
|
+
setup: zod_1.z.array(exports.TestStepSchema).optional().describe('Steps to run before main test'),
|
|
58
|
+
steps: zod_1.z.array(exports.TestStepSchema).describe('Main test sequence'),
|
|
59
|
+
teardown: zod_1.z.array(exports.TestStepSchema).optional().describe('Steps to cleanup'),
|
|
60
|
+
// Environment requirements
|
|
61
|
+
requires: zod_1.z.object({
|
|
62
|
+
params: zod_1.z.array(zod_1.z.string()).optional(), // Required env vars or params
|
|
63
|
+
plugins: zod_1.z.array(zod_1.z.string()).optional()
|
|
64
|
+
}).optional()
|
|
65
|
+
});
|
|
66
|
+
exports.TestSuiteSchema = zod_1.z.object({
|
|
67
|
+
name: zod_1.z.string(),
|
|
68
|
+
scenarios: zod_1.z.array(exports.TestScenarioSchema)
|
|
69
|
+
});
|