@rulebricks/sdk 1.5.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseClient.d.ts +39 -0
- package/BaseClient.js +59 -0
- package/Client.d.ts +30 -43
- package/Client.js +23 -19
- package/api/errors/BadRequestError.d.ts +3 -5
- package/api/errors/BadRequestError.js +26 -13
- package/api/errors/ForbiddenError.d.ts +3 -5
- package/api/errors/ForbiddenError.js +26 -13
- package/api/errors/InternalServerError.d.ts +3 -5
- package/api/errors/InternalServerError.js +26 -13
- package/api/errors/NotFoundError.d.ts +3 -5
- package/api/errors/NotFoundError.js +26 -13
- package/api/errors/index.d.ts +4 -4
- package/api/errors/index.js +4 -4
- package/api/index.d.ts +3 -3
- package/api/index.js +3 -3
- package/api/resources/assets/client/Client.d.ts +76 -39
- package/api/resources/assets/client/Client.js +184 -59
- package/api/resources/assets/client/index.d.ts +1 -1
- package/api/resources/assets/client/index.js +15 -0
- package/api/resources/assets/client/requests/ExportManifestRequest.d.ts +23 -0
- package/api/resources/assets/client/requests/ExportManifestRequest.js +3 -0
- package/api/resources/assets/client/requests/ImportManifestRequest.d.ts +48 -0
- package/api/resources/assets/client/requests/ImportManifestRequest.js +3 -0
- package/api/resources/assets/client/requests/index.d.ts +2 -0
- package/api/resources/assets/index.d.ts +3 -2
- package/api/resources/assets/index.js +3 -2
- package/api/resources/assets/resources/flows/client/Client.d.ts +13 -30
- package/api/resources/assets/resources/flows/client/Client.js +48 -58
- package/api/resources/assets/resources/flows/index.d.ts +1 -1
- package/api/resources/assets/resources/flows/index.js +1 -1
- package/api/resources/assets/resources/folders/client/Client.d.ts +19 -34
- package/api/resources/assets/resources/folders/client/Client.js +89 -115
- package/api/resources/assets/resources/folders/client/index.d.ts +1 -1
- package/api/resources/assets/resources/folders/client/index.js +1 -1
- package/api/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +0 -3
- package/api/resources/assets/resources/folders/client/requests/DeleteFolderRequest.js +1 -3
- package/api/resources/assets/resources/folders/client/requests/UpsertFolderRequest.d.ts +0 -3
- package/api/resources/assets/resources/folders/client/requests/UpsertFolderRequest.js +1 -3
- package/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -2
- package/api/resources/assets/resources/folders/index.d.ts +1 -1
- package/api/resources/assets/resources/folders/index.js +1 -1
- package/api/resources/assets/resources/index.d.ts +5 -5
- package/api/resources/assets/resources/index.js +23 -13
- package/api/resources/assets/resources/rules/client/Client.d.ts +31 -42
- package/api/resources/assets/resources/rules/client/Client.js +123 -158
- package/api/resources/assets/resources/rules/client/index.d.ts +1 -1
- package/api/resources/assets/resources/rules/client/index.js +1 -1
- package/api/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +1 -4
- package/api/resources/assets/resources/rules/client/requests/DeleteRuleRequest.js +1 -3
- package/api/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +2 -4
- package/api/resources/assets/resources/rules/client/requests/ImportRuleRequest.js +1 -3
- package/api/resources/assets/resources/rules/client/requests/ListRulesRequest.d.ts +10 -0
- package/api/resources/assets/resources/rules/client/requests/ListRulesRequest.js +3 -0
- package/api/resources/assets/resources/rules/client/requests/PullRulesRequest.d.ts +10 -0
- package/api/resources/assets/resources/rules/client/requests/PullRulesRequest.js +3 -0
- package/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -4
- package/api/resources/assets/resources/rules/index.d.ts +1 -1
- package/api/resources/assets/resources/rules/index.js +1 -1
- package/api/resources/assets/types/ExportAssetsResponse.d.ts +2 -0
- package/api/resources/assets/types/ExportAssetsResponse.js +3 -0
- package/api/resources/assets/types/index.d.ts +1 -0
- package/api/resources/assets/types/index.js +17 -0
- package/api/resources/contexts/client/Client.d.ts +167 -0
- package/api/resources/contexts/client/Client.js +563 -0
- package/api/resources/contexts/client/index.d.ts +1 -0
- package/api/resources/contexts/client/index.js +17 -0
- package/api/resources/contexts/client/requests/CascadeContextRequest.d.ts +15 -0
- package/api/resources/contexts/client/requests/CascadeContextRequest.js +3 -0
- package/api/resources/contexts/client/requests/DeleteInstanceContextsRequest.d.ts +13 -0
- package/api/resources/contexts/client/requests/DeleteInstanceContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/GetHistoryContextsRequest.d.ts +17 -0
- package/api/resources/contexts/client/requests/GetHistoryContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/GetInstanceContextsRequest.d.ts +13 -0
- package/api/resources/contexts/client/requests/GetInstanceContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/GetPendingContextsRequest.d.ts +13 -0
- package/api/resources/contexts/client/requests/GetPendingContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/SolveContextFlowRequest.d.ts +20 -0
- package/api/resources/contexts/client/requests/SolveContextFlowRequest.js +3 -0
- package/api/resources/contexts/client/requests/SolveContextRuleRequest.d.ts +20 -0
- package/api/resources/contexts/client/requests/SolveContextRuleRequest.js +3 -0
- package/api/resources/contexts/client/requests/SubmitContextsRequest.d.ts +19 -0
- package/api/resources/contexts/client/requests/SubmitContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/index.d.ts +8 -0
- package/api/resources/contexts/index.d.ts +2 -0
- package/api/resources/contexts/index.js +18 -0
- package/api/resources/contexts/resources/admin/client/Client.d.ts +102 -0
- package/api/resources/contexts/resources/admin/client/Client.js +353 -0
- package/api/resources/contexts/resources/admin/client/index.d.ts +1 -0
- package/api/resources/contexts/resources/admin/client/index.js +17 -0
- package/api/resources/contexts/resources/admin/client/requests/CreateContextRequest.d.ts +55 -0
- package/api/resources/contexts/resources/admin/client/requests/CreateContextRequest.js +12 -0
- package/api/resources/contexts/resources/admin/client/requests/DeleteAdminRequest.d.ts +10 -0
- package/api/resources/contexts/resources/admin/client/requests/DeleteAdminRequest.js +3 -0
- package/api/resources/contexts/resources/admin/client/requests/GetAdminRequest.d.ts +10 -0
- package/api/resources/contexts/resources/admin/client/requests/GetAdminRequest.js +3 -0
- package/api/resources/contexts/resources/admin/client/requests/UpdateContextRequest.d.ts +49 -0
- package/api/resources/contexts/resources/admin/client/requests/UpdateContextRequest.js +12 -0
- package/api/resources/contexts/resources/admin/client/requests/index.d.ts +4 -0
- package/api/resources/contexts/resources/admin/index.d.ts +1 -0
- package/api/resources/contexts/resources/admin/index.js +17 -0
- package/api/resources/contexts/resources/index.d.ts +4 -0
- package/api/resources/contexts/resources/index.js +43 -0
- package/api/resources/contexts/resources/relationships/client/Client.d.ts +67 -0
- package/api/resources/contexts/resources/relationships/client/Client.js +252 -0
- package/api/resources/contexts/resources/relationships/client/index.d.ts +1 -0
- package/api/resources/contexts/resources/relationships/client/index.js +17 -0
- package/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.d.ts +33 -0
- package/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.js +13 -0
- package/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.d.ts +13 -0
- package/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.js +3 -0
- package/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.d.ts +10 -0
- package/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.js +3 -0
- package/api/resources/contexts/resources/relationships/client/requests/index.d.ts +3 -0
- package/api/resources/contexts/resources/relationships/index.d.ts +1 -0
- package/api/resources/contexts/resources/relationships/index.js +17 -0
- package/api/resources/decisions/client/Client.d.ts +19 -34
- package/api/resources/decisions/client/Client.js +79 -74
- package/api/resources/decisions/client/index.d.ts +1 -1
- package/api/resources/decisions/client/index.js +1 -1
- package/api/resources/decisions/client/requests/QueryDecisionsRequest.d.ts +36 -0
- package/api/resources/decisions/client/requests/QueryDecisionsRequest.js +3 -0
- package/api/resources/decisions/client/requests/index.d.ts +1 -1
- package/api/resources/decisions/index.d.ts +2 -1
- package/api/resources/decisions/index.js +2 -1
- package/api/resources/decisions/types/QueryDecisionsRequestCount.d.ts +5 -0
- package/api/resources/decisions/types/QueryDecisionsRequestCount.js +8 -0
- package/api/resources/decisions/types/index.d.ts +1 -0
- package/api/resources/decisions/types/index.js +17 -0
- package/api/resources/flows/client/Client.d.ts +23 -36
- package/api/resources/flows/client/Client.js +62 -65
- package/api/resources/flows/client/index.d.ts +1 -1
- package/api/resources/flows/client/index.js +15 -0
- package/api/resources/flows/client/requests/ExecuteFlowsRequest.d.ts +19 -0
- package/api/resources/flows/client/requests/ExecuteFlowsRequest.js +3 -0
- package/api/resources/flows/client/requests/index.d.ts +1 -0
- package/api/resources/flows/index.d.ts +1 -1
- package/api/resources/flows/index.js +1 -1
- package/api/resources/index.d.ts +17 -11
- package/api/resources/index.js +35 -19
- package/api/resources/rules/client/Client.d.ts +55 -56
- package/api/resources/rules/client/Client.js +130 -138
- package/api/resources/rules/client/index.d.ts +1 -1
- package/api/resources/rules/client/index.js +15 -0
- package/api/resources/rules/client/requests/BulkSolveRulesRequest.d.ts +21 -0
- package/api/resources/rules/client/requests/BulkSolveRulesRequest.js +3 -0
- package/api/resources/rules/client/requests/SolveRulesRequest.d.ts +19 -0
- package/api/resources/rules/client/requests/SolveRulesRequest.js +3 -0
- package/api/resources/rules/client/requests/index.d.ts +2 -0
- package/api/resources/rules/index.d.ts +1 -1
- package/api/resources/rules/index.js +1 -1
- package/api/resources/tests/client/Client.d.ts +13 -21
- package/api/resources/tests/client/Client.js +11 -12
- package/api/resources/tests/index.d.ts +2 -2
- package/api/resources/tests/index.js +2 -2
- package/api/resources/tests/resources/flows/client/Client.d.ts +41 -50
- package/api/resources/tests/resources/flows/client/Client.js +117 -136
- package/api/resources/tests/resources/flows/client/index.d.ts +1 -1
- package/api/resources/tests/resources/flows/client/index.js +15 -0
- package/api/resources/tests/resources/flows/client/requests/CreateFlowsRequest.d.ts +22 -0
- package/api/resources/tests/resources/flows/client/requests/CreateFlowsRequest.js +3 -0
- package/api/resources/tests/resources/flows/client/requests/DeleteFlowsRequest.d.ts +13 -0
- package/api/resources/tests/resources/flows/client/requests/DeleteFlowsRequest.js +3 -0
- package/api/resources/tests/resources/flows/client/requests/ListFlowsRequest.d.ts +10 -0
- package/api/resources/tests/resources/flows/client/requests/ListFlowsRequest.js +3 -0
- package/api/resources/tests/resources/flows/client/requests/index.d.ts +3 -0
- package/api/resources/tests/resources/flows/index.d.ts +1 -1
- package/api/resources/tests/resources/flows/index.js +1 -1
- package/api/resources/tests/resources/index.d.ts +4 -2
- package/api/resources/tests/resources/index.js +24 -9
- package/api/resources/tests/resources/rules/client/Client.d.ts +41 -50
- package/api/resources/tests/resources/rules/client/Client.js +117 -136
- package/api/resources/tests/resources/rules/client/index.d.ts +1 -1
- package/api/resources/tests/resources/rules/client/index.js +15 -0
- package/api/resources/tests/resources/rules/client/requests/CreateRulesRequest.d.ts +22 -0
- package/api/resources/tests/resources/rules/client/requests/CreateRulesRequest.js +3 -0
- package/api/resources/tests/resources/rules/client/requests/DeleteRulesRequest.d.ts +13 -0
- package/api/resources/tests/resources/rules/client/requests/DeleteRulesRequest.js +3 -0
- package/api/resources/tests/resources/rules/client/requests/ListRulesRequest.d.ts +10 -0
- package/api/resources/tests/resources/rules/client/requests/ListRulesRequest.js +3 -0
- package/api/resources/tests/resources/rules/client/requests/index.d.ts +3 -0
- package/api/resources/tests/resources/rules/index.d.ts +1 -1
- package/api/resources/tests/resources/rules/index.js +1 -1
- package/api/resources/users/client/Client.d.ts +57 -35
- package/api/resources/users/client/Client.js +166 -58
- package/api/resources/users/client/index.d.ts +1 -1
- package/api/resources/users/client/index.js +1 -1
- package/api/resources/users/client/requests/CreateUserRequest.d.ts +28 -0
- package/api/resources/users/client/requests/CreateUserRequest.js +3 -0
- package/api/resources/users/client/requests/UserInviteRequest.d.ts +17 -11
- package/api/resources/users/client/requests/UserInviteRequest.js +12 -3
- package/api/resources/users/client/requests/index.d.ts +2 -1
- package/api/resources/users/index.d.ts +2 -3
- package/api/resources/users/index.js +2 -3
- package/api/resources/users/resources/groups/client/Client.d.ts +16 -32
- package/api/resources/users/resources/groups/client/Client.js +68 -86
- package/api/resources/users/resources/groups/client/index.d.ts +1 -1
- package/api/resources/users/resources/groups/client/index.js +1 -1
- package/api/resources/users/resources/groups/client/requests/CreateUserGroupRequest.d.ts +0 -3
- package/api/resources/users/resources/groups/client/requests/CreateUserGroupRequest.js +1 -3
- package/api/resources/users/resources/groups/client/requests/index.d.ts +1 -1
- package/api/resources/users/resources/groups/index.d.ts +1 -1
- package/api/resources/users/resources/groups/index.js +1 -1
- package/api/resources/users/resources/index.d.ts +2 -2
- package/api/resources/users/resources/index.js +19 -9
- package/api/resources/values/client/Client.d.ts +24 -39
- package/api/resources/values/client/Client.js +99 -129
- package/api/resources/values/client/index.d.ts +1 -1
- package/api/resources/values/client/index.js +1 -1
- package/api/resources/values/client/requests/DeleteValuesRequest.d.ts +10 -0
- package/api/resources/values/client/requests/DeleteValuesRequest.js +3 -0
- package/api/resources/values/client/requests/ListValuesRequest.d.ts +17 -0
- package/api/resources/values/client/requests/ListValuesRequest.js +3 -0
- package/api/resources/values/client/requests/UpdateValuesRequest.d.ts +6 -9
- package/api/resources/values/client/requests/UpdateValuesRequest.js +1 -3
- package/api/resources/values/client/requests/index.d.ts +3 -3
- package/api/resources/values/index.d.ts +1 -1
- package/api/resources/values/index.js +1 -1
- package/api/types/BulkRuleResponseItem.d.ts +4 -5
- package/api/types/BulkRuleResponseItem.js +1 -3
- package/api/types/CascadeContextResponse.d.ts +10 -0
- package/api/types/CascadeContextResponse.js +3 -0
- package/api/types/CascadeResult.d.ts +29 -0
- package/api/types/CascadeResult.js +12 -0
- package/api/types/ContextBase.d.ts +33 -0
- package/api/types/ContextBase.js +12 -0
- package/api/types/ContextDetail.d.ts +58 -0
- package/api/types/ContextDetail.js +3 -0
- package/api/types/ContextInstanceHistory.d.ts +10 -0
- package/api/types/ContextInstanceHistory.js +3 -0
- package/api/types/ContextInstanceHistoryEntry.d.ts +9 -0
- package/api/types/ContextInstanceHistoryEntry.js +3 -0
- package/api/types/ContextInstancePendingEvaluation.d.ts +29 -0
- package/api/types/ContextInstancePendingEvaluation.js +12 -0
- package/api/types/ContextInstancePendingResponse.d.ts +8 -0
- package/api/types/ContextInstancePendingResponse.js +3 -0
- package/api/types/ContextInstanceState.d.ts +31 -0
- package/api/types/ContextInstanceState.js +12 -0
- package/api/types/ContextListResponse.d.ts +2 -0
- package/api/types/ContextListResponse.js +3 -0
- package/api/types/ContextRelationshipBase.d.ts +21 -0
- package/api/types/ContextRelationshipBase.js +13 -0
- package/api/types/ContextRelationshipIncoming.d.ts +11 -0
- package/api/types/ContextRelationshipIncoming.js +3 -0
- package/api/types/ContextRelationshipOutgoing.d.ts +11 -0
- package/api/types/ContextRelationshipOutgoing.js +3 -0
- package/api/types/ContextRelationshipsResponse.d.ts +5 -0
- package/api/types/ContextRelationshipsResponse.js +3 -0
- package/api/types/ContextSchema.d.ts +10 -0
- package/api/types/ContextSchema.js +3 -0
- package/api/types/ContextSchemaField.d.ts +35 -0
- package/api/types/ContextSchemaField.js +16 -0
- package/api/types/CreateContextResponse.d.ts +2 -0
- package/api/types/CreateContextResponse.js +3 -0
- package/api/types/CreateRelationshipResponse.d.ts +2 -0
- package/api/types/CreateRelationshipResponse.js +3 -0
- package/api/types/CreateTestRequest.d.ts +0 -3
- package/api/types/CreateTestRequest.js +1 -3
- package/api/types/CreateUserResponse.d.ts +26 -0
- package/api/types/CreateUserResponse.js +3 -0
- package/api/types/DecisionLog.d.ts +21 -5
- package/api/types/DecisionLog.js +1 -3
- package/api/types/DecisionLogResponse.d.ts +7 -4
- package/api/types/DecisionLogResponse.js +1 -3
- package/api/types/DeleteContextInstanceResponse.d.ts +9 -0
- package/api/types/DeleteContextInstanceResponse.js +3 -0
- package/api/types/DeleteContextResponse.d.ts +13 -0
- package/api/types/DeleteContextResponse.js +3 -0
- package/api/types/DeleteRelationshipResponse.d.ts +4 -0
- package/api/types/DeleteRelationshipResponse.js +3 -0
- package/api/types/DynamicRequestPayload.d.ts +1 -4
- package/api/types/DynamicRequestPayload.js +1 -3
- package/api/types/DynamicResponsePayload.d.ts +1 -4
- package/api/types/DynamicResponsePayload.js +1 -3
- package/api/types/DynamicValue.d.ts +11 -7
- package/api/types/DynamicValue.js +1 -3
- package/api/types/DynamicValueListResponse.d.ts +2 -5
- package/api/types/DynamicValueListResponse.js +1 -3
- package/api/types/Error_.d.ts +0 -3
- package/api/types/Error_.js +1 -3
- package/api/types/ExportManifestPreviewResponse.d.ts +51 -0
- package/api/types/ExportManifestPreviewResponse.js +3 -0
- package/api/types/ExportManifestResponse.d.ts +9 -0
- package/api/types/ExportManifestResponse.js +3 -0
- package/api/types/FlowBase.d.ts +0 -3
- package/api/types/FlowBase.js +1 -3
- package/api/types/FlowDetail.d.ts +30 -5
- package/api/types/FlowDetail.js +1 -3
- package/api/types/FlowExecutionError.d.ts +0 -3
- package/api/types/FlowExecutionError.js +1 -3
- package/api/types/FlowListResponse.d.ts +2 -5
- package/api/types/FlowListResponse.js +1 -3
- package/api/types/Folder.d.ts +1 -4
- package/api/types/Folder.js +1 -3
- package/api/types/FolderListResponse.d.ts +2 -5
- package/api/types/FolderListResponse.js +1 -3
- package/api/types/ImportManifestResponse.d.ts +38 -0
- package/api/types/ImportManifestResponse.js +3 -0
- package/api/types/ParallelSolveRequest.d.ts +11 -5
- package/api/types/ParallelSolveRequest.js +1 -3
- package/api/types/ParallelSolveResponse.d.ts +2 -5
- package/api/types/ParallelSolveResponse.js +1 -3
- package/api/types/RuleBase.d.ts +0 -3
- package/api/types/RuleBase.js +1 -3
- package/api/types/RuleDetail.d.ts +21 -7
- package/api/types/RuleDetail.js +1 -3
- package/api/types/RuleExport.d.ts +1 -4
- package/api/types/RuleExport.js +1 -3
- package/api/types/RuleListResponse.d.ts +2 -5
- package/api/types/RuleListResponse.js +1 -3
- package/api/types/RuleUsage.d.ts +1 -4
- package/api/types/RuleUsage.js +1 -3
- package/api/types/SchemaField.d.ts +18 -7
- package/api/types/SchemaField.js +13 -3
- package/api/types/SolveContextFlowResponse.d.ts +23 -0
- package/api/types/SolveContextFlowResponse.js +12 -0
- package/api/types/SolveContextRuleResponse.d.ts +26 -0
- package/api/types/SolveContextRuleResponse.js +12 -0
- package/api/types/SubmitContextDataRequest.d.ts +4 -0
- package/api/types/SubmitContextDataRequest.js +3 -0
- package/api/types/SubmitContextDataResponse.d.ts +30 -0
- package/api/types/SubmitContextDataResponse.js +12 -0
- package/api/types/SuccessMessage.d.ts +0 -3
- package/api/types/SuccessMessage.js +1 -3
- package/api/types/Test.d.ts +25 -6
- package/api/types/Test.js +1 -3
- package/api/types/TestListResponse.d.ts +2 -5
- package/api/types/TestListResponse.js +1 -3
- package/api/types/UpdateContextResponse.d.ts +2 -0
- package/api/types/UpdateContextResponse.js +3 -0
- package/api/types/UsageStatistics.d.ts +5 -8
- package/api/types/UsageStatistics.js +1 -3
- package/api/types/UserDetail.d.ts +19 -0
- package/api/types/UserDetail.js +3 -0
- package/api/types/UserGroup.d.ts +0 -3
- package/api/types/UserGroup.js +1 -3
- package/api/types/UserGroupListResponse.d.ts +2 -5
- package/api/types/UserGroupListResponse.js +1 -3
- package/api/types/UserInviteResponse.d.ts +11 -5
- package/api/types/UserInviteResponse.js +1 -3
- package/api/types/UserListResponse.d.ts +5 -0
- package/api/types/UserListResponse.js +3 -0
- package/api/types/ValueLimits.d.ts +4 -7
- package/api/types/ValueLimits.js +1 -3
- package/api/types/index.d.ts +63 -39
- package/api/types/index.js +63 -39
- package/auth/HeaderAuthProvider.d.ts +16 -0
- package/auth/HeaderAuthProvider.js +71 -0
- package/auth/index.d.ts +1 -0
- package/auth/index.js +5 -0
- package/core/auth/AuthProvider.d.ts +7 -0
- package/core/auth/AuthRequest.d.ts +9 -0
- package/core/auth/BasicAuth.d.ts +8 -0
- package/core/auth/BasicAuth.js +27 -0
- package/core/auth/BearerToken.d.ts +7 -0
- package/core/auth/BearerToken.js +16 -0
- package/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/core/auth/NoOpAuthProvider.js +9 -0
- package/core/auth/index.d.ts +5 -0
- package/core/auth/index.js +9 -0
- package/core/base64.d.ts +2 -0
- package/core/base64.js +26 -0
- package/core/exports.d.ts +1 -0
- package/core/exports.js +17 -0
- package/core/fetcher/APIResponse.d.ts +11 -1
- package/core/fetcher/BinaryResponse.d.ts +19 -0
- package/core/fetcher/BinaryResponse.js +17 -0
- package/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/core/fetcher/EndpointSupplier.js +22 -0
- package/core/fetcher/Fetcher.d.ts +17 -7
- package/core/fetcher/Fetcher.js +244 -28
- package/core/fetcher/Headers.d.ts +2 -0
- package/core/fetcher/Headers.js +84 -0
- package/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/core/fetcher/HttpResponsePromise.js +103 -0
- package/core/fetcher/RawResponse.d.ts +29 -0
- package/core/fetcher/RawResponse.js +44 -0
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +4 -9
- package/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/core/fetcher/getErrorResponseBody.js +45 -0
- package/core/fetcher/getFetchFn.d.ts +1 -4
- package/core/fetcher/getFetchFn.js +2 -44
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.d.ts +1 -1
- package/core/fetcher/getRequestBody.js +9 -6
- package/core/fetcher/getResponseBody.js +43 -29
- package/core/fetcher/index.d.ts +11 -5
- package/core/fetcher/index.js +15 -7
- package/core/fetcher/makeRequest.d.ts +1 -1
- package/core/fetcher/makeRequest.js +4 -6
- package/core/fetcher/requestWithRetries.js +38 -12
- package/core/fetcher/signals.d.ts +1 -8
- package/core/fetcher/signals.js +2 -15
- package/core/headers.d.ts +2 -0
- package/core/headers.js +31 -0
- package/core/index.d.ts +6 -3
- package/core/index.js +24 -11
- package/core/json.d.ts +1 -1
- package/core/json.js +2 -2
- package/core/logging/exports.d.ts +18 -0
- package/core/logging/exports.js +45 -0
- package/core/logging/index.d.ts +1 -0
- package/core/logging/index.js +17 -0
- package/core/logging/logger.d.ts +126 -0
- package/core/logging/logger.js +144 -0
- package/core/runtime/index.d.ts +1 -1
- package/core/runtime/index.js +2 -2
- package/core/runtime/runtime.js +11 -11
- package/core/url/encodePathParam.d.ts +1 -0
- package/core/url/encodePathParam.js +21 -0
- package/core/url/index.d.ts +3 -0
- package/core/url/index.js +9 -0
- package/core/url/join.d.ts +1 -0
- package/core/url/join.js +68 -0
- package/core/url/qs.d.ts +6 -0
- package/core/url/qs.js +64 -0
- package/dist/BaseClient.d.ts +39 -0
- package/dist/BaseClient.js +59 -0
- package/dist/Client.d.ts +30 -43
- package/dist/Client.js +23 -19
- package/dist/api/errors/BadRequestError.d.ts +3 -5
- package/dist/api/errors/BadRequestError.js +26 -13
- package/dist/api/errors/ForbiddenError.d.ts +3 -5
- package/dist/api/errors/ForbiddenError.js +26 -13
- package/dist/api/errors/InternalServerError.d.ts +3 -5
- package/dist/api/errors/InternalServerError.js +26 -13
- package/dist/api/errors/NotFoundError.d.ts +3 -5
- package/dist/api/errors/NotFoundError.js +26 -13
- package/dist/api/errors/index.d.ts +4 -4
- package/dist/api/errors/index.js +4 -4
- package/dist/api/index.d.ts +3 -3
- package/dist/api/index.js +3 -3
- package/dist/api/resources/assets/client/Client.d.ts +76 -39
- package/dist/api/resources/assets/client/Client.js +184 -59
- package/dist/api/resources/assets/client/index.d.ts +1 -1
- package/dist/api/resources/assets/client/index.js +15 -0
- package/dist/api/resources/assets/client/requests/ExportManifestRequest.d.ts +23 -0
- package/dist/api/resources/assets/client/requests/ExportManifestRequest.js +3 -0
- package/dist/api/resources/assets/client/requests/ImportManifestRequest.d.ts +48 -0
- package/dist/api/resources/assets/client/requests/ImportManifestRequest.js +3 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +2 -0
- package/dist/api/resources/assets/index.d.ts +3 -2
- package/dist/api/resources/assets/index.js +3 -2
- package/dist/api/resources/assets/resources/flows/client/Client.d.ts +13 -30
- package/dist/api/resources/assets/resources/flows/client/Client.js +48 -58
- package/dist/api/resources/assets/resources/flows/index.d.ts +1 -1
- package/dist/api/resources/assets/resources/flows/index.js +1 -1
- package/dist/api/resources/assets/resources/folders/client/Client.d.ts +19 -34
- package/dist/api/resources/assets/resources/folders/client/Client.js +89 -115
- package/dist/api/resources/assets/resources/folders/client/index.d.ts +1 -1
- package/dist/api/resources/assets/resources/folders/client/index.js +1 -1
- package/dist/api/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +0 -3
- package/dist/api/resources/assets/resources/folders/client/requests/DeleteFolderRequest.js +1 -3
- package/dist/api/resources/assets/resources/folders/client/requests/UpsertFolderRequest.d.ts +0 -3
- package/dist/api/resources/assets/resources/folders/client/requests/UpsertFolderRequest.js +1 -3
- package/dist/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -2
- package/dist/api/resources/assets/resources/folders/index.d.ts +1 -1
- package/dist/api/resources/assets/resources/folders/index.js +1 -1
- package/dist/api/resources/assets/resources/index.d.ts +5 -5
- package/dist/api/resources/assets/resources/index.js +23 -13
- package/dist/api/resources/assets/resources/rules/client/Client.d.ts +31 -42
- package/dist/api/resources/assets/resources/rules/client/Client.js +123 -158
- package/dist/api/resources/assets/resources/rules/client/index.d.ts +1 -1
- package/dist/api/resources/assets/resources/rules/client/index.js +1 -1
- package/dist/api/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +1 -4
- package/dist/api/resources/assets/resources/rules/client/requests/DeleteRuleRequest.js +1 -3
- package/dist/api/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +2 -4
- package/dist/api/resources/assets/resources/rules/client/requests/ImportRuleRequest.js +1 -3
- package/dist/api/resources/assets/resources/rules/client/requests/ListRulesRequest.d.ts +10 -0
- package/dist/api/resources/assets/resources/rules/client/requests/ListRulesRequest.js +3 -0
- package/dist/api/resources/assets/resources/rules/client/requests/PullRulesRequest.d.ts +10 -0
- package/dist/api/resources/assets/resources/rules/client/requests/PullRulesRequest.js +3 -0
- package/dist/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -4
- package/dist/api/resources/assets/resources/rules/index.d.ts +1 -1
- package/dist/api/resources/assets/resources/rules/index.js +1 -1
- package/dist/api/resources/assets/types/ExportAssetsResponse.d.ts +2 -0
- package/dist/api/resources/assets/types/ExportAssetsResponse.js +3 -0
- package/dist/api/resources/assets/types/index.d.ts +1 -0
- package/dist/api/resources/assets/types/index.js +17 -0
- package/dist/api/resources/contexts/client/Client.d.ts +167 -0
- package/dist/api/resources/contexts/client/Client.js +563 -0
- package/dist/api/resources/contexts/client/index.d.ts +1 -0
- package/dist/api/resources/contexts/client/index.js +17 -0
- package/dist/api/resources/contexts/client/requests/CascadeContextRequest.d.ts +15 -0
- package/dist/api/resources/contexts/client/requests/CascadeContextRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/DeleteInstanceContextsRequest.d.ts +13 -0
- package/dist/api/resources/contexts/client/requests/DeleteInstanceContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/GetHistoryContextsRequest.d.ts +17 -0
- package/dist/api/resources/contexts/client/requests/GetHistoryContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/GetInstanceContextsRequest.d.ts +13 -0
- package/dist/api/resources/contexts/client/requests/GetInstanceContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/GetPendingContextsRequest.d.ts +13 -0
- package/dist/api/resources/contexts/client/requests/GetPendingContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/SolveContextFlowRequest.d.ts +20 -0
- package/dist/api/resources/contexts/client/requests/SolveContextFlowRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/SolveContextRuleRequest.d.ts +20 -0
- package/dist/api/resources/contexts/client/requests/SolveContextRuleRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/SubmitContextsRequest.d.ts +19 -0
- package/dist/api/resources/contexts/client/requests/SubmitContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/index.d.ts +8 -0
- package/dist/api/resources/contexts/index.d.ts +2 -0
- package/dist/api/resources/contexts/index.js +18 -0
- package/dist/api/resources/contexts/resources/admin/client/Client.d.ts +102 -0
- package/dist/api/resources/contexts/resources/admin/client/Client.js +353 -0
- package/dist/api/resources/contexts/resources/admin/client/index.d.ts +1 -0
- package/dist/api/resources/contexts/resources/admin/client/index.js +17 -0
- package/dist/api/resources/contexts/resources/admin/client/requests/CreateContextRequest.d.ts +55 -0
- package/dist/api/resources/contexts/resources/admin/client/requests/CreateContextRequest.js +12 -0
- package/dist/api/resources/contexts/resources/admin/client/requests/DeleteAdminRequest.d.ts +10 -0
- package/dist/api/resources/contexts/resources/admin/client/requests/DeleteAdminRequest.js +3 -0
- package/dist/api/resources/contexts/resources/admin/client/requests/GetAdminRequest.d.ts +10 -0
- package/dist/api/resources/contexts/resources/admin/client/requests/GetAdminRequest.js +3 -0
- package/dist/api/resources/contexts/resources/admin/client/requests/UpdateContextRequest.d.ts +49 -0
- package/dist/api/resources/contexts/resources/admin/client/requests/UpdateContextRequest.js +12 -0
- package/dist/api/resources/contexts/resources/admin/client/requests/index.d.ts +4 -0
- package/dist/api/resources/contexts/resources/admin/index.d.ts +1 -0
- package/dist/api/resources/contexts/resources/admin/index.js +17 -0
- package/dist/api/resources/contexts/resources/index.d.ts +4 -0
- package/dist/api/resources/contexts/resources/index.js +43 -0
- package/dist/api/resources/contexts/resources/relationships/client/Client.d.ts +67 -0
- package/dist/api/resources/contexts/resources/relationships/client/Client.js +252 -0
- package/dist/api/resources/contexts/resources/relationships/client/index.d.ts +1 -0
- package/dist/api/resources/contexts/resources/relationships/client/index.js +17 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.d.ts +33 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.js +13 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.d.ts +13 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.js +3 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.d.ts +10 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.js +3 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/index.d.ts +3 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/index.js +2 -0
- package/dist/api/resources/contexts/resources/relationships/index.d.ts +1 -0
- package/dist/api/resources/contexts/resources/relationships/index.js +17 -0
- package/dist/api/resources/decisions/client/Client.d.ts +19 -34
- package/dist/api/resources/decisions/client/Client.js +79 -74
- package/dist/api/resources/decisions/client/index.d.ts +1 -1
- package/dist/api/resources/decisions/client/index.js +1 -1
- package/dist/api/resources/decisions/client/requests/QueryDecisionsRequest.d.ts +36 -0
- package/dist/api/resources/decisions/client/requests/QueryDecisionsRequest.js +3 -0
- package/dist/api/resources/decisions/client/requests/index.d.ts +1 -1
- package/dist/api/resources/decisions/index.d.ts +2 -1
- package/dist/api/resources/decisions/index.js +2 -1
- package/dist/api/resources/decisions/types/QueryDecisionsRequestCount.d.ts +5 -0
- package/dist/api/resources/decisions/types/QueryDecisionsRequestCount.js +8 -0
- package/dist/api/resources/decisions/types/index.d.ts +1 -0
- package/dist/api/resources/decisions/types/index.js +17 -0
- package/dist/api/resources/flows/client/Client.d.ts +23 -36
- package/dist/api/resources/flows/client/Client.js +62 -65
- package/dist/api/resources/flows/client/index.d.ts +1 -1
- package/dist/api/resources/flows/client/index.js +15 -0
- package/dist/api/resources/flows/client/requests/ExecuteFlowsRequest.d.ts +19 -0
- package/dist/api/resources/flows/client/requests/ExecuteFlowsRequest.js +3 -0
- package/dist/api/resources/flows/client/requests/index.d.ts +1 -0
- package/dist/api/resources/flows/client/requests/index.js +2 -0
- package/dist/api/resources/flows/index.d.ts +1 -1
- package/dist/api/resources/flows/index.js +1 -1
- package/dist/api/resources/index.d.ts +17 -11
- package/dist/api/resources/index.js +35 -19
- package/dist/api/resources/rules/client/Client.d.ts +55 -56
- package/dist/api/resources/rules/client/Client.js +130 -138
- package/dist/api/resources/rules/client/index.d.ts +1 -1
- package/dist/api/resources/rules/client/index.js +15 -0
- package/dist/api/resources/rules/client/requests/BulkSolveRulesRequest.d.ts +21 -0
- package/dist/api/resources/rules/client/requests/BulkSolveRulesRequest.js +3 -0
- package/dist/api/resources/rules/client/requests/SolveRulesRequest.d.ts +19 -0
- package/dist/api/resources/rules/client/requests/SolveRulesRequest.js +3 -0
- package/dist/api/resources/rules/client/requests/index.d.ts +2 -0
- package/dist/api/resources/rules/client/requests/index.js +2 -0
- package/dist/api/resources/rules/index.d.ts +1 -1
- package/dist/api/resources/rules/index.js +1 -1
- package/dist/api/resources/tests/client/Client.d.ts +13 -21
- package/dist/api/resources/tests/client/Client.js +11 -12
- package/dist/api/resources/tests/index.d.ts +2 -2
- package/dist/api/resources/tests/index.js +2 -2
- package/dist/api/resources/tests/resources/flows/client/Client.d.ts +41 -50
- package/dist/api/resources/tests/resources/flows/client/Client.js +117 -136
- package/dist/api/resources/tests/resources/flows/client/index.d.ts +1 -1
- package/dist/api/resources/tests/resources/flows/client/index.js +15 -0
- package/dist/api/resources/tests/resources/flows/client/requests/CreateFlowsRequest.d.ts +22 -0
- package/dist/api/resources/tests/resources/flows/client/requests/CreateFlowsRequest.js +3 -0
- package/dist/api/resources/tests/resources/flows/client/requests/DeleteFlowsRequest.d.ts +13 -0
- package/dist/api/resources/tests/resources/flows/client/requests/DeleteFlowsRequest.js +3 -0
- package/dist/api/resources/tests/resources/flows/client/requests/ListFlowsRequest.d.ts +10 -0
- package/dist/api/resources/tests/resources/flows/client/requests/ListFlowsRequest.js +3 -0
- package/dist/api/resources/tests/resources/flows/client/requests/index.d.ts +3 -0
- package/dist/api/resources/tests/resources/flows/client/requests/index.js +2 -0
- package/dist/api/resources/tests/resources/flows/index.d.ts +1 -1
- package/dist/api/resources/tests/resources/flows/index.js +1 -1
- package/dist/api/resources/tests/resources/index.d.ts +4 -2
- package/dist/api/resources/tests/resources/index.js +24 -9
- package/dist/api/resources/tests/resources/rules/client/Client.d.ts +41 -50
- package/dist/api/resources/tests/resources/rules/client/Client.js +117 -136
- package/dist/api/resources/tests/resources/rules/client/index.d.ts +1 -1
- package/dist/api/resources/tests/resources/rules/client/index.js +15 -0
- package/dist/api/resources/tests/resources/rules/client/requests/CreateRulesRequest.d.ts +22 -0
- package/dist/api/resources/tests/resources/rules/client/requests/CreateRulesRequest.js +3 -0
- package/dist/api/resources/tests/resources/rules/client/requests/DeleteRulesRequest.d.ts +13 -0
- package/dist/api/resources/tests/resources/rules/client/requests/DeleteRulesRequest.js +3 -0
- package/dist/api/resources/tests/resources/rules/client/requests/ListRulesRequest.d.ts +10 -0
- package/dist/api/resources/tests/resources/rules/client/requests/ListRulesRequest.js +3 -0
- package/dist/api/resources/tests/resources/rules/client/requests/index.d.ts +3 -0
- package/dist/api/resources/tests/resources/rules/client/requests/index.js +2 -0
- package/dist/api/resources/tests/resources/rules/index.d.ts +1 -1
- package/dist/api/resources/tests/resources/rules/index.js +1 -1
- package/dist/api/resources/users/client/Client.d.ts +57 -35
- package/dist/api/resources/users/client/Client.js +166 -58
- package/dist/api/resources/users/client/index.d.ts +1 -1
- package/dist/api/resources/users/client/index.js +1 -1
- package/dist/api/resources/users/client/requests/CreateUserRequest.d.ts +28 -0
- package/dist/api/resources/users/client/requests/CreateUserRequest.js +3 -0
- package/dist/api/resources/users/client/requests/UserInviteRequest.d.ts +17 -11
- package/dist/api/resources/users/client/requests/UserInviteRequest.js +12 -3
- package/dist/api/resources/users/client/requests/index.d.ts +2 -1
- package/dist/api/resources/users/index.d.ts +2 -3
- package/dist/api/resources/users/index.js +2 -3
- package/dist/api/resources/users/resources/groups/client/Client.d.ts +16 -32
- package/dist/api/resources/users/resources/groups/client/Client.js +68 -86
- package/dist/api/resources/users/resources/groups/client/index.d.ts +1 -1
- package/dist/api/resources/users/resources/groups/client/index.js +1 -1
- package/dist/api/resources/users/resources/groups/client/requests/CreateUserGroupRequest.d.ts +0 -3
- package/dist/api/resources/users/resources/groups/client/requests/CreateUserGroupRequest.js +1 -3
- package/dist/api/resources/users/resources/groups/client/requests/index.d.ts +1 -1
- package/dist/api/resources/users/resources/groups/index.d.ts +1 -1
- package/dist/api/resources/users/resources/groups/index.js +1 -1
- package/dist/api/resources/users/resources/index.d.ts +2 -2
- package/dist/api/resources/users/resources/index.js +19 -9
- package/dist/api/resources/values/client/Client.d.ts +24 -39
- package/dist/api/resources/values/client/Client.js +99 -129
- package/dist/api/resources/values/client/index.d.ts +1 -1
- package/dist/api/resources/values/client/index.js +1 -1
- package/dist/api/resources/values/client/requests/DeleteValuesRequest.d.ts +10 -0
- package/dist/api/resources/values/client/requests/DeleteValuesRequest.js +3 -0
- package/dist/api/resources/values/client/requests/ListValuesRequest.d.ts +17 -0
- package/dist/api/resources/values/client/requests/ListValuesRequest.js +3 -0
- package/dist/api/resources/values/client/requests/UpdateValuesRequest.d.ts +6 -9
- package/dist/api/resources/values/client/requests/UpdateValuesRequest.js +1 -3
- package/dist/api/resources/values/client/requests/index.d.ts +3 -3
- package/dist/api/resources/values/index.d.ts +1 -1
- package/dist/api/resources/values/index.js +1 -1
- package/dist/api/types/BulkRuleResponseItem.d.ts +4 -5
- package/dist/api/types/BulkRuleResponseItem.js +1 -3
- package/dist/api/types/CascadeContextResponse.d.ts +10 -0
- package/dist/api/types/CascadeContextResponse.js +3 -0
- package/dist/api/types/CascadeResult.d.ts +29 -0
- package/dist/api/types/CascadeResult.js +12 -0
- package/dist/api/types/ContextBase.d.ts +33 -0
- package/dist/api/types/ContextBase.js +12 -0
- package/dist/api/types/ContextDetail.d.ts +58 -0
- package/dist/api/types/ContextDetail.js +3 -0
- package/dist/api/types/ContextInstanceHistory.d.ts +10 -0
- package/dist/api/types/ContextInstanceHistory.js +3 -0
- package/dist/api/types/ContextInstanceHistoryEntry.d.ts +9 -0
- package/dist/api/types/ContextInstanceHistoryEntry.js +3 -0
- package/dist/api/types/ContextInstancePendingEvaluation.d.ts +29 -0
- package/dist/api/types/ContextInstancePendingEvaluation.js +12 -0
- package/dist/api/types/ContextInstancePendingResponse.d.ts +8 -0
- package/dist/api/types/ContextInstancePendingResponse.js +3 -0
- package/dist/api/types/ContextInstanceState.d.ts +31 -0
- package/dist/api/types/ContextInstanceState.js +12 -0
- package/dist/api/types/ContextListResponse.d.ts +2 -0
- package/dist/api/types/ContextListResponse.js +3 -0
- package/dist/api/types/ContextRelationshipBase.d.ts +21 -0
- package/dist/api/types/ContextRelationshipBase.js +13 -0
- package/dist/api/types/ContextRelationshipIncoming.d.ts +11 -0
- package/dist/api/types/ContextRelationshipIncoming.js +3 -0
- package/dist/api/types/ContextRelationshipOutgoing.d.ts +11 -0
- package/dist/api/types/ContextRelationshipOutgoing.js +3 -0
- package/dist/api/types/ContextRelationshipsResponse.d.ts +5 -0
- package/dist/api/types/ContextRelationshipsResponse.js +3 -0
- package/dist/api/types/ContextSchema.d.ts +10 -0
- package/dist/api/types/ContextSchema.js +3 -0
- package/dist/api/types/ContextSchemaField.d.ts +35 -0
- package/dist/api/types/ContextSchemaField.js +16 -0
- package/dist/api/types/CreateContextResponse.d.ts +2 -0
- package/dist/api/types/CreateContextResponse.js +3 -0
- package/dist/api/types/CreateRelationshipResponse.d.ts +2 -0
- package/dist/api/types/CreateRelationshipResponse.js +3 -0
- package/dist/api/types/CreateTestRequest.d.ts +0 -3
- package/dist/api/types/CreateTestRequest.js +1 -3
- package/dist/api/types/CreateUserResponse.d.ts +26 -0
- package/dist/api/types/CreateUserResponse.js +3 -0
- package/dist/api/types/DecisionLog.d.ts +21 -5
- package/dist/api/types/DecisionLog.js +1 -3
- package/dist/api/types/DecisionLogResponse.d.ts +7 -4
- package/dist/api/types/DecisionLogResponse.js +1 -3
- package/dist/api/types/DeleteContextInstanceResponse.d.ts +9 -0
- package/dist/api/types/DeleteContextInstanceResponse.js +3 -0
- package/dist/api/types/DeleteContextResponse.d.ts +13 -0
- package/dist/api/types/DeleteContextResponse.js +3 -0
- package/dist/api/types/DeleteRelationshipResponse.d.ts +4 -0
- package/dist/api/types/DeleteRelationshipResponse.js +3 -0
- package/dist/api/types/DynamicRequestPayload.d.ts +1 -4
- package/dist/api/types/DynamicRequestPayload.js +1 -3
- package/dist/api/types/DynamicResponsePayload.d.ts +1 -4
- package/dist/api/types/DynamicResponsePayload.js +1 -3
- package/dist/api/types/DynamicValue.d.ts +11 -7
- package/dist/api/types/DynamicValue.js +1 -3
- package/dist/api/types/DynamicValueListResponse.d.ts +2 -5
- package/dist/api/types/DynamicValueListResponse.js +1 -3
- package/dist/api/types/Error_.d.ts +0 -3
- package/dist/api/types/Error_.js +1 -3
- package/dist/api/types/ExportManifestPreviewResponse.d.ts +51 -0
- package/dist/api/types/ExportManifestPreviewResponse.js +3 -0
- package/dist/api/types/ExportManifestResponse.d.ts +9 -0
- package/dist/api/types/ExportManifestResponse.js +3 -0
- package/dist/api/types/FlowBase.d.ts +0 -3
- package/dist/api/types/FlowBase.js +1 -3
- package/dist/api/types/FlowDetail.d.ts +30 -5
- package/dist/api/types/FlowDetail.js +1 -3
- package/dist/api/types/FlowExecutionError.d.ts +0 -3
- package/dist/api/types/FlowExecutionError.js +1 -3
- package/dist/api/types/FlowListResponse.d.ts +2 -5
- package/dist/api/types/FlowListResponse.js +1 -3
- package/dist/api/types/Folder.d.ts +1 -4
- package/dist/api/types/Folder.js +1 -3
- package/dist/api/types/FolderListResponse.d.ts +2 -5
- package/dist/api/types/FolderListResponse.js +1 -3
- package/dist/api/types/ImportManifestResponse.d.ts +38 -0
- package/dist/api/types/ImportManifestResponse.js +3 -0
- package/dist/api/types/ParallelSolveRequest.d.ts +11 -5
- package/dist/api/types/ParallelSolveRequest.js +1 -3
- package/dist/api/types/ParallelSolveResponse.d.ts +2 -5
- package/dist/api/types/ParallelSolveResponse.js +1 -3
- package/dist/api/types/RuleBase.d.ts +0 -3
- package/dist/api/types/RuleBase.js +1 -3
- package/dist/api/types/RuleDetail.d.ts +21 -7
- package/dist/api/types/RuleDetail.js +1 -3
- package/dist/api/types/RuleExport.d.ts +1 -4
- package/dist/api/types/RuleExport.js +1 -3
- package/dist/api/types/RuleListResponse.d.ts +2 -5
- package/dist/api/types/RuleListResponse.js +1 -3
- package/dist/api/types/RuleUsage.d.ts +1 -4
- package/dist/api/types/RuleUsage.js +1 -3
- package/dist/api/types/SchemaField.d.ts +18 -7
- package/dist/api/types/SchemaField.js +13 -3
- package/dist/api/types/SolveContextFlowResponse.d.ts +23 -0
- package/dist/api/types/SolveContextFlowResponse.js +12 -0
- package/dist/api/types/SolveContextRuleResponse.d.ts +26 -0
- package/dist/api/types/SolveContextRuleResponse.js +12 -0
- package/dist/api/types/SubmitContextDataRequest.d.ts +4 -0
- package/dist/api/types/SubmitContextDataRequest.js +3 -0
- package/dist/api/types/SubmitContextDataResponse.d.ts +30 -0
- package/dist/api/types/SubmitContextDataResponse.js +12 -0
- package/dist/api/types/SuccessMessage.d.ts +0 -3
- package/dist/api/types/SuccessMessage.js +1 -3
- package/dist/api/types/Test.d.ts +25 -6
- package/dist/api/types/Test.js +1 -3
- package/dist/api/types/TestListResponse.d.ts +2 -5
- package/dist/api/types/TestListResponse.js +1 -3
- package/dist/api/types/UpdateContextResponse.d.ts +2 -0
- package/dist/api/types/UpdateContextResponse.js +3 -0
- package/dist/api/types/UsageStatistics.d.ts +5 -8
- package/dist/api/types/UsageStatistics.js +1 -3
- package/dist/api/types/UserDetail.d.ts +19 -0
- package/dist/api/types/UserDetail.js +3 -0
- package/dist/api/types/UserGroup.d.ts +0 -3
- package/dist/api/types/UserGroup.js +1 -3
- package/dist/api/types/UserGroupListResponse.d.ts +2 -5
- package/dist/api/types/UserGroupListResponse.js +1 -3
- package/dist/api/types/UserInviteResponse.d.ts +11 -5
- package/dist/api/types/UserInviteResponse.js +1 -3
- package/dist/api/types/UserListResponse.d.ts +5 -0
- package/dist/api/types/UserListResponse.js +3 -0
- package/dist/api/types/ValueLimits.d.ts +4 -7
- package/dist/api/types/ValueLimits.js +1 -3
- package/dist/api/types/index.d.ts +63 -39
- package/dist/api/types/index.js +63 -39
- package/dist/auth/HeaderAuthProvider.d.ts +16 -0
- package/dist/auth/HeaderAuthProvider.js +71 -0
- package/dist/auth/index.d.ts +1 -0
- package/dist/auth/index.js +5 -0
- package/dist/core/auth/AuthProvider.d.ts +7 -0
- package/dist/core/auth/AuthProvider.js +2 -0
- package/dist/core/auth/AuthRequest.d.ts +9 -0
- package/dist/core/auth/AuthRequest.js +2 -0
- package/dist/core/auth/BasicAuth.d.ts +8 -0
- package/dist/core/auth/BasicAuth.js +27 -0
- package/dist/core/auth/BearerToken.d.ts +7 -0
- package/dist/core/auth/BearerToken.js +16 -0
- package/dist/core/auth/NoOpAuthProvider.d.ts +5 -0
- package/dist/core/auth/NoOpAuthProvider.js +9 -0
- package/dist/core/auth/index.d.ts +5 -0
- package/dist/core/auth/index.js +9 -0
- package/dist/core/base64.d.ts +2 -0
- package/dist/core/base64.js +26 -0
- package/dist/core/exports.d.ts +1 -0
- package/dist/core/exports.js +17 -0
- package/dist/core/fetcher/APIResponse.d.ts +11 -1
- package/dist/core/fetcher/BinaryResponse.d.ts +19 -0
- package/dist/core/fetcher/BinaryResponse.js +17 -0
- package/dist/core/fetcher/EndpointMetadata.d.ts +13 -0
- package/dist/core/fetcher/EndpointMetadata.js +2 -0
- package/dist/core/fetcher/EndpointSupplier.d.ts +12 -0
- package/dist/core/fetcher/EndpointSupplier.js +22 -0
- package/dist/core/fetcher/Fetcher.d.ts +17 -7
- package/dist/core/fetcher/Fetcher.js +244 -28
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/dist/core/fetcher/Headers.js +84 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +4 -9
- package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getErrorResponseBody.js +45 -0
- package/dist/core/fetcher/getFetchFn.d.ts +1 -4
- package/dist/core/fetcher/getFetchFn.js +2 -44
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.d.ts +1 -1
- package/dist/core/fetcher/getRequestBody.js +9 -6
- package/dist/core/fetcher/getResponseBody.js +43 -29
- package/dist/core/fetcher/index.d.ts +11 -5
- package/dist/core/fetcher/index.js +15 -7
- package/dist/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/core/fetcher/makeRequest.js +4 -6
- package/dist/core/fetcher/requestWithRetries.js +38 -12
- package/dist/core/fetcher/signals.d.ts +1 -8
- package/dist/core/fetcher/signals.js +2 -15
- package/dist/core/headers.d.ts +2 -0
- package/dist/core/headers.js +31 -0
- package/dist/core/index.d.ts +6 -3
- package/dist/core/index.js +24 -11
- package/dist/core/json.d.ts +1 -1
- package/dist/core/json.js +2 -2
- package/dist/core/logging/exports.d.ts +18 -0
- package/dist/core/logging/exports.js +45 -0
- package/dist/core/logging/index.d.ts +1 -0
- package/dist/core/logging/index.js +17 -0
- package/dist/core/logging/logger.d.ts +126 -0
- package/dist/core/logging/logger.js +144 -0
- package/dist/core/runtime/index.d.ts +1 -1
- package/dist/core/runtime/index.js +2 -2
- package/dist/core/runtime/runtime.js +11 -11
- package/dist/core/url/encodePathParam.d.ts +1 -0
- package/dist/core/url/encodePathParam.js +21 -0
- package/dist/core/url/index.d.ts +3 -0
- package/dist/core/url/index.js +9 -0
- package/dist/core/url/join.d.ts +1 -0
- package/dist/core/url/join.js +68 -0
- package/dist/core/url/qs.d.ts +6 -0
- package/dist/core/url/qs.js +64 -0
- package/dist/environments.d.ts +2 -5
- package/dist/environments.js +2 -4
- package/dist/errors/RulebricksError.d.ts +4 -4
- package/dist/errors/RulebricksError.js +12 -13
- package/dist/errors/RulebricksTimeoutError.d.ts +0 -3
- package/dist/errors/RulebricksTimeoutError.js +6 -4
- package/dist/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/errors/handleNonStatusCodeError.js +65 -0
- package/dist/errors/index.d.ts +2 -2
- package/dist/errors/index.js +4 -4
- package/dist/exports.d.ts +1 -0
- package/dist/exports.js +17 -0
- package/dist/forge/operators.d.ts +1 -1
- package/dist/forge/rule.js +4 -4
- package/dist/forge/types.d.ts +1 -1
- package/dist/forge/types.js +2 -2
- package/dist/forge/values.d.ts +1 -1
- package/dist/forge/values.js +3 -3
- package/dist/index.d.ts +6 -5
- package/dist/index.js +29 -16
- package/environments.d.ts +2 -5
- package/environments.js +2 -4
- package/errors/RulebricksError.d.ts +4 -4
- package/errors/RulebricksError.js +12 -13
- package/errors/RulebricksTimeoutError.d.ts +0 -3
- package/errors/RulebricksTimeoutError.js +6 -4
- package/errors/handleNonStatusCodeError.d.ts +2 -0
- package/errors/handleNonStatusCodeError.js +65 -0
- package/errors/index.d.ts +2 -2
- package/errors/index.js +4 -4
- package/exports.d.ts +1 -0
- package/exports.js +17 -0
- package/forge/operators.d.ts +1 -1
- package/forge/rule.js +4 -4
- package/forge/types.d.ts +1 -1
- package/forge/types.js +2 -2
- package/forge/values.d.ts +1 -1
- package/forge/values.js +3 -3
- package/index.d.ts +6 -5
- package/index.js +29 -16
- package/package.json +43 -39
- package/api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts +0 -13
- package/api/resources/assets/resources/rules/client/requests/RulesListRequest.js +0 -5
- package/api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts +0 -15
- package/api/resources/assets/resources/rules/client/requests/RulesPullRequest.js +0 -5
- package/api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts +0 -31
- package/api/resources/decisions/client/requests/DecisionsQueryRequest.js +0 -5
- package/api/resources/users/types/UserInviteRequestRole.d.ts +0 -13
- package/api/resources/users/types/UserInviteRequestRole.js +0 -12
- package/api/resources/users/types/index.d.ts +0 -1
- package/api/resources/users/types/index.js +0 -17
- package/api/resources/values/client/requests/ValuesDeleteRequest.d.ts +0 -15
- package/api/resources/values/client/requests/ValuesDeleteRequest.js +0 -5
- package/api/resources/values/client/requests/ValuesListRequest.d.ts +0 -24
- package/api/resources/values/client/requests/ValuesListRequest.js +0 -5
- package/api/types/BulkRuleResponseItemError.d.ts +0 -7
- package/api/types/BulkRuleResponseItemError.js +0 -5
- package/api/types/ParallelSolveRequestValue.d.ts +0 -11
- package/api/types/ParallelSolveRequestValue.js +0 -5
- package/api/types/SchemaFieldDefaultValue.d.ts +0 -7
- package/api/types/SchemaFieldDefaultValue.js +0 -5
- package/api/types/SchemaFieldType.d.ts +0 -14
- package/api/types/SchemaFieldType.js +0 -13
- package/api/types/TestTestState.d.ts +0 -19
- package/api/types/TestTestState.js +0 -5
- package/api/types/TestTestStateConditionsItemValue.d.ts +0 -7
- package/api/types/TestTestStateConditionsItemValue.js +0 -5
- package/api/types/TestTestStateEvaluationError.d.ts +0 -7
- package/api/types/TestTestStateEvaluationError.js +0 -5
- package/api/types/UserInviteResponseUser.d.ts +0 -11
- package/api/types/UserInviteResponseUser.js +0 -5
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -22
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -124
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -50
- package/core/schemas/Schema.d.ts +0 -87
- package/core/schemas/Schema.js +0 -24
- package/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/core/schemas/builders/bigint/bigint.js +0 -54
- package/core/schemas/builders/bigint/index.d.ts +0 -1
- package/core/schemas/builders/bigint/index.js +0 -5
- package/core/schemas/builders/date/date.d.ts +0 -2
- package/core/schemas/builders/date/date.js +0 -63
- package/core/schemas/builders/date/index.d.ts +0 -1
- package/core/schemas/builders/date/index.js +0 -5
- package/core/schemas/builders/enum/enum.d.ts +0 -2
- package/core/schemas/builders/enum/enum.js +0 -39
- package/core/schemas/builders/enum/index.d.ts +0 -1
- package/core/schemas/builders/enum/index.js +0 -5
- package/core/schemas/builders/index.d.ts +0 -14
- package/core/schemas/builders/index.js +0 -30
- package/core/schemas/builders/lazy/index.d.ts +0 -3
- package/core/schemas/builders/lazy/index.js +0 -7
- package/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/core/schemas/builders/lazy/lazy.js +0 -25
- package/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/core/schemas/builders/lazy/lazyObject.js +0 -12
- package/core/schemas/builders/list/index.d.ts +0 -1
- package/core/schemas/builders/list/index.js +0 -5
- package/core/schemas/builders/list/list.d.ts +0 -2
- package/core/schemas/builders/list/list.js +0 -55
- package/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/booleanLiteral.js +0 -29
- package/core/schemas/builders/literals/index.d.ts +0 -2
- package/core/schemas/builders/literals/index.js +0 -7
- package/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/core/schemas/builders/literals/stringLiteral.js +0 -29
- package/core/schemas/builders/object/index.d.ts +0 -6
- package/core/schemas/builders/object/index.js +0 -11
- package/core/schemas/builders/object/object.d.ts +0 -3
- package/core/schemas/builders/object/object.js +0 -262
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -8
- package/core/schemas/builders/object/property.d.ts +0 -8
- package/core/schemas/builders/object/property.js +0 -16
- package/core/schemas/builders/object/types.d.ts +0 -31
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -54
- package/core/schemas/builders/object-like/index.d.ts +0 -2
- package/core/schemas/builders/object-like/index.js +0 -6
- package/core/schemas/builders/object-like/types.d.ts +0 -7
- package/core/schemas/builders/primitives/any.d.ts +0 -1
- package/core/schemas/builders/primitives/any.js +0 -6
- package/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/core/schemas/builders/primitives/boolean.js +0 -25
- package/core/schemas/builders/primitives/index.d.ts +0 -5
- package/core/schemas/builders/primitives/index.js +0 -13
- package/core/schemas/builders/primitives/number.d.ts +0 -1
- package/core/schemas/builders/primitives/number.js +0 -25
- package/core/schemas/builders/primitives/string.d.ts +0 -1
- package/core/schemas/builders/primitives/string.js +0 -25
- package/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/core/schemas/builders/primitives/unknown.js +0 -6
- package/core/schemas/builders/record/index.d.ts +0 -2
- package/core/schemas/builders/record/index.js +0 -5
- package/core/schemas/builders/record/record.d.ts +0 -3
- package/core/schemas/builders/record/record.js +0 -94
- package/core/schemas/builders/record/types.d.ts +0 -4
- package/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -146
- package/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/core/schemas/builders/schema-utils/index.js +0 -11
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -10
- package/core/schemas/builders/set/index.d.ts +0 -1
- package/core/schemas/builders/set/index.js +0 -5
- package/core/schemas/builders/set/set.d.ts +0 -2
- package/core/schemas/builders/set/set.js +0 -44
- package/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -40
- package/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/core/schemas/builders/union/discriminant.js +0 -10
- package/core/schemas/builders/union/index.d.ts +0 -4
- package/core/schemas/builders/union/index.js +0 -7
- package/core/schemas/builders/union/types.d.ts +0 -13
- package/core/schemas/builders/union/union.d.ts +0 -4
- package/core/schemas/builders/union/union.js +0 -130
- package/core/schemas/index.d.ts +0 -2
- package/core/schemas/index.js +0 -17
- package/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/core/schemas/utils/createIdentitySchemaCreator.js +0 -16
- package/core/schemas/utils/entries.d.ts +0 -1
- package/core/schemas/utils/entries.js +0 -7
- package/core/schemas/utils/filterObject.d.ts +0 -1
- package/core/schemas/utils/filterObject.js +0 -14
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -28
- package/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/core/schemas/utils/isPlainObject.js +0 -18
- package/core/schemas/utils/keys.d.ts +0 -1
- package/core/schemas/utils/keys.js +0 -7
- package/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/core/schemas/utils/maybeSkipValidation.js +0 -28
- package/core/schemas/utils/partition.d.ts +0 -1
- package/core/schemas/utils/partition.js +0 -16
- package/dist/api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts +0 -13
- package/dist/api/resources/assets/resources/rules/client/requests/RulesListRequest.js +0 -5
- package/dist/api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts +0 -15
- package/dist/api/resources/assets/resources/rules/client/requests/RulesPullRequest.js +0 -5
- package/dist/api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts +0 -31
- package/dist/api/resources/decisions/client/requests/DecisionsQueryRequest.js +0 -5
- package/dist/api/resources/users/types/UserInviteRequestRole.d.ts +0 -13
- package/dist/api/resources/users/types/UserInviteRequestRole.js +0 -12
- package/dist/api/resources/users/types/index.d.ts +0 -1
- package/dist/api/resources/users/types/index.js +0 -17
- package/dist/api/resources/values/client/requests/ValuesDeleteRequest.d.ts +0 -15
- package/dist/api/resources/values/client/requests/ValuesDeleteRequest.js +0 -5
- package/dist/api/resources/values/client/requests/ValuesListRequest.d.ts +0 -24
- package/dist/api/resources/values/client/requests/ValuesListRequest.js +0 -5
- package/dist/api/types/BulkRuleResponseItemError.d.ts +0 -7
- package/dist/api/types/BulkRuleResponseItemError.js +0 -5
- package/dist/api/types/ParallelSolveRequestValue.d.ts +0 -11
- package/dist/api/types/ParallelSolveRequestValue.js +0 -5
- package/dist/api/types/SchemaFieldDefaultValue.d.ts +0 -7
- package/dist/api/types/SchemaFieldDefaultValue.js +0 -5
- package/dist/api/types/SchemaFieldType.d.ts +0 -14
- package/dist/api/types/SchemaFieldType.js +0 -13
- package/dist/api/types/TestTestState.d.ts +0 -19
- package/dist/api/types/TestTestState.js +0 -5
- package/dist/api/types/TestTestStateConditionsItemValue.d.ts +0 -7
- package/dist/api/types/TestTestStateConditionsItemValue.js +0 -5
- package/dist/api/types/TestTestStateEvaluationError.d.ts +0 -7
- package/dist/api/types/TestTestStateEvaluationError.js +0 -5
- package/dist/api/types/UserInviteResponseUser.d.ts +0 -11
- package/dist/api/types/UserInviteResponseUser.js +0 -5
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -22
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -124
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -50
- package/dist/core/schemas/Schema.d.ts +0 -87
- package/dist/core/schemas/Schema.js +0 -24
- package/dist/core/schemas/builders/bigint/bigint.d.ts +0 -2
- package/dist/core/schemas/builders/bigint/bigint.js +0 -54
- package/dist/core/schemas/builders/bigint/index.d.ts +0 -1
- package/dist/core/schemas/builders/bigint/index.js +0 -5
- package/dist/core/schemas/builders/date/date.d.ts +0 -2
- package/dist/core/schemas/builders/date/date.js +0 -63
- package/dist/core/schemas/builders/date/index.d.ts +0 -1
- package/dist/core/schemas/builders/date/index.js +0 -5
- package/dist/core/schemas/builders/enum/enum.d.ts +0 -2
- package/dist/core/schemas/builders/enum/enum.js +0 -39
- package/dist/core/schemas/builders/enum/index.d.ts +0 -1
- package/dist/core/schemas/builders/enum/index.js +0 -5
- package/dist/core/schemas/builders/index.d.ts +0 -14
- package/dist/core/schemas/builders/index.js +0 -30
- package/dist/core/schemas/builders/lazy/index.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/index.js +0 -7
- package/dist/core/schemas/builders/lazy/lazy.d.ts +0 -5
- package/dist/core/schemas/builders/lazy/lazy.js +0 -25
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +0 -3
- package/dist/core/schemas/builders/lazy/lazyObject.js +0 -12
- package/dist/core/schemas/builders/list/index.d.ts +0 -1
- package/dist/core/schemas/builders/list/index.js +0 -5
- package/dist/core/schemas/builders/list/list.d.ts +0 -2
- package/dist/core/schemas/builders/list/list.js +0 -55
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +0 -29
- package/dist/core/schemas/builders/literals/index.d.ts +0 -2
- package/dist/core/schemas/builders/literals/index.js +0 -7
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +0 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +0 -29
- package/dist/core/schemas/builders/object/index.d.ts +0 -6
- package/dist/core/schemas/builders/object/index.js +0 -11
- package/dist/core/schemas/builders/object/object.d.ts +0 -3
- package/dist/core/schemas/builders/object/object.js +0 -262
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +0 -6
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +0 -8
- package/dist/core/schemas/builders/object/property.d.ts +0 -8
- package/dist/core/schemas/builders/object/property.js +0 -16
- package/dist/core/schemas/builders/object/types.d.ts +0 -31
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +0 -9
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +0 -54
- package/dist/core/schemas/builders/object-like/index.d.ts +0 -2
- package/dist/core/schemas/builders/object-like/index.js +0 -6
- package/dist/core/schemas/builders/object-like/types.d.ts +0 -7
- package/dist/core/schemas/builders/primitives/any.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/any.js +0 -6
- package/dist/core/schemas/builders/primitives/boolean.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/boolean.js +0 -25
- package/dist/core/schemas/builders/primitives/index.d.ts +0 -5
- package/dist/core/schemas/builders/primitives/index.js +0 -13
- package/dist/core/schemas/builders/primitives/number.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/number.js +0 -25
- package/dist/core/schemas/builders/primitives/string.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/string.js +0 -25
- package/dist/core/schemas/builders/primitives/unknown.d.ts +0 -1
- package/dist/core/schemas/builders/primitives/unknown.js +0 -6
- package/dist/core/schemas/builders/record/index.d.ts +0 -2
- package/dist/core/schemas/builders/record/index.js +0 -5
- package/dist/core/schemas/builders/record/record.d.ts +0 -3
- package/dist/core/schemas/builders/record/record.js +0 -94
- package/dist/core/schemas/builders/record/types.d.ts +0 -4
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/JsonError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +0 -5
- package/dist/core/schemas/builders/schema-utils/ParseError.js +0 -12
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +0 -21
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +0 -146
- package/dist/core/schemas/builders/schema-utils/index.d.ts +0 -4
- package/dist/core/schemas/builders/schema-utils/index.js +0 -11
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +0 -2
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +0 -10
- package/dist/core/schemas/builders/set/index.d.ts +0 -1
- package/dist/core/schemas/builders/set/index.js +0 -5
- package/dist/core/schemas/builders/set/set.d.ts +0 -2
- package/dist/core/schemas/builders/set/set.js +0 -44
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +0 -2
- package/dist/core/schemas/builders/undiscriminated-union/index.js +0 -5
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +0 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +0 -3
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +0 -40
- package/dist/core/schemas/builders/union/discriminant.d.ts +0 -5
- package/dist/core/schemas/builders/union/discriminant.js +0 -10
- package/dist/core/schemas/builders/union/index.d.ts +0 -4
- package/dist/core/schemas/builders/union/index.js +0 -7
- package/dist/core/schemas/builders/union/types.d.ts +0 -13
- package/dist/core/schemas/builders/union/union.d.ts +0 -4
- package/dist/core/schemas/builders/union/union.js +0 -130
- package/dist/core/schemas/index.d.ts +0 -2
- package/dist/core/schemas/index.js +0 -17
- package/dist/core/schemas/utils/MaybePromise.d.ts +0 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +0 -7
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +0 -2
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +0 -16
- package/dist/core/schemas/utils/entries.d.ts +0 -1
- package/dist/core/schemas/utils/entries.js +0 -7
- package/dist/core/schemas/utils/filterObject.d.ts +0 -1
- package/dist/core/schemas/utils/filterObject.js +0 -14
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +0 -1
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +0 -28
- package/dist/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/dist/core/schemas/utils/isPlainObject.js +0 -18
- package/dist/core/schemas/utils/keys.d.ts +0 -1
- package/dist/core/schemas/utils/keys.js +0 -7
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +0 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +0 -28
- package/dist/core/schemas/utils/partition.d.ts +0 -1
- package/dist/core/schemas/utils/partition.js +0 -16
- package/dist/serialization/index.d.ts +0 -2
- package/dist/serialization/index.js +0 -18
- package/dist/serialization/resources/assets/index.d.ts +0 -1
- package/dist/serialization/resources/assets/index.js +0 -17
- package/dist/serialization/resources/assets/resources/folders/client/index.d.ts +0 -1
- package/dist/serialization/resources/assets/resources/folders/client/index.js +0 -17
- package/dist/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +0 -12
- package/dist/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.js +0 -33
- package/dist/serialization/resources/assets/resources/folders/client/requests/UpsertFolderRequest.d.ts +0 -14
- package/dist/serialization/resources/assets/resources/folders/client/requests/UpsertFolderRequest.js +0 -35
- package/dist/serialization/resources/assets/resources/folders/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/assets/resources/folders/client/requests/index.js +0 -7
- package/dist/serialization/resources/assets/resources/folders/index.d.ts +0 -1
- package/dist/serialization/resources/assets/resources/folders/index.js +0 -17
- package/dist/serialization/resources/assets/resources/index.d.ts +0 -4
- package/dist/serialization/resources/assets/resources/index.js +0 -33
- package/dist/serialization/resources/assets/resources/rules/client/index.d.ts +0 -1
- package/dist/serialization/resources/assets/resources/rules/client/index.js +0 -17
- package/dist/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +0 -12
- package/dist/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.js +0 -33
- package/dist/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +0 -12
- package/dist/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.js +0 -33
- package/dist/serialization/resources/assets/resources/rules/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/assets/resources/rules/client/requests/index.js +0 -7
- package/dist/serialization/resources/assets/resources/rules/index.d.ts +0 -1
- package/dist/serialization/resources/assets/resources/rules/index.js +0 -17
- package/dist/serialization/resources/index.d.ts +0 -7
- package/dist/serialization/resources/index.js +0 -36
- package/dist/serialization/resources/rules/client/bulkSolve.d.ts +0 -16
- package/dist/serialization/resources/rules/client/bulkSolve.js +0 -34
- package/dist/serialization/resources/rules/client/index.d.ts +0 -1
- package/dist/serialization/resources/rules/client/index.js +0 -27
- package/dist/serialization/resources/rules/index.d.ts +0 -1
- package/dist/serialization/resources/rules/index.js +0 -17
- package/dist/serialization/resources/users/client/index.d.ts +0 -1
- package/dist/serialization/resources/users/client/index.js +0 -17
- package/dist/serialization/resources/users/client/requests/UserInviteRequest.d.ts +0 -15
- package/dist/serialization/resources/users/client/requests/UserInviteRequest.js +0 -36
- package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/users/client/requests/index.js +0 -5
- package/dist/serialization/resources/users/index.d.ts +0 -3
- package/dist/serialization/resources/users/index.js +0 -19
- package/dist/serialization/resources/users/resources/groups/client/index.d.ts +0 -1
- package/dist/serialization/resources/users/resources/groups/client/index.js +0 -17
- package/dist/serialization/resources/users/resources/groups/client/requests/CreateUserGroupRequest.d.ts +0 -13
- package/dist/serialization/resources/users/resources/groups/client/requests/CreateUserGroupRequest.js +0 -34
- package/dist/serialization/resources/users/resources/groups/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/users/resources/groups/client/requests/index.js +0 -5
- package/dist/serialization/resources/users/resources/groups/index.d.ts +0 -1
- package/dist/serialization/resources/users/resources/groups/index.js +0 -17
- package/dist/serialization/resources/users/resources/index.d.ts +0 -2
- package/dist/serialization/resources/users/resources/index.js +0 -31
- package/dist/serialization/resources/users/types/UserInviteRequestRole.d.ts +0 -10
- package/dist/serialization/resources/users/types/UserInviteRequestRole.js +0 -31
- package/dist/serialization/resources/users/types/index.d.ts +0 -1
- package/dist/serialization/resources/users/types/index.js +0 -17
- package/dist/serialization/resources/values/client/index.d.ts +0 -1
- package/dist/serialization/resources/values/client/index.js +0 -17
- package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +0 -13
- package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.js +0 -34
- package/dist/serialization/resources/values/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/values/client/requests/index.js +0 -5
- package/dist/serialization/resources/values/index.d.ts +0 -1
- package/dist/serialization/resources/values/index.js +0 -17
- package/dist/serialization/types/BulkRuleResponseItem.d.ts +0 -12
- package/dist/serialization/types/BulkRuleResponseItem.js +0 -33
- package/dist/serialization/types/BulkRuleResponseItemError.d.ts +0 -12
- package/dist/serialization/types/BulkRuleResponseItemError.js +0 -33
- package/dist/serialization/types/CreateTestRequest.d.ts +0 -15
- package/dist/serialization/types/CreateTestRequest.js +0 -36
- package/dist/serialization/types/DecisionLog.d.ts +0 -10
- package/dist/serialization/types/DecisionLog.js +0 -31
- package/dist/serialization/types/DecisionLogResponse.d.ts +0 -14
- package/dist/serialization/types/DecisionLogResponse.js +0 -35
- package/dist/serialization/types/DynamicRequestPayload.d.ts +0 -10
- package/dist/serialization/types/DynamicRequestPayload.js +0 -31
- package/dist/serialization/types/DynamicResponsePayload.d.ts +0 -10
- package/dist/serialization/types/DynamicResponsePayload.js +0 -31
- package/dist/serialization/types/DynamicValue.d.ts +0 -18
- package/dist/serialization/types/DynamicValue.js +0 -39
- package/dist/serialization/types/DynamicValueListResponse.d.ts +0 -11
- package/dist/serialization/types/DynamicValueListResponse.js +0 -32
- package/dist/serialization/types/Error_.d.ts +0 -12
- package/dist/serialization/types/Error_.js +0 -33
- package/dist/serialization/types/FlowBase.d.ts +0 -15
- package/dist/serialization/types/FlowBase.js +0 -36
- package/dist/serialization/types/FlowDetail.d.ts +0 -14
- package/dist/serialization/types/FlowDetail.js +0 -37
- package/dist/serialization/types/FlowExecutionError.d.ts +0 -14
- package/dist/serialization/types/FlowExecutionError.js +0 -35
- package/dist/serialization/types/FlowListResponse.d.ts +0 -11
- package/dist/serialization/types/FlowListResponse.js +0 -32
- package/dist/serialization/types/Folder.d.ts +0 -15
- package/dist/serialization/types/Folder.js +0 -36
- package/dist/serialization/types/FolderListResponse.d.ts +0 -11
- package/dist/serialization/types/FolderListResponse.js +0 -32
- package/dist/serialization/types/ParallelSolveRequest.d.ts +0 -11
- package/dist/serialization/types/ParallelSolveRequest.js +0 -32
- package/dist/serialization/types/ParallelSolveRequestValue.d.ts +0 -14
- package/dist/serialization/types/ParallelSolveRequestValue.js +0 -36
- package/dist/serialization/types/ParallelSolveResponse.d.ts +0 -11
- package/dist/serialization/types/ParallelSolveResponse.js +0 -32
- package/dist/serialization/types/RuleBase.d.ts +0 -15
- package/dist/serialization/types/RuleBase.js +0 -36
- package/dist/serialization/types/RuleDetail.d.ts +0 -18
- package/dist/serialization/types/RuleDetail.js +0 -41
- package/dist/serialization/types/RuleExport.d.ts +0 -10
- package/dist/serialization/types/RuleExport.js +0 -31
- package/dist/serialization/types/RuleListResponse.d.ts +0 -11
- package/dist/serialization/types/RuleListResponse.js +0 -32
- package/dist/serialization/types/RuleUsage.d.ts +0 -17
- package/dist/serialization/types/RuleUsage.js +0 -38
- package/dist/serialization/types/SchemaField.d.ts +0 -21
- package/dist/serialization/types/SchemaField.js +0 -42
- package/dist/serialization/types/SchemaFieldDefaultValue.d.ts +0 -10
- package/dist/serialization/types/SchemaFieldDefaultValue.js +0 -37
- package/dist/serialization/types/SchemaFieldType.d.ts +0 -10
- package/dist/serialization/types/SchemaFieldType.js +0 -31
- package/dist/serialization/types/SuccessMessage.d.ts +0 -12
- package/dist/serialization/types/SuccessMessage.js +0 -33
- package/dist/serialization/types/Test.d.ts +0 -21
- package/dist/serialization/types/Test.js +0 -42
- package/dist/serialization/types/TestListResponse.d.ts +0 -11
- package/dist/serialization/types/TestListResponse.js +0 -32
- package/dist/serialization/types/TestTestState.d.ts +0 -19
- package/dist/serialization/types/TestTestState.js +0 -42
- package/dist/serialization/types/TestTestStateConditionsItemValue.d.ts +0 -13
- package/dist/serialization/types/TestTestStateConditionsItemValue.js +0 -34
- package/dist/serialization/types/TestTestStateEvaluationError.d.ts +0 -10
- package/dist/serialization/types/TestTestStateEvaluationError.js +0 -31
- package/dist/serialization/types/UsageStatistics.d.ts +0 -17
- package/dist/serialization/types/UsageStatistics.js +0 -38
- package/dist/serialization/types/UserGroup.d.ts +0 -15
- package/dist/serialization/types/UserGroup.js +0 -36
- package/dist/serialization/types/UserGroupListResponse.d.ts +0 -11
- package/dist/serialization/types/UserGroupListResponse.js +0 -32
- package/dist/serialization/types/UserInviteResponse.d.ts +0 -14
- package/dist/serialization/types/UserInviteResponse.js +0 -35
- package/dist/serialization/types/UserInviteResponseUser.d.ts +0 -14
- package/dist/serialization/types/UserInviteResponseUser.js +0 -35
- package/dist/serialization/types/ValueLimits.d.ts +0 -15
- package/dist/serialization/types/ValueLimits.js +0 -36
- package/dist/serialization/types/index.d.ts +0 -39
- package/dist/serialization/types/index.js +0 -55
- package/serialization/index.d.ts +0 -2
- package/serialization/index.js +0 -18
- package/serialization/resources/assets/index.d.ts +0 -1
- package/serialization/resources/assets/index.js +0 -17
- package/serialization/resources/assets/resources/folders/client/index.d.ts +0 -1
- package/serialization/resources/assets/resources/folders/client/index.js +0 -17
- package/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +0 -12
- package/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.js +0 -33
- package/serialization/resources/assets/resources/folders/client/requests/UpsertFolderRequest.d.ts +0 -14
- package/serialization/resources/assets/resources/folders/client/requests/UpsertFolderRequest.js +0 -35
- package/serialization/resources/assets/resources/folders/client/requests/index.d.ts +0 -2
- package/serialization/resources/assets/resources/folders/client/requests/index.js +0 -7
- package/serialization/resources/assets/resources/folders/index.d.ts +0 -1
- package/serialization/resources/assets/resources/folders/index.js +0 -17
- package/serialization/resources/assets/resources/index.d.ts +0 -4
- package/serialization/resources/assets/resources/index.js +0 -33
- package/serialization/resources/assets/resources/rules/client/index.d.ts +0 -1
- package/serialization/resources/assets/resources/rules/client/index.js +0 -17
- package/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +0 -12
- package/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.js +0 -33
- package/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +0 -12
- package/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.js +0 -33
- package/serialization/resources/assets/resources/rules/client/requests/index.d.ts +0 -2
- package/serialization/resources/assets/resources/rules/client/requests/index.js +0 -7
- package/serialization/resources/assets/resources/rules/index.d.ts +0 -1
- package/serialization/resources/assets/resources/rules/index.js +0 -17
- package/serialization/resources/index.d.ts +0 -7
- package/serialization/resources/index.js +0 -36
- package/serialization/resources/rules/client/bulkSolve.d.ts +0 -16
- package/serialization/resources/rules/client/bulkSolve.js +0 -34
- package/serialization/resources/rules/client/index.d.ts +0 -1
- package/serialization/resources/rules/client/index.js +0 -27
- package/serialization/resources/rules/index.d.ts +0 -1
- package/serialization/resources/rules/index.js +0 -17
- package/serialization/resources/users/client/index.d.ts +0 -1
- package/serialization/resources/users/client/index.js +0 -17
- package/serialization/resources/users/client/requests/UserInviteRequest.d.ts +0 -15
- package/serialization/resources/users/client/requests/UserInviteRequest.js +0 -36
- package/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/serialization/resources/users/client/requests/index.js +0 -5
- package/serialization/resources/users/index.d.ts +0 -3
- package/serialization/resources/users/index.js +0 -19
- package/serialization/resources/users/resources/groups/client/index.d.ts +0 -1
- package/serialization/resources/users/resources/groups/client/index.js +0 -17
- package/serialization/resources/users/resources/groups/client/requests/CreateUserGroupRequest.d.ts +0 -13
- package/serialization/resources/users/resources/groups/client/requests/CreateUserGroupRequest.js +0 -34
- package/serialization/resources/users/resources/groups/client/requests/index.d.ts +0 -1
- package/serialization/resources/users/resources/groups/client/requests/index.js +0 -5
- package/serialization/resources/users/resources/groups/index.d.ts +0 -1
- package/serialization/resources/users/resources/groups/index.js +0 -17
- package/serialization/resources/users/resources/index.d.ts +0 -2
- package/serialization/resources/users/resources/index.js +0 -31
- package/serialization/resources/users/types/UserInviteRequestRole.d.ts +0 -10
- package/serialization/resources/users/types/UserInviteRequestRole.js +0 -31
- package/serialization/resources/users/types/index.d.ts +0 -1
- package/serialization/resources/users/types/index.js +0 -17
- package/serialization/resources/values/client/index.d.ts +0 -1
- package/serialization/resources/values/client/index.js +0 -17
- package/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +0 -13
- package/serialization/resources/values/client/requests/UpdateValuesRequest.js +0 -34
- package/serialization/resources/values/client/requests/index.d.ts +0 -1
- package/serialization/resources/values/client/requests/index.js +0 -5
- package/serialization/resources/values/index.d.ts +0 -1
- package/serialization/resources/values/index.js +0 -17
- package/serialization/types/BulkRuleResponseItem.d.ts +0 -12
- package/serialization/types/BulkRuleResponseItem.js +0 -33
- package/serialization/types/BulkRuleResponseItemError.d.ts +0 -12
- package/serialization/types/BulkRuleResponseItemError.js +0 -33
- package/serialization/types/CreateTestRequest.d.ts +0 -15
- package/serialization/types/CreateTestRequest.js +0 -36
- package/serialization/types/DecisionLog.d.ts +0 -10
- package/serialization/types/DecisionLog.js +0 -31
- package/serialization/types/DecisionLogResponse.d.ts +0 -14
- package/serialization/types/DecisionLogResponse.js +0 -35
- package/serialization/types/DynamicRequestPayload.d.ts +0 -10
- package/serialization/types/DynamicRequestPayload.js +0 -31
- package/serialization/types/DynamicResponsePayload.d.ts +0 -10
- package/serialization/types/DynamicResponsePayload.js +0 -31
- package/serialization/types/DynamicValue.d.ts +0 -18
- package/serialization/types/DynamicValue.js +0 -39
- package/serialization/types/DynamicValueListResponse.d.ts +0 -11
- package/serialization/types/DynamicValueListResponse.js +0 -32
- package/serialization/types/Error_.d.ts +0 -12
- package/serialization/types/Error_.js +0 -33
- package/serialization/types/FlowBase.d.ts +0 -15
- package/serialization/types/FlowBase.js +0 -36
- package/serialization/types/FlowDetail.d.ts +0 -14
- package/serialization/types/FlowDetail.js +0 -37
- package/serialization/types/FlowExecutionError.d.ts +0 -14
- package/serialization/types/FlowExecutionError.js +0 -35
- package/serialization/types/FlowListResponse.d.ts +0 -11
- package/serialization/types/FlowListResponse.js +0 -32
- package/serialization/types/Folder.d.ts +0 -15
- package/serialization/types/Folder.js +0 -36
- package/serialization/types/FolderListResponse.d.ts +0 -11
- package/serialization/types/FolderListResponse.js +0 -32
- package/serialization/types/ParallelSolveRequest.d.ts +0 -11
- package/serialization/types/ParallelSolveRequest.js +0 -32
- package/serialization/types/ParallelSolveRequestValue.d.ts +0 -14
- package/serialization/types/ParallelSolveRequestValue.js +0 -36
- package/serialization/types/ParallelSolveResponse.d.ts +0 -11
- package/serialization/types/ParallelSolveResponse.js +0 -32
- package/serialization/types/RuleBase.d.ts +0 -15
- package/serialization/types/RuleBase.js +0 -36
- package/serialization/types/RuleDetail.d.ts +0 -18
- package/serialization/types/RuleDetail.js +0 -41
- package/serialization/types/RuleExport.d.ts +0 -10
- package/serialization/types/RuleExport.js +0 -31
- package/serialization/types/RuleListResponse.d.ts +0 -11
- package/serialization/types/RuleListResponse.js +0 -32
- package/serialization/types/RuleUsage.d.ts +0 -17
- package/serialization/types/RuleUsage.js +0 -38
- package/serialization/types/SchemaField.d.ts +0 -21
- package/serialization/types/SchemaField.js +0 -42
- package/serialization/types/SchemaFieldDefaultValue.d.ts +0 -10
- package/serialization/types/SchemaFieldDefaultValue.js +0 -37
- package/serialization/types/SchemaFieldType.d.ts +0 -10
- package/serialization/types/SchemaFieldType.js +0 -31
- package/serialization/types/SuccessMessage.d.ts +0 -12
- package/serialization/types/SuccessMessage.js +0 -33
- package/serialization/types/Test.d.ts +0 -21
- package/serialization/types/Test.js +0 -42
- package/serialization/types/TestListResponse.d.ts +0 -11
- package/serialization/types/TestListResponse.js +0 -32
- package/serialization/types/TestTestState.d.ts +0 -19
- package/serialization/types/TestTestState.js +0 -42
- package/serialization/types/TestTestStateConditionsItemValue.d.ts +0 -13
- package/serialization/types/TestTestStateConditionsItemValue.js +0 -34
- package/serialization/types/TestTestStateEvaluationError.d.ts +0 -10
- package/serialization/types/TestTestStateEvaluationError.js +0 -31
- package/serialization/types/UsageStatistics.d.ts +0 -17
- package/serialization/types/UsageStatistics.js +0 -38
- package/serialization/types/UserGroup.d.ts +0 -15
- package/serialization/types/UserGroup.js +0 -36
- package/serialization/types/UserGroupListResponse.d.ts +0 -11
- package/serialization/types/UserGroupListResponse.js +0 -32
- package/serialization/types/UserInviteResponse.d.ts +0 -14
- package/serialization/types/UserInviteResponse.js +0 -35
- package/serialization/types/UserInviteResponseUser.d.ts +0 -14
- package/serialization/types/UserInviteResponseUser.js +0 -35
- package/serialization/types/ValueLimits.d.ts +0 -15
- package/serialization/types/ValueLimits.js +0 -36
- package/serialization/types/index.d.ts +0 -39
- package/serialization/types/index.js +0 -55
- /package/{core/schemas/builders/object-like/types.js → api/resources/assets/client/requests/index.js} +0 -0
- /package/{core/schemas/builders/object/types.js → api/resources/contexts/client/requests/index.js} +0 -0
- /package/{core/schemas/builders/record/types.js → api/resources/contexts/resources/admin/client/requests/index.js} +0 -0
- /package/{core/schemas/builders/undiscriminated-union/types.js → api/resources/contexts/resources/relationships/client/requests/index.js} +0 -0
- /package/{core/schemas/builders/union/types.js → api/resources/flows/client/requests/index.js} +0 -0
- /package/{core/schemas/utils/MaybePromise.js → api/resources/rules/client/requests/index.js} +0 -0
- /package/{core/schemas/utils/addQuestionMarksToNullableProperties.js → api/resources/tests/resources/flows/client/requests/index.js} +0 -0
- /package/{dist/core/schemas/builders/object-like/types.js → api/resources/tests/resources/rules/client/requests/index.js} +0 -0
- /package/{dist/core/schemas/builders/object/types.js → core/auth/AuthProvider.js} +0 -0
- /package/{dist/core/schemas/builders/record/types.js → core/auth/AuthRequest.js} +0 -0
- /package/{dist/core/schemas/builders/undiscriminated-union/types.js → core/fetcher/EndpointMetadata.js} +0 -0
- /package/dist/{core/schemas/builders/union/types.js → api/resources/assets/client/requests/index.js} +0 -0
- /package/dist/{core/schemas/utils/MaybePromise.js → api/resources/contexts/client/requests/index.js} +0 -0
- /package/dist/{core/schemas/utils/addQuestionMarksToNullableProperties.js → api/resources/contexts/resources/admin/client/requests/index.js} +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BaseSchema, Schema } from "../../Schema";
|
|
2
|
-
export declare type SchemaGetter<SchemaType extends Schema<any, any>> = () => SchemaType;
|
|
3
|
-
export declare function lazy<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): Schema<Raw, Parsed>;
|
|
4
|
-
export declare function constructLazyBaseSchema<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): BaseSchema<Raw, Parsed>;
|
|
5
|
-
export declare function getMemoizedSchema<SchemaType extends Schema<any, any>>(getter: SchemaGetter<SchemaType>): SchemaType;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getMemoizedSchema = exports.constructLazyBaseSchema = exports.lazy = void 0;
|
|
4
|
-
const schema_utils_1 = require("../schema-utils");
|
|
5
|
-
function lazy(getter) {
|
|
6
|
-
const baseSchema = constructLazyBaseSchema(getter);
|
|
7
|
-
return Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
8
|
-
}
|
|
9
|
-
exports.lazy = lazy;
|
|
10
|
-
function constructLazyBaseSchema(getter) {
|
|
11
|
-
return {
|
|
12
|
-
parse: (raw, opts) => getMemoizedSchema(getter).parse(raw, opts),
|
|
13
|
-
json: (parsed, opts) => getMemoizedSchema(getter).json(parsed, opts),
|
|
14
|
-
getType: () => getMemoizedSchema(getter).getType(),
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
exports.constructLazyBaseSchema = constructLazyBaseSchema;
|
|
18
|
-
function getMemoizedSchema(getter) {
|
|
19
|
-
const castedGetter = getter;
|
|
20
|
-
if (castedGetter.__zurg_memoized == null) {
|
|
21
|
-
castedGetter.__zurg_memoized = getter();
|
|
22
|
-
}
|
|
23
|
-
return castedGetter.__zurg_memoized;
|
|
24
|
-
}
|
|
25
|
-
exports.getMemoizedSchema = getMemoizedSchema;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lazyObject = void 0;
|
|
4
|
-
const object_1 = require("../object");
|
|
5
|
-
const object_like_1 = require("../object-like");
|
|
6
|
-
const schema_utils_1 = require("../schema-utils");
|
|
7
|
-
const lazy_1 = require("./lazy");
|
|
8
|
-
function lazyObject(getter) {
|
|
9
|
-
const baseSchema = Object.assign(Object.assign({}, (0, lazy_1.constructLazyBaseSchema)(getter)), { _getRawProperties: () => (0, lazy_1.getMemoizedSchema)(getter)._getRawProperties(), _getParsedProperties: () => (0, lazy_1.getMemoizedSchema)(getter)._getParsedProperties() });
|
|
10
|
-
return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), (0, object_1.getObjectUtils)(baseSchema));
|
|
11
|
-
}
|
|
12
|
-
exports.lazyObject = lazyObject;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { list } from "./list";
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.list = void 0;
|
|
4
|
-
const Schema_1 = require("../../Schema");
|
|
5
|
-
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
6
|
-
const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
7
|
-
const schema_utils_1 = require("../schema-utils");
|
|
8
|
-
function list(schema) {
|
|
9
|
-
const baseSchema = {
|
|
10
|
-
parse: (raw, opts) => validateAndTransformArray(raw, (item, index) => {
|
|
11
|
-
var _a;
|
|
12
|
-
return schema.parse(item, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `[${index}]`] }));
|
|
13
|
-
}),
|
|
14
|
-
json: (parsed, opts) => validateAndTransformArray(parsed, (item, index) => {
|
|
15
|
-
var _a;
|
|
16
|
-
return schema.json(item, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `[${index}]`] }));
|
|
17
|
-
}),
|
|
18
|
-
getType: () => Schema_1.SchemaType.LIST,
|
|
19
|
-
};
|
|
20
|
-
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
|
21
|
-
}
|
|
22
|
-
exports.list = list;
|
|
23
|
-
function validateAndTransformArray(value, transformItem) {
|
|
24
|
-
if (!Array.isArray(value)) {
|
|
25
|
-
return {
|
|
26
|
-
ok: false,
|
|
27
|
-
errors: [
|
|
28
|
-
{
|
|
29
|
-
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "list"),
|
|
30
|
-
path: [],
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
const maybeValidItems = value.map((item, index) => transformItem(item, index));
|
|
36
|
-
return maybeValidItems.reduce((acc, item) => {
|
|
37
|
-
if (acc.ok && item.ok) {
|
|
38
|
-
return {
|
|
39
|
-
ok: true,
|
|
40
|
-
value: [...acc.value, item.value],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
const errors = [];
|
|
44
|
-
if (!acc.ok) {
|
|
45
|
-
errors.push(...acc.errors);
|
|
46
|
-
}
|
|
47
|
-
if (!item.ok) {
|
|
48
|
-
errors.push(...item.errors);
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
ok: false,
|
|
52
|
-
errors,
|
|
53
|
-
};
|
|
54
|
-
}, { ok: true, value: [] });
|
|
55
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.booleanLiteral = void 0;
|
|
4
|
-
const Schema_1 = require("../../Schema");
|
|
5
|
-
const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
|
|
6
|
-
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
7
|
-
function booleanLiteral(literal) {
|
|
8
|
-
const schemaCreator = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.BOOLEAN_LITERAL, (value, { breadcrumbsPrefix = [] } = {}) => {
|
|
9
|
-
if (value === literal) {
|
|
10
|
-
return {
|
|
11
|
-
ok: true,
|
|
12
|
-
value: literal,
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
return {
|
|
17
|
-
ok: false,
|
|
18
|
-
errors: [
|
|
19
|
-
{
|
|
20
|
-
path: breadcrumbsPrefix,
|
|
21
|
-
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, `${literal.toString()}`),
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
return schemaCreator();
|
|
28
|
-
}
|
|
29
|
-
exports.booleanLiteral = booleanLiteral;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.booleanLiteral = exports.stringLiteral = void 0;
|
|
4
|
-
var stringLiteral_1 = require("./stringLiteral");
|
|
5
|
-
Object.defineProperty(exports, "stringLiteral", { enumerable: true, get: function () { return stringLiteral_1.stringLiteral; } });
|
|
6
|
-
var booleanLiteral_1 = require("./booleanLiteral");
|
|
7
|
-
Object.defineProperty(exports, "booleanLiteral", { enumerable: true, get: function () { return booleanLiteral_1.booleanLiteral; } });
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.stringLiteral = void 0;
|
|
4
|
-
const Schema_1 = require("../../Schema");
|
|
5
|
-
const createIdentitySchemaCreator_1 = require("../../utils/createIdentitySchemaCreator");
|
|
6
|
-
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
7
|
-
function stringLiteral(literal) {
|
|
8
|
-
const schemaCreator = (0, createIdentitySchemaCreator_1.createIdentitySchemaCreator)(Schema_1.SchemaType.STRING_LITERAL, (value, { breadcrumbsPrefix = [] } = {}) => {
|
|
9
|
-
if (value === literal) {
|
|
10
|
-
return {
|
|
11
|
-
ok: true,
|
|
12
|
-
value: literal,
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
return {
|
|
17
|
-
ok: false,
|
|
18
|
-
errors: [
|
|
19
|
-
{
|
|
20
|
-
path: breadcrumbsPrefix,
|
|
21
|
-
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, `"${literal}"`),
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
return schemaCreator();
|
|
28
|
-
}
|
|
29
|
-
exports.stringLiteral = stringLiteral;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { getObjectUtils, object } from "./object";
|
|
2
|
-
export { objectWithoutOptionalProperties } from "./objectWithoutOptionalProperties";
|
|
3
|
-
export type { inferObjectWithoutOptionalPropertiesSchemaFromPropertySchemas, inferParsedObjectWithoutOptionalPropertiesFromPropertySchemas, } from "./objectWithoutOptionalProperties";
|
|
4
|
-
export { isProperty, property } from "./property";
|
|
5
|
-
export type { Property } from "./property";
|
|
6
|
-
export type { BaseObjectSchema, inferObjectSchemaFromPropertySchemas, inferParsedObject, inferParsedObjectFromPropertySchemas, inferParsedPropertySchema, inferRawKey, inferRawObject, inferRawObjectFromPropertySchemas, inferRawPropertySchema, ObjectSchema, ObjectUtils, PropertySchemas, } from "./types";
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.property = exports.isProperty = exports.objectWithoutOptionalProperties = exports.object = exports.getObjectUtils = void 0;
|
|
4
|
-
var object_1 = require("./object");
|
|
5
|
-
Object.defineProperty(exports, "getObjectUtils", { enumerable: true, get: function () { return object_1.getObjectUtils; } });
|
|
6
|
-
Object.defineProperty(exports, "object", { enumerable: true, get: function () { return object_1.object; } });
|
|
7
|
-
var objectWithoutOptionalProperties_1 = require("./objectWithoutOptionalProperties");
|
|
8
|
-
Object.defineProperty(exports, "objectWithoutOptionalProperties", { enumerable: true, get: function () { return objectWithoutOptionalProperties_1.objectWithoutOptionalProperties; } });
|
|
9
|
-
var property_1 = require("./property");
|
|
10
|
-
Object.defineProperty(exports, "isProperty", { enumerable: true, get: function () { return property_1.isProperty; } });
|
|
11
|
-
Object.defineProperty(exports, "property", { enumerable: true, get: function () { return property_1.property; } });
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { BaseObjectSchema, ObjectUtils, PropertySchemas, inferObjectSchemaFromPropertySchemas } from "./types";
|
|
2
|
-
export declare function object<ParsedKeys extends string, T extends PropertySchemas<ParsedKeys>>(schemas: T): inferObjectSchemaFromPropertySchemas<T>;
|
|
3
|
-
export declare function getObjectUtils<Raw, Parsed>(schema: BaseObjectSchema<Raw, Parsed>): ObjectUtils<Raw, Parsed>;
|
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getObjectUtils = exports.object = void 0;
|
|
4
|
-
const Schema_1 = require("../../Schema");
|
|
5
|
-
const entries_1 = require("../../utils/entries");
|
|
6
|
-
const filterObject_1 = require("../../utils/filterObject");
|
|
7
|
-
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
8
|
-
const isPlainObject_1 = require("../../utils/isPlainObject");
|
|
9
|
-
const keys_1 = require("../../utils/keys");
|
|
10
|
-
const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
11
|
-
const partition_1 = require("../../utils/partition");
|
|
12
|
-
const object_like_1 = require("../object-like");
|
|
13
|
-
const schema_utils_1 = require("../schema-utils");
|
|
14
|
-
const property_1 = require("./property");
|
|
15
|
-
function object(schemas) {
|
|
16
|
-
const baseSchema = {
|
|
17
|
-
_getRawProperties: () => Object.entries(schemas).map(([parsedKey, propertySchema]) => (0, property_1.isProperty)(propertySchema) ? propertySchema.rawKey : parsedKey),
|
|
18
|
-
_getParsedProperties: () => (0, keys_1.keys)(schemas),
|
|
19
|
-
parse: (raw, opts) => {
|
|
20
|
-
const rawKeyToProperty = {};
|
|
21
|
-
const requiredKeys = [];
|
|
22
|
-
for (const [parsedKey, schemaOrObjectProperty] of (0, entries_1.entries)(schemas)) {
|
|
23
|
-
const rawKey = (0, property_1.isProperty)(schemaOrObjectProperty) ? schemaOrObjectProperty.rawKey : parsedKey;
|
|
24
|
-
const valueSchema = (0, property_1.isProperty)(schemaOrObjectProperty)
|
|
25
|
-
? schemaOrObjectProperty.valueSchema
|
|
26
|
-
: schemaOrObjectProperty;
|
|
27
|
-
const property = {
|
|
28
|
-
rawKey,
|
|
29
|
-
parsedKey: parsedKey,
|
|
30
|
-
valueSchema,
|
|
31
|
-
};
|
|
32
|
-
rawKeyToProperty[rawKey] = property;
|
|
33
|
-
if (isSchemaRequired(valueSchema)) {
|
|
34
|
-
requiredKeys.push(rawKey);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return validateAndTransformObject({
|
|
38
|
-
value: raw,
|
|
39
|
-
requiredKeys,
|
|
40
|
-
getProperty: (rawKey) => {
|
|
41
|
-
const property = rawKeyToProperty[rawKey];
|
|
42
|
-
if (property == null) {
|
|
43
|
-
return undefined;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
transformedKey: property.parsedKey,
|
|
47
|
-
transform: (propertyValue) => {
|
|
48
|
-
var _a;
|
|
49
|
-
return property.valueSchema.parse(propertyValue, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), rawKey] }));
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
unrecognizedObjectKeys: opts === null || opts === void 0 ? void 0 : opts.unrecognizedObjectKeys,
|
|
54
|
-
skipValidation: opts === null || opts === void 0 ? void 0 : opts.skipValidation,
|
|
55
|
-
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
|
56
|
-
omitUndefined: opts === null || opts === void 0 ? void 0 : opts.omitUndefined,
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
json: (parsed, opts) => {
|
|
60
|
-
const requiredKeys = [];
|
|
61
|
-
for (const [parsedKey, schemaOrObjectProperty] of (0, entries_1.entries)(schemas)) {
|
|
62
|
-
const valueSchema = (0, property_1.isProperty)(schemaOrObjectProperty)
|
|
63
|
-
? schemaOrObjectProperty.valueSchema
|
|
64
|
-
: schemaOrObjectProperty;
|
|
65
|
-
if (isSchemaRequired(valueSchema)) {
|
|
66
|
-
requiredKeys.push(parsedKey);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return validateAndTransformObject({
|
|
70
|
-
value: parsed,
|
|
71
|
-
requiredKeys,
|
|
72
|
-
getProperty: (parsedKey) => {
|
|
73
|
-
const property = schemas[parsedKey];
|
|
74
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
75
|
-
if (property == null) {
|
|
76
|
-
return undefined;
|
|
77
|
-
}
|
|
78
|
-
if ((0, property_1.isProperty)(property)) {
|
|
79
|
-
return {
|
|
80
|
-
transformedKey: property.rawKey,
|
|
81
|
-
transform: (propertyValue) => {
|
|
82
|
-
var _a;
|
|
83
|
-
return property.valueSchema.json(propertyValue, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), parsedKey] }));
|
|
84
|
-
},
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
return {
|
|
89
|
-
transformedKey: parsedKey,
|
|
90
|
-
transform: (propertyValue) => {
|
|
91
|
-
var _a;
|
|
92
|
-
return property.json(propertyValue, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), parsedKey] }));
|
|
93
|
-
},
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
unrecognizedObjectKeys: opts === null || opts === void 0 ? void 0 : opts.unrecognizedObjectKeys,
|
|
98
|
-
skipValidation: opts === null || opts === void 0 ? void 0 : opts.skipValidation,
|
|
99
|
-
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
|
100
|
-
omitUndefined: opts === null || opts === void 0 ? void 0 : opts.omitUndefined,
|
|
101
|
-
});
|
|
102
|
-
},
|
|
103
|
-
getType: () => Schema_1.SchemaType.OBJECT,
|
|
104
|
-
};
|
|
105
|
-
return Object.assign(Object.assign(Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
|
|
106
|
-
}
|
|
107
|
-
exports.object = object;
|
|
108
|
-
function validateAndTransformObject({ value, requiredKeys, getProperty, unrecognizedObjectKeys = "fail", skipValidation = false, breadcrumbsPrefix = [], }) {
|
|
109
|
-
if (!(0, isPlainObject_1.isPlainObject)(value)) {
|
|
110
|
-
return {
|
|
111
|
-
ok: false,
|
|
112
|
-
errors: [
|
|
113
|
-
{
|
|
114
|
-
path: breadcrumbsPrefix,
|
|
115
|
-
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
const missingRequiredKeys = new Set(requiredKeys);
|
|
121
|
-
const errors = [];
|
|
122
|
-
const transformed = {};
|
|
123
|
-
for (const [preTransformedKey, preTransformedItemValue] of Object.entries(value)) {
|
|
124
|
-
const property = getProperty(preTransformedKey);
|
|
125
|
-
if (property != null) {
|
|
126
|
-
missingRequiredKeys.delete(preTransformedKey);
|
|
127
|
-
const value = property.transform(preTransformedItemValue);
|
|
128
|
-
if (value.ok) {
|
|
129
|
-
transformed[property.transformedKey] = value.value;
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
transformed[preTransformedKey] = preTransformedItemValue;
|
|
133
|
-
errors.push(...value.errors);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
switch (unrecognizedObjectKeys) {
|
|
138
|
-
case "fail":
|
|
139
|
-
errors.push({
|
|
140
|
-
path: [...breadcrumbsPrefix, preTransformedKey],
|
|
141
|
-
message: `Unexpected key "${preTransformedKey}"`,
|
|
142
|
-
});
|
|
143
|
-
break;
|
|
144
|
-
case "strip":
|
|
145
|
-
break;
|
|
146
|
-
case "passthrough":
|
|
147
|
-
transformed[preTransformedKey] = preTransformedItemValue;
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
errors.push(...requiredKeys
|
|
153
|
-
.filter((key) => missingRequiredKeys.has(key))
|
|
154
|
-
.map((key) => ({
|
|
155
|
-
path: breadcrumbsPrefix,
|
|
156
|
-
message: `Missing required key "${key}"`,
|
|
157
|
-
})));
|
|
158
|
-
if (errors.length === 0 || skipValidation) {
|
|
159
|
-
return {
|
|
160
|
-
ok: true,
|
|
161
|
-
value: transformed,
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
return {
|
|
166
|
-
ok: false,
|
|
167
|
-
errors,
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
function getObjectUtils(schema) {
|
|
172
|
-
return {
|
|
173
|
-
extend: (extension) => {
|
|
174
|
-
const baseSchema = {
|
|
175
|
-
_getParsedProperties: () => [...schema._getParsedProperties(), ...extension._getParsedProperties()],
|
|
176
|
-
_getRawProperties: () => [...schema._getRawProperties(), ...extension._getRawProperties()],
|
|
177
|
-
parse: (raw, opts) => {
|
|
178
|
-
return validateAndTransformExtendedObject({
|
|
179
|
-
extensionKeys: extension._getRawProperties(),
|
|
180
|
-
value: raw,
|
|
181
|
-
transformBase: (rawBase) => schema.parse(rawBase, opts),
|
|
182
|
-
transformExtension: (rawExtension) => extension.parse(rawExtension, opts),
|
|
183
|
-
});
|
|
184
|
-
},
|
|
185
|
-
json: (parsed, opts) => {
|
|
186
|
-
return validateAndTransformExtendedObject({
|
|
187
|
-
extensionKeys: extension._getParsedProperties(),
|
|
188
|
-
value: parsed,
|
|
189
|
-
transformBase: (parsedBase) => schema.json(parsedBase, opts),
|
|
190
|
-
transformExtension: (parsedExtension) => extension.json(parsedExtension, opts),
|
|
191
|
-
});
|
|
192
|
-
},
|
|
193
|
-
getType: () => Schema_1.SchemaType.OBJECT,
|
|
194
|
-
};
|
|
195
|
-
return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
|
|
196
|
-
},
|
|
197
|
-
passthrough: () => {
|
|
198
|
-
const baseSchema = {
|
|
199
|
-
_getParsedProperties: () => schema._getParsedProperties(),
|
|
200
|
-
_getRawProperties: () => schema._getRawProperties(),
|
|
201
|
-
parse: (raw, opts) => {
|
|
202
|
-
const transformed = schema.parse(raw, Object.assign(Object.assign({}, opts), { unrecognizedObjectKeys: "passthrough" }));
|
|
203
|
-
if (!transformed.ok) {
|
|
204
|
-
return transformed;
|
|
205
|
-
}
|
|
206
|
-
return {
|
|
207
|
-
ok: true,
|
|
208
|
-
value: Object.assign(Object.assign({}, raw), transformed.value),
|
|
209
|
-
};
|
|
210
|
-
},
|
|
211
|
-
json: (parsed, opts) => {
|
|
212
|
-
const transformed = schema.json(parsed, Object.assign(Object.assign({}, opts), { unrecognizedObjectKeys: "passthrough" }));
|
|
213
|
-
if (!transformed.ok) {
|
|
214
|
-
return transformed;
|
|
215
|
-
}
|
|
216
|
-
return {
|
|
217
|
-
ok: true,
|
|
218
|
-
value: Object.assign(Object.assign({}, parsed), transformed.value),
|
|
219
|
-
};
|
|
220
|
-
},
|
|
221
|
-
getType: () => Schema_1.SchemaType.OBJECT,
|
|
222
|
-
};
|
|
223
|
-
return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
|
|
224
|
-
},
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
exports.getObjectUtils = getObjectUtils;
|
|
228
|
-
function validateAndTransformExtendedObject({ extensionKeys, value, transformBase, transformExtension, }) {
|
|
229
|
-
const extensionPropertiesSet = new Set(extensionKeys);
|
|
230
|
-
const [extensionProperties, baseProperties] = (0, partition_1.partition)((0, keys_1.keys)(value), (key) => extensionPropertiesSet.has(key));
|
|
231
|
-
const transformedBase = transformBase((0, filterObject_1.filterObject)(value, baseProperties));
|
|
232
|
-
const transformedExtension = transformExtension((0, filterObject_1.filterObject)(value, extensionProperties));
|
|
233
|
-
if (transformedBase.ok && transformedExtension.ok) {
|
|
234
|
-
return {
|
|
235
|
-
ok: true,
|
|
236
|
-
value: Object.assign(Object.assign({}, transformedBase.value), transformedExtension.value),
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
return {
|
|
241
|
-
ok: false,
|
|
242
|
-
errors: [
|
|
243
|
-
...(transformedBase.ok ? [] : transformedBase.errors),
|
|
244
|
-
...(transformedExtension.ok ? [] : transformedExtension.errors),
|
|
245
|
-
],
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
function isSchemaRequired(schema) {
|
|
250
|
-
return !isSchemaOptional(schema);
|
|
251
|
-
}
|
|
252
|
-
function isSchemaOptional(schema) {
|
|
253
|
-
switch (schema.getType()) {
|
|
254
|
-
case Schema_1.SchemaType.ANY:
|
|
255
|
-
case Schema_1.SchemaType.UNKNOWN:
|
|
256
|
-
case Schema_1.SchemaType.OPTIONAL:
|
|
257
|
-
case Schema_1.SchemaType.OPTIONAL_NULLABLE:
|
|
258
|
-
return true;
|
|
259
|
-
default:
|
|
260
|
-
return false;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ObjectSchema, PropertySchemas, inferParsedPropertySchema, inferRawObjectFromPropertySchemas } from "./types";
|
|
2
|
-
export declare function objectWithoutOptionalProperties<ParsedKeys extends string, T extends PropertySchemas<ParsedKeys>>(schemas: T): inferObjectWithoutOptionalPropertiesSchemaFromPropertySchemas<T>;
|
|
3
|
-
export declare type inferObjectWithoutOptionalPropertiesSchemaFromPropertySchemas<T extends PropertySchemas<keyof T>> = ObjectSchema<inferRawObjectFromPropertySchemas<T>, inferParsedObjectWithoutOptionalPropertiesFromPropertySchemas<T>>;
|
|
4
|
-
export declare type inferParsedObjectWithoutOptionalPropertiesFromPropertySchemas<T extends PropertySchemas<keyof T>> = {
|
|
5
|
-
[K in keyof T]: inferParsedPropertySchema<T[K]>;
|
|
6
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.objectWithoutOptionalProperties = void 0;
|
|
4
|
-
const object_1 = require("./object");
|
|
5
|
-
function objectWithoutOptionalProperties(schemas) {
|
|
6
|
-
return (0, object_1.object)(schemas);
|
|
7
|
-
}
|
|
8
|
-
exports.objectWithoutOptionalProperties = objectWithoutOptionalProperties;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Schema } from "../../Schema";
|
|
2
|
-
export declare function property<RawKey extends string, RawValue, ParsedValue>(rawKey: RawKey, valueSchema: Schema<RawValue, ParsedValue>): Property<RawKey, RawValue, ParsedValue>;
|
|
3
|
-
export interface Property<RawKey extends string, RawValue, ParsedValue> {
|
|
4
|
-
rawKey: RawKey;
|
|
5
|
-
valueSchema: Schema<RawValue, ParsedValue>;
|
|
6
|
-
isProperty: true;
|
|
7
|
-
}
|
|
8
|
-
export declare function isProperty<O extends Property<any, any, any>>(maybeProperty: unknown): maybeProperty is O;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isProperty = exports.property = void 0;
|
|
4
|
-
function property(rawKey, valueSchema) {
|
|
5
|
-
return {
|
|
6
|
-
rawKey,
|
|
7
|
-
valueSchema,
|
|
8
|
-
isProperty: true,
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
exports.property = property;
|
|
12
|
-
function isProperty(maybeProperty) {
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
14
|
-
return maybeProperty.isProperty;
|
|
15
|
-
}
|
|
16
|
-
exports.isProperty = isProperty;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BaseSchema, Schema, inferParsed, inferRaw } from "../../Schema";
|
|
2
|
-
import { addQuestionMarksToNullableProperties } from "../../utils/addQuestionMarksToNullableProperties";
|
|
3
|
-
import { ObjectLikeUtils } from "../object-like";
|
|
4
|
-
import { SchemaUtils } from "../schema-utils";
|
|
5
|
-
import { Property } from "./property";
|
|
6
|
-
export declare type ObjectSchema<Raw, Parsed> = BaseObjectSchema<Raw, Parsed> & ObjectLikeUtils<Raw, Parsed> & ObjectUtils<Raw, Parsed> & SchemaUtils<Raw, Parsed>;
|
|
7
|
-
export interface BaseObjectSchema<Raw, Parsed> extends BaseSchema<Raw, Parsed> {
|
|
8
|
-
_getRawProperties: () => (keyof Raw)[];
|
|
9
|
-
_getParsedProperties: () => (keyof Parsed)[];
|
|
10
|
-
}
|
|
11
|
-
export interface ObjectUtils<Raw, Parsed> {
|
|
12
|
-
extend: <RawExtension, ParsedExtension>(schemas: ObjectSchema<RawExtension, ParsedExtension>) => ObjectSchema<Raw & RawExtension, Parsed & ParsedExtension>;
|
|
13
|
-
passthrough: () => ObjectSchema<Raw & {
|
|
14
|
-
[key: string]: unknown;
|
|
15
|
-
}, Parsed & {
|
|
16
|
-
[key: string]: unknown;
|
|
17
|
-
}>;
|
|
18
|
-
}
|
|
19
|
-
export declare type inferRawObject<O extends ObjectSchema<any, any>> = O extends ObjectSchema<infer Raw, any> ? Raw : never;
|
|
20
|
-
export declare type inferParsedObject<O extends ObjectSchema<any, any>> = O extends ObjectSchema<any, infer Parsed> ? Parsed : never;
|
|
21
|
-
export declare type inferObjectSchemaFromPropertySchemas<T extends PropertySchemas<keyof T>> = ObjectSchema<inferRawObjectFromPropertySchemas<T>, inferParsedObjectFromPropertySchemas<T>>;
|
|
22
|
-
export declare type inferRawObjectFromPropertySchemas<T extends PropertySchemas<keyof T>> = addQuestionMarksToNullableProperties<{
|
|
23
|
-
[ParsedKey in keyof T as inferRawKey<ParsedKey, T[ParsedKey]>]: inferRawPropertySchema<T[ParsedKey]>;
|
|
24
|
-
}>;
|
|
25
|
-
export declare type inferParsedObjectFromPropertySchemas<T extends PropertySchemas<keyof T>> = addQuestionMarksToNullableProperties<{
|
|
26
|
-
[K in keyof T]: inferParsedPropertySchema<T[K]>;
|
|
27
|
-
}>;
|
|
28
|
-
export declare type PropertySchemas<ParsedKeys extends string | number | symbol> = Record<ParsedKeys, Property<any, any, any> | Schema<any, any>>;
|
|
29
|
-
export declare type inferRawPropertySchema<P extends Property<any, any, any> | Schema<any, any>> = P extends Property<any, infer Raw, any> ? Raw : P extends Schema<any, any> ? inferRaw<P> : never;
|
|
30
|
-
export declare type inferParsedPropertySchema<P extends Property<any, any, any> | Schema<any, any>> = P extends Property<any, any, infer Parsed> ? Parsed : P extends Schema<any, any> ? inferParsed<P> : never;
|
|
31
|
-
export declare type inferRawKey<ParsedKey extends string | number | symbol, P extends Property<any, any, any> | Schema<any, any>> = P extends Property<infer Raw, any, any> ? Raw : ParsedKey;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseSchema } from "../../Schema";
|
|
2
|
-
import { ObjectLikeSchema, ObjectLikeUtils } from "./types";
|
|
3
|
-
export declare function getObjectLikeUtils<Raw, Parsed>(schema: BaseSchema<Raw, Parsed>): ObjectLikeUtils<Raw, Parsed>;
|
|
4
|
-
/**
|
|
5
|
-
* object-like utils are defined in one file to resolve issues with circular imports
|
|
6
|
-
*/
|
|
7
|
-
export declare function withParsedProperties<RawObjectShape, ParsedObjectShape, Properties>(objectLike: BaseSchema<RawObjectShape, ParsedObjectShape>, properties: {
|
|
8
|
-
[K in keyof Properties]: Properties[K] | ((parsed: ParsedObjectShape) => Properties[K]);
|
|
9
|
-
}): ObjectLikeSchema<RawObjectShape, ParsedObjectShape & Properties>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withParsedProperties = exports.getObjectLikeUtils = void 0;
|
|
4
|
-
const filterObject_1 = require("../../utils/filterObject");
|
|
5
|
-
const getErrorMessageForIncorrectType_1 = require("../../utils/getErrorMessageForIncorrectType");
|
|
6
|
-
const isPlainObject_1 = require("../../utils/isPlainObject");
|
|
7
|
-
const schema_utils_1 = require("../schema-utils");
|
|
8
|
-
function getObjectLikeUtils(schema) {
|
|
9
|
-
return {
|
|
10
|
-
withParsedProperties: (properties) => withParsedProperties(schema, properties),
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
exports.getObjectLikeUtils = getObjectLikeUtils;
|
|
14
|
-
/**
|
|
15
|
-
* object-like utils are defined in one file to resolve issues with circular imports
|
|
16
|
-
*/
|
|
17
|
-
function withParsedProperties(objectLike, properties) {
|
|
18
|
-
const objectSchema = {
|
|
19
|
-
parse: (raw, opts) => {
|
|
20
|
-
const parsedObject = objectLike.parse(raw, opts);
|
|
21
|
-
if (!parsedObject.ok) {
|
|
22
|
-
return parsedObject;
|
|
23
|
-
}
|
|
24
|
-
const additionalProperties = Object.entries(properties).reduce((processed, [key, value]) => {
|
|
25
|
-
return Object.assign(Object.assign({}, processed), { [key]: typeof value === "function" ? value(parsedObject.value) : value });
|
|
26
|
-
}, {});
|
|
27
|
-
return {
|
|
28
|
-
ok: true,
|
|
29
|
-
value: Object.assign(Object.assign({}, parsedObject.value), additionalProperties),
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
json: (parsed, opts) => {
|
|
33
|
-
var _a;
|
|
34
|
-
if (!(0, isPlainObject_1.isPlainObject)(parsed)) {
|
|
35
|
-
return {
|
|
36
|
-
ok: false,
|
|
37
|
-
errors: [
|
|
38
|
-
{
|
|
39
|
-
path: (_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : [],
|
|
40
|
-
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(parsed, "object"),
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
// strip out added properties
|
|
46
|
-
const addedPropertyKeys = new Set(Object.keys(properties));
|
|
47
|
-
const parsedWithoutAddedProperties = (0, filterObject_1.filterObject)(parsed, Object.keys(parsed).filter((key) => !addedPropertyKeys.has(key)));
|
|
48
|
-
return objectLike.json(parsedWithoutAddedProperties, opts);
|
|
49
|
-
},
|
|
50
|
-
getType: () => objectLike.getType(),
|
|
51
|
-
};
|
|
52
|
-
return Object.assign(Object.assign(Object.assign({}, objectSchema), (0, schema_utils_1.getSchemaUtils)(objectSchema)), getObjectLikeUtils(objectSchema));
|
|
53
|
-
}
|
|
54
|
-
exports.withParsedProperties = withParsedProperties;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withParsedProperties = exports.getObjectLikeUtils = void 0;
|
|
4
|
-
var getObjectLikeUtils_1 = require("./getObjectLikeUtils");
|
|
5
|
-
Object.defineProperty(exports, "getObjectLikeUtils", { enumerable: true, get: function () { return getObjectLikeUtils_1.getObjectLikeUtils; } });
|
|
6
|
-
Object.defineProperty(exports, "withParsedProperties", { enumerable: true, get: function () { return getObjectLikeUtils_1.withParsedProperties; } });
|