@rulebricks/sdk 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/errors/BadRequestError.js +24 -12
- package/api/errors/ForbiddenError.js +24 -12
- package/api/errors/InternalServerError.js +24 -12
- package/api/errors/NotFoundError.js +24 -12
- package/api/resources/assets/client/Client.d.ts +53 -18
- package/api/resources/assets/client/Client.js +147 -95
- package/api/resources/assets/index.js +0 -1
- package/api/resources/decisions/client/Client.d.ts +7 -2
- package/api/resources/decisions/client/Client.js +45 -23
- package/api/resources/decisions/index.js +0 -1
- package/api/resources/flows/client/Client.d.ts +8 -2
- package/api/resources/flows/client/Client.js +47 -24
- package/api/resources/index.d.ts +3 -3
- package/api/resources/index.js +27 -19
- package/api/resources/rules/client/Client.d.ts +23 -14
- package/api/resources/rules/client/Client.js +75 -51
- package/api/resources/tests/client/Client.d.ts +41 -12
- package/api/resources/tests/client/Client.js +110 -64
- package/api/resources/tests/client/index.js +0 -19
- package/api/resources/tests/index.js +0 -1
- package/api/resources/users/client/Client.d.ts +22 -24
- package/api/resources/users/client/Client.js +74 -59
- package/api/resources/users/types/UserInviteRequestRole.d.ts +7 -0
- package/api/resources/users/types/{InviteRequestRole.js → UserInviteRequestRole.js} +4 -2
- package/api/resources/users/types/index.js +1 -4
- package/api/resources/values/client/Client.d.ts +27 -6
- package/api/resources/values/client/Client.js +80 -42
- package/api/resources/values/types/index.js +1 -9
- package/{dist/api/resources/values/types/ListDynamicValuesResponseItemType.d.ts → api/types/SchemaFieldType.d.ts} +3 -2
- package/api/{resources/values/types/UpdateResponseItemType.js → types/SchemaFieldType.js} +4 -3
- package/api/types/index.js +47 -4
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/Fetcher.js +30 -81
- package/core/fetcher/createRequestUrl.d.ts +2 -0
- package/core/fetcher/createRequestUrl.js +12 -0
- package/core/fetcher/getFetchFn.d.ts +5 -0
- package/core/fetcher/getFetchFn.js +86 -0
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.d.ts +2 -0
- package/core/fetcher/getRequestBody.js +33 -0
- package/core/fetcher/getResponseBody.d.ts +2 -0
- package/core/fetcher/getResponseBody.js +64 -0
- package/core/fetcher/makeRequest.d.ts +2 -0
- package/core/fetcher/makeRequest.js +52 -0
- package/core/fetcher/requestWithRetries.d.ts +2 -0
- package/core/fetcher/requestWithRetries.js +50 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +36 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +40 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +257 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +23 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +143 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +40 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +239 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +2 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +77 -0
- package/core/index.js +24 -11
- package/core/json.d.ts +16 -0
- package/core/json.js +24 -0
- package/core/runtime/index.d.ts +3 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +14 -0
- package/core/runtime/runtime.js +103 -0
- package/core/schemas/Schema.d.ts +3 -0
- package/core/schemas/Schema.js +3 -0
- package/core/schemas/builders/bigint/bigint.d.ts +4 -0
- package/core/schemas/builders/bigint/bigint.js +53 -0
- package/core/schemas/builders/bigint/index.d.ts +3 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/date/date.js +1 -2
- package/core/schemas/builders/enum/enum.js +1 -2
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/builders/lazy/lazy.js +11 -33
- package/core/schemas/builders/lazy/lazyObject.js +2 -22
- package/core/schemas/builders/list/list.js +32 -56
- package/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/core/schemas/builders/object/object.d.ts +48 -7
- package/core/schemas/builders/object/object.js +132 -139
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/core/schemas/builders/object/property.js +2 -3
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +5 -25
- package/core/schemas/builders/record/record.d.ts +2 -5
- package/core/schemas/builders/record/record.js +49 -72
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +86 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -35
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/core/schemas/builders/set/set.d.ts +2 -5
- package/core/schemas/builders/set/set.js +7 -27
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +22 -44
- package/core/schemas/builders/union/discriminant.js +1 -2
- package/core/schemas/builders/union/union.js +52 -74
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/core/schemas/utils/entries.js +1 -2
- package/core/schemas/utils/filterObject.js +1 -2
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/keys.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.js +4 -24
- package/core/schemas/utils/partition.js +1 -2
- package/dist/api/errors/BadRequestError.js +24 -12
- package/dist/api/errors/ForbiddenError.js +24 -12
- package/dist/api/errors/InternalServerError.js +24 -12
- package/dist/api/errors/NotFoundError.js +24 -12
- package/dist/api/resources/assets/client/Client.d.ts +53 -18
- package/dist/api/resources/assets/client/Client.js +147 -95
- package/dist/api/resources/assets/index.js +0 -1
- package/dist/api/resources/decisions/client/Client.d.ts +7 -2
- package/dist/api/resources/decisions/client/Client.js +45 -23
- package/dist/api/resources/decisions/index.js +0 -1
- package/dist/api/resources/flows/client/Client.d.ts +8 -2
- package/dist/api/resources/flows/client/Client.js +47 -24
- package/dist/api/resources/index.d.ts +3 -3
- package/dist/api/resources/index.js +27 -19
- package/dist/api/resources/rules/client/Client.d.ts +23 -14
- package/dist/api/resources/rules/client/Client.js +75 -51
- package/dist/api/resources/tests/client/Client.d.ts +41 -12
- package/dist/api/resources/tests/client/Client.js +110 -64
- package/dist/api/resources/tests/client/index.js +0 -19
- package/dist/api/resources/tests/index.js +0 -1
- package/dist/api/resources/users/client/Client.d.ts +22 -24
- package/dist/api/resources/users/client/Client.js +74 -59
- package/dist/api/resources/users/types/UserInviteRequestRole.d.ts +7 -0
- package/dist/api/resources/users/types/{InviteRequestRole.js → UserInviteRequestRole.js} +4 -2
- package/dist/api/resources/users/types/index.js +1 -4
- package/dist/api/resources/values/client/Client.d.ts +27 -6
- package/dist/api/resources/values/client/Client.js +80 -42
- package/dist/api/resources/values/types/index.js +1 -9
- package/dist/api/types/DynamicValueBase.js +5 -0
- package/dist/api/types/DynamicValueListResponse.js +5 -0
- package/dist/api/types/Error_.js +5 -0
- package/dist/api/types/FlowBase.js +5 -0
- package/dist/api/types/FlowDetail.js +5 -0
- package/dist/api/types/FlowExecutionError.js +5 -0
- package/dist/api/types/FlowListResponse.js +5 -0
- package/dist/api/types/Folder.js +5 -0
- package/dist/api/types/FolderListResponse.js +5 -0
- package/dist/api/types/ListValue.js +5 -0
- package/dist/api/types/NumberValue.js +5 -0
- package/dist/api/types/ParallelSolveRequest.js +5 -0
- package/dist/api/types/ParallelSolveRequestValue.js +5 -0
- package/dist/api/types/ParallelSolveResponse.js +5 -0
- package/dist/api/types/RuleBase.js +5 -0
- package/dist/api/types/RuleDetail.js +5 -0
- package/dist/api/types/RuleExport.js +5 -0
- package/dist/api/types/RuleListResponse.js +5 -0
- package/dist/api/types/RuleUsage.js +5 -0
- package/dist/api/types/SchemaField.js +5 -0
- package/dist/api/types/SchemaFieldDefaultValue.d.ts +1 -0
- package/dist/api/types/SchemaFieldDefaultValue.js +5 -0
- package/{api/resources/values/types/ListDynamicValuesResponseItemType.d.ts → dist/api/types/SchemaFieldType.d.ts} +3 -2
- package/dist/api/{resources/values/types/UpdateResponseItemType.js → types/SchemaFieldType.js} +4 -3
- package/dist/api/types/StringValue.d.ts +1 -0
- package/dist/api/types/StringValue.js +5 -0
- package/dist/api/types/SuccessMessage.d.ts +1 -0
- package/dist/api/types/SuccessMessage.js +5 -0
- package/dist/api/types/Test.d.ts +1 -0
- package/dist/api/types/Test.js +5 -0
- package/dist/api/types/TestListResponse.d.ts +1 -0
- package/dist/api/types/TestListResponse.js +5 -0
- package/dist/api/types/TestTestState.d.ts +1 -0
- package/dist/api/types/TestTestState.js +5 -0
- package/dist/api/types/TestTestStateConditionsItemValue.d.ts +1 -0
- package/dist/api/types/TestTestStateConditionsItemValue.js +5 -0
- package/dist/api/types/TestTestStateEvaluationError.d.ts +1 -0
- package/dist/api/types/TestTestStateEvaluationError.js +5 -0
- package/dist/api/types/UsageStatistics.d.ts +1 -0
- package/dist/api/types/UsageStatistics.js +5 -0
- package/dist/api/types/UserGroup.d.ts +1 -0
- package/dist/api/types/UserGroup.js +5 -0
- package/dist/api/types/UserGroupListResponse.d.ts +1 -0
- package/dist/api/types/UserGroupListResponse.js +5 -0
- package/dist/api/types/UserInviteResponse.d.ts +1 -0
- package/dist/api/types/UserInviteResponse.js +5 -0
- package/dist/api/types/UserInviteResponseUser.d.ts +1 -0
- package/dist/api/types/UserInviteResponseUser.js +5 -0
- package/dist/api/types/ValueLimits.d.ts +1 -0
- package/dist/api/types/ValueLimits.js +5 -0
- package/dist/api/types/index.js +47 -4
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.js +30 -81
- package/dist/core/fetcher/createRequestUrl.d.ts +2 -0
- package/dist/core/fetcher/createRequestUrl.js +12 -0
- package/dist/core/fetcher/getFetchFn.d.ts +5 -0
- package/dist/core/fetcher/getFetchFn.js +86 -0
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.d.ts +2 -0
- package/dist/core/fetcher/getRequestBody.js +33 -0
- package/dist/core/fetcher/getResponseBody.d.ts +2 -0
- package/dist/core/fetcher/getResponseBody.js +64 -0
- package/dist/core/fetcher/makeRequest.d.ts +2 -0
- package/dist/core/fetcher/makeRequest.js +52 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +2 -0
- package/dist/core/fetcher/requestWithRetries.js +50 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +36 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +40 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +257 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +23 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +143 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +40 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +239 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +2 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +77 -0
- package/dist/core/index.js +24 -11
- package/dist/core/json.d.ts +16 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/index.d.ts +3 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +14 -0
- package/dist/core/runtime/runtime.js +103 -0
- package/dist/core/schemas/Schema.d.ts +3 -0
- package/dist/core/schemas/Schema.js +3 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +4 -0
- package/dist/core/schemas/builders/bigint/bigint.js +53 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +3 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/date/date.js +1 -2
- package/dist/core/schemas/builders/enum/enum.js +1 -2
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/builders/lazy/lazy.js +11 -33
- package/dist/core/schemas/builders/lazy/lazyObject.js +2 -22
- package/dist/core/schemas/builders/list/list.js +32 -56
- package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/dist/core/schemas/builders/object/object.d.ts +48 -7
- package/dist/core/schemas/builders/object/object.js +132 -139
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/dist/core/schemas/builders/object/property.js +2 -3
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +5 -25
- package/dist/core/schemas/builders/record/record.d.ts +2 -5
- package/dist/core/schemas/builders/record/record.js +49 -72
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +86 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -35
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/dist/core/schemas/builders/set/set.d.ts +2 -5
- package/dist/core/schemas/builders/set/set.js +7 -27
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +22 -44
- package/dist/core/schemas/builders/union/discriminant.js +1 -2
- package/dist/core/schemas/builders/union/union.js +52 -74
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/dist/core/schemas/utils/entries.js +1 -2
- package/dist/core/schemas/utils/filterObject.js +1 -2
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +5 -2
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/keys.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +4 -24
- package/dist/core/schemas/utils/partition.js +1 -2
- package/dist/errors/RulebricksApiError.js +2 -1
- package/dist/errors/RulebricksApiTimeoutError.d.ts +1 -1
- package/dist/errors/RulebricksApiTimeoutError.js +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.js +32 -16
- package/dist/serialization/resources/assets/client/index.d.ts +0 -5
- package/dist/serialization/resources/assets/client/index.js +0 -22
- package/dist/serialization/resources/assets/client/requests/DeleteFolderRequest.js +23 -11
- package/dist/serialization/resources/assets/client/requests/DeleteRuleRequest.js +24 -12
- package/dist/serialization/resources/assets/client/requests/ImportRuleRequest.js +23 -11
- package/dist/serialization/resources/assets/client/requests/UpsertFolderRequest.js +23 -11
- package/dist/serialization/resources/assets/index.js +0 -1
- package/dist/serialization/resources/index.d.ts +1 -4
- package/dist/serialization/resources/index.js +26 -20
- package/dist/serialization/resources/rules/client/bulkSolve.js +27 -13
- package/dist/serialization/resources/rules/client/index.d.ts +0 -2
- package/dist/serialization/resources/rules/client/index.js +24 -14
- package/dist/serialization/resources/users/client/index.d.ts +0 -1
- package/dist/serialization/resources/users/client/index.js +0 -18
- package/dist/serialization/resources/users/client/requests/CreateUserGroupRequest.d.ts +2 -0
- package/{serialization/resources/users/client/requests/CreateGroupRequest.js → dist/serialization/resources/users/client/requests/CreateUserGroupRequest.js} +25 -13
- package/dist/serialization/resources/users/client/requests/UserInviteRequest.d.ts +2 -0
- package/dist/serialization/resources/users/client/requests/UserInviteRequest.js +54 -0
- package/dist/serialization/resources/users/client/requests/index.d.ts +4 -4
- package/dist/serialization/resources/users/client/requests/index.js +5 -5
- package/dist/serialization/resources/users/types/UserInviteRequestRole.d.ts +2 -0
- package/dist/serialization/resources/{assets/types/DeleteRuleResponse.js → users/types/UserInviteRequestRole.js} +25 -15
- package/dist/serialization/resources/users/types/index.js +1 -4
- package/dist/serialization/resources/values/client/index.d.ts +0 -2
- package/dist/serialization/resources/values/client/index.js +5 -18
- package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +2 -0
- package/dist/serialization/resources/values/client/requests/UpdateValuesRequest.js +53 -0
- package/dist/serialization/resources/values/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/values/client/requests/index.js +5 -0
- package/dist/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +2 -0
- package/{serialization/resources/values/types/ListDynamicValuesResponseItemValue.js → dist/serialization/resources/values/types/UpdateValuesRequestValuesValue.js} +26 -14
- package/dist/serialization/resources/values/types/index.js +1 -9
- package/dist/serialization/types/BooleanValue.d.ts +2 -0
- package/dist/serialization/types/BooleanValue.js +54 -0
- package/dist/serialization/types/BulkRuleResponseItem.d.ts +2 -0
- package/dist/serialization/types/BulkRuleResponseItem.js +51 -0
- package/dist/serialization/types/BulkRuleResponseItemError.d.ts +2 -0
- package/dist/serialization/types/{ForbiddenErrorBody.js → BulkRuleResponseItemError.js} +25 -13
- package/dist/serialization/types/CreateTestRequest.d.ts +2 -0
- package/dist/serialization/{resources/tests/client/requests/CreateFlowTestRequest.js → types/CreateTestRequest.js} +26 -14
- package/dist/serialization/types/DecisionLog.d.ts +2 -0
- package/dist/serialization/types/DecisionLog.js +56 -0
- package/dist/serialization/types/DecisionLogDecision.d.ts +2 -0
- package/dist/serialization/types/DecisionLogDecision.js +55 -0
- package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +2 -0
- package/dist/serialization/types/DecisionLogDecisionConditionsItemValue.js +52 -0
- package/dist/serialization/types/DecisionLogRequest.d.ts +2 -0
- package/dist/serialization/types/DecisionLogRequest.js +58 -0
- package/dist/serialization/types/DecisionLogResponse.d.ts +2 -0
- package/dist/serialization/types/DecisionLogResponse.js +53 -0
- package/dist/serialization/types/DynamicRequestPayload.d.ts +2 -0
- package/dist/serialization/types/DynamicRequestPayload.js +49 -0
- package/dist/serialization/types/DynamicResponsePayload.d.ts +2 -0
- package/dist/serialization/types/DynamicResponsePayload.js +49 -0
- package/dist/serialization/types/DynamicValue.d.ts +2 -0
- package/dist/serialization/types/DynamicValue.js +63 -0
- package/dist/serialization/types/DynamicValueBase.d.ts +2 -0
- package/dist/serialization/types/DynamicValueBase.js +55 -0
- package/dist/serialization/types/DynamicValueListResponse.d.ts +2 -0
- package/dist/serialization/types/DynamicValueListResponse.js +50 -0
- package/dist/serialization/types/Error_.d.ts +2 -0
- package/dist/serialization/types/{NotFoundErrorBody.js → Error_.js} +25 -13
- package/dist/serialization/types/FlowBase.d.ts +2 -0
- package/{serialization/resources/assets/types/ListFlowsResponseItem.js → dist/serialization/types/FlowBase.js} +26 -16
- package/dist/serialization/types/FlowDetail.d.ts +2 -0
- package/dist/serialization/types/FlowDetail.js +55 -0
- package/dist/serialization/types/FlowExecutionError.d.ts +2 -0
- package/dist/serialization/types/FlowExecutionError.js +53 -0
- package/dist/serialization/types/FlowListResponse.d.ts +2 -0
- package/dist/serialization/types/FlowListResponse.js +50 -0
- package/dist/serialization/types/Folder.d.ts +2 -0
- package/dist/serialization/{resources/assets/types/DeleteFolderResponse.js → types/Folder.js} +26 -14
- package/dist/serialization/types/FolderListResponse.d.ts +2 -0
- package/dist/serialization/types/FolderListResponse.js +50 -0
- package/dist/serialization/types/ListValue.d.ts +2 -0
- package/dist/serialization/types/ListValue.js +54 -0
- package/dist/serialization/types/NumberValue.d.ts +2 -0
- package/dist/serialization/types/NumberValue.js +54 -0
- package/dist/serialization/types/ParallelSolveRequest.d.ts +2 -0
- package/dist/serialization/types/ParallelSolveRequest.js +50 -0
- package/dist/serialization/types/ParallelSolveRequestValue.d.ts +2 -0
- package/dist/serialization/types/ParallelSolveRequestValue.js +54 -0
- package/dist/serialization/types/ParallelSolveResponse.d.ts +2 -0
- package/dist/serialization/types/ParallelSolveResponse.js +50 -0
- package/dist/serialization/types/RuleBase.d.ts +2 -0
- package/{serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js → dist/serialization/types/RuleBase.js} +26 -16
- package/dist/serialization/types/RuleDetail.d.ts +2 -0
- package/dist/serialization/types/RuleDetail.js +59 -0
- package/dist/serialization/types/RuleExport.d.ts +2 -0
- package/dist/serialization/types/RuleExport.js +49 -0
- package/dist/serialization/types/RuleListResponse.d.ts +2 -0
- package/dist/serialization/types/RuleListResponse.js +50 -0
- package/dist/serialization/types/RuleUsage.d.ts +2 -0
- package/dist/serialization/{resources/values/types/ListDynamicValuesResponseItemUsagesItem.js → types/RuleUsage.js} +28 -16
- package/dist/serialization/types/SchemaField.d.ts +2 -0
- package/dist/serialization/types/SchemaField.js +60 -0
- package/dist/serialization/types/SchemaFieldDefaultValue.d.ts +2 -0
- package/{serialization/resources/values/types/UpdateResponseItemValue.js → dist/serialization/types/SchemaFieldDefaultValue.js} +27 -14
- package/dist/serialization/types/SchemaFieldType.d.ts +2 -0
- package/dist/serialization/types/SchemaFieldType.js +49 -0
- package/dist/serialization/types/StringValue.d.ts +2 -0
- package/dist/serialization/types/StringValue.js +54 -0
- package/dist/serialization/types/SuccessMessage.d.ts +2 -0
- package/{serialization/resources/values/types/DeleteDynamicValueResponse.js → dist/serialization/types/SuccessMessage.js} +26 -14
- package/dist/serialization/types/Test.d.ts +2 -0
- package/dist/serialization/{resources/tests/types/DeleteFlowTestResponse.js → types/Test.js} +28 -15
- package/dist/serialization/types/TestListResponse.d.ts +2 -0
- package/dist/serialization/types/TestListResponse.js +50 -0
- package/dist/serialization/types/TestTestState.d.ts +2 -0
- package/dist/serialization/types/TestTestState.js +60 -0
- package/dist/serialization/types/TestTestStateConditionsItemValue.d.ts +2 -0
- package/dist/serialization/types/TestTestStateConditionsItemValue.js +52 -0
- package/dist/serialization/types/TestTestStateEvaluationError.d.ts +2 -0
- package/dist/serialization/types/TestTestStateEvaluationError.js +49 -0
- package/dist/serialization/types/UsageStatistics.d.ts +2 -0
- package/dist/serialization/{resources/assets/types/UsageResponse.js → types/UsageStatistics.js} +26 -14
- package/dist/serialization/types/UserGroup.d.ts +2 -0
- package/dist/serialization/{resources/users/types/CreateGroupResponse.js → types/UserGroup.js} +26 -14
- package/dist/serialization/types/UserGroupListResponse.d.ts +2 -0
- package/dist/serialization/types/UserGroupListResponse.js +50 -0
- package/dist/serialization/types/UserInviteResponse.d.ts +2 -0
- package/dist/serialization/types/UserInviteResponse.js +53 -0
- package/dist/serialization/types/UserInviteResponseUser.d.ts +2 -0
- package/dist/serialization/types/UserInviteResponseUser.js +53 -0
- package/dist/serialization/types/ValueLimits.d.ts +2 -0
- package/dist/serialization/types/ValueLimits.js +54 -0
- package/dist/serialization/types/index.js +47 -4
- package/errors/RulebricksApiError.js +2 -1
- package/errors/RulebricksApiTimeoutError.d.ts +1 -1
- package/errors/RulebricksApiTimeoutError.js +2 -2
- package/index.d.ts +8 -8
- package/index.js +32 -16
- package/package.json +1 -1
- package/serialization/resources/assets/client/index.d.ts +0 -5
- package/serialization/resources/assets/client/index.js +0 -22
- package/serialization/resources/assets/client/requests/DeleteFolderRequest.js +23 -11
- package/serialization/resources/assets/client/requests/DeleteRuleRequest.js +24 -12
- package/serialization/resources/assets/client/requests/ImportRuleRequest.js +23 -11
- package/serialization/resources/assets/client/requests/UpsertFolderRequest.js +23 -11
- package/serialization/resources/assets/index.js +0 -1
- package/serialization/resources/index.d.ts +1 -4
- package/serialization/resources/index.js +26 -20
- package/serialization/resources/rules/client/bulkSolve.js +27 -13
- package/serialization/resources/rules/client/index.d.ts +0 -2
- package/serialization/resources/rules/client/index.js +24 -14
- package/serialization/resources/users/client/index.d.ts +0 -1
- package/serialization/resources/users/client/index.js +0 -18
- package/serialization/resources/users/client/requests/CreateUserGroupRequest.d.ts +2 -0
- package/{dist/serialization/resources/users/client/requests/CreateGroupRequest.js → serialization/resources/users/client/requests/CreateUserGroupRequest.js} +25 -13
- package/serialization/resources/users/client/requests/UserInviteRequest.d.ts +2 -0
- package/serialization/resources/users/client/requests/UserInviteRequest.js +54 -0
- package/serialization/resources/users/client/requests/index.d.ts +4 -4
- package/serialization/resources/users/client/requests/index.js +5 -5
- package/serialization/resources/users/types/UserInviteRequestRole.d.ts +2 -0
- package/{dist/serialization/resources/assets/client/importRule.js → serialization/resources/users/types/UserInviteRequestRole.js} +25 -13
- package/serialization/resources/users/types/index.js +1 -4
- package/serialization/resources/values/client/index.d.ts +0 -2
- package/serialization/resources/values/client/index.js +5 -18
- package/serialization/resources/values/client/requests/UpdateValuesRequest.d.ts +2 -0
- package/serialization/resources/values/client/requests/UpdateValuesRequest.js +53 -0
- package/serialization/resources/values/client/requests/index.d.ts +3 -0
- package/serialization/resources/values/client/requests/index.js +5 -0
- package/serialization/resources/values/types/UpdateValuesRequestValuesValue.d.ts +2 -0
- package/{dist/serialization/resources/values/types/ListDynamicValuesResponseItemValue.js → serialization/resources/values/types/UpdateValuesRequestValuesValue.js} +26 -14
- package/serialization/resources/values/types/index.js +1 -9
- package/serialization/types/BooleanValue.d.ts +2 -0
- package/serialization/types/BooleanValue.js +54 -0
- package/serialization/types/BulkRuleResponseItem.d.ts +2 -0
- package/serialization/types/BulkRuleResponseItem.js +51 -0
- package/serialization/types/BulkRuleResponseItemError.d.ts +2 -0
- package/{dist/serialization/types/InternalServerErrorBody.js → serialization/types/BulkRuleResponseItemError.js} +25 -13
- package/serialization/types/CreateTestRequest.d.ts +2 -0
- package/{dist/serialization/resources/tests/client/requests/CreateRuleTestRequest.js → serialization/types/CreateTestRequest.js} +26 -14
- package/serialization/types/DecisionLog.d.ts +2 -0
- package/serialization/types/DecisionLog.js +56 -0
- package/serialization/types/DecisionLogDecision.d.ts +2 -0
- package/serialization/types/DecisionLogDecision.js +55 -0
- package/serialization/types/DecisionLogDecisionConditionsItemValue.d.ts +2 -0
- package/serialization/types/DecisionLogDecisionConditionsItemValue.js +52 -0
- package/serialization/types/DecisionLogRequest.d.ts +2 -0
- package/serialization/types/DecisionLogRequest.js +58 -0
- package/serialization/types/DecisionLogResponse.d.ts +2 -0
- package/serialization/types/DecisionLogResponse.js +53 -0
- package/serialization/types/DynamicRequestPayload.d.ts +2 -0
- package/serialization/types/DynamicRequestPayload.js +49 -0
- package/serialization/types/DynamicResponsePayload.d.ts +2 -0
- package/serialization/types/DynamicResponsePayload.js +49 -0
- package/serialization/types/DynamicValue.d.ts +2 -0
- package/serialization/types/DynamicValue.js +63 -0
- package/serialization/types/DynamicValueBase.d.ts +2 -0
- package/serialization/types/DynamicValueBase.js +55 -0
- package/serialization/types/DynamicValueListResponse.d.ts +2 -0
- package/serialization/types/DynamicValueListResponse.js +50 -0
- package/serialization/types/Error_.d.ts +2 -0
- package/{dist/serialization/types/BadRequestErrorBody.js → serialization/types/Error_.js} +25 -13
- package/serialization/types/FlowBase.d.ts +2 -0
- package/serialization/types/FlowBase.js +54 -0
- package/serialization/types/FlowDetail.d.ts +2 -0
- package/serialization/types/FlowDetail.js +55 -0
- package/serialization/types/FlowExecutionError.d.ts +2 -0
- package/serialization/types/FlowExecutionError.js +53 -0
- package/serialization/types/FlowListResponse.d.ts +2 -0
- package/serialization/types/FlowListResponse.js +50 -0
- package/serialization/types/Folder.d.ts +2 -0
- package/{dist/serialization/resources/assets/types/UpsertFolderResponse.js → serialization/types/Folder.js} +26 -14
- package/serialization/types/FolderListResponse.d.ts +2 -0
- package/serialization/types/FolderListResponse.js +50 -0
- package/serialization/types/ListValue.d.ts +2 -0
- package/serialization/types/ListValue.js +54 -0
- package/serialization/types/NumberValue.d.ts +2 -0
- package/serialization/types/NumberValue.js +54 -0
- package/serialization/types/ParallelSolveRequest.d.ts +2 -0
- package/serialization/types/ParallelSolveRequest.js +50 -0
- package/serialization/types/ParallelSolveRequestValue.d.ts +2 -0
- package/serialization/types/ParallelSolveRequestValue.js +54 -0
- package/serialization/types/ParallelSolveResponse.d.ts +2 -0
- package/serialization/types/ParallelSolveResponse.js +50 -0
- package/serialization/types/RuleBase.d.ts +2 -0
- package/serialization/types/RuleBase.js +54 -0
- package/serialization/types/RuleDetail.d.ts +2 -0
- package/serialization/types/RuleDetail.js +59 -0
- package/serialization/types/RuleExport.d.ts +2 -0
- package/serialization/types/RuleExport.js +49 -0
- package/serialization/types/RuleListResponse.d.ts +2 -0
- package/serialization/types/RuleListResponse.js +50 -0
- package/serialization/types/RuleUsage.d.ts +2 -0
- package/{dist/serialization/resources/assets/types/ListFlowsResponseItem.js → serialization/types/RuleUsage.js} +28 -16
- package/serialization/types/SchemaField.d.ts +2 -0
- package/serialization/types/SchemaField.js +60 -0
- package/serialization/types/SchemaFieldDefaultValue.d.ts +2 -0
- package/{dist/serialization/resources/values/types/UpdateResponseItemValue.js → serialization/types/SchemaFieldDefaultValue.js} +27 -14
- package/serialization/types/SchemaFieldType.d.ts +2 -0
- package/serialization/types/SchemaFieldType.js +49 -0
- package/serialization/types/StringValue.d.ts +2 -0
- package/serialization/types/StringValue.js +54 -0
- package/serialization/types/SuccessMessage.d.ts +2 -0
- package/{dist/serialization/resources/values/types/DeleteDynamicValueResponse.js → serialization/types/SuccessMessage.js} +26 -14
- package/serialization/types/Test.d.ts +2 -0
- package/{dist/serialization/resources/tests/types/DeleteRuleTestResponse.js → serialization/types/Test.js} +28 -15
- package/serialization/types/TestListResponse.d.ts +2 -0
- package/serialization/types/TestListResponse.js +50 -0
- package/serialization/types/TestTestState.d.ts +2 -0
- package/serialization/types/TestTestState.js +60 -0
- package/serialization/types/TestTestStateConditionsItemValue.d.ts +2 -0
- package/serialization/types/TestTestStateConditionsItemValue.js +52 -0
- package/serialization/types/TestTestStateEvaluationError.d.ts +2 -0
- package/serialization/types/TestTestStateEvaluationError.js +49 -0
- package/serialization/types/UsageStatistics.d.ts +2 -0
- package/serialization/{resources/assets/types/UsageResponse.js → types/UsageStatistics.js} +26 -14
- package/serialization/types/UserGroup.d.ts +2 -0
- package/{dist/serialization/resources/users/types/ListGroupsResponseItem.js → serialization/types/UserGroup.js} +26 -14
- package/serialization/types/UserGroupListResponse.d.ts +2 -0
- package/serialization/types/UserGroupListResponse.js +50 -0
- package/serialization/types/UserInviteResponse.d.ts +2 -0
- package/serialization/types/UserInviteResponse.js +53 -0
- package/serialization/types/UserInviteResponseUser.d.ts +2 -0
- package/serialization/types/UserInviteResponseUser.js +53 -0
- package/serialization/types/ValueLimits.d.ts +2 -0
- package/serialization/types/ValueLimits.js +54 -0
- package/serialization/types/index.js +47 -4
- package/api/resources/assets/types/index.js +0 -28
- package/api/resources/decisions/types/index.js +0 -21
- package/api/resources/tests/client/requests/index.js +0 -2
- package/api/resources/tests/types/index.js +0 -26
- package/api/resources/users/types/InviteRequestRole.d.ts +0 -5
- package/api/resources/values/types/ListDynamicValuesResponseItemType.js +0 -12
- package/api/resources/values/types/UpdateResponseItemType.d.ts +0 -7
- package/dist/api/resources/assets/types/index.js +0 -28
- package/dist/api/resources/decisions/types/index.js +0 -21
- package/dist/api/resources/tests/client/requests/index.js +0 -2
- package/dist/api/resources/tests/types/index.js +0 -26
- package/dist/api/resources/users/types/InviteRequestRole.d.ts +0 -5
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemType.js +0 -12
- package/dist/api/resources/values/types/UpdateResponseItemType.d.ts +0 -7
- package/dist/forge/index.d.ts +0 -4
- package/dist/forge/index.js +0 -31
- package/dist/forge/operators.d.ts +0 -136
- package/dist/forge/operators.js +0 -938
- package/dist/forge/rule.d.ts +0 -129
- package/dist/forge/rule.js +0 -702
- package/dist/forge/types.d.ts +0 -53
- package/dist/forge/types.js +0 -34
- package/dist/forge/values.d.ts +0 -21
- package/dist/forge/values.js +0 -88
- package/dist/serialization/resources/assets/client/exportRule.d.ts +0 -2
- package/dist/serialization/resources/assets/client/exportRule.js +0 -37
- package/dist/serialization/resources/assets/client/importRule.d.ts +0 -2
- package/dist/serialization/resources/assets/client/listFlows.d.ts +0 -2
- package/dist/serialization/resources/assets/client/listFlows.js +0 -56
- package/dist/serialization/resources/assets/client/listFolders.d.ts +0 -2
- package/dist/serialization/resources/assets/client/listFolders.js +0 -56
- package/dist/serialization/resources/assets/client/listRules.d.ts +0 -2
- package/dist/serialization/resources/assets/client/listRules.js +0 -56
- package/dist/serialization/resources/assets/types/DeleteFolderResponse.d.ts +0 -2
- package/dist/serialization/resources/assets/types/DeleteRuleResponse.d.ts +0 -2
- package/dist/serialization/resources/assets/types/ListFlowsResponseItem.d.ts +0 -2
- package/dist/serialization/resources/assets/types/ListFoldersResponseItem.d.ts +0 -2
- package/dist/serialization/resources/assets/types/ListFoldersResponseItem.js +0 -42
- package/dist/serialization/resources/assets/types/ListRulesResponseItem.d.ts +0 -2
- package/dist/serialization/resources/assets/types/ListRulesResponseItem.js +0 -67
- package/dist/serialization/resources/assets/types/ListRulesResponseItemFolder.d.ts +0 -2
- package/dist/serialization/resources/assets/types/ListRulesResponseItemFolder.js +0 -42
- package/dist/serialization/resources/assets/types/UpsertFolderResponse.d.ts +0 -2
- package/dist/serialization/resources/assets/types/UsageResponse.d.ts +0 -2
- package/dist/serialization/resources/assets/types/index.js +0 -28
- package/dist/serialization/resources/decisions/index.js +0 -21
- package/dist/serialization/resources/decisions/types/QueryResponse.d.ts +0 -2
- package/dist/serialization/resources/decisions/types/QueryResponse.js +0 -42
- package/dist/serialization/resources/decisions/types/index.js +0 -21
- package/dist/serialization/resources/flows/client/execute.d.ts +0 -3
- package/dist/serialization/resources/flows/client/execute.js +0 -38
- package/dist/serialization/resources/flows/client/index.d.ts +0 -2
- package/dist/serialization/resources/flows/client/index.js +0 -33
- package/dist/serialization/resources/flows/index.js +0 -21
- package/dist/serialization/resources/rules/client/parallelSolve.d.ts +0 -3
- package/dist/serialization/resources/rules/client/parallelSolve.js +0 -38
- package/dist/serialization/resources/rules/client/solve.d.ts +0 -3
- package/dist/serialization/resources/rules/client/solve.js +0 -38
- package/dist/serialization/resources/tests/client/index.d.ts +0 -3
- package/dist/serialization/resources/tests/client/index.js +0 -40
- package/dist/serialization/resources/tests/client/listFlowTests.d.ts +0 -2
- package/dist/serialization/resources/tests/client/listFlowTests.js +0 -56
- package/dist/serialization/resources/tests/client/listRuleTests.d.ts +0 -2
- package/dist/serialization/resources/tests/client/listRuleTests.js +0 -56
- package/dist/serialization/resources/tests/client/requests/CreateFlowTestRequest.d.ts +0 -2
- package/dist/serialization/resources/tests/client/requests/CreateRuleTestRequest.d.ts +0 -2
- package/dist/serialization/resources/tests/client/requests/index.d.ts +0 -5
- package/dist/serialization/resources/tests/client/requests/index.js +0 -7
- package/dist/serialization/resources/tests/index.js +0 -22
- package/dist/serialization/resources/tests/types/CreateFlowTestResponse.d.ts +0 -2
- package/dist/serialization/resources/tests/types/CreateFlowTestResponse.js +0 -47
- package/dist/serialization/resources/tests/types/CreateRuleTestResponse.d.ts +0 -2
- package/dist/serialization/resources/tests/types/CreateRuleTestResponse.js +0 -47
- package/dist/serialization/resources/tests/types/DeleteFlowTestResponse.d.ts +0 -2
- package/dist/serialization/resources/tests/types/DeleteRuleTestResponse.d.ts +0 -2
- package/dist/serialization/resources/tests/types/ListFlowTestsResponseItem.d.ts +0 -2
- package/dist/serialization/resources/tests/types/ListFlowTestsResponseItem.js +0 -47
- package/dist/serialization/resources/tests/types/ListRuleTestsResponseItem.d.ts +0 -2
- package/dist/serialization/resources/tests/types/ListRuleTestsResponseItem.js +0 -47
- package/dist/serialization/resources/tests/types/index.js +0 -26
- package/dist/serialization/resources/users/client/listGroups.d.ts +0 -2
- package/dist/serialization/resources/users/client/listGroups.js +0 -56
- package/dist/serialization/resources/users/client/requests/CreateGroupRequest.d.ts +0 -2
- package/dist/serialization/resources/users/client/requests/InviteRequest.d.ts +0 -2
- package/dist/serialization/resources/users/client/requests/InviteRequest.js +0 -60
- package/dist/serialization/resources/users/types/CreateGroupResponse.d.ts +0 -2
- package/dist/serialization/resources/users/types/InviteRequestRole.d.ts +0 -2
- package/dist/serialization/resources/users/types/InviteRequestRole.js +0 -37
- package/dist/serialization/resources/users/types/InviteResponse.d.ts +0 -2
- package/dist/serialization/resources/users/types/InviteResponse.js +0 -39
- package/dist/serialization/resources/users/types/ListGroupsResponseItem.d.ts +0 -2
- package/dist/serialization/resources/values/client/listDynamicValues.d.ts +0 -2
- package/dist/serialization/resources/values/client/listDynamicValues.js +0 -56
- package/dist/serialization/resources/values/client/update.d.ts +0 -3
- package/dist/serialization/resources/values/client/update.js +0 -57
- package/dist/serialization/resources/values/types/DeleteDynamicValueResponse.d.ts +0 -2
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItem.d.ts +0 -2
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItem.js +0 -66
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemType.d.ts +0 -2
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemType.js +0 -37
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +0 -2
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +0 -2
- package/dist/serialization/resources/values/types/UpdateRequestValue.d.ts +0 -2
- package/dist/serialization/resources/values/types/UpdateRequestValue.js +0 -42
- package/dist/serialization/resources/values/types/UpdateResponseItem.d.ts +0 -2
- package/dist/serialization/resources/values/types/UpdateResponseItem.js +0 -61
- package/dist/serialization/resources/values/types/UpdateResponseItemType.d.ts +0 -2
- package/dist/serialization/resources/values/types/UpdateResponseItemType.js +0 -37
- package/dist/serialization/resources/values/types/UpdateResponseItemValue.d.ts +0 -2
- package/dist/serialization/types/BadRequestErrorBody.d.ts +0 -2
- package/dist/serialization/types/ForbiddenErrorBody.d.ts +0 -2
- package/dist/serialization/types/InternalServerErrorBody.d.ts +0 -2
- package/dist/serialization/types/NotFoundErrorBody.d.ts +0 -2
- package/forge/index.d.ts +0 -4
- package/forge/index.js +0 -31
- package/forge/operators.d.ts +0 -136
- package/forge/operators.js +0 -938
- package/forge/rule.d.ts +0 -129
- package/forge/rule.js +0 -702
- package/forge/types.d.ts +0 -53
- package/forge/types.js +0 -34
- package/forge/values.d.ts +0 -21
- package/forge/values.js +0 -88
- package/serialization/resources/assets/client/exportRule.d.ts +0 -2
- package/serialization/resources/assets/client/exportRule.js +0 -37
- package/serialization/resources/assets/client/importRule.d.ts +0 -2
- package/serialization/resources/assets/client/importRule.js +0 -37
- package/serialization/resources/assets/client/listFlows.d.ts +0 -2
- package/serialization/resources/assets/client/listFlows.js +0 -56
- package/serialization/resources/assets/client/listFolders.d.ts +0 -2
- package/serialization/resources/assets/client/listFolders.js +0 -56
- package/serialization/resources/assets/client/listRules.d.ts +0 -2
- package/serialization/resources/assets/client/listRules.js +0 -56
- package/serialization/resources/assets/types/DeleteFolderResponse.d.ts +0 -2
- package/serialization/resources/assets/types/DeleteFolderResponse.js +0 -42
- package/serialization/resources/assets/types/DeleteRuleResponse.d.ts +0 -2
- package/serialization/resources/assets/types/DeleteRuleResponse.js +0 -39
- package/serialization/resources/assets/types/ListFlowsResponseItem.d.ts +0 -2
- package/serialization/resources/assets/types/ListFoldersResponseItem.d.ts +0 -2
- package/serialization/resources/assets/types/ListFoldersResponseItem.js +0 -42
- package/serialization/resources/assets/types/ListRulesResponseItem.d.ts +0 -2
- package/serialization/resources/assets/types/ListRulesResponseItem.js +0 -67
- package/serialization/resources/assets/types/ListRulesResponseItemFolder.d.ts +0 -2
- package/serialization/resources/assets/types/ListRulesResponseItemFolder.js +0 -42
- package/serialization/resources/assets/types/UpsertFolderResponse.d.ts +0 -2
- package/serialization/resources/assets/types/UpsertFolderResponse.js +0 -42
- package/serialization/resources/assets/types/UsageResponse.d.ts +0 -2
- package/serialization/resources/assets/types/index.js +0 -28
- package/serialization/resources/decisions/index.js +0 -21
- package/serialization/resources/decisions/types/QueryResponse.d.ts +0 -2
- package/serialization/resources/decisions/types/QueryResponse.js +0 -42
- package/serialization/resources/decisions/types/index.js +0 -21
- package/serialization/resources/flows/client/execute.d.ts +0 -3
- package/serialization/resources/flows/client/execute.js +0 -38
- package/serialization/resources/flows/client/index.d.ts +0 -2
- package/serialization/resources/flows/client/index.js +0 -33
- package/serialization/resources/flows/index.js +0 -21
- package/serialization/resources/rules/client/parallelSolve.d.ts +0 -3
- package/serialization/resources/rules/client/parallelSolve.js +0 -38
- package/serialization/resources/rules/client/solve.d.ts +0 -3
- package/serialization/resources/rules/client/solve.js +0 -38
- package/serialization/resources/tests/client/index.d.ts +0 -3
- package/serialization/resources/tests/client/index.js +0 -40
- package/serialization/resources/tests/client/listFlowTests.d.ts +0 -2
- package/serialization/resources/tests/client/listFlowTests.js +0 -56
- package/serialization/resources/tests/client/listRuleTests.d.ts +0 -2
- package/serialization/resources/tests/client/listRuleTests.js +0 -56
- package/serialization/resources/tests/client/requests/CreateFlowTestRequest.d.ts +0 -2
- package/serialization/resources/tests/client/requests/CreateFlowTestRequest.js +0 -42
- package/serialization/resources/tests/client/requests/CreateRuleTestRequest.d.ts +0 -2
- package/serialization/resources/tests/client/requests/CreateRuleTestRequest.js +0 -42
- package/serialization/resources/tests/client/requests/index.d.ts +0 -5
- package/serialization/resources/tests/client/requests/index.js +0 -7
- package/serialization/resources/tests/index.js +0 -22
- package/serialization/resources/tests/types/CreateFlowTestResponse.d.ts +0 -2
- package/serialization/resources/tests/types/CreateFlowTestResponse.js +0 -47
- package/serialization/resources/tests/types/CreateRuleTestResponse.d.ts +0 -2
- package/serialization/resources/tests/types/CreateRuleTestResponse.js +0 -47
- package/serialization/resources/tests/types/DeleteFlowTestResponse.d.ts +0 -2
- package/serialization/resources/tests/types/DeleteFlowTestResponse.js +0 -47
- package/serialization/resources/tests/types/DeleteRuleTestResponse.d.ts +0 -2
- package/serialization/resources/tests/types/DeleteRuleTestResponse.js +0 -47
- package/serialization/resources/tests/types/ListFlowTestsResponseItem.d.ts +0 -2
- package/serialization/resources/tests/types/ListFlowTestsResponseItem.js +0 -47
- package/serialization/resources/tests/types/ListRuleTestsResponseItem.d.ts +0 -2
- package/serialization/resources/tests/types/ListRuleTestsResponseItem.js +0 -47
- package/serialization/resources/tests/types/index.js +0 -26
- package/serialization/resources/users/client/listGroups.d.ts +0 -2
- package/serialization/resources/users/client/listGroups.js +0 -56
- package/serialization/resources/users/client/requests/CreateGroupRequest.d.ts +0 -2
- package/serialization/resources/users/client/requests/InviteRequest.d.ts +0 -2
- package/serialization/resources/users/client/requests/InviteRequest.js +0 -60
- package/serialization/resources/users/types/CreateGroupResponse.d.ts +0 -2
- package/serialization/resources/users/types/CreateGroupResponse.js +0 -42
- package/serialization/resources/users/types/InviteRequestRole.d.ts +0 -2
- package/serialization/resources/users/types/InviteRequestRole.js +0 -37
- package/serialization/resources/users/types/InviteResponse.d.ts +0 -2
- package/serialization/resources/users/types/InviteResponse.js +0 -39
- package/serialization/resources/users/types/ListGroupsResponseItem.d.ts +0 -2
- package/serialization/resources/users/types/ListGroupsResponseItem.js +0 -42
- package/serialization/resources/values/client/listDynamicValues.d.ts +0 -2
- package/serialization/resources/values/client/listDynamicValues.js +0 -56
- package/serialization/resources/values/client/update.d.ts +0 -3
- package/serialization/resources/values/client/update.js +0 -57
- package/serialization/resources/values/types/DeleteDynamicValueResponse.d.ts +0 -2
- package/serialization/resources/values/types/ListDynamicValuesResponseItem.d.ts +0 -2
- package/serialization/resources/values/types/ListDynamicValuesResponseItem.js +0 -66
- package/serialization/resources/values/types/ListDynamicValuesResponseItemType.d.ts +0 -2
- package/serialization/resources/values/types/ListDynamicValuesResponseItemType.js +0 -37
- package/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +0 -2
- package/serialization/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +0 -2
- package/serialization/resources/values/types/UpdateRequestValue.d.ts +0 -2
- package/serialization/resources/values/types/UpdateRequestValue.js +0 -42
- package/serialization/resources/values/types/UpdateResponseItem.d.ts +0 -2
- package/serialization/resources/values/types/UpdateResponseItem.js +0 -61
- package/serialization/resources/values/types/UpdateResponseItemType.d.ts +0 -2
- package/serialization/resources/values/types/UpdateResponseItemType.js +0 -37
- package/serialization/resources/values/types/UpdateResponseItemValue.d.ts +0 -2
- package/serialization/types/BadRequestErrorBody.d.ts +0 -2
- package/serialization/types/BadRequestErrorBody.js +0 -39
- package/serialization/types/ForbiddenErrorBody.d.ts +0 -2
- package/serialization/types/ForbiddenErrorBody.js +0 -39
- package/serialization/types/InternalServerErrorBody.d.ts +0 -2
- package/serialization/types/InternalServerErrorBody.js +0 -39
- package/serialization/types/NotFoundErrorBody.d.ts +0 -2
- package/serialization/types/NotFoundErrorBody.js +0 -39
- /package/api/resources/{assets/types/DeleteFolderResponse.d.ts → decisions/client/requests/QueryDecisionsRequest.d.ts} +0 -0
- /package/api/resources/{assets/types/DeleteFolderResponse.js → decisions/client/requests/QueryDecisionsRequest.js} +0 -0
- /package/api/resources/{assets/types/DeleteRuleResponse.d.ts → users/client/requests/CreateUserGroupRequest.d.ts} +0 -0
- /package/api/resources/{assets/types/DeleteRuleResponse.js → users/client/requests/CreateUserGroupRequest.js} +0 -0
- /package/api/resources/{assets/types/ListFlowsResponseItem.d.ts → users/client/requests/UserInviteRequest.d.ts} +0 -0
- /package/api/resources/{assets/types/ListFlowsResponseItem.js → users/client/requests/UserInviteRequest.js} +0 -0
- /package/api/resources/{assets/types/ListFoldersResponseItem.d.ts → values/client/requests/UpdateValuesRequest.d.ts} +0 -0
- /package/api/resources/{assets/types/ListFoldersResponseItem.js → values/client/requests/UpdateValuesRequest.js} +0 -0
- /package/api/resources/{assets/types/ListRulesResponseItem.d.ts → values/types/UpdateValuesRequestValuesValue.d.ts} +0 -0
- /package/api/resources/{assets/types/ListRulesResponseItem.js → values/types/UpdateValuesRequestValuesValue.js} +0 -0
- /package/api/{resources/assets/types/ListRulesResponseItemFolder.d.ts → types/BooleanValue.d.ts} +0 -0
- /package/api/{resources/assets/types/ListRulesResponseItemFolder.js → types/BooleanValue.js} +0 -0
- /package/api/{resources/assets/types/UpsertFolderResponse.d.ts → types/BulkRuleResponseItem.d.ts} +0 -0
- /package/api/{resources/assets/types/UpsertFolderResponse.js → types/BulkRuleResponseItem.js} +0 -0
- /package/api/{resources/assets/types/UsageResponse.d.ts → types/BulkRuleResponseItemError.d.ts} +0 -0
- /package/api/{resources/assets/types/UsageResponse.js → types/BulkRuleResponseItemError.js} +0 -0
- /package/api/{resources/assets/types/index.d.ts → types/CreateTestRequest.d.ts} +0 -0
- /package/api/{resources/decisions/client/requests/QueryRequest.js → types/CreateTestRequest.js} +0 -0
- /package/api/{resources/decisions/client/requests/QueryRequest.d.ts → types/DecisionLog.d.ts} +0 -0
- /package/api/{resources/decisions/types/QueryResponse.js → types/DecisionLog.js} +0 -0
- /package/api/{resources/decisions/types/QueryResponse.d.ts → types/DecisionLogDecision.d.ts} +0 -0
- /package/api/{resources/tests/client/requests/CreateFlowTestRequest.js → types/DecisionLogDecision.js} +0 -0
- /package/api/{resources/decisions/types/index.d.ts → types/DecisionLogDecisionConditionsItemValue.d.ts} +0 -0
- /package/api/{resources/tests/client/requests/CreateRuleTestRequest.js → types/DecisionLogDecisionConditionsItemValue.js} +0 -0
- /package/api/{resources/tests/client/requests/CreateFlowTestRequest.d.ts → types/DecisionLogRequest.d.ts} +0 -0
- /package/api/{resources/tests/types/CreateFlowTestResponse.js → types/DecisionLogRequest.js} +0 -0
- /package/api/{resources/tests/client/requests/CreateRuleTestRequest.d.ts → types/DecisionLogResponse.d.ts} +0 -0
- /package/api/{resources/tests/types/CreateRuleTestResponse.js → types/DecisionLogResponse.js} +0 -0
- /package/api/{resources/tests/client/requests/index.d.ts → types/DynamicRequestPayload.d.ts} +0 -0
- /package/api/{resources/tests/types/DeleteFlowTestResponse.js → types/DynamicRequestPayload.js} +0 -0
- /package/api/{resources/tests/types/CreateFlowTestResponse.d.ts → types/DynamicResponsePayload.d.ts} +0 -0
- /package/api/{resources/tests/types/DeleteRuleTestResponse.js → types/DynamicResponsePayload.js} +0 -0
- /package/api/{resources/tests/types/CreateRuleTestResponse.d.ts → types/DynamicValue.d.ts} +0 -0
- /package/api/{resources/tests/types/ListFlowTestsResponseItem.js → types/DynamicValue.js} +0 -0
- /package/api/{resources/tests/types/DeleteFlowTestResponse.d.ts → types/DynamicValueBase.d.ts} +0 -0
- /package/api/{resources/tests/types/ListRuleTestsResponseItem.js → types/DynamicValueBase.js} +0 -0
- /package/api/{resources/tests/types/DeleteRuleTestResponse.d.ts → types/DynamicValueListResponse.d.ts} +0 -0
- /package/api/{resources/users/client/requests/CreateGroupRequest.js → types/DynamicValueListResponse.js} +0 -0
- /package/api/{resources/tests/types/ListFlowTestsResponseItem.d.ts → types/Error_.d.ts} +0 -0
- /package/api/{resources/users/client/requests/InviteRequest.js → types/Error_.js} +0 -0
- /package/api/{resources/tests/types/ListRuleTestsResponseItem.d.ts → types/FlowBase.d.ts} +0 -0
- /package/api/{resources/users/types/CreateGroupResponse.js → types/FlowBase.js} +0 -0
- /package/api/{resources/tests/types/index.d.ts → types/FlowDetail.d.ts} +0 -0
- /package/api/{resources/users/types/InviteResponse.js → types/FlowDetail.js} +0 -0
- /package/api/{resources/users/client/requests/CreateGroupRequest.d.ts → types/FlowExecutionError.d.ts} +0 -0
- /package/api/{resources/users/types/ListGroupsResponseItem.js → types/FlowExecutionError.js} +0 -0
- /package/api/{resources/users/client/requests/InviteRequest.d.ts → types/FlowListResponse.d.ts} +0 -0
- /package/api/{resources/values/types/DeleteDynamicValueResponse.js → types/FlowListResponse.js} +0 -0
- /package/api/{resources/users/types/CreateGroupResponse.d.ts → types/Folder.d.ts} +0 -0
- /package/api/{resources/values/types/ListDynamicValuesResponseItem.js → types/Folder.js} +0 -0
- /package/api/{resources/users/types/InviteResponse.d.ts → types/FolderListResponse.d.ts} +0 -0
- /package/api/{resources/values/types/ListDynamicValuesResponseItemUsagesItem.js → types/FolderListResponse.js} +0 -0
- /package/api/{resources/users/types/ListGroupsResponseItem.d.ts → types/ListValue.d.ts} +0 -0
- /package/api/{resources/values/types/ListDynamicValuesResponseItemValue.js → types/ListValue.js} +0 -0
- /package/api/{resources/values/types/DeleteDynamicValueResponse.d.ts → types/NumberValue.d.ts} +0 -0
- /package/api/{resources/values/types/UpdateRequestValue.js → types/NumberValue.js} +0 -0
- /package/api/{resources/values/types/ListDynamicValuesResponseItem.d.ts → types/ParallelSolveRequest.d.ts} +0 -0
- /package/api/{resources/values/types/UpdateResponseItem.js → types/ParallelSolveRequest.js} +0 -0
- /package/api/{resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts → types/ParallelSolveRequestValue.d.ts} +0 -0
- /package/api/{resources/values/types/UpdateResponseItemValue.js → types/ParallelSolveRequestValue.js} +0 -0
- /package/api/{resources/values/types/ListDynamicValuesResponseItemValue.d.ts → types/ParallelSolveResponse.d.ts} +0 -0
- /package/api/types/{BadRequestErrorBody.js → ParallelSolveResponse.js} +0 -0
- /package/api/{resources/values/types/UpdateRequestValue.d.ts → types/RuleBase.d.ts} +0 -0
- /package/api/types/{ForbiddenErrorBody.js → RuleBase.js} +0 -0
- /package/api/{resources/values/types/UpdateResponseItem.d.ts → types/RuleDetail.d.ts} +0 -0
- /package/api/types/{InternalServerErrorBody.js → RuleDetail.js} +0 -0
- /package/api/{resources/values/types/UpdateResponseItemValue.d.ts → types/RuleExport.d.ts} +0 -0
- /package/api/types/{NotFoundErrorBody.js → RuleExport.js} +0 -0
- /package/api/types/{BadRequestErrorBody.d.ts → RuleListResponse.d.ts} +0 -0
- /package/{dist/api/resources/assets/types/DeleteFolderResponse.js → api/types/RuleListResponse.js} +0 -0
- /package/api/types/{ForbiddenErrorBody.d.ts → RuleUsage.d.ts} +0 -0
- /package/{dist/api/resources/assets/types/DeleteRuleResponse.js → api/types/RuleUsage.js} +0 -0
- /package/api/types/{InternalServerErrorBody.d.ts → SchemaField.d.ts} +0 -0
- /package/{dist/api/resources/assets/types/ListFlowsResponseItem.js → api/types/SchemaField.js} +0 -0
- /package/api/types/{NotFoundErrorBody.d.ts → SchemaFieldDefaultValue.d.ts} +0 -0
- /package/{dist/api/resources/assets/types/ListFoldersResponseItem.js → api/types/SchemaFieldDefaultValue.js} +0 -0
- /package/{dist/api/resources/assets/types/DeleteFolderResponse.d.ts → api/types/StringValue.d.ts} +0 -0
- /package/{dist/api/resources/assets/types/ListRulesResponseItem.js → api/types/StringValue.js} +0 -0
- /package/{dist/api/resources/assets/types/DeleteRuleResponse.d.ts → api/types/SuccessMessage.d.ts} +0 -0
- /package/{dist/api/resources/assets/types/ListRulesResponseItemFolder.js → api/types/SuccessMessage.js} +0 -0
- /package/{dist/api/resources/assets/types/ListFlowsResponseItem.d.ts → api/types/Test.d.ts} +0 -0
- /package/{dist/api/resources/assets/types/UpsertFolderResponse.js → api/types/Test.js} +0 -0
- /package/{dist/api/resources/assets/types/ListFoldersResponseItem.d.ts → api/types/TestListResponse.d.ts} +0 -0
- /package/{dist/api/resources/assets/types/UsageResponse.js → api/types/TestListResponse.js} +0 -0
- /package/{dist/api/resources/assets/types/ListRulesResponseItem.d.ts → api/types/TestTestState.d.ts} +0 -0
- /package/{dist/api/resources/decisions/client/requests/QueryRequest.js → api/types/TestTestState.js} +0 -0
- /package/{dist/api/resources/assets/types/ListRulesResponseItemFolder.d.ts → api/types/TestTestStateConditionsItemValue.d.ts} +0 -0
- /package/{dist/api/resources/decisions/types/QueryResponse.js → api/types/TestTestStateConditionsItemValue.js} +0 -0
- /package/{dist/api/resources/assets/types/UpsertFolderResponse.d.ts → api/types/TestTestStateEvaluationError.d.ts} +0 -0
- /package/{dist/api/resources/tests/client/requests/CreateFlowTestRequest.js → api/types/TestTestStateEvaluationError.js} +0 -0
- /package/{dist/api/resources/assets/types/UsageResponse.d.ts → api/types/UsageStatistics.d.ts} +0 -0
- /package/{dist/api/resources/tests/client/requests/CreateRuleTestRequest.js → api/types/UsageStatistics.js} +0 -0
- /package/{dist/api/resources/assets/types/index.d.ts → api/types/UserGroup.d.ts} +0 -0
- /package/{dist/api/resources/tests/types/CreateFlowTestResponse.js → api/types/UserGroup.js} +0 -0
- /package/{dist/api/resources/decisions/client/requests/QueryRequest.d.ts → api/types/UserGroupListResponse.d.ts} +0 -0
- /package/{dist/api/resources/tests/types/CreateRuleTestResponse.js → api/types/UserGroupListResponse.js} +0 -0
- /package/{dist/api/resources/decisions/types/QueryResponse.d.ts → api/types/UserInviteResponse.d.ts} +0 -0
- /package/{dist/api/resources/tests/types/DeleteFlowTestResponse.js → api/types/UserInviteResponse.js} +0 -0
- /package/{dist/api/resources/decisions/types/index.d.ts → api/types/UserInviteResponseUser.d.ts} +0 -0
- /package/{dist/api/resources/tests/types/DeleteRuleTestResponse.js → api/types/UserInviteResponseUser.js} +0 -0
- /package/{dist/api/resources/tests/client/requests/CreateFlowTestRequest.d.ts → api/types/ValueLimits.d.ts} +0 -0
- /package/{dist/api/resources/tests/types/ListFlowTestsResponseItem.js → api/types/ValueLimits.js} +0 -0
- /package/dist/api/resources/{tests/client/requests/CreateRuleTestRequest.d.ts → decisions/client/requests/QueryDecisionsRequest.d.ts} +0 -0
- /package/dist/api/resources/{tests/types/ListRuleTestsResponseItem.js → decisions/client/requests/QueryDecisionsRequest.js} +0 -0
- /package/dist/api/resources/{tests/client/requests/index.d.ts → users/client/requests/CreateUserGroupRequest.d.ts} +0 -0
- /package/dist/api/resources/users/client/requests/{CreateGroupRequest.js → CreateUserGroupRequest.js} +0 -0
- /package/dist/api/resources/{tests/types/CreateFlowTestResponse.d.ts → users/client/requests/UserInviteRequest.d.ts} +0 -0
- /package/dist/api/resources/users/client/requests/{InviteRequest.js → UserInviteRequest.js} +0 -0
- /package/dist/api/resources/{tests/types/CreateRuleTestResponse.d.ts → values/client/requests/UpdateValuesRequest.d.ts} +0 -0
- /package/dist/api/resources/{users/types/CreateGroupResponse.js → values/client/requests/UpdateValuesRequest.js} +0 -0
- /package/dist/api/resources/{tests/types/DeleteFlowTestResponse.d.ts → values/types/UpdateValuesRequestValuesValue.d.ts} +0 -0
- /package/dist/api/resources/{users/types/InviteResponse.js → values/types/UpdateValuesRequestValuesValue.js} +0 -0
- /package/dist/api/{resources/tests/types/DeleteRuleTestResponse.d.ts → types/BooleanValue.d.ts} +0 -0
- /package/dist/api/{resources/users/types/ListGroupsResponseItem.js → types/BooleanValue.js} +0 -0
- /package/dist/api/{resources/tests/types/ListFlowTestsResponseItem.d.ts → types/BulkRuleResponseItem.d.ts} +0 -0
- /package/dist/api/{resources/values/types/DeleteDynamicValueResponse.js → types/BulkRuleResponseItem.js} +0 -0
- /package/dist/api/{resources/tests/types/ListRuleTestsResponseItem.d.ts → types/BulkRuleResponseItemError.d.ts} +0 -0
- /package/dist/api/{resources/values/types/ListDynamicValuesResponseItem.js → types/BulkRuleResponseItemError.js} +0 -0
- /package/dist/api/{resources/tests/types/index.d.ts → types/CreateTestRequest.d.ts} +0 -0
- /package/dist/api/{resources/values/types/ListDynamicValuesResponseItemUsagesItem.js → types/CreateTestRequest.js} +0 -0
- /package/dist/api/{resources/users/client/requests/CreateGroupRequest.d.ts → types/DecisionLog.d.ts} +0 -0
- /package/dist/api/{resources/values/types/ListDynamicValuesResponseItemValue.js → types/DecisionLog.js} +0 -0
- /package/dist/api/{resources/users/client/requests/InviteRequest.d.ts → types/DecisionLogDecision.d.ts} +0 -0
- /package/dist/api/{resources/values/types/UpdateRequestValue.js → types/DecisionLogDecision.js} +0 -0
- /package/dist/api/{resources/users/types/CreateGroupResponse.d.ts → types/DecisionLogDecisionConditionsItemValue.d.ts} +0 -0
- /package/dist/api/{resources/values/types/UpdateResponseItem.js → types/DecisionLogDecisionConditionsItemValue.js} +0 -0
- /package/dist/api/{resources/users/types/InviteResponse.d.ts → types/DecisionLogRequest.d.ts} +0 -0
- /package/dist/api/{resources/values/types/UpdateResponseItemValue.js → types/DecisionLogRequest.js} +0 -0
- /package/dist/api/{resources/users/types/ListGroupsResponseItem.d.ts → types/DecisionLogResponse.d.ts} +0 -0
- /package/dist/api/types/{BadRequestErrorBody.js → DecisionLogResponse.js} +0 -0
- /package/dist/api/{resources/values/types/DeleteDynamicValueResponse.d.ts → types/DynamicRequestPayload.d.ts} +0 -0
- /package/dist/api/types/{ForbiddenErrorBody.js → DynamicRequestPayload.js} +0 -0
- /package/dist/api/{resources/values/types/ListDynamicValuesResponseItem.d.ts → types/DynamicResponsePayload.d.ts} +0 -0
- /package/dist/api/types/{InternalServerErrorBody.js → DynamicResponsePayload.js} +0 -0
- /package/dist/api/{resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts → types/DynamicValue.d.ts} +0 -0
- /package/dist/api/types/{NotFoundErrorBody.js → DynamicValue.js} +0 -0
- /package/dist/api/{resources/values/types/ListDynamicValuesResponseItemValue.d.ts → types/DynamicValueBase.d.ts} +0 -0
- /package/dist/api/{resources/values/types/UpdateRequestValue.d.ts → types/DynamicValueListResponse.d.ts} +0 -0
- /package/dist/api/{resources/values/types/UpdateResponseItem.d.ts → types/Error_.d.ts} +0 -0
- /package/dist/api/{resources/values/types/UpdateResponseItemValue.d.ts → types/FlowBase.d.ts} +0 -0
- /package/dist/api/types/{BadRequestErrorBody.d.ts → FlowDetail.d.ts} +0 -0
- /package/dist/api/types/{ForbiddenErrorBody.d.ts → FlowExecutionError.d.ts} +0 -0
- /package/dist/api/types/{InternalServerErrorBody.d.ts → FlowListResponse.d.ts} +0 -0
- /package/dist/api/types/{NotFoundErrorBody.d.ts → Folder.d.ts} +0 -0
- /package/dist/{serialization/resources/assets/types/index.d.ts → api/types/FolderListResponse.d.ts} +0 -0
- /package/dist/{serialization/resources/decisions/index.d.ts → api/types/ListValue.d.ts} +0 -0
- /package/dist/{serialization/resources/decisions/types/index.d.ts → api/types/NumberValue.d.ts} +0 -0
- /package/dist/{serialization/resources/flows/index.d.ts → api/types/ParallelSolveRequest.d.ts} +0 -0
- /package/dist/{serialization/resources/tests/index.d.ts → api/types/ParallelSolveRequestValue.d.ts} +0 -0
- /package/dist/{serialization/resources/tests/types/index.d.ts → api/types/ParallelSolveResponse.d.ts} +0 -0
- /package/{serialization/resources/assets/types/index.d.ts → dist/api/types/RuleBase.d.ts} +0 -0
- /package/{serialization/resources/decisions/index.d.ts → dist/api/types/RuleDetail.d.ts} +0 -0
- /package/{serialization/resources/decisions/types/index.d.ts → dist/api/types/RuleExport.d.ts} +0 -0
- /package/{serialization/resources/flows/index.d.ts → dist/api/types/RuleListResponse.d.ts} +0 -0
- /package/{serialization/resources/tests/index.d.ts → dist/api/types/RuleUsage.d.ts} +0 -0
- /package/{serialization/resources/tests/types/index.d.ts → dist/api/types/SchemaField.d.ts} +0 -0
|
@@ -20,17 +20,29 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
20
20
|
}) : function (o, v) {
|
|
21
21
|
o["default"] = v;
|
|
22
22
|
});
|
|
23
|
-
var __importStar = (this && this.__importStar) || function (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
23
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
24
|
+
var ownKeys = function (o) {
|
|
25
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
26
|
+
var ar = [];
|
|
27
|
+
for (var k in o)
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(o, k))
|
|
29
|
+
ar[ar.length] = k;
|
|
30
|
+
return ar;
|
|
31
|
+
};
|
|
32
|
+
return ownKeys(o);
|
|
33
|
+
};
|
|
34
|
+
return function (mod) {
|
|
35
|
+
if (mod && mod.__esModule)
|
|
36
|
+
return mod;
|
|
37
|
+
var result = {};
|
|
38
|
+
if (mod != null)
|
|
39
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++)
|
|
40
|
+
if (k[i] !== "default")
|
|
41
|
+
__createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
34
46
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
35
47
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
36
48
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -56,10 +68,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
56
68
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
69
|
exports.Tests = void 0;
|
|
58
70
|
const core = __importStar(require("../../../../core"));
|
|
59
|
-
const RulebricksApi = __importStar(require("
|
|
71
|
+
const RulebricksApi = __importStar(require("../../../index"));
|
|
60
72
|
const url_join_1 = __importDefault(require("url-join"));
|
|
61
|
-
const serializers = __importStar(require("../../../../serialization"));
|
|
62
|
-
const errors = __importStar(require("../../../../errors"));
|
|
73
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
74
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
63
75
|
/**
|
|
64
76
|
* Administrative operations for programmatically managing test suites for rules and flows
|
|
65
77
|
*/
|
|
@@ -69,27 +81,31 @@ class Tests {
|
|
|
69
81
|
}
|
|
70
82
|
/**
|
|
71
83
|
* Retrieves a list of tests associated with the rule identified by the slug.
|
|
84
|
+
*
|
|
85
|
+
* @param {string} slug - The unique identifier for the resource.
|
|
86
|
+
* @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
|
|
87
|
+
*
|
|
72
88
|
* @throws {@link RulebricksApi.NotFoundError}
|
|
73
89
|
* @throws {@link RulebricksApi.InternalServerError}
|
|
74
90
|
*
|
|
75
91
|
* @example
|
|
76
|
-
* await
|
|
92
|
+
* await client.tests.listRuleTests("slug")
|
|
77
93
|
*/
|
|
78
94
|
listRuleTests(slug, requestOptions) {
|
|
79
95
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
var _a;
|
|
80
97
|
const _response = yield core.fetcher({
|
|
81
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `api/v1/admin/rules/${slug}/tests`),
|
|
98
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `api/v1/admin/rules/${encodeURIComponent(slug)}/tests`),
|
|
82
99
|
method: "GET",
|
|
83
|
-
headers: {
|
|
84
|
-
"x-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
85
|
-
"X-Fern-Language": "JavaScript",
|
|
86
|
-
},
|
|
100
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
101
|
contentType: "application/json",
|
|
102
|
+
requestType: "json",
|
|
88
103
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
89
104
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
105
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
90
106
|
});
|
|
91
107
|
if (_response.ok) {
|
|
92
|
-
return
|
|
108
|
+
return serializers.TestListResponse.parseOrThrow(_response.body, {
|
|
93
109
|
unrecognizedObjectKeys: "passthrough",
|
|
94
110
|
allowUnrecognizedUnionMembers: true,
|
|
95
111
|
allowUnrecognizedEnumValues: true,
|
|
@@ -116,7 +132,7 @@ class Tests {
|
|
|
116
132
|
body: _response.error.rawBody,
|
|
117
133
|
});
|
|
118
134
|
case "timeout":
|
|
119
|
-
throw new errors.RulebricksApiTimeoutError();
|
|
135
|
+
throw new errors.RulebricksApiTimeoutError("Timeout exceeded when calling GET /api/v1/admin/rules/{slug}/tests.");
|
|
120
136
|
case "unknown":
|
|
121
137
|
throw new errors.RulebricksApiError({
|
|
122
138
|
message: _response.error.errorMessage,
|
|
@@ -126,12 +142,17 @@ class Tests {
|
|
|
126
142
|
}
|
|
127
143
|
/**
|
|
128
144
|
* Adds a new test to the test suite of a rule identified by the slug.
|
|
145
|
+
*
|
|
146
|
+
* @param {string} slug - The unique identifier for the resource.
|
|
147
|
+
* @param {RulebricksApi.CreateTestRequest} request
|
|
148
|
+
* @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
|
+
*
|
|
129
150
|
* @throws {@link RulebricksApi.BadRequestError}
|
|
130
151
|
* @throws {@link RulebricksApi.NotFoundError}
|
|
131
152
|
* @throws {@link RulebricksApi.InternalServerError}
|
|
132
153
|
*
|
|
133
154
|
* @example
|
|
134
|
-
* await
|
|
155
|
+
* await client.tests.createRuleTest("slug", {
|
|
135
156
|
* name: "Test 3",
|
|
136
157
|
* request: {
|
|
137
158
|
* "param1": "value1"
|
|
@@ -144,20 +165,20 @@ class Tests {
|
|
|
144
165
|
*/
|
|
145
166
|
createRuleTest(slug, request, requestOptions) {
|
|
146
167
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
|
+
var _a;
|
|
147
169
|
const _response = yield core.fetcher({
|
|
148
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `api/v1/admin/rules/${slug}/tests`),
|
|
170
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `api/v1/admin/rules/${encodeURIComponent(slug)}/tests`),
|
|
149
171
|
method: "POST",
|
|
150
|
-
headers: {
|
|
151
|
-
"x-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
152
|
-
"X-Fern-Language": "JavaScript",
|
|
153
|
-
},
|
|
172
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
154
173
|
contentType: "application/json",
|
|
155
|
-
|
|
174
|
+
requestType: "json",
|
|
175
|
+
body: serializers.CreateTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
156
176
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
157
177
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
178
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
158
179
|
});
|
|
159
180
|
if (_response.ok) {
|
|
160
|
-
return
|
|
181
|
+
return serializers.Test.parseOrThrow(_response.body, {
|
|
161
182
|
unrecognizedObjectKeys: "passthrough",
|
|
162
183
|
allowUnrecognizedUnionMembers: true,
|
|
163
184
|
allowUnrecognizedEnumValues: true,
|
|
@@ -186,7 +207,7 @@ class Tests {
|
|
|
186
207
|
body: _response.error.rawBody,
|
|
187
208
|
});
|
|
188
209
|
case "timeout":
|
|
189
|
-
throw new errors.RulebricksApiTimeoutError();
|
|
210
|
+
throw new errors.RulebricksApiTimeoutError("Timeout exceeded when calling POST /api/v1/admin/rules/{slug}/tests.");
|
|
190
211
|
case "unknown":
|
|
191
212
|
throw new errors.RulebricksApiError({
|
|
192
213
|
message: _response.error.errorMessage,
|
|
@@ -196,27 +217,32 @@ class Tests {
|
|
|
196
217
|
}
|
|
197
218
|
/**
|
|
198
219
|
* Deletes a test from the test suite of a rule identified by the slug.
|
|
220
|
+
*
|
|
221
|
+
* @param {string} slug - The unique identifier for the resource.
|
|
222
|
+
* @param {string} testId - The ID of the test.
|
|
223
|
+
* @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
|
|
224
|
+
*
|
|
199
225
|
* @throws {@link RulebricksApi.NotFoundError}
|
|
200
226
|
* @throws {@link RulebricksApi.InternalServerError}
|
|
201
227
|
*
|
|
202
228
|
* @example
|
|
203
|
-
* await
|
|
229
|
+
* await client.tests.deleteRuleTest("slug", "testId")
|
|
204
230
|
*/
|
|
205
231
|
deleteRuleTest(slug, testId, requestOptions) {
|
|
206
232
|
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
+
var _a;
|
|
207
234
|
const _response = yield core.fetcher({
|
|
208
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `api/v1/admin/rules/${slug}/tests/${testId}`),
|
|
235
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `api/v1/admin/rules/${encodeURIComponent(slug)}/tests/${encodeURIComponent(testId)}`),
|
|
209
236
|
method: "DELETE",
|
|
210
|
-
headers: {
|
|
211
|
-
"x-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
212
|
-
"X-Fern-Language": "JavaScript",
|
|
213
|
-
},
|
|
237
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
214
238
|
contentType: "application/json",
|
|
239
|
+
requestType: "json",
|
|
215
240
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
216
241
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
242
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
217
243
|
});
|
|
218
244
|
if (_response.ok) {
|
|
219
|
-
return
|
|
245
|
+
return serializers.Test.parseOrThrow(_response.body, {
|
|
220
246
|
unrecognizedObjectKeys: "passthrough",
|
|
221
247
|
allowUnrecognizedUnionMembers: true,
|
|
222
248
|
allowUnrecognizedEnumValues: true,
|
|
@@ -243,7 +269,7 @@ class Tests {
|
|
|
243
269
|
body: _response.error.rawBody,
|
|
244
270
|
});
|
|
245
271
|
case "timeout":
|
|
246
|
-
throw new errors.RulebricksApiTimeoutError();
|
|
272
|
+
throw new errors.RulebricksApiTimeoutError("Timeout exceeded when calling DELETE /api/v1/admin/rules/{slug}/tests/{testId}.");
|
|
247
273
|
case "unknown":
|
|
248
274
|
throw new errors.RulebricksApiError({
|
|
249
275
|
message: _response.error.errorMessage,
|
|
@@ -253,27 +279,31 @@ class Tests {
|
|
|
253
279
|
}
|
|
254
280
|
/**
|
|
255
281
|
* Retrieves a list of tests associated with the flow identified by the slug.
|
|
282
|
+
*
|
|
283
|
+
* @param {string} slug - The unique identifier for the resource.
|
|
284
|
+
* @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
|
|
285
|
+
*
|
|
256
286
|
* @throws {@link RulebricksApi.NotFoundError}
|
|
257
287
|
* @throws {@link RulebricksApi.InternalServerError}
|
|
258
288
|
*
|
|
259
289
|
* @example
|
|
260
|
-
* await
|
|
290
|
+
* await client.tests.listFlowTests("slug")
|
|
261
291
|
*/
|
|
262
292
|
listFlowTests(slug, requestOptions) {
|
|
263
293
|
return __awaiter(this, void 0, void 0, function* () {
|
|
294
|
+
var _a;
|
|
264
295
|
const _response = yield core.fetcher({
|
|
265
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `api/v1/admin/flows/${slug}/tests`),
|
|
296
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `api/v1/admin/flows/${encodeURIComponent(slug)}/tests`),
|
|
266
297
|
method: "GET",
|
|
267
|
-
headers: {
|
|
268
|
-
"x-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
269
|
-
"X-Fern-Language": "JavaScript",
|
|
270
|
-
},
|
|
298
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
271
299
|
contentType: "application/json",
|
|
300
|
+
requestType: "json",
|
|
272
301
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
273
302
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
303
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
274
304
|
});
|
|
275
305
|
if (_response.ok) {
|
|
276
|
-
return
|
|
306
|
+
return serializers.TestListResponse.parseOrThrow(_response.body, {
|
|
277
307
|
unrecognizedObjectKeys: "passthrough",
|
|
278
308
|
allowUnrecognizedUnionMembers: true,
|
|
279
309
|
allowUnrecognizedEnumValues: true,
|
|
@@ -300,7 +330,7 @@ class Tests {
|
|
|
300
330
|
body: _response.error.rawBody,
|
|
301
331
|
});
|
|
302
332
|
case "timeout":
|
|
303
|
-
throw new errors.RulebricksApiTimeoutError();
|
|
333
|
+
throw new errors.RulebricksApiTimeoutError("Timeout exceeded when calling GET /api/v1/admin/flows/{slug}/tests.");
|
|
304
334
|
case "unknown":
|
|
305
335
|
throw new errors.RulebricksApiError({
|
|
306
336
|
message: _response.error.errorMessage,
|
|
@@ -310,12 +340,17 @@ class Tests {
|
|
|
310
340
|
}
|
|
311
341
|
/**
|
|
312
342
|
* Adds a new test to the test suite of a flow identified by the slug.
|
|
343
|
+
*
|
|
344
|
+
* @param {string} slug - The unique identifier for the resource.
|
|
345
|
+
* @param {RulebricksApi.CreateTestRequest} request
|
|
346
|
+
* @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
|
|
347
|
+
*
|
|
313
348
|
* @throws {@link RulebricksApi.BadRequestError}
|
|
314
349
|
* @throws {@link RulebricksApi.NotFoundError}
|
|
315
350
|
* @throws {@link RulebricksApi.InternalServerError}
|
|
316
351
|
*
|
|
317
352
|
* @example
|
|
318
|
-
* await
|
|
353
|
+
* await client.tests.createFlowTest("slug", {
|
|
319
354
|
* name: "Test 3",
|
|
320
355
|
* request: {
|
|
321
356
|
* "param1": "value1"
|
|
@@ -328,20 +363,20 @@ class Tests {
|
|
|
328
363
|
*/
|
|
329
364
|
createFlowTest(slug, request, requestOptions) {
|
|
330
365
|
return __awaiter(this, void 0, void 0, function* () {
|
|
366
|
+
var _a;
|
|
331
367
|
const _response = yield core.fetcher({
|
|
332
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `api/v1/admin/flows/${slug}/tests`),
|
|
368
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `api/v1/admin/flows/${encodeURIComponent(slug)}/tests`),
|
|
333
369
|
method: "POST",
|
|
334
|
-
headers: {
|
|
335
|
-
"x-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
336
|
-
"X-Fern-Language": "JavaScript",
|
|
337
|
-
},
|
|
370
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
338
371
|
contentType: "application/json",
|
|
339
|
-
|
|
372
|
+
requestType: "json",
|
|
373
|
+
body: serializers.CreateTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
340
374
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
341
375
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
376
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
342
377
|
});
|
|
343
378
|
if (_response.ok) {
|
|
344
|
-
return
|
|
379
|
+
return serializers.Test.parseOrThrow(_response.body, {
|
|
345
380
|
unrecognizedObjectKeys: "passthrough",
|
|
346
381
|
allowUnrecognizedUnionMembers: true,
|
|
347
382
|
allowUnrecognizedEnumValues: true,
|
|
@@ -370,7 +405,7 @@ class Tests {
|
|
|
370
405
|
body: _response.error.rawBody,
|
|
371
406
|
});
|
|
372
407
|
case "timeout":
|
|
373
|
-
throw new errors.RulebricksApiTimeoutError();
|
|
408
|
+
throw new errors.RulebricksApiTimeoutError("Timeout exceeded when calling POST /api/v1/admin/flows/{slug}/tests.");
|
|
374
409
|
case "unknown":
|
|
375
410
|
throw new errors.RulebricksApiError({
|
|
376
411
|
message: _response.error.errorMessage,
|
|
@@ -380,27 +415,32 @@ class Tests {
|
|
|
380
415
|
}
|
|
381
416
|
/**
|
|
382
417
|
* Deletes a test from the test suite of a flow identified by the slug.
|
|
418
|
+
*
|
|
419
|
+
* @param {string} slug - The unique identifier for the resource.
|
|
420
|
+
* @param {string} testId - The ID of the test.
|
|
421
|
+
* @param {Tests.RequestOptions} requestOptions - Request-specific configuration.
|
|
422
|
+
*
|
|
383
423
|
* @throws {@link RulebricksApi.NotFoundError}
|
|
384
424
|
* @throws {@link RulebricksApi.InternalServerError}
|
|
385
425
|
*
|
|
386
426
|
* @example
|
|
387
|
-
* await
|
|
427
|
+
* await client.tests.deleteFlowTest("slug", "testId")
|
|
388
428
|
*/
|
|
389
429
|
deleteFlowTest(slug, testId, requestOptions) {
|
|
390
430
|
return __awaiter(this, void 0, void 0, function* () {
|
|
431
|
+
var _a;
|
|
391
432
|
const _response = yield core.fetcher({
|
|
392
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), `api/v1/admin/flows/${slug}/tests/${testId}`),
|
|
433
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `api/v1/admin/flows/${encodeURIComponent(slug)}/tests/${encodeURIComponent(testId)}`),
|
|
393
434
|
method: "DELETE",
|
|
394
|
-
headers: {
|
|
395
|
-
"x-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
396
|
-
"X-Fern-Language": "JavaScript",
|
|
397
|
-
},
|
|
435
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
398
436
|
contentType: "application/json",
|
|
437
|
+
requestType: "json",
|
|
399
438
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
400
439
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
440
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
401
441
|
});
|
|
402
442
|
if (_response.ok) {
|
|
403
|
-
return
|
|
443
|
+
return serializers.Test.parseOrThrow(_response.body, {
|
|
404
444
|
unrecognizedObjectKeys: "passthrough",
|
|
405
445
|
allowUnrecognizedUnionMembers: true,
|
|
406
446
|
allowUnrecognizedEnumValues: true,
|
|
@@ -427,7 +467,7 @@ class Tests {
|
|
|
427
467
|
body: _response.error.rawBody,
|
|
428
468
|
});
|
|
429
469
|
case "timeout":
|
|
430
|
-
throw new errors.RulebricksApiTimeoutError();
|
|
470
|
+
throw new errors.RulebricksApiTimeoutError("Timeout exceeded when calling DELETE /api/v1/admin/flows/{slug}/tests/{testId}.");
|
|
431
471
|
case "unknown":
|
|
432
472
|
throw new errors.RulebricksApiError({
|
|
433
473
|
message: _response.error.errorMessage,
|
|
@@ -435,5 +475,11 @@ class Tests {
|
|
|
435
475
|
}
|
|
436
476
|
});
|
|
437
477
|
}
|
|
478
|
+
_getCustomAuthorizationHeaders() {
|
|
479
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
480
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
481
|
+
return { "x-api-key": apiKeyValue };
|
|
482
|
+
});
|
|
483
|
+
}
|
|
438
484
|
}
|
|
439
485
|
exports.Tests = Tests;
|
|
@@ -1,21 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined)
|
|
4
|
-
k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function (o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined)
|
|
12
|
-
k2 = k;
|
|
13
|
-
o[k2] = m[k];
|
|
14
|
-
}));
|
|
15
|
-
var __exportStar = (this && this.__exportStar) || function (m, exports) {
|
|
16
|
-
for (var p in m)
|
|
17
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p))
|
|
18
|
-
__createBinding(exports, m, p);
|
|
19
|
-
};
|
|
20
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
__exportStar(require("./requests"), exports);
|
|
@@ -18,5 +18,4 @@ var __exportStar = (this && this.__exportStar) || function (m, exports) {
|
|
|
18
18
|
__createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
__exportStar(require("./types"), exports);
|
|
22
21
|
__exportStar(require("./client"), exports);
|
|
@@ -6,57 +6,55 @@ export class Users {
|
|
|
6
6
|
constructor(_options: any);
|
|
7
7
|
_options: any;
|
|
8
8
|
/**
|
|
9
|
-
* Invite a new user to the organization or update
|
|
9
|
+
* Invite a new user to the organization or update role or access group data for an existing user.
|
|
10
|
+
*
|
|
11
|
+
* @param {RulebricksApi.UserInviteRequest} request
|
|
12
|
+
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
13
|
+
*
|
|
10
14
|
* @throws {@link RulebricksApi.BadRequestError}
|
|
11
15
|
* @throws {@link RulebricksApi.InternalServerError}
|
|
12
16
|
*
|
|
13
17
|
* @example
|
|
14
|
-
* await
|
|
18
|
+
* await client.users.inviteUser({
|
|
15
19
|
* email: "newuser@example.com",
|
|
16
|
-
* role:
|
|
20
|
+
* role: "developer",
|
|
17
21
|
* accessGroups: ["group1", "group2"]
|
|
18
22
|
* })
|
|
19
23
|
*
|
|
20
24
|
* @example
|
|
21
|
-
* await
|
|
25
|
+
* await client.users.inviteUser({
|
|
22
26
|
* email: "existinguser@example.com",
|
|
23
|
-
* role:
|
|
27
|
+
* role: "custom-role",
|
|
24
28
|
* accessGroups: ["group1"]
|
|
25
29
|
* })
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* await rulebricksApi.users.invite({
|
|
29
|
-
* email: "newuser@example.com",
|
|
30
|
-
* role: RulebricksApi.InviteRequestRole.Developer,
|
|
31
|
-
* accessGroups: ["group1", "group2"]
|
|
32
|
-
* })
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* await rulebricksApi.users.invite({
|
|
36
|
-
* email: "newuser@example.com",
|
|
37
|
-
* role: RulebricksApi.InviteRequestRole.Developer,
|
|
38
|
-
* accessGroups: ["group1", "group2"]
|
|
39
|
-
* })
|
|
40
30
|
*/
|
|
41
|
-
|
|
31
|
+
inviteUser(request: RulebricksApi.UserInviteRequest, requestOptions: Users.RequestOptions): any;
|
|
42
32
|
/**
|
|
43
33
|
* List all user groups available in your Rulebricks organization.
|
|
34
|
+
*
|
|
35
|
+
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
44
37
|
* @throws {@link RulebricksApi.InternalServerError}
|
|
45
38
|
*
|
|
46
39
|
* @example
|
|
47
|
-
* await
|
|
40
|
+
* await client.users.listGroups()
|
|
48
41
|
*/
|
|
49
|
-
listGroups(requestOptions:
|
|
42
|
+
listGroups(requestOptions: Users.RequestOptions): any;
|
|
50
43
|
/**
|
|
51
44
|
* Create a new user group in your Rulebricks organization.
|
|
45
|
+
*
|
|
46
|
+
* @param {RulebricksApi.CreateUserGroupRequest} request
|
|
47
|
+
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
52
49
|
* @throws {@link RulebricksApi.BadRequestError}
|
|
53
50
|
* @throws {@link RulebricksApi.InternalServerError}
|
|
54
51
|
*
|
|
55
52
|
* @example
|
|
56
|
-
* await
|
|
53
|
+
* await client.users.createGroup({
|
|
57
54
|
* name: "NewGroup",
|
|
58
55
|
* description: "Description of the new group."
|
|
59
56
|
* })
|
|
60
57
|
*/
|
|
61
|
-
createGroup(request:
|
|
58
|
+
createGroup(request: RulebricksApi.CreateUserGroupRequest, requestOptions: Users.RequestOptions): any;
|
|
59
|
+
_getCustomAuthorizationHeaders(): any;
|
|
62
60
|
}
|