@rulebricks/sdk 1.4.0 → 1.5.2
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 +27 -43
- package/Client.js +18 -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 +22 -39
- package/api/resources/assets/client/Client.js +52 -62
- package/api/resources/assets/index.d.ts +2 -2
- package/api/resources/assets/index.js +2 -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/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/{users → decisions}/types/index.js +1 -1
- 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 +13 -11
- package/api/resources/index.js +31 -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 +55 -33
- package/api/resources/users/client/Client.js +164 -56
- 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 +11 -5
- 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 +21 -36
- package/api/resources/values/client/Client.js +96 -126
- 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 +0 -3
- 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/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 +19 -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/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 +2 -4
- 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/FlowBase.d.ts +0 -3
- package/api/types/FlowBase.js +1 -3
- package/api/types/FlowDetail.d.ts +2 -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/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 +4 -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/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/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 +34 -42
- package/api/types/index.js +34 -42
- 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/{dist/core/schemas → core/logging}/index.js +1 -1
- 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 +27 -43
- package/dist/Client.js +18 -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 +22 -39
- package/dist/api/resources/assets/client/Client.js +52 -62
- package/dist/api/resources/assets/index.d.ts +2 -2
- package/dist/api/resources/assets/index.js +2 -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/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/{users → decisions}/types/index.js +1 -1
- 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/index.d.ts +1 -1
- package/dist/api/resources/flows/index.js +1 -1
- package/dist/api/resources/index.d.ts +13 -11
- package/dist/api/resources/index.js +31 -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/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/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/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 +55 -33
- package/dist/api/resources/users/client/Client.js +164 -56
- 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 +11 -5
- 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 +21 -36
- package/dist/api/resources/values/client/Client.js +96 -126
- 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 +0 -3
- 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/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 +19 -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/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 +2 -4
- 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/FlowBase.d.ts +0 -3
- package/dist/api/types/FlowBase.js +1 -3
- package/dist/api/types/FlowDetail.d.ts +2 -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/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 +4 -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/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/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 +34 -42
- package/dist/api/types/index.js +34 -42
- 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/AuthRequest.d.ts +9 -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/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/{serialization/resources/assets → core/logging}/index.js +1 -1
- 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/{core/schemas/index.js → dist/exports.js} +1 -1
- package/dist/forge/operators.d.ts +1 -1
- package/dist/forge/rule.js +4 -4
- package/dist/forge/types.d.ts +4 -2
- package/dist/forge/types.js +4 -2
- package/dist/forge/values.js +3 -2
- 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/{dist/serialization/resources/assets/resources/folders/client/index.js → exports.js} +1 -1
- package/forge/operators.d.ts +1 -1
- package/forge/rule.js +4 -4
- package/forge/types.d.ts +4 -2
- package/forge/types.js +4 -2
- package/forge/values.js +3 -2
- package/index.d.ts +6 -5
- package/index.js +29 -16
- package/package.json +3 -3
- 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/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/DecisionLogDecision.d.ts +0 -8
- package/api/types/DecisionLogDecision.js +0 -5
- package/api/types/DecisionLogDecisionConditionsItemValue.d.ts +0 -7
- package/api/types/DecisionLogDecisionConditionsItemValue.js +0 -5
- package/api/types/DecisionLogRequest.d.ts +0 -15
- package/api/types/DecisionLogRequest.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/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/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/DecisionLogDecision.d.ts +0 -8
- package/dist/api/types/DecisionLogDecision.js +0 -5
- package/dist/api/types/DecisionLogDecisionConditionsItemValue.d.ts +0 -7
- package/dist/api/types/DecisionLogDecisionConditionsItemValue.js +0 -5
- package/dist/api/types/DecisionLogRequest.d.ts +0 -15
- package/dist/api/types/DecisionLogRequest.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/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/resources/folders/client/index.d.ts +0 -1
- 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 -16
- package/dist/serialization/types/DecisionLog.js +0 -38
- package/dist/serialization/types/DecisionLogDecision.d.ts +0 -14
- package/dist/serialization/types/DecisionLogDecision.js +0 -37
- package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +0 -13
- package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.js +0 -34
- package/dist/serialization/types/DecisionLogRequest.d.ts +0 -17
- package/dist/serialization/types/DecisionLogRequest.js +0 -40
- package/dist/serialization/types/DecisionLogResponse.d.ts +0 -13
- 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 -42
- package/dist/serialization/types/index.js +0 -58
- 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 -16
- package/serialization/types/DecisionLog.js +0 -38
- package/serialization/types/DecisionLogDecision.d.ts +0 -14
- package/serialization/types/DecisionLogDecision.js +0 -37
- package/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +0 -13
- package/serialization/types/DecisionLogDecisionConditionsItemValue.js +0 -34
- package/serialization/types/DecisionLogRequest.d.ts +0 -17
- package/serialization/types/DecisionLogRequest.js +0 -40
- package/serialization/types/DecisionLogResponse.d.ts +0 -13
- 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 -42
- package/serialization/types/index.js +0 -58
- /package/{core/schemas/builders/object-like/types.js → api/resources/flows/client/requests/index.js} +0 -0
- /package/{core/schemas/builders/object/types.js → api/resources/rules/client/requests/index.js} +0 -0
- /package/{core/schemas/builders/record/types.js → api/resources/tests/resources/flows/client/requests/index.js} +0 -0
- /package/{core/schemas/builders/undiscriminated-union/types.js → api/resources/tests/resources/rules/client/requests/index.js} +0 -0
- /package/core/{schemas/builders/union/types.js → auth/AuthProvider.js} +0 -0
- /package/core/{schemas/utils/MaybePromise.js → auth/AuthRequest.js} +0 -0
- /package/core/{schemas/utils/addQuestionMarksToNullableProperties.js → fetcher/EndpointMetadata.js} +0 -0
- /package/dist/{core/schemas/builders/object-like/types.js → api/resources/flows/client/requests/index.js} +0 -0
- /package/dist/{core/schemas/builders/object/types.js → api/resources/rules/client/requests/index.js} +0 -0
- /package/dist/{core/schemas/builders/record/types.js → api/resources/tests/resources/flows/client/requests/index.js} +0 -0
- /package/dist/{core/schemas/builders/undiscriminated-union/types.js → api/resources/tests/resources/rules/client/requests/index.js} +0 -0
- /package/dist/core/{schemas/builders/union/types.js → auth/AuthProvider.js} +0 -0
- /package/dist/core/{schemas/utils/MaybePromise.js → auth/AuthRequest.js} +0 -0
- /package/dist/core/{schemas/utils/addQuestionMarksToNullableProperties.js → fetcher/EndpointMetadata.js} +0 -0
|
@@ -1,41 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
interface Options {
|
|
10
|
-
environment?: core.Supplier<environments.RulebricksEnvironment | string>;
|
|
11
|
-
/** Specify a custom URL to connect the client to. */
|
|
12
|
-
baseUrl?: core.Supplier<string>;
|
|
13
|
-
apiKey: core.Supplier<string>;
|
|
14
|
-
}
|
|
15
|
-
interface RequestOptions {
|
|
16
|
-
/** The maximum time to wait for a response in seconds. */
|
|
17
|
-
timeoutInSeconds?: number;
|
|
18
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
19
|
-
maxRetries?: number;
|
|
20
|
-
/** A hook to abort the request. */
|
|
21
|
-
abortSignal?: AbortSignal;
|
|
22
|
-
/** Additional headers to include in the request. */
|
|
23
|
-
headers?: Record<string, string>;
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as Rulebricks from "../../../index.js";
|
|
5
|
+
import { GroupsClient } from "../resources/groups/client/Client.js";
|
|
6
|
+
export declare namespace UsersClient {
|
|
7
|
+
type Options = BaseClientOptions;
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
24
9
|
}
|
|
25
10
|
}
|
|
26
11
|
/**
|
|
27
12
|
* Operations for managing users on your team and their permissions
|
|
28
13
|
*/
|
|
29
|
-
export declare class
|
|
30
|
-
protected readonly _options:
|
|
31
|
-
protected _groups:
|
|
32
|
-
constructor(
|
|
33
|
-
get groups():
|
|
14
|
+
export declare class UsersClient {
|
|
15
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<UsersClient.Options>;
|
|
16
|
+
protected _groups: GroupsClient | undefined;
|
|
17
|
+
constructor(options: UsersClient.Options);
|
|
18
|
+
get groups(): GroupsClient;
|
|
34
19
|
/**
|
|
35
20
|
* Invite a new user to the organization or update role or access group data for an existing user.
|
|
36
21
|
*
|
|
37
22
|
* @param {Rulebricks.UserInviteRequest} request
|
|
38
|
-
* @param {
|
|
23
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
24
|
*
|
|
40
25
|
* @throws {@link Rulebricks.BadRequestError}
|
|
41
26
|
* @throws {@link Rulebricks.InternalServerError}
|
|
@@ -54,8 +39,45 @@ export declare class Users {
|
|
|
54
39
|
* accessGroups: ["group1"]
|
|
55
40
|
* })
|
|
56
41
|
*/
|
|
57
|
-
invite(request: Rulebricks.UserInviteRequest, requestOptions?:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
42
|
+
invite(request: Rulebricks.UserInviteRequest, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise<Rulebricks.UserInviteResponse>;
|
|
43
|
+
private __invite;
|
|
44
|
+
/**
|
|
45
|
+
* List all users (including the admin and all team members) in the organization with their details including email, name, API key, role, access groups, and join date.
|
|
46
|
+
*
|
|
47
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.users.list()
|
|
53
|
+
*/
|
|
54
|
+
list(requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise<Rulebricks.UserListResponse>;
|
|
55
|
+
private __list;
|
|
56
|
+
/**
|
|
57
|
+
* Create a new user directly with a password, bypassing the email invitation flow. The user can immediately log in with the provided credentials.
|
|
58
|
+
*
|
|
59
|
+
* @param {Rulebricks.CreateUserRequest} request
|
|
60
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
63
|
+
* @throws {@link Rulebricks.ForbiddenError}
|
|
64
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.users.create({
|
|
68
|
+
* email: "newuser@example.com",
|
|
69
|
+
* password: "securePassword123"
|
|
70
|
+
* })
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* await client.users.create({
|
|
74
|
+
* email: "newuser@example.com",
|
|
75
|
+
* password: "securePassword123",
|
|
76
|
+
* name: "New User",
|
|
77
|
+
* role: "developer",
|
|
78
|
+
* accessGroups: ["engineering", "qa"]
|
|
79
|
+
* })
|
|
80
|
+
*/
|
|
81
|
+
create(request: Rulebricks.CreateUserRequest, requestOptions?: UsersClient.RequestOptions): core.HttpResponsePromise<Rulebricks.CreateUserResponse>;
|
|
82
|
+
private __create;
|
|
61
83
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
5
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
4
|
if (k2 === undefined) k2 = k;
|
|
7
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -18,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
16
|
}) : function(o, v) {
|
|
19
17
|
o["default"] = v;
|
|
20
18
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
28
36
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
37
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
38
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -34,34 +42,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
43
|
});
|
|
36
44
|
};
|
|
37
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
-
};
|
|
40
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
-
exports.
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const errors = __importStar(require("../../../../errors/index"));
|
|
48
|
-
const
|
|
46
|
+
exports.UsersClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
50
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
51
|
+
const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatusCodeError.js");
|
|
52
|
+
const errors = __importStar(require("../../../../errors/index.js"));
|
|
53
|
+
const Rulebricks = __importStar(require("../../../index.js"));
|
|
54
|
+
const Client_js_1 = require("../resources/groups/client/Client.js");
|
|
49
55
|
/**
|
|
50
56
|
* Operations for managing users on your team and their permissions
|
|
51
57
|
*/
|
|
52
|
-
class
|
|
53
|
-
constructor(
|
|
54
|
-
this._options =
|
|
58
|
+
class UsersClient {
|
|
59
|
+
constructor(options) {
|
|
60
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
61
|
}
|
|
56
62
|
get groups() {
|
|
57
63
|
var _a;
|
|
58
|
-
return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new
|
|
64
|
+
return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_js_1.GroupsClient(this._options)));
|
|
59
65
|
}
|
|
60
66
|
/**
|
|
61
67
|
* Invite a new user to the organization or update role or access group data for an existing user.
|
|
62
68
|
*
|
|
63
69
|
* @param {Rulebricks.UserInviteRequest} request
|
|
64
|
-
* @param {
|
|
70
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
71
|
*
|
|
66
72
|
* @throws {@link Rulebricks.BadRequestError}
|
|
67
73
|
* @throws {@link Rulebricks.InternalServerError}
|
|
@@ -81,60 +87,162 @@ class Users {
|
|
|
81
87
|
* })
|
|
82
88
|
*/
|
|
83
89
|
invite(request, requestOptions) {
|
|
84
|
-
|
|
90
|
+
return core.HttpResponsePromise.fromPromise(this.__invite(request, requestOptions));
|
|
91
|
+
}
|
|
92
|
+
__invite(request, requestOptions) {
|
|
85
93
|
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
95
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
96
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
86
97
|
const _response = yield core.fetcher({
|
|
87
|
-
url:
|
|
98
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.RulebricksEnvironment.Default, "admin/users/invite"),
|
|
88
99
|
method: "POST",
|
|
89
|
-
headers:
|
|
100
|
+
headers: _headers,
|
|
90
101
|
contentType: "application/json",
|
|
102
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
91
103
|
requestType: "json",
|
|
92
|
-
body:
|
|
93
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds)
|
|
94
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
104
|
+
body: request,
|
|
105
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
106
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
95
107
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
108
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
109
|
+
logging: this._options.logging,
|
|
96
110
|
});
|
|
97
111
|
if (_response.ok) {
|
|
98
|
-
return
|
|
99
|
-
unrecognizedObjectKeys: "passthrough",
|
|
100
|
-
allowUnrecognizedUnionMembers: true,
|
|
101
|
-
allowUnrecognizedEnumValues: true,
|
|
102
|
-
breadcrumbsPrefix: ["response"],
|
|
103
|
-
});
|
|
112
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
104
113
|
}
|
|
105
114
|
if (_response.error.reason === "status-code") {
|
|
106
115
|
switch (_response.error.statusCode) {
|
|
107
116
|
case 400:
|
|
108
|
-
throw new Rulebricks.BadRequestError(_response.error.body);
|
|
117
|
+
throw new Rulebricks.BadRequestError(_response.error.body, _response.rawResponse);
|
|
109
118
|
case 500:
|
|
110
|
-
throw new Rulebricks.InternalServerError(_response.error.body);
|
|
119
|
+
throw new Rulebricks.InternalServerError(_response.error.body, _response.rawResponse);
|
|
111
120
|
default:
|
|
112
121
|
throw new errors.RulebricksError({
|
|
113
122
|
statusCode: _response.error.statusCode,
|
|
114
123
|
body: _response.error.body,
|
|
124
|
+
rawResponse: _response.rawResponse,
|
|
115
125
|
});
|
|
116
126
|
}
|
|
117
127
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/admin/users/invite");
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* List all users (including the admin and all team members) in the organization with their details including email, name, API key, role, access groups, and join date.
|
|
133
|
+
*
|
|
134
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
|
+
*
|
|
136
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* await client.users.list()
|
|
140
|
+
*/
|
|
141
|
+
list(requestOptions) {
|
|
142
|
+
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
143
|
+
}
|
|
144
|
+
__list(requestOptions) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
147
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
148
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
149
|
+
const _response = yield core.fetcher({
|
|
150
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.RulebricksEnvironment.Default, "admin/users/list"),
|
|
151
|
+
method: "GET",
|
|
152
|
+
headers: _headers,
|
|
153
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
154
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
155
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
156
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
157
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
158
|
+
logging: this._options.logging,
|
|
159
|
+
});
|
|
160
|
+
if (_response.ok) {
|
|
161
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
162
|
+
}
|
|
163
|
+
if (_response.error.reason === "status-code") {
|
|
164
|
+
switch (_response.error.statusCode) {
|
|
165
|
+
case 500:
|
|
166
|
+
throw new Rulebricks.InternalServerError(_response.error.body, _response.rawResponse);
|
|
167
|
+
default:
|
|
168
|
+
throw new errors.RulebricksError({
|
|
169
|
+
statusCode: _response.error.statusCode,
|
|
170
|
+
body: _response.error.body,
|
|
171
|
+
rawResponse: _response.rawResponse,
|
|
172
|
+
});
|
|
173
|
+
}
|
|
130
174
|
}
|
|
175
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/admin/users/list");
|
|
131
176
|
});
|
|
132
177
|
}
|
|
133
|
-
|
|
178
|
+
/**
|
|
179
|
+
* Create a new user directly with a password, bypassing the email invitation flow. The user can immediately log in with the provided credentials.
|
|
180
|
+
*
|
|
181
|
+
* @param {Rulebricks.CreateUserRequest} request
|
|
182
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
183
|
+
*
|
|
184
|
+
* @throws {@link Rulebricks.BadRequestError}
|
|
185
|
+
* @throws {@link Rulebricks.ForbiddenError}
|
|
186
|
+
* @throws {@link Rulebricks.InternalServerError}
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* await client.users.create({
|
|
190
|
+
* email: "newuser@example.com",
|
|
191
|
+
* password: "securePassword123"
|
|
192
|
+
* })
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* await client.users.create({
|
|
196
|
+
* email: "newuser@example.com",
|
|
197
|
+
* password: "securePassword123",
|
|
198
|
+
* name: "New User",
|
|
199
|
+
* role: "developer",
|
|
200
|
+
* accessGroups: ["engineering", "qa"]
|
|
201
|
+
* })
|
|
202
|
+
*/
|
|
203
|
+
create(request, requestOptions) {
|
|
204
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
205
|
+
}
|
|
206
|
+
__create(request, requestOptions) {
|
|
134
207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
135
|
-
|
|
136
|
-
|
|
208
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
209
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
210
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
211
|
+
const _response = yield core.fetcher({
|
|
212
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.RulebricksEnvironment.Default, "admin/users/create"),
|
|
213
|
+
method: "POST",
|
|
214
|
+
headers: _headers,
|
|
215
|
+
contentType: "application/json",
|
|
216
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
217
|
+
requestType: "json",
|
|
218
|
+
body: request,
|
|
219
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
220
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
221
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
222
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
223
|
+
logging: this._options.logging,
|
|
224
|
+
});
|
|
225
|
+
if (_response.ok) {
|
|
226
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
227
|
+
}
|
|
228
|
+
if (_response.error.reason === "status-code") {
|
|
229
|
+
switch (_response.error.statusCode) {
|
|
230
|
+
case 400:
|
|
231
|
+
throw new Rulebricks.BadRequestError(_response.error.body, _response.rawResponse);
|
|
232
|
+
case 403:
|
|
233
|
+
throw new Rulebricks.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
234
|
+
case 500:
|
|
235
|
+
throw new Rulebricks.InternalServerError(_response.error.body, _response.rawResponse);
|
|
236
|
+
default:
|
|
237
|
+
throw new errors.RulebricksError({
|
|
238
|
+
statusCode: _response.error.statusCode,
|
|
239
|
+
body: _response.error.body,
|
|
240
|
+
rawResponse: _response.rawResponse,
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/admin/users/create");
|
|
137
245
|
});
|
|
138
246
|
}
|
|
139
247
|
}
|
|
140
|
-
exports.
|
|
248
|
+
exports.UsersClient = UsersClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./requests";
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -14,4 +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("./requests"), exports);
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* email: "newuser@example.com",
|
|
5
|
+
* password: "securePassword123"
|
|
6
|
+
* }
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* {
|
|
10
|
+
* email: "newuser@example.com",
|
|
11
|
+
* password: "securePassword123",
|
|
12
|
+
* name: "New User",
|
|
13
|
+
* role: "developer",
|
|
14
|
+
* accessGroups: ["engineering", "qa"]
|
|
15
|
+
* }
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateUserRequest {
|
|
18
|
+
/** Email address for the new user. */
|
|
19
|
+
email: string;
|
|
20
|
+
/** Password for the new user (minimum 8 characters). The user can log in immediately with this password. */
|
|
21
|
+
password: string;
|
|
22
|
+
/** Display name for the user. */
|
|
23
|
+
name?: string;
|
|
24
|
+
/** Role to assign to the user. Defaults to 'developer' if not specified. */
|
|
25
|
+
role?: string;
|
|
26
|
+
/** List of access group names or IDs to assign to the user. */
|
|
27
|
+
accessGroups?: string[];
|
|
28
|
+
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as Rulebricks from "../../../../index";
|
|
5
1
|
/**
|
|
6
2
|
* @example
|
|
7
3
|
* {
|
|
@@ -35,7 +31,17 @@ export interface UserInviteRequest {
|
|
|
35
31
|
/** Email of the user to invite. */
|
|
36
32
|
email: string;
|
|
37
33
|
/** System or custom role ID to assign to the user. Available system roles include 'admin', 'editor', and 'developer'. */
|
|
38
|
-
role?:
|
|
34
|
+
role?: UserInviteRequest.Role;
|
|
39
35
|
/** List of access group names or IDs to assign to the user. All specified groups must exist in your organization. */
|
|
40
36
|
accessGroups?: string[];
|
|
41
37
|
}
|
|
38
|
+
export declare namespace UserInviteRequest {
|
|
39
|
+
/** System or custom role ID to assign to the user. Available system roles include 'admin', 'editor', and 'developer'. */
|
|
40
|
+
const Role: {
|
|
41
|
+
readonly Admin: "admin";
|
|
42
|
+
readonly Editor: "editor";
|
|
43
|
+
readonly Developer: "developer";
|
|
44
|
+
readonly CustomRole: "custom-role";
|
|
45
|
+
};
|
|
46
|
+
type Role = (typeof Role)[keyof typeof Role];
|
|
47
|
+
}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
5
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.UserInviteRequest = void 0;
|
|
5
|
+
var UserInviteRequest;
|
|
6
|
+
(function (UserInviteRequest) {
|
|
7
|
+
/** System or custom role ID to assign to the user. Available system roles include 'admin', 'editor', and 'developer'. */
|
|
8
|
+
UserInviteRequest.Role = {
|
|
9
|
+
Admin: "admin",
|
|
10
|
+
Editor: "editor",
|
|
11
|
+
Developer: "developer",
|
|
12
|
+
CustomRole: "custom-role",
|
|
13
|
+
};
|
|
14
|
+
})(UserInviteRequest || (exports.UserInviteRequest = UserInviteRequest = {}));
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { CreateUserRequest } from "./CreateUserRequest.js";
|
|
2
|
+
export type { UserInviteRequest } from "./UserInviteRequest.js";
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./resources";
|
|
1
|
+
export * from "./client/index.js";
|
|
2
|
+
export * from "./resources/index.js";
|
|
@@ -14,6 +14,5 @@ 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("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./resources"), exports);
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -1,46 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import * as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.RulebricksEnvironment | string>;
|
|
10
|
-
/** Specify a custom URL to connect the client to. */
|
|
11
|
-
baseUrl?: core.Supplier<string>;
|
|
12
|
-
apiKey: core.Supplier<string>;
|
|
13
|
-
}
|
|
14
|
-
interface RequestOptions {
|
|
15
|
-
/** The maximum time to wait for a response in seconds. */
|
|
16
|
-
timeoutInSeconds?: number;
|
|
17
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
18
|
-
maxRetries?: number;
|
|
19
|
-
/** A hook to abort the request. */
|
|
20
|
-
abortSignal?: AbortSignal;
|
|
21
|
-
/** Additional headers to include in the request. */
|
|
22
|
-
headers?: Record<string, string>;
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../../../core/index.js";
|
|
4
|
+
import * as Rulebricks from "../../../../../index.js";
|
|
5
|
+
export declare namespace GroupsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
23
8
|
}
|
|
24
9
|
}
|
|
25
|
-
export declare class
|
|
26
|
-
protected readonly _options:
|
|
27
|
-
constructor(
|
|
10
|
+
export declare class GroupsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<GroupsClient.Options>;
|
|
12
|
+
constructor(options: GroupsClient.Options);
|
|
28
13
|
/**
|
|
29
14
|
* List all user groups available in your Rulebricks organization.
|
|
30
15
|
*
|
|
31
|
-
* @param {
|
|
16
|
+
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
17
|
*
|
|
33
18
|
* @throws {@link Rulebricks.InternalServerError}
|
|
34
19
|
*
|
|
35
20
|
* @example
|
|
36
21
|
* await client.users.groups.list()
|
|
37
22
|
*/
|
|
38
|
-
list(requestOptions?:
|
|
23
|
+
list(requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.UserGroupListResponse>;
|
|
24
|
+
private __list;
|
|
39
25
|
/**
|
|
40
26
|
* Create a new user group in your Rulebricks organization.
|
|
41
27
|
*
|
|
42
28
|
* @param {Rulebricks.users.CreateUserGroupRequest} request
|
|
43
|
-
* @param {
|
|
29
|
+
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
30
|
*
|
|
45
31
|
* @throws {@link Rulebricks.BadRequestError}
|
|
46
32
|
* @throws {@link Rulebricks.InternalServerError}
|
|
@@ -51,8 +37,6 @@ export declare class Groups {
|
|
|
51
37
|
* description: "Description of the new group."
|
|
52
38
|
* })
|
|
53
39
|
*/
|
|
54
|
-
create(request: Rulebricks.users.CreateUserGroupRequest, requestOptions?:
|
|
55
|
-
|
|
56
|
-
"x-api-key": string;
|
|
57
|
-
}>;
|
|
40
|
+
create(request: Rulebricks.users.CreateUserGroupRequest, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<Rulebricks.UserGroup>;
|
|
41
|
+
private __create;
|
|
58
42
|
}
|