@rulebricks/sdk 1.2.1 → 1.4.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/Client.d.ts +12 -11
- package/Client.js +15 -15
- package/README.md +3 -3
- package/api/errors/BadRequestError.d.ts +1 -1
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/ForbiddenError.d.ts +2 -3
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/InternalServerError.d.ts +1 -1
- package/api/errors/InternalServerError.js +1 -1
- package/api/errors/NotFoundError.d.ts +1 -1
- package/api/errors/NotFoundError.js +1 -1
- package/api/resources/assets/client/Client.d.ts +13 -120
- package/api/resources/assets/client/Client.js +17 -526
- package/api/resources/assets/client/index.d.ts +1 -1
- package/api/resources/assets/client/index.js +0 -15
- package/api/resources/assets/index.d.ts +1 -0
- package/api/resources/assets/index.js +1 -0
- package/api/resources/assets/resources/flows/client/Client.d.ts +42 -0
- package/api/resources/assets/resources/flows/client/Client.js +116 -0
- package/api/resources/assets/resources/flows/client/index.d.ts +1 -0
- package/api/resources/assets/resources/flows/index.d.ts +1 -0
- package/{dist/serialization/resources/values/types → api/resources/assets/resources/flows}/index.js +1 -1
- package/api/resources/assets/resources/folders/client/Client.d.ts +74 -0
- package/api/resources/assets/resources/folders/client/Client.js +248 -0
- package/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -0
- package/api/resources/assets/resources/folders/index.d.ts +1 -0
- package/{dist/api/resources/values/types → api/resources/assets/resources/folders}/index.js +1 -1
- package/api/resources/assets/resources/index.d.ts +5 -0
- package/api/resources/assets/resources/index.js +34 -0
- package/api/resources/assets/resources/rules/client/Client.d.ts +94 -0
- package/api/resources/assets/resources/rules/client/Client.js +332 -0
- package/{dist/api/resources/assets/client/requests/ListRulesRequest.d.ts → api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts} +1 -1
- package/{dist/api/resources/assets/client/requests/ExportRuleRequest.d.ts → api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts} +1 -1
- package/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -0
- package/api/resources/assets/resources/rules/client/requests/index.js +2 -0
- package/api/resources/assets/resources/rules/index.d.ts +1 -0
- package/api/resources/assets/resources/rules/index.js +17 -0
- package/api/resources/decisions/client/Client.d.ts +7 -6
- package/api/resources/decisions/client/Client.js +13 -12
- package/{dist/api/resources/decisions/client/requests/QueryRequest.d.ts → api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts} +1 -1
- package/api/resources/decisions/client/requests/index.d.ts +1 -1
- package/api/resources/flows/client/Client.d.ts +7 -6
- package/api/resources/flows/client/Client.js +13 -12
- package/api/resources/index.d.ts +1 -3
- package/api/resources/index.js +2 -4
- package/api/resources/rules/client/Client.d.ts +15 -14
- package/api/resources/rules/client/Client.js +35 -34
- package/api/resources/tests/client/Client.d.ts +8 -120
- package/api/resources/tests/client/Client.js +6 -441
- package/api/resources/tests/index.d.ts +1 -0
- package/api/resources/tests/index.js +1 -0
- package/api/resources/tests/resources/flows/client/Client.d.ts +82 -0
- package/api/resources/tests/resources/flows/client/Client.js +257 -0
- package/api/resources/tests/resources/flows/client/index.d.ts +1 -0
- package/api/resources/tests/resources/flows/client/index.js +2 -0
- package/api/resources/tests/resources/flows/index.d.ts +1 -0
- package/api/resources/tests/resources/flows/index.js +17 -0
- package/api/resources/tests/resources/index.d.ts +2 -0
- package/api/resources/tests/resources/index.js +28 -0
- package/api/resources/tests/resources/rules/client/Client.d.ts +82 -0
- package/api/resources/tests/resources/rules/client/Client.js +257 -0
- package/api/resources/tests/resources/rules/client/index.d.ts +1 -0
- package/api/resources/tests/resources/rules/client/index.js +2 -0
- package/api/resources/tests/resources/rules/index.d.ts +1 -0
- package/api/resources/tests/resources/rules/index.js +17 -0
- package/api/resources/users/client/Client.d.ts +12 -35
- package/api/resources/users/client/Client.js +21 -137
- package/api/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
- package/api/resources/users/client/requests/index.d.ts +0 -1
- package/api/resources/users/index.d.ts +1 -0
- package/api/resources/users/index.js +1 -0
- package/api/resources/users/resources/groups/client/Client.d.ts +58 -0
- package/api/resources/users/resources/groups/client/Client.js +181 -0
- package/api/resources/users/resources/groups/client/index.d.ts +1 -0
- package/api/resources/users/resources/groups/client/index.js +17 -0
- package/api/resources/users/resources/groups/client/requests/index.d.ts +1 -0
- package/api/resources/users/resources/groups/client/requests/index.js +2 -0
- package/api/resources/users/resources/groups/index.d.ts +1 -0
- package/api/resources/users/resources/groups/index.js +17 -0
- package/api/resources/users/resources/index.d.ts +2 -0
- package/api/resources/users/resources/index.js +31 -0
- package/api/resources/values/client/Client.d.ts +73 -18
- package/api/resources/values/client/Client.js +101 -39
- package/api/resources/values/client/requests/UpdateValuesRequest.d.ts +81 -4
- package/{dist/api/resources/values/client/requests/DeleteRequest.d.ts → api/resources/values/client/requests/ValuesDeleteRequest.d.ts} +1 -1
- package/api/resources/values/client/requests/ValuesListRequest.d.ts +24 -0
- package/api/resources/values/client/requests/index.d.ts +2 -2
- package/api/resources/values/index.d.ts +0 -1
- package/api/resources/values/index.js +0 -1
- package/api/types/BulkRuleResponseItem.d.ts +2 -2
- package/api/types/DecisionLog.d.ts +4 -4
- package/api/types/DecisionLogDecision.d.ts +2 -2
- package/api/types/DecisionLogResponse.d.ts +2 -2
- package/api/types/DynamicValue.d.ts +13 -15
- package/api/types/DynamicValueListResponse.d.ts +2 -2
- package/api/types/FlowDetail.d.ts +2 -2
- package/api/types/FlowListResponse.d.ts +2 -2
- package/api/types/FolderListResponse.d.ts +2 -2
- package/api/types/ParallelSolveRequest.d.ts +2 -2
- package/api/types/ParallelSolveResponse.d.ts +2 -2
- package/api/types/RuleDetail.d.ts +5 -5
- package/api/types/RuleListResponse.d.ts +2 -2
- package/api/types/SchemaField.d.ts +3 -3
- package/api/types/Test.d.ts +2 -2
- package/api/types/TestListResponse.d.ts +2 -2
- package/api/types/TestTestState.d.ts +3 -3
- package/api/types/UserGroupListResponse.d.ts +2 -2
- package/api/types/UserInviteResponse.d.ts +2 -2
- package/api/types/index.d.ts +0 -6
- package/api/types/index.js +0 -6
- package/dist/Client.d.ts +12 -11
- package/dist/Client.js +15 -15
- package/dist/api/errors/BadRequestError.d.ts +1 -1
- package/dist/api/errors/BadRequestError.js +1 -1
- package/dist/api/errors/ForbiddenError.d.ts +2 -3
- package/dist/api/errors/ForbiddenError.js +1 -1
- package/dist/api/errors/InternalServerError.d.ts +1 -1
- package/dist/api/errors/InternalServerError.js +1 -1
- package/dist/api/errors/NotFoundError.d.ts +1 -1
- package/dist/api/errors/NotFoundError.js +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +13 -120
- package/dist/api/resources/assets/client/Client.js +17 -526
- package/dist/api/resources/assets/client/index.d.ts +1 -1
- package/dist/api/resources/assets/client/index.js +0 -15
- package/dist/api/resources/assets/index.d.ts +1 -0
- package/dist/api/resources/assets/index.js +1 -0
- package/dist/api/resources/assets/resources/flows/client/Client.d.ts +42 -0
- package/dist/api/resources/assets/resources/flows/client/Client.js +116 -0
- package/dist/api/resources/assets/resources/flows/client/index.d.ts +1 -0
- package/dist/api/resources/assets/resources/flows/client/index.js +2 -0
- package/dist/api/resources/assets/resources/flows/index.d.ts +1 -0
- package/dist/api/resources/assets/resources/flows/index.js +17 -0
- package/dist/api/resources/assets/resources/folders/client/Client.d.ts +74 -0
- package/dist/api/resources/assets/resources/folders/client/Client.js +248 -0
- package/dist/api/resources/assets/resources/folders/client/index.d.ts +1 -0
- package/dist/api/resources/assets/resources/folders/client/index.js +17 -0
- package/dist/api/resources/assets/resources/folders/client/requests/index.d.ts +2 -0
- package/dist/api/resources/assets/resources/folders/client/requests/index.js +2 -0
- package/dist/api/resources/assets/resources/folders/index.d.ts +1 -0
- package/dist/api/resources/assets/resources/folders/index.js +17 -0
- package/dist/api/resources/assets/resources/index.d.ts +5 -0
- package/dist/api/resources/assets/resources/index.js +34 -0
- package/dist/api/resources/assets/resources/rules/client/Client.d.ts +94 -0
- package/dist/api/resources/assets/resources/rules/client/Client.js +332 -0
- package/dist/api/resources/assets/resources/rules/client/index.d.ts +1 -0
- package/dist/api/resources/assets/resources/rules/client/index.js +17 -0
- package/{api/resources/assets/client/requests/ListRulesRequest.d.ts → dist/api/resources/assets/resources/rules/client/requests/RulesListRequest.d.ts} +1 -1
- package/{api/resources/assets/client/requests/ExportRuleRequest.d.ts → dist/api/resources/assets/resources/rules/client/requests/RulesPullRequest.d.ts} +1 -1
- package/dist/api/resources/assets/resources/rules/client/requests/index.d.ts +4 -0
- package/dist/api/resources/assets/resources/rules/client/requests/index.js +2 -0
- package/dist/api/resources/assets/resources/rules/index.d.ts +1 -0
- package/dist/api/resources/assets/resources/rules/index.js +17 -0
- package/dist/api/resources/decisions/client/Client.d.ts +7 -6
- package/dist/api/resources/decisions/client/Client.js +13 -12
- package/{api/resources/decisions/client/requests/QueryRequest.d.ts → dist/api/resources/decisions/client/requests/DecisionsQueryRequest.d.ts} +1 -1
- package/dist/api/resources/decisions/client/requests/index.d.ts +1 -1
- package/dist/api/resources/flows/client/Client.d.ts +7 -6
- package/dist/api/resources/flows/client/Client.js +13 -12
- package/dist/api/resources/index.d.ts +1 -3
- package/dist/api/resources/index.js +2 -4
- package/dist/api/resources/rules/client/Client.d.ts +15 -14
- package/dist/api/resources/rules/client/Client.js +35 -34
- package/dist/api/resources/tests/client/Client.d.ts +8 -120
- package/dist/api/resources/tests/client/Client.js +6 -441
- package/dist/api/resources/tests/index.d.ts +1 -0
- package/dist/api/resources/tests/index.js +1 -0
- package/dist/api/resources/tests/resources/flows/client/Client.d.ts +82 -0
- package/dist/api/resources/tests/resources/flows/client/Client.js +257 -0
- package/dist/api/resources/tests/resources/flows/client/index.d.ts +1 -0
- package/dist/api/resources/tests/resources/flows/client/index.js +2 -0
- package/dist/api/resources/tests/resources/flows/index.d.ts +1 -0
- package/dist/api/resources/tests/resources/flows/index.js +17 -0
- package/dist/api/resources/tests/resources/index.d.ts +2 -0
- package/dist/api/resources/tests/resources/index.js +28 -0
- package/dist/api/resources/tests/resources/rules/client/Client.d.ts +82 -0
- package/dist/api/resources/tests/resources/rules/client/Client.js +257 -0
- package/dist/api/resources/tests/resources/rules/client/index.d.ts +1 -0
- package/dist/api/resources/tests/resources/rules/client/index.js +2 -0
- package/dist/api/resources/tests/resources/rules/index.d.ts +1 -0
- package/dist/api/resources/tests/resources/rules/index.js +17 -0
- package/dist/api/resources/users/client/Client.d.ts +12 -35
- package/dist/api/resources/users/client/Client.js +21 -137
- package/dist/api/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
- package/dist/api/resources/users/client/requests/index.d.ts +0 -1
- package/dist/api/resources/users/index.d.ts +1 -0
- package/dist/api/resources/users/index.js +1 -0
- package/dist/api/resources/users/resources/groups/client/Client.d.ts +58 -0
- package/dist/api/resources/users/resources/groups/client/Client.js +181 -0
- package/dist/api/resources/users/resources/groups/client/index.d.ts +1 -0
- package/dist/api/resources/users/resources/groups/client/index.js +17 -0
- package/dist/api/resources/users/resources/groups/client/requests/index.d.ts +1 -0
- package/dist/api/resources/users/resources/groups/client/requests/index.js +2 -0
- package/dist/api/resources/users/resources/groups/index.d.ts +1 -0
- package/dist/api/resources/users/resources/groups/index.js +17 -0
- package/dist/api/resources/users/resources/index.d.ts +2 -0
- package/dist/api/resources/users/resources/index.js +31 -0
- package/dist/api/resources/values/client/Client.d.ts +73 -18
- package/dist/api/resources/values/client/Client.js +101 -39
- package/dist/api/resources/values/client/requests/UpdateValuesRequest.d.ts +81 -4
- package/{api/resources/values/client/requests/DeleteRequest.d.ts → dist/api/resources/values/client/requests/ValuesDeleteRequest.d.ts} +1 -1
- package/dist/api/resources/values/client/requests/ValuesListRequest.d.ts +24 -0
- package/dist/api/resources/values/client/requests/index.d.ts +2 -2
- package/dist/api/resources/values/index.d.ts +0 -1
- package/dist/api/resources/values/index.js +0 -1
- package/dist/api/types/BulkRuleResponseItem.d.ts +2 -2
- package/dist/api/types/DecisionLog.d.ts +4 -4
- package/dist/api/types/DecisionLogDecision.d.ts +2 -2
- package/dist/api/types/DecisionLogResponse.d.ts +2 -2
- package/dist/api/types/DynamicValue.d.ts +13 -15
- package/dist/api/types/DynamicValueListResponse.d.ts +2 -2
- package/dist/api/types/FlowDetail.d.ts +2 -2
- package/dist/api/types/FlowListResponse.d.ts +2 -2
- package/dist/api/types/FolderListResponse.d.ts +2 -2
- package/dist/api/types/ParallelSolveRequest.d.ts +2 -2
- package/dist/api/types/ParallelSolveResponse.d.ts +2 -2
- package/dist/api/types/RuleDetail.d.ts +5 -5
- package/dist/api/types/RuleListResponse.d.ts +2 -2
- package/dist/api/types/SchemaField.d.ts +3 -3
- package/dist/api/types/Test.d.ts +2 -2
- package/dist/api/types/TestListResponse.d.ts +2 -2
- package/dist/api/types/TestTestState.d.ts +3 -3
- package/dist/api/types/UserGroupListResponse.d.ts +2 -2
- package/dist/api/types/UserInviteResponse.d.ts +2 -2
- package/dist/api/types/index.d.ts +0 -6
- package/dist/api/types/index.js +0 -6
- package/dist/environments.d.ts +7 -0
- package/dist/environments.js +9 -0
- package/dist/errors/{RulebricksApiError.d.ts → RulebricksError.d.ts} +1 -1
- package/dist/errors/{RulebricksApiError.js → RulebricksError.js} +4 -4
- package/dist/errors/{RulebricksApiTimeoutError.d.ts → RulebricksTimeoutError.d.ts} +1 -1
- package/dist/errors/RulebricksTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -2
- package/dist/errors/index.js +5 -5
- package/dist/forge/rule.d.ts +2 -2
- package/dist/forge/rule.js +8 -8
- package/dist/forge/values.d.ts +2 -2
- package/dist/index.d.ts +4 -3
- package/dist/index.js +7 -5
- package/dist/serialization/resources/assets/index.d.ts +1 -1
- package/dist/serialization/resources/assets/index.js +1 -1
- package/dist/serialization/resources/assets/resources/folders/client/index.d.ts +1 -0
- package/dist/serialization/resources/assets/resources/folders/client/index.js +17 -0
- package/dist/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +12 -0
- package/dist/serialization/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +1 -1
- package/dist/serialization/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.d.ts +4 -4
- package/{serialization/resources/assets → dist/serialization/resources/assets/resources/folders}/client/requests/UpsertFolderRequest.js +1 -1
- package/dist/serialization/resources/assets/{client → resources/folders/client}/requests/index.d.ts +0 -2
- package/dist/serialization/resources/assets/resources/folders/client/requests/index.js +7 -0
- package/dist/serialization/resources/assets/resources/folders/index.d.ts +1 -0
- package/dist/serialization/resources/assets/resources/folders/index.js +17 -0
- package/dist/serialization/resources/assets/resources/index.d.ts +4 -0
- package/dist/serialization/resources/assets/resources/index.js +33 -0
- package/dist/serialization/resources/assets/resources/rules/client/index.d.ts +1 -0
- package/dist/serialization/resources/assets/resources/rules/client/index.js +17 -0
- package/dist/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +12 -0
- package/dist/serialization/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.js +1 -1
- package/dist/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +12 -0
- package/{serialization/resources/assets → dist/serialization/resources/assets/resources/rules}/client/requests/ImportRuleRequest.js +1 -1
- package/dist/serialization/resources/assets/resources/rules/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/assets/resources/rules/client/requests/index.js +7 -0
- package/dist/serialization/resources/assets/resources/rules/index.d.ts +1 -0
- package/dist/serialization/resources/assets/resources/rules/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +2 -4
- package/dist/serialization/resources/index.js +3 -5
- package/dist/serialization/resources/rules/client/bulkSolve.d.ts +3 -3
- package/dist/serialization/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
- package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/users/client/requests/index.js +1 -3
- package/dist/serialization/resources/users/index.d.ts +1 -0
- package/dist/serialization/resources/users/index.js +1 -0
- package/dist/serialization/resources/users/resources/groups/client/index.d.ts +1 -0
- package/dist/serialization/resources/users/resources/groups/client/index.js +17 -0
- package/dist/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +4 -4
- package/dist/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +1 -1
- package/dist/serialization/resources/users/resources/groups/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/users/resources/groups/client/requests/index.js +5 -0
- package/dist/serialization/resources/users/resources/groups/index.d.ts +1 -0
- package/dist/serialization/resources/users/resources/groups/index.js +17 -0
- package/dist/serialization/resources/users/resources/index.d.ts +2 -0
- package/dist/serialization/resources/users/resources/index.js +31 -0
- package/dist/serialization/resources/users/types/UserInviteRequestRole.d.ts +2 -2
- package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +3 -4
- package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.js +1 -2
- package/dist/serialization/resources/values/index.d.ts +0 -1
- package/dist/serialization/resources/values/index.js +0 -1
- package/dist/serialization/types/BulkRuleResponseItem.d.ts +2 -2
- package/dist/serialization/types/BulkRuleResponseItemError.d.ts +2 -2
- package/dist/serialization/types/CreateTestRequest.d.ts +2 -2
- package/dist/serialization/types/DecisionLog.d.ts +2 -2
- package/dist/serialization/types/DecisionLogDecision.d.ts +2 -2
- package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +2 -2
- package/dist/serialization/types/DecisionLogRequest.d.ts +2 -2
- package/dist/serialization/types/DecisionLogResponse.d.ts +2 -2
- package/dist/serialization/types/DynamicRequestPayload.d.ts +2 -2
- package/dist/serialization/types/DynamicResponsePayload.d.ts +2 -2
- package/dist/serialization/types/DynamicValue.d.ts +10 -18
- package/dist/serialization/types/DynamicValue.js +8 -14
- package/dist/serialization/types/DynamicValueListResponse.d.ts +2 -2
- package/dist/serialization/types/Error_.d.ts +2 -2
- package/dist/serialization/types/FlowBase.d.ts +2 -2
- package/dist/serialization/types/FlowDetail.d.ts +2 -2
- package/dist/serialization/types/FlowExecutionError.d.ts +2 -2
- package/dist/serialization/types/FlowListResponse.d.ts +2 -2
- package/dist/serialization/types/Folder.d.ts +2 -2
- package/dist/serialization/types/FolderListResponse.d.ts +2 -2
- package/dist/serialization/types/ParallelSolveRequest.d.ts +2 -2
- package/dist/serialization/types/ParallelSolveRequestValue.d.ts +2 -2
- package/dist/serialization/types/ParallelSolveResponse.d.ts +2 -2
- package/dist/serialization/types/RuleBase.d.ts +2 -2
- package/dist/serialization/types/RuleDetail.d.ts +2 -2
- package/dist/serialization/types/RuleExport.d.ts +2 -2
- package/dist/serialization/types/RuleListResponse.d.ts +2 -2
- package/dist/serialization/types/RuleUsage.d.ts +2 -2
- package/dist/serialization/types/SchemaField.d.ts +2 -2
- package/dist/serialization/types/SchemaFieldDefaultValue.d.ts +2 -2
- package/dist/serialization/types/SchemaFieldType.d.ts +2 -2
- package/dist/serialization/types/SuccessMessage.d.ts +2 -2
- package/dist/serialization/types/Test.d.ts +2 -2
- package/dist/serialization/types/TestListResponse.d.ts +2 -2
- package/dist/serialization/types/TestTestState.d.ts +2 -2
- package/dist/serialization/types/TestTestStateConditionsItemValue.d.ts +2 -2
- package/dist/serialization/types/TestTestStateEvaluationError.d.ts +2 -2
- package/dist/serialization/types/UsageStatistics.d.ts +2 -2
- package/dist/serialization/types/UserGroup.d.ts +2 -2
- package/dist/serialization/types/UserGroupListResponse.d.ts +2 -2
- package/dist/serialization/types/UserInviteResponse.d.ts +2 -2
- package/dist/serialization/types/UserInviteResponseUser.d.ts +2 -2
- package/dist/serialization/types/ValueLimits.d.ts +2 -2
- package/dist/serialization/types/index.d.ts +0 -6
- package/dist/serialization/types/index.js +0 -6
- package/environments.d.ts +7 -0
- package/environments.js +9 -0
- package/errors/{RulebricksApiError.d.ts → RulebricksError.d.ts} +1 -1
- package/errors/{RulebricksApiError.js → RulebricksError.js} +4 -4
- package/errors/{RulebricksApiTimeoutError.d.ts → RulebricksTimeoutError.d.ts} +1 -1
- package/errors/RulebricksTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -2
- package/errors/index.js +5 -5
- package/forge/rule.d.ts +2 -2
- package/forge/rule.js +8 -8
- package/forge/values.d.ts +2 -2
- package/index.d.ts +4 -3
- package/index.js +7 -5
- package/package.json +1 -1
- package/serialization/resources/assets/index.d.ts +1 -1
- package/serialization/resources/assets/index.js +1 -1
- package/serialization/resources/assets/resources/folders/client/index.d.ts +1 -0
- package/serialization/resources/assets/resources/folders/client/index.js +17 -0
- package/serialization/resources/assets/resources/folders/client/requests/DeleteFolderRequest.d.ts +12 -0
- package/serialization/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +1 -1
- package/serialization/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.d.ts +4 -4
- package/{dist/serialization/resources/assets → serialization/resources/assets/resources/folders}/client/requests/UpsertFolderRequest.js +1 -1
- package/serialization/resources/assets/{client → resources/folders/client}/requests/index.d.ts +0 -2
- package/serialization/resources/assets/resources/folders/client/requests/index.js +7 -0
- package/serialization/resources/assets/resources/folders/index.d.ts +1 -0
- package/serialization/resources/assets/resources/folders/index.js +17 -0
- package/serialization/resources/assets/resources/index.d.ts +4 -0
- package/serialization/resources/assets/resources/index.js +33 -0
- package/serialization/resources/assets/resources/rules/client/index.d.ts +1 -0
- package/serialization/resources/assets/resources/rules/client/index.js +17 -0
- package/serialization/resources/assets/resources/rules/client/requests/DeleteRuleRequest.d.ts +12 -0
- package/serialization/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.js +1 -1
- package/serialization/resources/assets/resources/rules/client/requests/ImportRuleRequest.d.ts +12 -0
- package/{dist/serialization/resources/assets → serialization/resources/assets/resources/rules}/client/requests/ImportRuleRequest.js +1 -1
- package/serialization/resources/assets/resources/rules/client/requests/index.d.ts +2 -0
- package/serialization/resources/assets/resources/rules/client/requests/index.js +7 -0
- package/serialization/resources/assets/resources/rules/index.d.ts +1 -0
- package/serialization/resources/assets/resources/rules/index.js +17 -0
- package/serialization/resources/index.d.ts +2 -4
- package/serialization/resources/index.js +3 -5
- package/serialization/resources/rules/client/bulkSolve.d.ts +3 -3
- package/serialization/resources/users/client/requests/UserInviteRequest.d.ts +2 -2
- package/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/serialization/resources/users/client/requests/index.js +1 -3
- package/serialization/resources/users/index.d.ts +1 -0
- package/serialization/resources/users/index.js +1 -0
- package/serialization/resources/users/resources/groups/client/index.d.ts +1 -0
- package/serialization/resources/users/resources/groups/client/index.js +17 -0
- package/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +4 -4
- package/serialization/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +1 -1
- package/serialization/resources/users/resources/groups/client/requests/index.d.ts +1 -0
- package/serialization/resources/users/resources/groups/client/requests/index.js +5 -0
- package/serialization/resources/users/resources/groups/index.d.ts +1 -0
- package/serialization/resources/users/resources/groups/index.js +17 -0
- package/serialization/resources/users/resources/index.d.ts +2 -0
- package/serialization/resources/users/resources/index.js +31 -0
- package/serialization/resources/users/types/UserInviteRequestRole.d.ts +2 -2
- package/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +3 -4
- package/serialization/resources/values/client/requests/UpdateValuesRequest.js +1 -2
- package/serialization/resources/values/index.d.ts +0 -1
- package/serialization/resources/values/index.js +0 -1
- package/serialization/types/BulkRuleResponseItem.d.ts +2 -2
- package/serialization/types/BulkRuleResponseItemError.d.ts +2 -2
- package/serialization/types/CreateTestRequest.d.ts +2 -2
- package/serialization/types/DecisionLog.d.ts +2 -2
- package/serialization/types/DecisionLogDecision.d.ts +2 -2
- package/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +2 -2
- package/serialization/types/DecisionLogRequest.d.ts +2 -2
- package/serialization/types/DecisionLogResponse.d.ts +2 -2
- package/serialization/types/DynamicRequestPayload.d.ts +2 -2
- package/serialization/types/DynamicResponsePayload.d.ts +2 -2
- package/serialization/types/DynamicValue.d.ts +10 -18
- package/serialization/types/DynamicValue.js +8 -14
- package/serialization/types/DynamicValueListResponse.d.ts +2 -2
- package/serialization/types/Error_.d.ts +2 -2
- package/serialization/types/FlowBase.d.ts +2 -2
- package/serialization/types/FlowDetail.d.ts +2 -2
- package/serialization/types/FlowExecutionError.d.ts +2 -2
- package/serialization/types/FlowListResponse.d.ts +2 -2
- package/serialization/types/Folder.d.ts +2 -2
- package/serialization/types/FolderListResponse.d.ts +2 -2
- package/serialization/types/ParallelSolveRequest.d.ts +2 -2
- package/serialization/types/ParallelSolveRequestValue.d.ts +2 -2
- package/serialization/types/ParallelSolveResponse.d.ts +2 -2
- package/serialization/types/RuleBase.d.ts +2 -2
- package/serialization/types/RuleDetail.d.ts +2 -2
- package/serialization/types/RuleExport.d.ts +2 -2
- package/serialization/types/RuleListResponse.d.ts +2 -2
- package/serialization/types/RuleUsage.d.ts +2 -2
- package/serialization/types/SchemaField.d.ts +2 -2
- package/serialization/types/SchemaFieldDefaultValue.d.ts +2 -2
- package/serialization/types/SchemaFieldType.d.ts +2 -2
- package/serialization/types/SuccessMessage.d.ts +2 -2
- package/serialization/types/Test.d.ts +2 -2
- package/serialization/types/TestListResponse.d.ts +2 -2
- package/serialization/types/TestTestState.d.ts +2 -2
- package/serialization/types/TestTestStateConditionsItemValue.d.ts +2 -2
- package/serialization/types/TestTestStateEvaluationError.d.ts +2 -2
- package/serialization/types/UsageStatistics.d.ts +2 -2
- package/serialization/types/UserGroup.d.ts +2 -2
- package/serialization/types/UserGroupListResponse.d.ts +2 -2
- package/serialization/types/UserInviteResponse.d.ts +2 -2
- package/serialization/types/UserInviteResponseUser.d.ts +2 -2
- package/serialization/types/ValueLimits.d.ts +2 -2
- package/serialization/types/index.d.ts +0 -6
- package/serialization/types/index.js +0 -6
- package/api/resources/assets/client/requests/index.d.ts +0 -6
- package/api/resources/values/client/requests/ListRequest.d.ts +0 -13
- package/api/resources/values/types/UpdateValuesRequestValuesValue.d.ts +0 -4
- package/api/resources/values/types/index.d.ts +0 -1
- package/api/resources/values/types/index.js +0 -17
- package/api/types/BooleanValue.d.ts +0 -8
- package/api/types/DynamicValueBase.d.ts +0 -14
- package/api/types/ListValue.d.ts +0 -8
- package/api/types/ListValueValueItem.d.ts +0 -4
- package/api/types/NumberValue.d.ts +0 -8
- package/api/types/NumberValue.js +0 -5
- package/api/types/StringValue.d.ts +0 -8
- package/api/types/StringValue.js +0 -5
- package/dist/api/resources/assets/client/requests/ExportRuleRequest.js +0 -5
- package/dist/api/resources/assets/client/requests/ListRulesRequest.js +0 -5
- package/dist/api/resources/assets/client/requests/index.d.ts +0 -6
- package/dist/api/resources/decisions/client/requests/QueryRequest.js +0 -5
- package/dist/api/resources/values/client/requests/DeleteRequest.js +0 -5
- package/dist/api/resources/values/client/requests/ListRequest.d.ts +0 -13
- package/dist/api/resources/values/client/requests/ListRequest.js +0 -5
- package/dist/api/resources/values/types/UpdateValuesRequestValuesValue.d.ts +0 -4
- package/dist/api/resources/values/types/UpdateValuesRequestValuesValue.js +0 -5
- package/dist/api/resources/values/types/index.d.ts +0 -1
- package/dist/api/types/BooleanValue.d.ts +0 -8
- package/dist/api/types/BooleanValue.js +0 -5
- package/dist/api/types/DynamicValueBase.d.ts +0 -14
- package/dist/api/types/DynamicValueBase.js +0 -5
- package/dist/api/types/ListValue.d.ts +0 -8
- package/dist/api/types/ListValue.js +0 -5
- package/dist/api/types/ListValueValueItem.d.ts +0 -4
- package/dist/api/types/ListValueValueItem.js +0 -5
- package/dist/api/types/NumberValue.d.ts +0 -8
- package/dist/api/types/NumberValue.js +0 -5
- package/dist/api/types/StringValue.d.ts +0 -8
- package/dist/api/types/StringValue.js +0 -5
- package/dist/errors/RulebricksApiTimeoutError.js +0 -13
- package/dist/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +0 -12
- package/dist/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +0 -12
- package/dist/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +0 -12
- package/dist/serialization/resources/assets/client/requests/index.js +0 -11
- package/dist/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +0 -10
- package/dist/serialization/resources/values/types/UpdateValuesRequestValuesValue.js +0 -36
- package/dist/serialization/resources/values/types/index.d.ts +0 -1
- package/dist/serialization/types/BooleanValue.d.ts +0 -13
- package/dist/serialization/types/BooleanValue.js +0 -36
- package/dist/serialization/types/DynamicValueBase.d.ts +0 -16
- package/dist/serialization/types/DynamicValueBase.js +0 -37
- package/dist/serialization/types/ListValue.d.ts +0 -14
- package/dist/serialization/types/ListValue.js +0 -37
- package/dist/serialization/types/ListValueValueItem.d.ts +0 -10
- package/dist/serialization/types/ListValueValueItem.js +0 -37
- package/dist/serialization/types/NumberValue.d.ts +0 -13
- package/dist/serialization/types/NumberValue.js +0 -36
- package/dist/serialization/types/StringValue.d.ts +0 -13
- package/dist/serialization/types/StringValue.js +0 -36
- package/errors/RulebricksApiTimeoutError.js +0 -13
- package/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +0 -12
- package/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +0 -12
- package/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +0 -12
- package/serialization/resources/assets/client/requests/index.js +0 -11
- package/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +0 -10
- package/serialization/resources/values/types/UpdateValuesRequestValuesValue.js +0 -36
- package/serialization/resources/values/types/index.d.ts +0 -1
- package/serialization/resources/values/types/index.js +0 -17
- package/serialization/types/BooleanValue.d.ts +0 -13
- package/serialization/types/BooleanValue.js +0 -36
- package/serialization/types/DynamicValueBase.d.ts +0 -16
- package/serialization/types/DynamicValueBase.js +0 -37
- package/serialization/types/ListValue.d.ts +0 -14
- package/serialization/types/ListValue.js +0 -37
- package/serialization/types/ListValueValueItem.d.ts +0 -10
- package/serialization/types/ListValueValueItem.js +0 -37
- package/serialization/types/NumberValue.d.ts +0 -13
- package/serialization/types/NumberValue.js +0 -36
- package/serialization/types/StringValue.d.ts +0 -13
- package/serialization/types/StringValue.js +0 -36
- /package/api/resources/assets/{client/requests → resources/flows/client}/index.js +0 -0
- /package/{dist/serialization/resources/assets → api/resources/assets/resources/folders}/client/index.d.ts +0 -0
- /package/{dist/serialization/resources/assets → api/resources/assets/resources/folders}/client/index.js +0 -0
- /package/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.d.ts +0 -0
- /package/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +0 -0
- /package/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.d.ts +0 -0
- /package/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.js +0 -0
- /package/{dist/api/resources/assets → api/resources/assets/resources/folders}/client/requests/index.js +0 -0
- /package/{serialization/resources/assets → api/resources/assets/resources/rules}/client/index.d.ts +0 -0
- /package/{serialization/resources/assets → api/resources/assets/resources/rules}/client/index.js +0 -0
- /package/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.d.ts +0 -0
- /package/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.js +0 -0
- /package/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.d.ts +0 -0
- /package/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.js +0 -0
- /package/api/resources/assets/{client/requests/ExportRuleRequest.js → resources/rules/client/requests/RulesListRequest.js} +0 -0
- /package/api/resources/assets/{client/requests/ListRulesRequest.js → resources/rules/client/requests/RulesPullRequest.js} +0 -0
- /package/api/resources/decisions/client/requests/{QueryRequest.js → DecisionsQueryRequest.js} +0 -0
- /package/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +0 -0
- /package/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +0 -0
- /package/api/resources/values/client/requests/{DeleteRequest.js → ValuesDeleteRequest.js} +0 -0
- /package/api/resources/values/client/requests/{ListRequest.js → ValuesListRequest.js} +0 -0
- /package/dist/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.d.ts +0 -0
- /package/dist/api/resources/assets/{client → resources/folders/client}/requests/DeleteFolderRequest.js +0 -0
- /package/dist/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.d.ts +0 -0
- /package/dist/api/resources/assets/{client → resources/folders/client}/requests/UpsertFolderRequest.js +0 -0
- /package/dist/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.d.ts +0 -0
- /package/dist/api/resources/assets/{client → resources/rules/client}/requests/DeleteRuleRequest.js +0 -0
- /package/dist/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.d.ts +0 -0
- /package/dist/api/resources/assets/{client → resources/rules/client}/requests/ImportRuleRequest.js +0 -0
- /package/{api/resources/values/types/UpdateValuesRequestValuesValue.js → dist/api/resources/assets/resources/rules/client/requests/RulesListRequest.js} +0 -0
- /package/{api/types/BooleanValue.js → dist/api/resources/assets/resources/rules/client/requests/RulesPullRequest.js} +0 -0
- /package/{api/types/DynamicValueBase.js → dist/api/resources/decisions/client/requests/DecisionsQueryRequest.js} +0 -0
- /package/dist/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.d.ts +0 -0
- /package/dist/api/resources/users/{client → resources/groups/client}/requests/CreateUserGroupRequest.js +0 -0
- /package/{api/types/ListValue.js → dist/api/resources/values/client/requests/ValuesDeleteRequest.js} +0 -0
- /package/{api/types/ListValueValueItem.js → dist/api/resources/values/client/requests/ValuesListRequest.js} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.groups = void 0;
|
|
30
|
+
exports.groups = __importStar(require("./groups"));
|
|
31
|
+
__exportStar(require("./groups/client/requests"), exports);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
4
5
|
import * as core from "../../../../core";
|
|
5
|
-
import * as
|
|
6
|
+
import * as Rulebricks from "../../../index";
|
|
6
7
|
export declare namespace Values {
|
|
7
8
|
interface Options {
|
|
8
|
-
environment
|
|
9
|
+
environment?: core.Supplier<environments.RulebricksEnvironment | string>;
|
|
9
10
|
/** Specify a custom URL to connect the client to. */
|
|
10
11
|
baseUrl?: core.Supplier<string>;
|
|
11
12
|
apiKey: core.Supplier<string>;
|
|
@@ -28,25 +29,29 @@ export declare class Values {
|
|
|
28
29
|
protected readonly _options: Values.Options;
|
|
29
30
|
constructor(_options: Values.Options);
|
|
30
31
|
/**
|
|
31
|
-
* Retrieve all dynamic values for the authenticated user.
|
|
32
|
+
* Retrieve all dynamic values for the authenticated user. Use the 'include' parameter to control whether usage information is returned.
|
|
32
33
|
*
|
|
33
|
-
* @param {
|
|
34
|
+
* @param {Rulebricks.ValuesListRequest} request
|
|
34
35
|
* @param {Values.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
36
|
*
|
|
36
|
-
* @throws {@link
|
|
37
|
+
* @throws {@link Rulebricks.NotFoundError}
|
|
38
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
37
39
|
*
|
|
38
40
|
* @example
|
|
39
|
-
* await client.values.list(
|
|
41
|
+
* await client.values.list({
|
|
42
|
+
* include: "usage"
|
|
43
|
+
* })
|
|
40
44
|
*/
|
|
41
|
-
list(request?:
|
|
45
|
+
list(request?: Rulebricks.ValuesListRequest, requestOptions?: Values.RequestOptions): Promise<Rulebricks.DynamicValueListResponse>;
|
|
42
46
|
/**
|
|
43
|
-
* Update existing dynamic values or add new ones for the authenticated user.
|
|
47
|
+
* Update existing dynamic values or add new ones for the authenticated user. Supports both flat and nested object structures. Nested objects are automatically flattened using dot notation and keys are converted to readable format (e.g., 'user_name' becomes 'User Name', nested 'user.contact_info.email' becomes 'User.Contact Info.Email').
|
|
44
48
|
*
|
|
45
|
-
* @param {
|
|
49
|
+
* @param {Rulebricks.UpdateValuesRequest} request
|
|
46
50
|
* @param {Values.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
51
|
*
|
|
48
|
-
* @throws {@link
|
|
49
|
-
* @throws {@link
|
|
52
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
53
|
+
* @throws {@link Rulebricks.ForbiddenError}
|
|
54
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
50
55
|
*
|
|
51
56
|
* @example
|
|
52
57
|
* await client.values.update({
|
|
@@ -54,28 +59,78 @@ export declare class Values {
|
|
|
54
59
|
* "Favorite Color": "blue",
|
|
55
60
|
* "Age": 30,
|
|
56
61
|
* "Is Student": false,
|
|
57
|
-
* "Hobbies": [
|
|
62
|
+
* "Hobbies": [
|
|
63
|
+
* "reading",
|
|
64
|
+
* "cycling"
|
|
65
|
+
* ]
|
|
66
|
+
* },
|
|
67
|
+
* accessGroups: ["marketing", "developers"]
|
|
68
|
+
* })
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* await client.values.update({
|
|
72
|
+
* values: {
|
|
73
|
+
* "user_profile": {
|
|
74
|
+
* "first_name": "Alice",
|
|
75
|
+
* "last_name": "Johnson",
|
|
76
|
+
* "contact_info": {
|
|
77
|
+
* "email_address": "alice@example.com",
|
|
78
|
+
* "phone_number": "555-0123"
|
|
79
|
+
* }
|
|
80
|
+
* },
|
|
81
|
+
* "account_settings": {
|
|
82
|
+
* "is_premium_user": true,
|
|
83
|
+
* "subscription_tier": "gold",
|
|
84
|
+
* "preferences": [
|
|
85
|
+
* "email_notifications",
|
|
86
|
+
* "sms_alerts"
|
|
87
|
+
* ]
|
|
88
|
+
* },
|
|
89
|
+
* "account_balance": 1250.75
|
|
58
90
|
* },
|
|
59
91
|
* accessGroups: ["marketing", "developers"]
|
|
60
92
|
* })
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* await client.values.update({
|
|
96
|
+
* values: {
|
|
97
|
+
* "Company Name": "Acme Corp",
|
|
98
|
+
* "company_details": {
|
|
99
|
+
* "founded_year": 2020,
|
|
100
|
+
* "employee_count": 150,
|
|
101
|
+
* "headquarters": {
|
|
102
|
+
* "city": "San Francisco",
|
|
103
|
+
* "state": "CA",
|
|
104
|
+
* "country": "USA"
|
|
105
|
+
* }
|
|
106
|
+
* },
|
|
107
|
+
* "Is Public": false,
|
|
108
|
+
* "tags": [
|
|
109
|
+
* "tech",
|
|
110
|
+
* "startup",
|
|
111
|
+
* "saas"
|
|
112
|
+
* ]
|
|
113
|
+
* },
|
|
114
|
+
* accessGroups: ["marketing"]
|
|
115
|
+
* })
|
|
61
116
|
*/
|
|
62
|
-
update(request:
|
|
117
|
+
update(request: Rulebricks.UpdateValuesRequest, requestOptions?: Values.RequestOptions): Promise<Rulebricks.DynamicValueListResponse>;
|
|
63
118
|
/**
|
|
64
119
|
* Delete a specific dynamic value for the authenticated user by its ID.
|
|
65
120
|
*
|
|
66
|
-
* @param {
|
|
121
|
+
* @param {Rulebricks.ValuesDeleteRequest} request
|
|
67
122
|
* @param {Values.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
123
|
*
|
|
69
|
-
* @throws {@link
|
|
70
|
-
* @throws {@link
|
|
71
|
-
* @throws {@link
|
|
124
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
125
|
+
* @throws {@link Rulebricks.NotFoundError}
|
|
126
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
72
127
|
*
|
|
73
128
|
* @example
|
|
74
129
|
* await client.values.delete({
|
|
75
130
|
* id: "id"
|
|
76
131
|
* })
|
|
77
132
|
*/
|
|
78
|
-
delete(request:
|
|
133
|
+
delete(request: Rulebricks.ValuesDeleteRequest, requestOptions?: Values.RequestOptions): Promise<Rulebricks.SuccessMessage>;
|
|
79
134
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
80
135
|
"x-api-key": string;
|
|
81
136
|
}>;
|
|
@@ -39,8 +39,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
};
|
|
40
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.Values = void 0;
|
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
|
42
43
|
const core = __importStar(require("../../../../core"));
|
|
43
|
-
const
|
|
44
|
+
const Rulebricks = __importStar(require("../../../index"));
|
|
44
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
45
46
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
47
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -52,26 +53,32 @@ class Values {
|
|
|
52
53
|
this._options = _options;
|
|
53
54
|
}
|
|
54
55
|
/**
|
|
55
|
-
* Retrieve all dynamic values for the authenticated user.
|
|
56
|
+
* Retrieve all dynamic values for the authenticated user. Use the 'include' parameter to control whether usage information is returned.
|
|
56
57
|
*
|
|
57
|
-
* @param {
|
|
58
|
+
* @param {Rulebricks.ValuesListRequest} request
|
|
58
59
|
* @param {Values.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
60
|
*
|
|
60
|
-
* @throws {@link
|
|
61
|
+
* @throws {@link Rulebricks.NotFoundError}
|
|
62
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
61
63
|
*
|
|
62
64
|
* @example
|
|
63
|
-
* await client.values.list(
|
|
65
|
+
* await client.values.list({
|
|
66
|
+
* include: "usage"
|
|
67
|
+
* })
|
|
64
68
|
*/
|
|
65
69
|
list(request = {}, requestOptions) {
|
|
66
|
-
var _a;
|
|
70
|
+
var _a, _b;
|
|
67
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
-
const { name } = request;
|
|
72
|
+
const { name, include } = request;
|
|
69
73
|
const _queryParams = {};
|
|
70
74
|
if (name != null) {
|
|
71
75
|
_queryParams["name"] = name;
|
|
72
76
|
}
|
|
77
|
+
if (include != null) {
|
|
78
|
+
_queryParams["include"] = include;
|
|
79
|
+
}
|
|
73
80
|
const _response = yield core.fetcher({
|
|
74
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "
|
|
81
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.RulebricksEnvironment.Default, "values"),
|
|
75
82
|
method: "GET",
|
|
76
83
|
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
77
84
|
contentType: "application/json",
|
|
@@ -91,10 +98,12 @@ class Values {
|
|
|
91
98
|
}
|
|
92
99
|
if (_response.error.reason === "status-code") {
|
|
93
100
|
switch (_response.error.statusCode) {
|
|
101
|
+
case 404:
|
|
102
|
+
throw new Rulebricks.NotFoundError(_response.error.body);
|
|
94
103
|
case 500:
|
|
95
|
-
throw new
|
|
104
|
+
throw new Rulebricks.InternalServerError(_response.error.body);
|
|
96
105
|
default:
|
|
97
|
-
throw new errors.
|
|
106
|
+
throw new errors.RulebricksError({
|
|
98
107
|
statusCode: _response.error.statusCode,
|
|
99
108
|
body: _response.error.body,
|
|
100
109
|
});
|
|
@@ -102,27 +111,28 @@ class Values {
|
|
|
102
111
|
}
|
|
103
112
|
switch (_response.error.reason) {
|
|
104
113
|
case "non-json":
|
|
105
|
-
throw new errors.
|
|
114
|
+
throw new errors.RulebricksError({
|
|
106
115
|
statusCode: _response.error.statusCode,
|
|
107
116
|
body: _response.error.rawBody,
|
|
108
117
|
});
|
|
109
118
|
case "timeout":
|
|
110
|
-
throw new errors.
|
|
119
|
+
throw new errors.RulebricksTimeoutError("Timeout exceeded when calling GET /values.");
|
|
111
120
|
case "unknown":
|
|
112
|
-
throw new errors.
|
|
121
|
+
throw new errors.RulebricksError({
|
|
113
122
|
message: _response.error.errorMessage,
|
|
114
123
|
});
|
|
115
124
|
}
|
|
116
125
|
});
|
|
117
126
|
}
|
|
118
127
|
/**
|
|
119
|
-
* Update existing dynamic values or add new ones for the authenticated user.
|
|
128
|
+
* Update existing dynamic values or add new ones for the authenticated user. Supports both flat and nested object structures. Nested objects are automatically flattened using dot notation and keys are converted to readable format (e.g., 'user_name' becomes 'User Name', nested 'user.contact_info.email' becomes 'User.Contact Info.Email').
|
|
120
129
|
*
|
|
121
|
-
* @param {
|
|
130
|
+
* @param {Rulebricks.UpdateValuesRequest} request
|
|
122
131
|
* @param {Values.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
132
|
*
|
|
124
|
-
* @throws {@link
|
|
125
|
-
* @throws {@link
|
|
133
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
134
|
+
* @throws {@link Rulebricks.ForbiddenError}
|
|
135
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
126
136
|
*
|
|
127
137
|
* @example
|
|
128
138
|
* await client.values.update({
|
|
@@ -130,16 +140,66 @@ class Values {
|
|
|
130
140
|
* "Favorite Color": "blue",
|
|
131
141
|
* "Age": 30,
|
|
132
142
|
* "Is Student": false,
|
|
133
|
-
* "Hobbies": [
|
|
143
|
+
* "Hobbies": [
|
|
144
|
+
* "reading",
|
|
145
|
+
* "cycling"
|
|
146
|
+
* ]
|
|
147
|
+
* },
|
|
148
|
+
* accessGroups: ["marketing", "developers"]
|
|
149
|
+
* })
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* await client.values.update({
|
|
153
|
+
* values: {
|
|
154
|
+
* "user_profile": {
|
|
155
|
+
* "first_name": "Alice",
|
|
156
|
+
* "last_name": "Johnson",
|
|
157
|
+
* "contact_info": {
|
|
158
|
+
* "email_address": "alice@example.com",
|
|
159
|
+
* "phone_number": "555-0123"
|
|
160
|
+
* }
|
|
161
|
+
* },
|
|
162
|
+
* "account_settings": {
|
|
163
|
+
* "is_premium_user": true,
|
|
164
|
+
* "subscription_tier": "gold",
|
|
165
|
+
* "preferences": [
|
|
166
|
+
* "email_notifications",
|
|
167
|
+
* "sms_alerts"
|
|
168
|
+
* ]
|
|
169
|
+
* },
|
|
170
|
+
* "account_balance": 1250.75
|
|
134
171
|
* },
|
|
135
172
|
* accessGroups: ["marketing", "developers"]
|
|
136
173
|
* })
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* await client.values.update({
|
|
177
|
+
* values: {
|
|
178
|
+
* "Company Name": "Acme Corp",
|
|
179
|
+
* "company_details": {
|
|
180
|
+
* "founded_year": 2020,
|
|
181
|
+
* "employee_count": 150,
|
|
182
|
+
* "headquarters": {
|
|
183
|
+
* "city": "San Francisco",
|
|
184
|
+
* "state": "CA",
|
|
185
|
+
* "country": "USA"
|
|
186
|
+
* }
|
|
187
|
+
* },
|
|
188
|
+
* "Is Public": false,
|
|
189
|
+
* "tags": [
|
|
190
|
+
* "tech",
|
|
191
|
+
* "startup",
|
|
192
|
+
* "saas"
|
|
193
|
+
* ]
|
|
194
|
+
* },
|
|
195
|
+
* accessGroups: ["marketing"]
|
|
196
|
+
* })
|
|
137
197
|
*/
|
|
138
198
|
update(request, requestOptions) {
|
|
139
|
-
var _a;
|
|
199
|
+
var _a, _b;
|
|
140
200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
141
201
|
const _response = yield core.fetcher({
|
|
142
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "
|
|
202
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.RulebricksEnvironment.Default, "values"),
|
|
143
203
|
method: "POST",
|
|
144
204
|
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
145
205
|
contentType: "application/json",
|
|
@@ -160,11 +220,13 @@ class Values {
|
|
|
160
220
|
if (_response.error.reason === "status-code") {
|
|
161
221
|
switch (_response.error.statusCode) {
|
|
162
222
|
case 400:
|
|
163
|
-
throw new
|
|
223
|
+
throw new Rulebricks.BadRequestError(_response.error.body);
|
|
224
|
+
case 403:
|
|
225
|
+
throw new Rulebricks.ForbiddenError(_response.error.body);
|
|
164
226
|
case 500:
|
|
165
|
-
throw new
|
|
227
|
+
throw new Rulebricks.InternalServerError(_response.error.body);
|
|
166
228
|
default:
|
|
167
|
-
throw new errors.
|
|
229
|
+
throw new errors.RulebricksError({
|
|
168
230
|
statusCode: _response.error.statusCode,
|
|
169
231
|
body: _response.error.body,
|
|
170
232
|
});
|
|
@@ -172,14 +234,14 @@ class Values {
|
|
|
172
234
|
}
|
|
173
235
|
switch (_response.error.reason) {
|
|
174
236
|
case "non-json":
|
|
175
|
-
throw new errors.
|
|
237
|
+
throw new errors.RulebricksError({
|
|
176
238
|
statusCode: _response.error.statusCode,
|
|
177
239
|
body: _response.error.rawBody,
|
|
178
240
|
});
|
|
179
241
|
case "timeout":
|
|
180
|
-
throw new errors.
|
|
242
|
+
throw new errors.RulebricksTimeoutError("Timeout exceeded when calling POST /values.");
|
|
181
243
|
case "unknown":
|
|
182
|
-
throw new errors.
|
|
244
|
+
throw new errors.RulebricksError({
|
|
183
245
|
message: _response.error.errorMessage,
|
|
184
246
|
});
|
|
185
247
|
}
|
|
@@ -188,12 +250,12 @@ class Values {
|
|
|
188
250
|
/**
|
|
189
251
|
* Delete a specific dynamic value for the authenticated user by its ID.
|
|
190
252
|
*
|
|
191
|
-
* @param {
|
|
253
|
+
* @param {Rulebricks.ValuesDeleteRequest} request
|
|
192
254
|
* @param {Values.RequestOptions} requestOptions - Request-specific configuration.
|
|
193
255
|
*
|
|
194
|
-
* @throws {@link
|
|
195
|
-
* @throws {@link
|
|
196
|
-
* @throws {@link
|
|
256
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
257
|
+
* @throws {@link Rulebricks.NotFoundError}
|
|
258
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
197
259
|
*
|
|
198
260
|
* @example
|
|
199
261
|
* await client.values.delete({
|
|
@@ -201,13 +263,13 @@ class Values {
|
|
|
201
263
|
* })
|
|
202
264
|
*/
|
|
203
265
|
delete(request, requestOptions) {
|
|
204
|
-
var _a;
|
|
266
|
+
var _a, _b;
|
|
205
267
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
268
|
const { id } = request;
|
|
207
269
|
const _queryParams = {};
|
|
208
270
|
_queryParams["id"] = id;
|
|
209
271
|
const _response = yield core.fetcher({
|
|
210
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "
|
|
272
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.RulebricksEnvironment.Default, "values"),
|
|
211
273
|
method: "DELETE",
|
|
212
274
|
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
213
275
|
contentType: "application/json",
|
|
@@ -228,13 +290,13 @@ class Values {
|
|
|
228
290
|
if (_response.error.reason === "status-code") {
|
|
229
291
|
switch (_response.error.statusCode) {
|
|
230
292
|
case 400:
|
|
231
|
-
throw new
|
|
293
|
+
throw new Rulebricks.BadRequestError(_response.error.body);
|
|
232
294
|
case 404:
|
|
233
|
-
throw new
|
|
295
|
+
throw new Rulebricks.NotFoundError(_response.error.body);
|
|
234
296
|
case 500:
|
|
235
|
-
throw new
|
|
297
|
+
throw new Rulebricks.InternalServerError(_response.error.body);
|
|
236
298
|
default:
|
|
237
|
-
throw new errors.
|
|
299
|
+
throw new errors.RulebricksError({
|
|
238
300
|
statusCode: _response.error.statusCode,
|
|
239
301
|
body: _response.error.body,
|
|
240
302
|
});
|
|
@@ -242,14 +304,14 @@ class Values {
|
|
|
242
304
|
}
|
|
243
305
|
switch (_response.error.reason) {
|
|
244
306
|
case "non-json":
|
|
245
|
-
throw new errors.
|
|
307
|
+
throw new errors.RulebricksError({
|
|
246
308
|
statusCode: _response.error.statusCode,
|
|
247
309
|
body: _response.error.rawBody,
|
|
248
310
|
});
|
|
249
311
|
case "timeout":
|
|
250
|
-
throw new errors.
|
|
312
|
+
throw new errors.RulebricksTimeoutError("Timeout exceeded when calling DELETE /values.");
|
|
251
313
|
case "unknown":
|
|
252
|
-
throw new errors.
|
|
314
|
+
throw new errors.RulebricksError({
|
|
253
315
|
message: _response.error.errorMessage,
|
|
254
316
|
});
|
|
255
317
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as RulebricksApi from "../../../../index";
|
|
5
4
|
/**
|
|
6
5
|
* @example
|
|
7
6
|
* {
|
|
@@ -9,14 +8,92 @@ import * as RulebricksApi from "../../../../index";
|
|
|
9
8
|
* "Favorite Color": "blue",
|
|
10
9
|
* "Age": 30,
|
|
11
10
|
* "Is Student": false,
|
|
12
|
-
* "Hobbies": [
|
|
11
|
+
* "Hobbies": [
|
|
12
|
+
* "reading",
|
|
13
|
+
* "cycling"
|
|
14
|
+
* ]
|
|
15
|
+
* },
|
|
16
|
+
* accessGroups: ["marketing", "developers"]
|
|
17
|
+
* }
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* {
|
|
21
|
+
* values: {
|
|
22
|
+
* "user_profile": {
|
|
23
|
+
* "first_name": "Alice",
|
|
24
|
+
* "last_name": "Johnson",
|
|
25
|
+
* "contact_info": {
|
|
26
|
+
* "email_address": "alice@example.com",
|
|
27
|
+
* "phone_number": "555-0123"
|
|
28
|
+
* }
|
|
29
|
+
* },
|
|
30
|
+
* "account_settings": {
|
|
31
|
+
* "is_premium_user": true,
|
|
32
|
+
* "subscription_tier": "gold",
|
|
33
|
+
* "preferences": [
|
|
34
|
+
* "email_notifications",
|
|
35
|
+
* "sms_alerts"
|
|
36
|
+
* ]
|
|
37
|
+
* },
|
|
38
|
+
* "account_balance": 1250.75
|
|
39
|
+
* },
|
|
40
|
+
* accessGroups: ["marketing", "developers"]
|
|
41
|
+
* }
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* {
|
|
45
|
+
* values: {
|
|
46
|
+
* "Company Name": "Acme Corp",
|
|
47
|
+
* "company_details": {
|
|
48
|
+
* "founded_year": 2020,
|
|
49
|
+
* "employee_count": 150,
|
|
50
|
+
* "headquarters": {
|
|
51
|
+
* "city": "San Francisco",
|
|
52
|
+
* "state": "CA",
|
|
53
|
+
* "country": "USA"
|
|
54
|
+
* }
|
|
55
|
+
* },
|
|
56
|
+
* "Is Public": false,
|
|
57
|
+
* "tags": [
|
|
58
|
+
* "tech",
|
|
59
|
+
* "startup",
|
|
60
|
+
* "saas"
|
|
61
|
+
* ]
|
|
62
|
+
* },
|
|
63
|
+
* accessGroups: ["marketing"]
|
|
64
|
+
* }
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* {
|
|
68
|
+
* values: {
|
|
69
|
+
* "Favorite Color": "blue",
|
|
70
|
+
* "Age": 30,
|
|
71
|
+
* "Is Student": false,
|
|
72
|
+
* "Hobbies": [
|
|
73
|
+
* "reading",
|
|
74
|
+
* "cycling"
|
|
75
|
+
* ]
|
|
76
|
+
* },
|
|
77
|
+
* accessGroups: ["marketing", "developers"]
|
|
78
|
+
* }
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* {
|
|
82
|
+
* values: {
|
|
83
|
+
* "Favorite Color": "blue",
|
|
84
|
+
* "Age": 30,
|
|
85
|
+
* "Is Student": false,
|
|
86
|
+
* "Hobbies": [
|
|
87
|
+
* "reading",
|
|
88
|
+
* "cycling"
|
|
89
|
+
* ]
|
|
13
90
|
* },
|
|
14
91
|
* accessGroups: ["marketing", "developers"]
|
|
15
92
|
* }
|
|
16
93
|
*/
|
|
17
94
|
export interface UpdateValuesRequest {
|
|
18
|
-
/** A
|
|
19
|
-
values: Record<string,
|
|
95
|
+
/** A dictionary of keys and values to update or add. Supports both flat key-value pairs and nested objects. Nested objects will be automatically flattened using dot notation with readable key names (e.g., 'user.contact_info.email' becomes 'User.Contact Info.Email'). */
|
|
96
|
+
values: Record<string, unknown>;
|
|
20
97
|
/** Optional array of access group names or IDs. If omitted and user belongs to access groups, values will be assigned to all user's access groups. Required if values should be restricted to specific access groups. */
|
|
21
98
|
accessGroups?: string[];
|
|
22
99
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* include: "usage"
|
|
8
|
+
* }
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* {
|
|
12
|
+
* include: "usage"
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface ValuesListRequest {
|
|
16
|
+
/**
|
|
17
|
+
* Query all dynamic values containing a specific name
|
|
18
|
+
*/
|
|
19
|
+
name?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Comma-separated list of additional data to include. Use 'usage' to include which rules reference each value.
|
|
22
|
+
*/
|
|
23
|
+
include?: string;
|
|
24
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type ValuesListRequest } from "./ValuesListRequest";
|
|
2
2
|
export { type UpdateValuesRequest } from "./UpdateValuesRequest";
|
|
3
|
-
export { type
|
|
3
|
+
export { type ValuesDeleteRequest } from "./ValuesDeleteRequest";
|
|
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
18
17
|
__exportStar(require("./client"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as Rulebricks from "../index";
|
|
5
5
|
/**
|
|
6
6
|
* Individual response item from a bulk rule execution
|
|
7
7
|
*/
|
|
8
|
-
export declare type BulkRuleResponseItem =
|
|
8
|
+
export declare type BulkRuleResponseItem = Rulebricks.DynamicResponsePayload | Rulebricks.BulkRuleResponseItemError;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as Rulebricks from "../index";
|
|
5
5
|
export interface DecisionLog {
|
|
6
|
-
request?:
|
|
7
|
-
response?:
|
|
8
|
-
decision?:
|
|
6
|
+
request?: Rulebricks.DecisionLogRequest;
|
|
7
|
+
response?: Rulebricks.DecisionLogResponse;
|
|
8
|
+
decision?: Rulebricks.DecisionLogDecision;
|
|
9
9
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as Rulebricks from "../index";
|
|
5
5
|
export interface DecisionLogDecision {
|
|
6
|
-
conditions?: Record<string,
|
|
6
|
+
conditions?: Record<string, Rulebricks.DecisionLogDecisionConditionsItemValue>[];
|
|
7
7
|
successIdxs?: number[];
|
|
8
8
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as Rulebricks from "../index";
|
|
5
5
|
export interface DecisionLogResponse {
|
|
6
|
-
data?:
|
|
6
|
+
data?: Rulebricks.DecisionLog[];
|
|
7
7
|
/** Pagination cursor for next page */
|
|
8
8
|
cursor?: string;
|
|
9
9
|
}
|