@rulebricks/sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +26 -0
- package/Client.js +47 -0
- package/LICENSE.txt +21 -0
- package/README.md +83 -0
- package/api/errors/BadRequestError.d.ts +7 -0
- package/api/errors/BadRequestError.js +47 -0
- package/api/errors/ForbiddenError.d.ts +7 -0
- package/api/errors/ForbiddenError.js +47 -0
- package/api/errors/InternalServerError.d.ts +7 -0
- package/api/errors/InternalServerError.js +47 -0
- package/api/errors/NotFoundError.d.ts +7 -0
- package/api/errors/NotFoundError.js +47 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +24 -0
- package/api/index.d.ts +1 -0
- package/api/index.js +23 -0
- package/api/resources/assets/client/Client.d.ts +100 -0
- package/api/resources/assets/client/Client.js +611 -0
- package/api/resources/assets/client/index.d.ts +1 -0
- package/api/resources/assets/client/index.js +21 -0
- package/api/resources/assets/client/requests/DeleteFolderRequest.d.ts +1 -0
- package/api/resources/assets/client/requests/DeleteFolderRequest.js +5 -0
- package/api/resources/assets/client/requests/DeleteRuleRequest.d.ts +1 -0
- package/api/resources/assets/client/requests/DeleteRuleRequest.js +5 -0
- package/api/resources/assets/client/requests/ExportRuleRequest.d.ts +1 -0
- package/api/resources/assets/client/requests/ExportRuleRequest.js +5 -0
- package/api/resources/assets/client/requests/ImportRuleRequest.d.ts +1 -0
- package/api/resources/assets/client/requests/ImportRuleRequest.js +5 -0
- package/api/resources/assets/client/requests/ListRulesRequest.d.ts +1 -0
- package/api/resources/assets/client/requests/ListRulesRequest.js +5 -0
- package/api/resources/assets/client/requests/UpsertFolderRequest.d.ts +1 -0
- package/api/resources/assets/client/requests/UpsertFolderRequest.js +5 -0
- package/api/resources/assets/client/requests/index.d.ts +1 -0
- package/api/resources/assets/client/requests/index.js +2 -0
- package/api/resources/assets/index.d.ts +1 -0
- package/api/resources/assets/index.js +22 -0
- package/api/resources/assets/types/DeleteFolderResponse.d.ts +1 -0
- package/api/resources/assets/types/DeleteFolderResponse.js +5 -0
- package/api/resources/assets/types/DeleteRuleResponse.d.ts +1 -0
- package/api/resources/assets/types/DeleteRuleResponse.js +5 -0
- package/api/resources/assets/types/ListFlowsResponseItem.d.ts +1 -0
- package/api/resources/assets/types/ListFlowsResponseItem.js +5 -0
- package/api/resources/assets/types/ListFoldersResponseItem.d.ts +1 -0
- package/api/resources/assets/types/ListFoldersResponseItem.js +5 -0
- package/api/resources/assets/types/ListRulesResponseItem.d.ts +1 -0
- package/api/resources/assets/types/ListRulesResponseItem.js +5 -0
- package/api/resources/assets/types/ListRulesResponseItemFolder.d.ts +1 -0
- package/api/resources/assets/types/ListRulesResponseItemFolder.js +5 -0
- package/api/resources/assets/types/UpsertFolderResponse.d.ts +1 -0
- package/api/resources/assets/types/UpsertFolderResponse.js +5 -0
- package/api/resources/assets/types/UsageResponse.d.ts +1 -0
- package/api/resources/assets/types/UsageResponse.js +5 -0
- package/api/resources/assets/types/index.d.ts +1 -0
- package/api/resources/assets/types/index.js +28 -0
- package/api/resources/decisions/client/Client.d.ts +19 -0
- package/api/resources/decisions/client/Client.js +146 -0
- package/api/resources/decisions/client/index.d.ts +1 -0
- package/api/resources/decisions/client/index.js +21 -0
- package/api/resources/decisions/client/requests/QueryRequest.d.ts +1 -0
- package/api/resources/decisions/client/requests/QueryRequest.js +5 -0
- package/api/resources/decisions/client/requests/index.d.ts +1 -0
- package/api/resources/decisions/client/requests/index.js +2 -0
- package/api/resources/decisions/index.d.ts +1 -0
- package/api/resources/decisions/index.js +22 -0
- package/api/resources/decisions/types/QueryResponse.d.ts +1 -0
- package/api/resources/decisions/types/QueryResponse.js +5 -0
- package/api/resources/decisions/types/index.d.ts +1 -0
- package/api/resources/decisions/types/index.js +21 -0
- package/api/resources/flows/client/Client.d.ts +21 -0
- package/api/resources/flows/client/Client.js +133 -0
- package/api/resources/flows/client/index.d.ts +1 -0
- package/api/resources/flows/client/index.js +2 -0
- package/api/resources/flows/index.d.ts +1 -0
- package/api/resources/flows/index.js +21 -0
- package/api/resources/index.d.ts +8 -0
- package/api/resources/index.js +54 -0
- package/api/resources/rules/client/Client.d.ts +60 -0
- package/api/resources/rules/client/Client.js +272 -0
- package/api/resources/rules/client/index.d.ts +1 -0
- package/api/resources/rules/client/index.js +2 -0
- package/api/resources/rules/index.d.ts +1 -0
- package/api/resources/rules/index.js +21 -0
- package/api/resources/tests/client/Client.d.ts +82 -0
- package/api/resources/tests/client/Client.js +439 -0
- package/api/resources/tests/client/index.d.ts +1 -0
- package/api/resources/tests/client/index.js +21 -0
- package/api/resources/tests/client/requests/CreateFlowTestRequest.d.ts +1 -0
- package/api/resources/tests/client/requests/CreateFlowTestRequest.js +5 -0
- package/api/resources/tests/client/requests/CreateRuleTestRequest.d.ts +1 -0
- package/api/resources/tests/client/requests/CreateRuleTestRequest.js +5 -0
- package/api/resources/tests/client/requests/index.d.ts +1 -0
- package/api/resources/tests/client/requests/index.js +2 -0
- package/api/resources/tests/index.d.ts +1 -0
- package/api/resources/tests/index.js +22 -0
- package/api/resources/tests/types/CreateFlowTestResponse.d.ts +1 -0
- package/api/resources/tests/types/CreateFlowTestResponse.js +5 -0
- package/api/resources/tests/types/CreateRuleTestResponse.d.ts +1 -0
- package/api/resources/tests/types/CreateRuleTestResponse.js +5 -0
- package/api/resources/tests/types/DeleteFlowTestResponse.d.ts +1 -0
- package/api/resources/tests/types/DeleteFlowTestResponse.js +5 -0
- package/api/resources/tests/types/DeleteRuleTestResponse.d.ts +1 -0
- package/api/resources/tests/types/DeleteRuleTestResponse.js +5 -0
- package/api/resources/tests/types/ListFlowTestsResponseItem.d.ts +1 -0
- package/api/resources/tests/types/ListFlowTestsResponseItem.js +5 -0
- package/api/resources/tests/types/ListRuleTestsResponseItem.d.ts +1 -0
- package/api/resources/tests/types/ListRuleTestsResponseItem.js +5 -0
- package/api/resources/tests/types/index.d.ts +1 -0
- package/api/resources/tests/types/index.js +26 -0
- package/api/resources/users/client/Client.d.ts +62 -0
- package/api/resources/users/client/Client.js +269 -0
- package/api/resources/users/client/index.d.ts +1 -0
- package/api/resources/users/client/index.js +21 -0
- package/api/resources/users/client/requests/CreateGroupRequest.d.ts +1 -0
- package/api/resources/users/client/requests/CreateGroupRequest.js +5 -0
- package/api/resources/users/client/requests/InviteRequest.d.ts +1 -0
- package/api/resources/users/client/requests/InviteRequest.js +5 -0
- package/api/resources/users/client/requests/index.d.ts +1 -0
- package/api/resources/users/client/requests/index.js +2 -0
- package/api/resources/users/index.d.ts +1 -0
- package/api/resources/users/index.js +22 -0
- package/api/resources/users/types/CreateGroupResponse.d.ts +1 -0
- package/api/resources/users/types/CreateGroupResponse.js +5 -0
- package/api/resources/users/types/InviteRequestRole.d.ts +5 -0
- package/api/resources/users/types/InviteRequestRole.js +10 -0
- package/api/resources/users/types/InviteResponse.d.ts +1 -0
- package/api/resources/users/types/InviteResponse.js +5 -0
- package/api/resources/users/types/ListGroupsResponseItem.d.ts +1 -0
- package/api/resources/users/types/ListGroupsResponseItem.js +5 -0
- package/api/resources/users/types/index.d.ts +1 -0
- package/api/resources/users/types/index.js +24 -0
- package/api/resources/values/client/Client.d.ts +37 -0
- package/api/resources/values/client/Client.js +255 -0
- package/api/resources/values/client/index.d.ts +1 -0
- package/api/resources/values/client/index.js +21 -0
- package/api/resources/values/client/requests/DeleteDynamicValueRequest.d.ts +1 -0
- package/api/resources/values/client/requests/DeleteDynamicValueRequest.js +5 -0
- package/api/resources/values/client/requests/ListDynamicValuesRequest.d.ts +1 -0
- package/api/resources/values/client/requests/ListDynamicValuesRequest.js +5 -0
- package/api/resources/values/client/requests/index.d.ts +1 -0
- package/api/resources/values/client/requests/index.js +2 -0
- package/api/resources/values/index.d.ts +1 -0
- package/api/resources/values/index.js +22 -0
- package/api/resources/values/types/DeleteDynamicValueResponse.d.ts +1 -0
- package/api/resources/values/types/DeleteDynamicValueResponse.js +5 -0
- package/api/resources/values/types/ListDynamicValuesResponseItem.d.ts +1 -0
- package/api/resources/values/types/ListDynamicValuesResponseItem.js +5 -0
- package/api/resources/values/types/ListDynamicValuesResponseItemType.d.ts +7 -0
- package/api/resources/values/types/ListDynamicValuesResponseItemType.js +12 -0
- package/api/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +1 -0
- package/api/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js +5 -0
- package/api/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +1 -0
- package/api/resources/values/types/ListDynamicValuesResponseItemValue.js +5 -0
- package/api/resources/values/types/UpdateRequestValue.d.ts +1 -0
- package/api/resources/values/types/UpdateRequestValue.js +5 -0
- package/api/resources/values/types/UpdateResponseItem.d.ts +1 -0
- package/api/resources/values/types/UpdateResponseItem.js +5 -0
- package/api/resources/values/types/UpdateResponseItemType.d.ts +7 -0
- package/api/resources/values/types/UpdateResponseItemType.js +12 -0
- package/api/resources/values/types/UpdateResponseItemValue.d.ts +1 -0
- package/api/resources/values/types/UpdateResponseItemValue.js +5 -0
- package/api/resources/values/types/index.d.ts +1 -0
- package/api/resources/values/types/index.js +29 -0
- package/api/types/BadRequestErrorBody.d.ts +1 -0
- package/api/types/BadRequestErrorBody.js +5 -0
- package/api/types/ForbiddenErrorBody.d.ts +1 -0
- package/api/types/ForbiddenErrorBody.js +5 -0
- package/api/types/InternalServerErrorBody.d.ts +1 -0
- package/api/types/InternalServerErrorBody.js +5 -0
- package/api/types/NotFoundErrorBody.d.ts +1 -0
- package/api/types/NotFoundErrorBody.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +24 -0
- package/banner.png +0 -0
- package/core/fetcher/APIResponse.d.ts +1 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +3 -0
- package/core/fetcher/Fetcher.js +161 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +32 -0
- package/core/fetcher/getHeader.d.ts +2 -0
- package/core/fetcher/getHeader.js +12 -0
- package/core/fetcher/index.d.ts +9 -0
- package/core/fetcher/index.js +9 -0
- package/core/index.d.ts +2 -0
- package/core/index.js +39 -0
- package/core/schemas/Schema.d.ts +19 -0
- package/core/schemas/Schema.js +21 -0
- package/core/schemas/builders/date/date.d.ts +4 -0
- package/core/schemas/builders/date/date.js +63 -0
- package/core/schemas/builders/date/index.d.ts +3 -0
- package/core/schemas/builders/date/index.js +5 -0
- package/core/schemas/builders/enum/enum.d.ts +3 -0
- package/core/schemas/builders/enum/enum.js +39 -0
- package/core/schemas/builders/enum/index.d.ts +3 -0
- package/core/schemas/builders/enum/index.js +5 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +33 -0
- package/core/schemas/builders/lazy/index.d.ts +5 -0
- package/core/schemas/builders/lazy/index.js +7 -0
- package/core/schemas/builders/lazy/lazy.d.ts +13 -0
- package/core/schemas/builders/lazy/lazy.js +46 -0
- package/core/schemas/builders/lazy/lazyObject.d.ts +8 -0
- package/core/schemas/builders/lazy/lazyObject.js +31 -0
- package/core/schemas/builders/list/index.d.ts +3 -0
- package/core/schemas/builders/list/index.js +5 -0
- package/core/schemas/builders/list/list.d.ts +7 -0
- package/core/schemas/builders/list/list.js +78 -0
- package/core/schemas/builders/literals/booleanLiteral.d.ts +3 -0
- package/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/core/schemas/builders/literals/index.d.ts +5 -0
- package/core/schemas/builders/literals/index.js +7 -0
- package/core/schemas/builders/literals/stringLiteral.d.ts +3 -0
- package/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/core/schemas/builders/object/index.d.ts +9 -0
- package/core/schemas/builders/object/index.js +11 -0
- package/core/schemas/builders/object/object.d.ts +27 -0
- package/core/schemas/builders/object/object.js +268 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +2 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/core/schemas/builders/object/property.d.ts +7 -0
- package/core/schemas/builders/object/property.js +16 -0
- package/core/schemas/builders/object/types.d.ts +1 -0
- package/core/schemas/builders/object/types.js +2 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +23 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +73 -0
- package/core/schemas/builders/object-like/index.d.ts +4 -0
- package/core/schemas/builders/object-like/index.js +6 -0
- package/core/schemas/builders/object-like/types.d.ts +1 -0
- package/core/schemas/builders/object-like/types.js +2 -0
- package/core/schemas/builders/primitives/any.d.ts +3 -0
- package/core/schemas/builders/primitives/any.js +6 -0
- package/core/schemas/builders/primitives/boolean.d.ts +3 -0
- package/core/schemas/builders/primitives/boolean.js +25 -0
- package/core/schemas/builders/primitives/index.d.ts +6 -0
- package/core/schemas/builders/primitives/index.js +13 -0
- package/core/schemas/builders/primitives/number.d.ts +3 -0
- package/core/schemas/builders/primitives/number.js +25 -0
- package/core/schemas/builders/primitives/string.d.ts +3 -0
- package/core/schemas/builders/primitives/string.js +25 -0
- package/core/schemas/builders/primitives/unknown.d.ts +3 -0
- package/core/schemas/builders/primitives/unknown.js +6 -0
- package/core/schemas/builders/record/index.d.ts +3 -0
- package/core/schemas/builders/record/index.js +5 -0
- package/core/schemas/builders/record/record.d.ts +7 -0
- package/core/schemas/builders/record/record.js +116 -0
- package/core/schemas/builders/record/types.d.ts +1 -0
- package/core/schemas/builders/record/types.js +2 -0
- package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +54 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +95 -0
- package/core/schemas/builders/schema-utils/index.d.ts +9 -0
- package/core/schemas/builders/schema-utils/index.js +11 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/core/schemas/builders/set/index.d.ts +3 -0
- package/core/schemas/builders/set/index.js +5 -0
- package/core/schemas/builders/set/set.d.ts +7 -0
- package/core/schemas/builders/set/set.js +63 -0
- package/core/schemas/builders/undiscriminated-union/index.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +1 -0
- package/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +7 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +61 -0
- package/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/core/schemas/builders/union/discriminant.js +10 -0
- package/core/schemas/builders/union/index.d.ts +5 -0
- package/core/schemas/builders/union/index.js +7 -0
- package/core/schemas/builders/union/types.d.ts +1 -0
- package/core/schemas/builders/union/types.js +2 -0
- package/core/schemas/builders/union/union.d.ts +8 -0
- package/core/schemas/builders/union/union.js +152 -0
- package/core/schemas/index.d.ts +1 -0
- package/core/schemas/index.js +21 -0
- package/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/core/schemas/utils/MaybePromise.js +2 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +1 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +7 -0
- package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/core/schemas/utils/entries.d.ts +2 -0
- package/core/schemas/utils/entries.js +7 -0
- package/core/schemas/utils/filterObject.d.ts +2 -0
- package/core/schemas/utils/filterObject.js +14 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +2 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/core/schemas/utils/isPlainObject.d.ts +2 -0
- package/core/schemas/utils/isPlainObject.js +18 -0
- package/core/schemas/utils/keys.d.ts +2 -0
- package/core/schemas/utils/keys.js +7 -0
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +47 -0
- package/core/schemas/utils/partition.d.ts +2 -0
- package/core/schemas/utils/partition.js +16 -0
- package/dist/Client.d.ts +26 -0
- package/dist/Client.js +47 -0
- package/dist/api/errors/BadRequestError.d.ts +7 -0
- package/dist/api/errors/BadRequestError.js +47 -0
- package/dist/api/errors/ForbiddenError.d.ts +7 -0
- package/dist/api/errors/ForbiddenError.js +47 -0
- package/dist/api/errors/InternalServerError.d.ts +7 -0
- package/dist/api/errors/InternalServerError.js +47 -0
- package/dist/api/errors/NotFoundError.d.ts +7 -0
- package/dist/api/errors/NotFoundError.js +47 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +24 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +23 -0
- package/dist/api/resources/assets/client/Client.d.ts +100 -0
- package/dist/api/resources/assets/client/Client.js +611 -0
- package/dist/api/resources/assets/client/index.d.ts +1 -0
- package/dist/api/resources/assets/client/index.js +21 -0
- package/dist/api/resources/assets/client/requests/DeleteFolderRequest.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/DeleteFolderRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/DeleteRuleRequest.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/DeleteRuleRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/ExportRuleRequest.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/ExportRuleRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/ImportRuleRequest.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/ImportRuleRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/ListRulesRequest.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/ListRulesRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/UpsertFolderRequest.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/UpsertFolderRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/index.js +2 -0
- package/dist/api/resources/assets/index.d.ts +1 -0
- package/dist/api/resources/assets/index.js +22 -0
- package/dist/api/resources/assets/types/DeleteFolderResponse.d.ts +1 -0
- package/dist/api/resources/assets/types/DeleteFolderResponse.js +5 -0
- package/dist/api/resources/assets/types/DeleteRuleResponse.d.ts +1 -0
- package/dist/api/resources/assets/types/DeleteRuleResponse.js +5 -0
- package/dist/api/resources/assets/types/ListFlowsResponseItem.d.ts +1 -0
- package/dist/api/resources/assets/types/ListFlowsResponseItem.js +5 -0
- package/dist/api/resources/assets/types/ListFoldersResponseItem.d.ts +1 -0
- package/dist/api/resources/assets/types/ListFoldersResponseItem.js +5 -0
- package/dist/api/resources/assets/types/ListRulesResponseItem.d.ts +1 -0
- package/dist/api/resources/assets/types/ListRulesResponseItem.js +5 -0
- package/dist/api/resources/assets/types/ListRulesResponseItemFolder.d.ts +1 -0
- package/dist/api/resources/assets/types/ListRulesResponseItemFolder.js +5 -0
- package/dist/api/resources/assets/types/UpsertFolderResponse.d.ts +1 -0
- package/dist/api/resources/assets/types/UpsertFolderResponse.js +5 -0
- package/dist/api/resources/assets/types/UsageResponse.d.ts +1 -0
- package/dist/api/resources/assets/types/UsageResponse.js +5 -0
- package/dist/api/resources/assets/types/index.d.ts +1 -0
- package/dist/api/resources/assets/types/index.js +28 -0
- package/dist/api/resources/decisions/client/Client.d.ts +19 -0
- package/dist/api/resources/decisions/client/Client.js +146 -0
- package/dist/api/resources/decisions/client/index.d.ts +1 -0
- package/dist/api/resources/decisions/client/index.js +21 -0
- package/dist/api/resources/decisions/client/requests/QueryRequest.d.ts +1 -0
- package/dist/api/resources/decisions/client/requests/QueryRequest.js +5 -0
- package/dist/api/resources/decisions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/decisions/client/requests/index.js +2 -0
- package/dist/api/resources/decisions/index.d.ts +1 -0
- package/dist/api/resources/decisions/index.js +22 -0
- package/dist/api/resources/decisions/types/QueryResponse.d.ts +1 -0
- package/dist/api/resources/decisions/types/QueryResponse.js +5 -0
- package/dist/api/resources/decisions/types/index.d.ts +1 -0
- package/dist/api/resources/decisions/types/index.js +21 -0
- package/dist/api/resources/flows/client/Client.d.ts +21 -0
- package/dist/api/resources/flows/client/Client.js +133 -0
- package/dist/api/resources/flows/client/index.d.ts +1 -0
- package/dist/api/resources/flows/client/index.js +2 -0
- package/dist/api/resources/flows/index.d.ts +1 -0
- package/dist/api/resources/flows/index.js +21 -0
- package/dist/api/resources/index.d.ts +8 -0
- package/dist/api/resources/index.js +54 -0
- package/dist/api/resources/rules/client/Client.d.ts +60 -0
- package/dist/api/resources/rules/client/Client.js +272 -0
- package/dist/api/resources/rules/client/index.d.ts +1 -0
- package/dist/api/resources/rules/client/index.js +2 -0
- package/dist/api/resources/rules/index.d.ts +1 -0
- package/dist/api/resources/rules/index.js +21 -0
- package/dist/api/resources/tests/client/Client.d.ts +82 -0
- package/dist/api/resources/tests/client/Client.js +439 -0
- package/dist/api/resources/tests/client/index.d.ts +1 -0
- package/dist/api/resources/tests/client/index.js +21 -0
- package/dist/api/resources/tests/client/requests/CreateFlowTestRequest.d.ts +1 -0
- package/dist/api/resources/tests/client/requests/CreateFlowTestRequest.js +5 -0
- package/dist/api/resources/tests/client/requests/CreateRuleTestRequest.d.ts +1 -0
- package/dist/api/resources/tests/client/requests/CreateRuleTestRequest.js +5 -0
- package/dist/api/resources/tests/client/requests/index.d.ts +1 -0
- package/dist/api/resources/tests/client/requests/index.js +2 -0
- package/dist/api/resources/tests/index.d.ts +1 -0
- package/dist/api/resources/tests/index.js +22 -0
- package/dist/api/resources/tests/types/CreateFlowTestResponse.d.ts +1 -0
- package/dist/api/resources/tests/types/CreateFlowTestResponse.js +5 -0
- package/dist/api/resources/tests/types/CreateRuleTestResponse.d.ts +1 -0
- package/dist/api/resources/tests/types/CreateRuleTestResponse.js +5 -0
- package/dist/api/resources/tests/types/DeleteFlowTestResponse.d.ts +1 -0
- package/dist/api/resources/tests/types/DeleteFlowTestResponse.js +5 -0
- package/dist/api/resources/tests/types/DeleteRuleTestResponse.d.ts +1 -0
- package/dist/api/resources/tests/types/DeleteRuleTestResponse.js +5 -0
- package/dist/api/resources/tests/types/ListFlowTestsResponseItem.d.ts +1 -0
- package/dist/api/resources/tests/types/ListFlowTestsResponseItem.js +5 -0
- package/dist/api/resources/tests/types/ListRuleTestsResponseItem.d.ts +1 -0
- package/dist/api/resources/tests/types/ListRuleTestsResponseItem.js +5 -0
- package/dist/api/resources/tests/types/index.d.ts +1 -0
- package/dist/api/resources/tests/types/index.js +26 -0
- package/dist/api/resources/users/client/Client.d.ts +62 -0
- package/dist/api/resources/users/client/Client.js +269 -0
- package/dist/api/resources/users/client/index.d.ts +1 -0
- package/dist/api/resources/users/client/index.js +21 -0
- package/dist/api/resources/users/client/requests/CreateGroupRequest.d.ts +1 -0
- package/dist/api/resources/users/client/requests/CreateGroupRequest.js +5 -0
- package/dist/api/resources/users/client/requests/InviteRequest.d.ts +1 -0
- package/dist/api/resources/users/client/requests/InviteRequest.js +5 -0
- package/dist/api/resources/users/client/requests/index.d.ts +1 -0
- package/dist/api/resources/users/client/requests/index.js +2 -0
- package/dist/api/resources/users/index.d.ts +1 -0
- package/dist/api/resources/users/index.js +22 -0
- package/dist/api/resources/users/types/CreateGroupResponse.d.ts +1 -0
- package/dist/api/resources/users/types/CreateGroupResponse.js +5 -0
- package/dist/api/resources/users/types/InviteRequestRole.d.ts +5 -0
- package/dist/api/resources/users/types/InviteRequestRole.js +10 -0
- package/dist/api/resources/users/types/InviteResponse.d.ts +1 -0
- package/dist/api/resources/users/types/InviteResponse.js +5 -0
- package/dist/api/resources/users/types/ListGroupsResponseItem.d.ts +1 -0
- package/dist/api/resources/users/types/ListGroupsResponseItem.js +5 -0
- package/dist/api/resources/users/types/index.d.ts +1 -0
- package/dist/api/resources/users/types/index.js +24 -0
- package/dist/api/resources/values/client/Client.d.ts +37 -0
- package/dist/api/resources/values/client/Client.js +255 -0
- package/dist/api/resources/values/client/index.d.ts +1 -0
- package/dist/api/resources/values/client/index.js +21 -0
- package/dist/api/resources/values/client/requests/DeleteDynamicValueRequest.d.ts +1 -0
- package/dist/api/resources/values/client/requests/DeleteDynamicValueRequest.js +5 -0
- package/dist/api/resources/values/client/requests/ListDynamicValuesRequest.d.ts +1 -0
- package/dist/api/resources/values/client/requests/ListDynamicValuesRequest.js +5 -0
- package/dist/api/resources/values/client/requests/index.d.ts +1 -0
- package/dist/api/resources/values/client/requests/index.js +2 -0
- package/dist/api/resources/values/index.d.ts +1 -0
- package/dist/api/resources/values/index.js +22 -0
- package/dist/api/resources/values/types/DeleteDynamicValueResponse.d.ts +1 -0
- package/dist/api/resources/values/types/DeleteDynamicValueResponse.js +5 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItem.d.ts +1 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItem.js +5 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemType.d.ts +7 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemType.js +12 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +1 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js +5 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +1 -0
- package/dist/api/resources/values/types/ListDynamicValuesResponseItemValue.js +5 -0
- package/dist/api/resources/values/types/UpdateRequestValue.d.ts +1 -0
- package/dist/api/resources/values/types/UpdateRequestValue.js +5 -0
- package/dist/api/resources/values/types/UpdateResponseItem.d.ts +1 -0
- package/dist/api/resources/values/types/UpdateResponseItem.js +5 -0
- package/dist/api/resources/values/types/UpdateResponseItemType.d.ts +7 -0
- package/dist/api/resources/values/types/UpdateResponseItemType.js +12 -0
- package/dist/api/resources/values/types/UpdateResponseItemValue.d.ts +1 -0
- package/dist/api/resources/values/types/UpdateResponseItemValue.js +5 -0
- package/dist/api/resources/values/types/index.d.ts +1 -0
- package/dist/api/resources/values/types/index.js +29 -0
- package/dist/api/types/BadRequestErrorBody.d.ts +1 -0
- package/dist/api/types/BadRequestErrorBody.js +5 -0
- package/dist/api/types/ForbiddenErrorBody.d.ts +1 -0
- package/dist/api/types/ForbiddenErrorBody.js +5 -0
- package/dist/api/types/InternalServerErrorBody.d.ts +1 -0
- package/dist/api/types/InternalServerErrorBody.js +5 -0
- package/dist/api/types/NotFoundErrorBody.d.ts +1 -0
- package/dist/api/types/NotFoundErrorBody.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +24 -0
- package/dist/core/fetcher/APIResponse.d.ts +1 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +3 -0
- package/dist/core/fetcher/Fetcher.js +161 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +32 -0
- package/dist/core/fetcher/getHeader.d.ts +2 -0
- package/dist/core/fetcher/getHeader.js +12 -0
- package/dist/core/fetcher/index.d.ts +9 -0
- package/dist/core/fetcher/index.js +9 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +39 -0
- package/dist/core/schemas/Schema.d.ts +19 -0
- package/dist/core/schemas/Schema.js +21 -0
- package/dist/core/schemas/builders/date/date.d.ts +4 -0
- package/dist/core/schemas/builders/date/date.js +63 -0
- package/dist/core/schemas/builders/date/index.d.ts +3 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +3 -0
- package/dist/core/schemas/builders/enum/enum.js +39 -0
- package/dist/core/schemas/builders/enum/index.d.ts +3 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +33 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +13 -0
- package/dist/core/schemas/builders/lazy/lazy.js +46 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +8 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +31 -0
- package/dist/core/schemas/builders/list/index.d.ts +3 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +7 -0
- package/dist/core/schemas/builders/list/list.js +78 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +3 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/dist/core/schemas/builders/literals/index.d.ts +5 -0
- package/dist/core/schemas/builders/literals/index.js +7 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +3 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/dist/core/schemas/builders/object/index.d.ts +9 -0
- package/dist/core/schemas/builders/object/index.js +11 -0
- package/dist/core/schemas/builders/object/object.d.ts +27 -0
- package/dist/core/schemas/builders/object/object.js +268 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +2 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/core/schemas/builders/object/property.d.ts +7 -0
- package/dist/core/schemas/builders/object/property.js +16 -0
- package/dist/core/schemas/builders/object/types.d.ts +1 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +23 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +73 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +4 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +3 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +3 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +6 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +3 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +3 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +3 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +3 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.d.ts +7 -0
- package/dist/core/schemas/builders/record/record.js +116 -0
- package/dist/core/schemas/builders/record/types.d.ts +1 -0
- package/dist/core/schemas/builders/record/types.js +2 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +54 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +95 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +9 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/dist/core/schemas/builders/set/index.d.ts +3 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +7 -0
- package/dist/core/schemas/builders/set/set.js +63 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +1 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +7 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +61 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +10 -0
- package/dist/core/schemas/builders/union/index.d.ts +5 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +1 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.d.ts +8 -0
- package/dist/core/schemas/builders/union/union.js +152 -0
- package/dist/core/schemas/index.d.ts +1 -0
- package/dist/core/schemas/index.js +21 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +1 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +7 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/dist/core/schemas/utils/entries.d.ts +2 -0
- package/dist/core/schemas/utils/entries.js +7 -0
- package/dist/core/schemas/utils/filterObject.d.ts +2 -0
- package/dist/core/schemas/utils/filterObject.js +14 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +2 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +2 -0
- package/dist/core/schemas/utils/isPlainObject.js +18 -0
- package/dist/core/schemas/utils/keys.d.ts +2 -0
- package/dist/core/schemas/utils/keys.js +7 -0
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +47 -0
- package/dist/core/schemas/utils/partition.d.ts +2 -0
- package/dist/core/schemas/utils/partition.js +16 -0
- package/dist/errors/RulebricksApiError.d.ts +10 -0
- package/dist/errors/RulebricksApiError.js +32 -0
- package/dist/errors/RulebricksApiTimeoutError.d.ts +4 -0
- package/dist/errors/RulebricksApiTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +5 -0
- package/dist/errors/index.js +7 -0
- package/dist/forge/index.d.ts +4 -0
- package/dist/forge/index.js +31 -0
- package/dist/forge/operators.d.ts +136 -0
- package/dist/forge/operators.js +938 -0
- package/dist/forge/rule.d.ts +129 -0
- package/dist/forge/rule.js +702 -0
- package/dist/forge/types.d.ts +53 -0
- package/dist/forge/types.js +34 -0
- package/dist/forge/values.d.ts +21 -0
- package/dist/forge/values.js +88 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +113 -0
- package/dist/serialization/index.d.ts +1 -0
- package/dist/serialization/index.js +22 -0
- package/dist/serialization/resources/assets/client/exportRule.d.ts +2 -0
- package/dist/serialization/resources/assets/client/exportRule.js +37 -0
- package/dist/serialization/resources/assets/client/importRule.d.ts +2 -0
- package/dist/serialization/resources/assets/client/importRule.js +37 -0
- package/dist/serialization/resources/assets/client/index.d.ts +6 -0
- package/dist/serialization/resources/assets/client/index.js +43 -0
- package/dist/serialization/resources/assets/client/listFlows.d.ts +2 -0
- package/dist/serialization/resources/assets/client/listFlows.js +56 -0
- package/dist/serialization/resources/assets/client/listFolders.d.ts +2 -0
- package/dist/serialization/resources/assets/client/listFolders.js +56 -0
- package/dist/serialization/resources/assets/client/listRules.d.ts +2 -0
- package/dist/serialization/resources/assets/client/listRules.js +56 -0
- package/dist/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +2 -0
- package/dist/serialization/resources/assets/client/requests/DeleteFolderRequest.js +39 -0
- package/dist/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +2 -0
- package/dist/serialization/resources/assets/client/requests/DeleteRuleRequest.js +39 -0
- package/dist/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +2 -0
- package/dist/serialization/resources/assets/client/requests/ImportRuleRequest.js +39 -0
- package/dist/serialization/resources/assets/client/requests/UpsertFolderRequest.d.ts +2 -0
- package/dist/serialization/resources/assets/client/requests/UpsertFolderRequest.js +41 -0
- package/dist/serialization/resources/assets/client/requests/index.d.ts +9 -0
- package/dist/serialization/resources/assets/client/requests/index.js +11 -0
- package/dist/serialization/resources/assets/index.d.ts +1 -0
- package/dist/serialization/resources/assets/index.js +22 -0
- package/dist/serialization/resources/assets/types/DeleteFolderResponse.d.ts +2 -0
- package/dist/serialization/resources/assets/types/DeleteFolderResponse.js +42 -0
- package/dist/serialization/resources/assets/types/DeleteRuleResponse.d.ts +2 -0
- package/dist/serialization/resources/assets/types/DeleteRuleResponse.js +39 -0
- package/dist/serialization/resources/assets/types/ListFlowsResponseItem.d.ts +2 -0
- package/dist/serialization/resources/assets/types/ListFlowsResponseItem.js +44 -0
- package/dist/serialization/resources/assets/types/ListFoldersResponseItem.d.ts +2 -0
- package/dist/serialization/resources/assets/types/ListFoldersResponseItem.js +42 -0
- package/dist/serialization/resources/assets/types/ListRulesResponseItem.d.ts +2 -0
- package/dist/serialization/resources/assets/types/ListRulesResponseItem.js +67 -0
- package/dist/serialization/resources/assets/types/ListRulesResponseItemFolder.d.ts +2 -0
- package/dist/serialization/resources/assets/types/ListRulesResponseItemFolder.js +42 -0
- package/dist/serialization/resources/assets/types/UpsertFolderResponse.d.ts +2 -0
- package/dist/serialization/resources/assets/types/UpsertFolderResponse.js +42 -0
- package/dist/serialization/resources/assets/types/UsageResponse.d.ts +2 -0
- package/dist/serialization/resources/assets/types/UsageResponse.js +44 -0
- package/dist/serialization/resources/assets/types/index.d.ts +1 -0
- package/dist/serialization/resources/assets/types/index.js +28 -0
- package/dist/serialization/resources/decisions/index.d.ts +1 -0
- package/dist/serialization/resources/decisions/index.js +21 -0
- package/dist/serialization/resources/decisions/types/QueryResponse.d.ts +2 -0
- package/dist/serialization/resources/decisions/types/QueryResponse.js +42 -0
- package/dist/serialization/resources/decisions/types/index.d.ts +1 -0
- package/dist/serialization/resources/decisions/types/index.js +21 -0
- package/dist/serialization/resources/flows/client/execute.d.ts +3 -0
- package/dist/serialization/resources/flows/client/execute.js +38 -0
- package/dist/serialization/resources/flows/client/index.d.ts +2 -0
- package/dist/serialization/resources/flows/client/index.js +33 -0
- package/dist/serialization/resources/flows/index.d.ts +1 -0
- package/dist/serialization/resources/flows/index.js +21 -0
- package/dist/serialization/resources/index.d.ts +8 -0
- package/dist/serialization/resources/index.js +52 -0
- package/dist/serialization/resources/rules/client/bulkSolve.d.ts +3 -0
- package/dist/serialization/resources/rules/client/bulkSolve.js +38 -0
- package/dist/serialization/resources/rules/client/index.d.ts +4 -0
- package/dist/serialization/resources/rules/client/index.js +35 -0
- package/dist/serialization/resources/rules/client/parallelSolve.d.ts +3 -0
- package/dist/serialization/resources/rules/client/parallelSolve.js +38 -0
- package/dist/serialization/resources/rules/client/solve.d.ts +3 -0
- package/dist/serialization/resources/rules/client/solve.js +38 -0
- package/dist/serialization/resources/rules/index.d.ts +1 -0
- package/dist/serialization/resources/rules/index.js +21 -0
- package/dist/serialization/resources/tests/client/index.d.ts +3 -0
- package/dist/serialization/resources/tests/client/index.js +40 -0
- package/dist/serialization/resources/tests/client/listFlowTests.d.ts +2 -0
- package/dist/serialization/resources/tests/client/listFlowTests.js +56 -0
- package/dist/serialization/resources/tests/client/listRuleTests.d.ts +2 -0
- package/dist/serialization/resources/tests/client/listRuleTests.js +56 -0
- package/dist/serialization/resources/tests/client/requests/CreateFlowTestRequest.d.ts +2 -0
- package/dist/serialization/resources/tests/client/requests/CreateFlowTestRequest.js +42 -0
- package/dist/serialization/resources/tests/client/requests/CreateRuleTestRequest.d.ts +2 -0
- package/dist/serialization/resources/tests/client/requests/CreateRuleTestRequest.js +42 -0
- package/dist/serialization/resources/tests/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/tests/client/requests/index.js +7 -0
- package/dist/serialization/resources/tests/index.d.ts +1 -0
- package/dist/serialization/resources/tests/index.js +22 -0
- package/dist/serialization/resources/tests/types/CreateFlowTestResponse.d.ts +2 -0
- package/dist/serialization/resources/tests/types/CreateFlowTestResponse.js +47 -0
- package/dist/serialization/resources/tests/types/CreateRuleTestResponse.d.ts +2 -0
- package/dist/serialization/resources/tests/types/CreateRuleTestResponse.js +47 -0
- package/dist/serialization/resources/tests/types/DeleteFlowTestResponse.d.ts +2 -0
- package/dist/serialization/resources/tests/types/DeleteFlowTestResponse.js +47 -0
- package/dist/serialization/resources/tests/types/DeleteRuleTestResponse.d.ts +2 -0
- package/dist/serialization/resources/tests/types/DeleteRuleTestResponse.js +47 -0
- package/dist/serialization/resources/tests/types/ListFlowTestsResponseItem.d.ts +2 -0
- package/dist/serialization/resources/tests/types/ListFlowTestsResponseItem.js +47 -0
- package/dist/serialization/resources/tests/types/ListRuleTestsResponseItem.d.ts +2 -0
- package/dist/serialization/resources/tests/types/ListRuleTestsResponseItem.js +47 -0
- package/dist/serialization/resources/tests/types/index.d.ts +1 -0
- package/dist/serialization/resources/tests/types/index.js +26 -0
- package/dist/serialization/resources/users/client/index.d.ts +2 -0
- package/dist/serialization/resources/users/client/index.js +39 -0
- package/dist/serialization/resources/users/client/listGroups.d.ts +2 -0
- package/dist/serialization/resources/users/client/listGroups.js +56 -0
- package/dist/serialization/resources/users/client/requests/CreateGroupRequest.d.ts +2 -0
- package/dist/serialization/resources/users/client/requests/CreateGroupRequest.js +40 -0
- package/dist/serialization/resources/users/client/requests/InviteRequest.d.ts +2 -0
- package/dist/serialization/resources/users/client/requests/InviteRequest.js +60 -0
- package/dist/serialization/resources/users/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/users/client/requests/index.js +7 -0
- package/dist/serialization/resources/users/index.d.ts +1 -0
- package/dist/serialization/resources/users/index.js +22 -0
- package/dist/serialization/resources/users/types/CreateGroupResponse.d.ts +2 -0
- package/dist/serialization/resources/users/types/CreateGroupResponse.js +42 -0
- package/dist/serialization/resources/users/types/InviteRequestRole.d.ts +2 -0
- package/dist/serialization/resources/users/types/InviteRequestRole.js +37 -0
- package/dist/serialization/resources/users/types/InviteResponse.d.ts +2 -0
- package/dist/serialization/resources/users/types/InviteResponse.js +39 -0
- package/dist/serialization/resources/users/types/ListGroupsResponseItem.d.ts +2 -0
- package/dist/serialization/resources/users/types/ListGroupsResponseItem.js +42 -0
- package/dist/serialization/resources/users/types/index.d.ts +1 -0
- package/dist/serialization/resources/users/types/index.js +24 -0
- package/dist/serialization/resources/values/client/index.d.ts +3 -0
- package/dist/serialization/resources/values/client/index.js +34 -0
- package/dist/serialization/resources/values/client/listDynamicValues.d.ts +2 -0
- package/dist/serialization/resources/values/client/listDynamicValues.js +56 -0
- package/dist/serialization/resources/values/client/update.d.ts +3 -0
- package/dist/serialization/resources/values/client/update.js +57 -0
- package/dist/serialization/resources/values/index.d.ts +1 -0
- package/dist/serialization/resources/values/index.js +22 -0
- package/dist/serialization/resources/values/types/DeleteDynamicValueResponse.d.ts +2 -0
- package/dist/serialization/resources/values/types/DeleteDynamicValueResponse.js +39 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItem.d.ts +2 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItem.js +66 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemType.d.ts +2 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemType.js +37 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +2 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js +44 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +2 -0
- package/dist/serialization/resources/values/types/ListDynamicValuesResponseItemValue.js +42 -0
- package/dist/serialization/resources/values/types/UpdateRequestValue.d.ts +2 -0
- package/dist/serialization/resources/values/types/UpdateRequestValue.js +42 -0
- package/dist/serialization/resources/values/types/UpdateResponseItem.d.ts +2 -0
- package/dist/serialization/resources/values/types/UpdateResponseItem.js +61 -0
- package/dist/serialization/resources/values/types/UpdateResponseItemType.d.ts +2 -0
- package/dist/serialization/resources/values/types/UpdateResponseItemType.js +37 -0
- package/dist/serialization/resources/values/types/UpdateResponseItemValue.d.ts +2 -0
- package/dist/serialization/resources/values/types/UpdateResponseItemValue.js +42 -0
- package/dist/serialization/resources/values/types/index.d.ts +1 -0
- package/dist/serialization/resources/values/types/index.js +29 -0
- package/dist/serialization/types/BadRequestErrorBody.d.ts +2 -0
- package/dist/serialization/types/BadRequestErrorBody.js +39 -0
- package/dist/serialization/types/ForbiddenErrorBody.d.ts +2 -0
- package/dist/serialization/types/ForbiddenErrorBody.js +39 -0
- package/dist/serialization/types/InternalServerErrorBody.d.ts +2 -0
- package/dist/serialization/types/InternalServerErrorBody.js +39 -0
- package/dist/serialization/types/NotFoundErrorBody.d.ts +2 -0
- package/dist/serialization/types/NotFoundErrorBody.js +39 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +24 -0
- package/errors/RulebricksApiError.d.ts +10 -0
- package/errors/RulebricksApiError.js +32 -0
- package/errors/RulebricksApiTimeoutError.d.ts +4 -0
- package/errors/RulebricksApiTimeoutError.js +13 -0
- package/errors/index.d.ts +5 -0
- package/errors/index.js +7 -0
- package/forge/index.d.ts +4 -0
- package/forge/index.js +31 -0
- package/forge/operators.d.ts +136 -0
- package/forge/operators.js +938 -0
- package/forge/rule.d.ts +129 -0
- package/forge/rule.js +702 -0
- package/forge/types.d.ts +53 -0
- package/forge/types.js +34 -0
- package/forge/values.d.ts +21 -0
- package/forge/values.js +88 -0
- package/index.d.ts +15 -0
- package/index.js +113 -0
- package/jest.config.js +5 -0
- package/package.json +43 -0
- package/serialization/index.d.ts +1 -0
- package/serialization/index.js +22 -0
- package/serialization/resources/assets/client/exportRule.d.ts +2 -0
- package/serialization/resources/assets/client/exportRule.js +37 -0
- package/serialization/resources/assets/client/importRule.d.ts +2 -0
- package/serialization/resources/assets/client/importRule.js +37 -0
- package/serialization/resources/assets/client/index.d.ts +6 -0
- package/serialization/resources/assets/client/index.js +43 -0
- package/serialization/resources/assets/client/listFlows.d.ts +2 -0
- package/serialization/resources/assets/client/listFlows.js +56 -0
- package/serialization/resources/assets/client/listFolders.d.ts +2 -0
- package/serialization/resources/assets/client/listFolders.js +56 -0
- package/serialization/resources/assets/client/listRules.d.ts +2 -0
- package/serialization/resources/assets/client/listRules.js +56 -0
- package/serialization/resources/assets/client/requests/DeleteFolderRequest.d.ts +2 -0
- package/serialization/resources/assets/client/requests/DeleteFolderRequest.js +39 -0
- package/serialization/resources/assets/client/requests/DeleteRuleRequest.d.ts +2 -0
- package/serialization/resources/assets/client/requests/DeleteRuleRequest.js +39 -0
- package/serialization/resources/assets/client/requests/ImportRuleRequest.d.ts +2 -0
- package/serialization/resources/assets/client/requests/ImportRuleRequest.js +39 -0
- package/serialization/resources/assets/client/requests/UpsertFolderRequest.d.ts +2 -0
- package/serialization/resources/assets/client/requests/UpsertFolderRequest.js +41 -0
- package/serialization/resources/assets/client/requests/index.d.ts +9 -0
- package/serialization/resources/assets/client/requests/index.js +11 -0
- package/serialization/resources/assets/index.d.ts +1 -0
- package/serialization/resources/assets/index.js +22 -0
- package/serialization/resources/assets/types/DeleteFolderResponse.d.ts +2 -0
- package/serialization/resources/assets/types/DeleteFolderResponse.js +42 -0
- package/serialization/resources/assets/types/DeleteRuleResponse.d.ts +2 -0
- package/serialization/resources/assets/types/DeleteRuleResponse.js +39 -0
- package/serialization/resources/assets/types/ListFlowsResponseItem.d.ts +2 -0
- package/serialization/resources/assets/types/ListFlowsResponseItem.js +44 -0
- package/serialization/resources/assets/types/ListFoldersResponseItem.d.ts +2 -0
- package/serialization/resources/assets/types/ListFoldersResponseItem.js +42 -0
- package/serialization/resources/assets/types/ListRulesResponseItem.d.ts +2 -0
- package/serialization/resources/assets/types/ListRulesResponseItem.js +67 -0
- package/serialization/resources/assets/types/ListRulesResponseItemFolder.d.ts +2 -0
- package/serialization/resources/assets/types/ListRulesResponseItemFolder.js +42 -0
- package/serialization/resources/assets/types/UpsertFolderResponse.d.ts +2 -0
- package/serialization/resources/assets/types/UpsertFolderResponse.js +42 -0
- package/serialization/resources/assets/types/UsageResponse.d.ts +2 -0
- package/serialization/resources/assets/types/UsageResponse.js +44 -0
- package/serialization/resources/assets/types/index.d.ts +1 -0
- package/serialization/resources/assets/types/index.js +28 -0
- package/serialization/resources/decisions/index.d.ts +1 -0
- package/serialization/resources/decisions/index.js +21 -0
- package/serialization/resources/decisions/types/QueryResponse.d.ts +2 -0
- package/serialization/resources/decisions/types/QueryResponse.js +42 -0
- package/serialization/resources/decisions/types/index.d.ts +1 -0
- package/serialization/resources/decisions/types/index.js +21 -0
- package/serialization/resources/flows/client/execute.d.ts +3 -0
- package/serialization/resources/flows/client/execute.js +38 -0
- package/serialization/resources/flows/client/index.d.ts +2 -0
- package/serialization/resources/flows/client/index.js +33 -0
- package/serialization/resources/flows/index.d.ts +1 -0
- package/serialization/resources/flows/index.js +21 -0
- package/serialization/resources/index.d.ts +8 -0
- package/serialization/resources/index.js +52 -0
- package/serialization/resources/rules/client/bulkSolve.d.ts +3 -0
- package/serialization/resources/rules/client/bulkSolve.js +38 -0
- package/serialization/resources/rules/client/index.d.ts +4 -0
- package/serialization/resources/rules/client/index.js +35 -0
- package/serialization/resources/rules/client/parallelSolve.d.ts +3 -0
- package/serialization/resources/rules/client/parallelSolve.js +38 -0
- package/serialization/resources/rules/client/solve.d.ts +3 -0
- package/serialization/resources/rules/client/solve.js +38 -0
- package/serialization/resources/rules/index.d.ts +1 -0
- package/serialization/resources/rules/index.js +21 -0
- package/serialization/resources/tests/client/index.d.ts +3 -0
- package/serialization/resources/tests/client/index.js +40 -0
- package/serialization/resources/tests/client/listFlowTests.d.ts +2 -0
- package/serialization/resources/tests/client/listFlowTests.js +56 -0
- package/serialization/resources/tests/client/listRuleTests.d.ts +2 -0
- package/serialization/resources/tests/client/listRuleTests.js +56 -0
- package/serialization/resources/tests/client/requests/CreateFlowTestRequest.d.ts +2 -0
- package/serialization/resources/tests/client/requests/CreateFlowTestRequest.js +42 -0
- package/serialization/resources/tests/client/requests/CreateRuleTestRequest.d.ts +2 -0
- package/serialization/resources/tests/client/requests/CreateRuleTestRequest.js +42 -0
- package/serialization/resources/tests/client/requests/index.d.ts +5 -0
- package/serialization/resources/tests/client/requests/index.js +7 -0
- package/serialization/resources/tests/index.d.ts +1 -0
- package/serialization/resources/tests/index.js +22 -0
- package/serialization/resources/tests/types/CreateFlowTestResponse.d.ts +2 -0
- package/serialization/resources/tests/types/CreateFlowTestResponse.js +47 -0
- package/serialization/resources/tests/types/CreateRuleTestResponse.d.ts +2 -0
- package/serialization/resources/tests/types/CreateRuleTestResponse.js +47 -0
- package/serialization/resources/tests/types/DeleteFlowTestResponse.d.ts +2 -0
- package/serialization/resources/tests/types/DeleteFlowTestResponse.js +47 -0
- package/serialization/resources/tests/types/DeleteRuleTestResponse.d.ts +2 -0
- package/serialization/resources/tests/types/DeleteRuleTestResponse.js +47 -0
- package/serialization/resources/tests/types/ListFlowTestsResponseItem.d.ts +2 -0
- package/serialization/resources/tests/types/ListFlowTestsResponseItem.js +47 -0
- package/serialization/resources/tests/types/ListRuleTestsResponseItem.d.ts +2 -0
- package/serialization/resources/tests/types/ListRuleTestsResponseItem.js +47 -0
- package/serialization/resources/tests/types/index.d.ts +1 -0
- package/serialization/resources/tests/types/index.js +26 -0
- package/serialization/resources/users/client/index.d.ts +2 -0
- package/serialization/resources/users/client/index.js +39 -0
- package/serialization/resources/users/client/listGroups.d.ts +2 -0
- package/serialization/resources/users/client/listGroups.js +56 -0
- package/serialization/resources/users/client/requests/CreateGroupRequest.d.ts +2 -0
- package/serialization/resources/users/client/requests/CreateGroupRequest.js +40 -0
- package/serialization/resources/users/client/requests/InviteRequest.d.ts +2 -0
- package/serialization/resources/users/client/requests/InviteRequest.js +60 -0
- package/serialization/resources/users/client/requests/index.d.ts +5 -0
- package/serialization/resources/users/client/requests/index.js +7 -0
- package/serialization/resources/users/index.d.ts +1 -0
- package/serialization/resources/users/index.js +22 -0
- package/serialization/resources/users/types/CreateGroupResponse.d.ts +2 -0
- package/serialization/resources/users/types/CreateGroupResponse.js +42 -0
- package/serialization/resources/users/types/InviteRequestRole.d.ts +2 -0
- package/serialization/resources/users/types/InviteRequestRole.js +37 -0
- package/serialization/resources/users/types/InviteResponse.d.ts +2 -0
- package/serialization/resources/users/types/InviteResponse.js +39 -0
- package/serialization/resources/users/types/ListGroupsResponseItem.d.ts +2 -0
- package/serialization/resources/users/types/ListGroupsResponseItem.js +42 -0
- package/serialization/resources/users/types/index.d.ts +1 -0
- package/serialization/resources/users/types/index.js +24 -0
- package/serialization/resources/values/client/index.d.ts +3 -0
- package/serialization/resources/values/client/index.js +34 -0
- package/serialization/resources/values/client/listDynamicValues.d.ts +2 -0
- package/serialization/resources/values/client/listDynamicValues.js +56 -0
- package/serialization/resources/values/client/update.d.ts +3 -0
- package/serialization/resources/values/client/update.js +57 -0
- package/serialization/resources/values/index.d.ts +1 -0
- package/serialization/resources/values/index.js +22 -0
- package/serialization/resources/values/types/DeleteDynamicValueResponse.d.ts +2 -0
- package/serialization/resources/values/types/DeleteDynamicValueResponse.js +39 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItem.d.ts +2 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItem.js +66 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItemType.d.ts +2 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItemType.js +37 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.d.ts +2 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItemUsagesItem.js +44 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItemValue.d.ts +2 -0
- package/serialization/resources/values/types/ListDynamicValuesResponseItemValue.js +42 -0
- package/serialization/resources/values/types/UpdateRequestValue.d.ts +2 -0
- package/serialization/resources/values/types/UpdateRequestValue.js +42 -0
- package/serialization/resources/values/types/UpdateResponseItem.d.ts +2 -0
- package/serialization/resources/values/types/UpdateResponseItem.js +61 -0
- package/serialization/resources/values/types/UpdateResponseItemType.d.ts +2 -0
- package/serialization/resources/values/types/UpdateResponseItemType.js +37 -0
- package/serialization/resources/values/types/UpdateResponseItemValue.d.ts +2 -0
- package/serialization/resources/values/types/UpdateResponseItemValue.js +42 -0
- package/serialization/resources/values/types/index.d.ts +1 -0
- package/serialization/resources/values/types/index.js +29 -0
- package/serialization/types/BadRequestErrorBody.d.ts +2 -0
- package/serialization/types/BadRequestErrorBody.js +39 -0
- package/serialization/types/ForbiddenErrorBody.d.ts +2 -0
- package/serialization/types/ForbiddenErrorBody.js +39 -0
- package/serialization/types/InternalServerErrorBody.d.ts +2 -0
- package/serialization/types/InternalServerErrorBody.js +39 -0
- package/serialization/types/NotFoundErrorBody.d.ts +2 -0
- package/serialization/types/NotFoundErrorBody.js +39 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +24 -0
- package/tests/client.test.ts +11 -0
package/Client.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
|
2
|
+
export class RulebricksApiClient {
|
|
3
|
+
constructor(_options: any);
|
|
4
|
+
_options: any;
|
|
5
|
+
get rules(): Client_1.Rules;
|
|
6
|
+
_rules: Client_1.Rules | undefined;
|
|
7
|
+
get flows(): Client_2.Flows;
|
|
8
|
+
_flows: Client_2.Flows | undefined;
|
|
9
|
+
get decisions(): Client_3.Decisions;
|
|
10
|
+
_decisions: Client_3.Decisions | undefined;
|
|
11
|
+
get assets(): Client_4.Assets;
|
|
12
|
+
_assets: Client_4.Assets | undefined;
|
|
13
|
+
get users(): Client_5.Users;
|
|
14
|
+
_users: Client_5.Users | undefined;
|
|
15
|
+
get tests(): Client_6.Tests;
|
|
16
|
+
_tests: Client_6.Tests | undefined;
|
|
17
|
+
get values(): Client_7.Values;
|
|
18
|
+
_values: Client_7.Values | undefined;
|
|
19
|
+
}
|
|
20
|
+
import Client_1 = require("./api/resources/rules/client/Client");
|
|
21
|
+
import Client_2 = require("./api/resources/flows/client/Client");
|
|
22
|
+
import Client_3 = require("./api/resources/decisions/client/Client");
|
|
23
|
+
import Client_4 = require("./api/resources/assets/client/Client");
|
|
24
|
+
import Client_5 = require("./api/resources/users/client/Client");
|
|
25
|
+
import Client_6 = require("./api/resources/tests/client/Client");
|
|
26
|
+
import Client_7 = require("./api/resources/values/client/Client");
|
package/Client.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RulebricksApiClient = void 0;
|
|
7
|
+
const Client_1 = require("./api/resources/rules/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/flows/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/decisions/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/assets/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/users/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/tests/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/values/client/Client");
|
|
14
|
+
class RulebricksApiClient {
|
|
15
|
+
constructor(_options) {
|
|
16
|
+
this._options = _options;
|
|
17
|
+
}
|
|
18
|
+
get rules() {
|
|
19
|
+
var _a;
|
|
20
|
+
return ((_a = this._rules) !== null && _a !== void 0 ? _a : (this._rules = new Client_1.Rules(this._options)));
|
|
21
|
+
}
|
|
22
|
+
get flows() {
|
|
23
|
+
var _a;
|
|
24
|
+
return ((_a = this._flows) !== null && _a !== void 0 ? _a : (this._flows = new Client_2.Flows(this._options)));
|
|
25
|
+
}
|
|
26
|
+
get decisions() {
|
|
27
|
+
var _a;
|
|
28
|
+
return ((_a = this._decisions) !== null && _a !== void 0 ? _a : (this._decisions = new Client_3.Decisions(this._options)));
|
|
29
|
+
}
|
|
30
|
+
get assets() {
|
|
31
|
+
var _a;
|
|
32
|
+
return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_4.Assets(this._options)));
|
|
33
|
+
}
|
|
34
|
+
get users() {
|
|
35
|
+
var _a;
|
|
36
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_5.Users(this._options)));
|
|
37
|
+
}
|
|
38
|
+
get tests() {
|
|
39
|
+
var _a;
|
|
40
|
+
return ((_a = this._tests) !== null && _a !== void 0 ? _a : (this._tests = new Client_6.Tests(this._options)));
|
|
41
|
+
}
|
|
42
|
+
get values() {
|
|
43
|
+
var _a;
|
|
44
|
+
return ((_a = this._values) !== null && _a !== void 0 ? _a : (this._values = new Client_7.Values(this._options)));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.RulebricksApiClient = RulebricksApiClient;
|
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) [2024] [Prefix Software, Inc.]
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
<p>
|
|
4
|
+
<a href="https://www.npmjs.com/package/@rulebricks/api" alt="npm shield">
|
|
5
|
+
<img src="https://img.shields.io/npm/v/@rulebricks/api" /></a>
|
|
6
|
+
<a href="https://github.com/rulebricks/node-sdk" alt="License">
|
|
7
|
+
<img src="https://img.shields.io/github/license/rulebricks/node-sdk" /></a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
## Documentation
|
|
11
|
+
|
|
12
|
+
Find detailed examples of using this SDK in our [examples repository](https://github.com/rulebricks/examples).
|
|
13
|
+
General API reference documentation is available on our User Guide [here](https://rulebricks.com/docs).
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
npm install --save @rulebricks/sdk
|
|
19
|
+
# or
|
|
20
|
+
yarn add @rulebricks/sdk
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { RulebricksApiClient } from "@rulebricks/sdk";
|
|
27
|
+
import "dotenv/config";
|
|
28
|
+
|
|
29
|
+
// Initialize the Rulebricks client
|
|
30
|
+
const rb = new RulebricksApiClient({
|
|
31
|
+
environment: process.env.RULEBRICKS_ENVIRONMENT || "https://rulebricks.com",
|
|
32
|
+
apiKey:
|
|
33
|
+
process.env.RULEBRICKS_API_KEY || "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
rb.rules.solve('tJOCd8XXXX', {
|
|
37
|
+
customer_id: 'anc39as3',
|
|
38
|
+
purchase_history: ['t-shirt', 'mug'],,
|
|
39
|
+
account_age_days: 4,
|
|
40
|
+
last_purchase_days_ago: 3,
|
|
41
|
+
email_subscription: false,
|
|
42
|
+
}, {
|
|
43
|
+
// Request options (Optional, leave empty for default values)
|
|
44
|
+
// timeoutInSeconds: 10, (Optional: Use this to override the default timeout in seconds)
|
|
45
|
+
// maxRetries: 3, (Optional: Use this to override the default number of retries)
|
|
46
|
+
}).then((result) => {
|
|
47
|
+
console.log(result);
|
|
48
|
+
}).catch((err) => {
|
|
49
|
+
console.error(err);
|
|
50
|
+
});
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Handling errors
|
|
54
|
+
|
|
55
|
+
When the API returns a non-success status code (4xx or 5xx response), a subclass of `RulebricksApiError` will be thrown:
|
|
56
|
+
|
|
57
|
+
```ts
|
|
58
|
+
try {
|
|
59
|
+
// ...
|
|
60
|
+
} catch (err) {
|
|
61
|
+
if (err instanceof RulebricksApiError) {
|
|
62
|
+
console.log(err.statusCode); // 400
|
|
63
|
+
console.log(err.message); // "BadRequestError"
|
|
64
|
+
console.log(err.body); // list of errors
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Error codes are as followed:
|
|
70
|
+
|
|
71
|
+
| Status Code | Error Type |
|
|
72
|
+
| ----------- | --------------------- |
|
|
73
|
+
| 400 | `BadRequestError` |
|
|
74
|
+
| 429 | `RateLimitError` |
|
|
75
|
+
| 500 | `InternalServerError` |
|
|
76
|
+
|
|
77
|
+
## Contributing
|
|
78
|
+
|
|
79
|
+
This library is generated programmatically. We suggest [opening an issue](https://github.com/rulebricks/node-sdk/issues) to discuss any issues or feature requests with us.
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE.txt) file for details.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined)
|
|
7
|
+
k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function (o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined)
|
|
15
|
+
k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function (o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function (o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
|
+
if (mod && mod.__esModule)
|
|
25
|
+
return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null)
|
|
28
|
+
for (var k in mod)
|
|
29
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
30
|
+
__createBinding(result, mod, k);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.BadRequestError = void 0;
|
|
36
|
+
const errors = __importStar(require("../../errors"));
|
|
37
|
+
class BadRequestError extends errors.RulebricksApiError {
|
|
38
|
+
constructor(body) {
|
|
39
|
+
super({
|
|
40
|
+
message: "BadRequestError",
|
|
41
|
+
statusCode: 400,
|
|
42
|
+
body: body,
|
|
43
|
+
});
|
|
44
|
+
Object.setPrototypeOf(this, BadRequestError.prototype);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.BadRequestError = BadRequestError;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined)
|
|
7
|
+
k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function (o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined)
|
|
15
|
+
k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function (o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function (o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
|
+
if (mod && mod.__esModule)
|
|
25
|
+
return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null)
|
|
28
|
+
for (var k in mod)
|
|
29
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
30
|
+
__createBinding(result, mod, k);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.ForbiddenError = void 0;
|
|
36
|
+
const errors = __importStar(require("../../errors"));
|
|
37
|
+
class ForbiddenError extends errors.RulebricksApiError {
|
|
38
|
+
constructor(body) {
|
|
39
|
+
super({
|
|
40
|
+
message: "ForbiddenError",
|
|
41
|
+
statusCode: 403,
|
|
42
|
+
body: body,
|
|
43
|
+
});
|
|
44
|
+
Object.setPrototypeOf(this, ForbiddenError.prototype);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.ForbiddenError = ForbiddenError;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined)
|
|
7
|
+
k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function (o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined)
|
|
15
|
+
k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function (o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function (o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
|
+
if (mod && mod.__esModule)
|
|
25
|
+
return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null)
|
|
28
|
+
for (var k in mod)
|
|
29
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
30
|
+
__createBinding(result, mod, k);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.InternalServerError = void 0;
|
|
36
|
+
const errors = __importStar(require("../../errors"));
|
|
37
|
+
class InternalServerError extends errors.RulebricksApiError {
|
|
38
|
+
constructor(body) {
|
|
39
|
+
super({
|
|
40
|
+
message: "InternalServerError",
|
|
41
|
+
statusCode: 500,
|
|
42
|
+
body: body,
|
|
43
|
+
});
|
|
44
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.InternalServerError = InternalServerError;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function (o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined)
|
|
7
|
+
k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function (o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined)
|
|
15
|
+
k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function (o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function (o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
|
+
if (mod && mod.__esModule)
|
|
25
|
+
return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null)
|
|
28
|
+
for (var k in mod)
|
|
29
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
30
|
+
__createBinding(result, mod, k);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.NotFoundError = void 0;
|
|
36
|
+
const errors = __importStar(require("../../errors"));
|
|
37
|
+
class NotFoundError extends errors.RulebricksApiError {
|
|
38
|
+
constructor(body) {
|
|
39
|
+
super({
|
|
40
|
+
message: "NotFoundError",
|
|
41
|
+
statusCode: 404,
|
|
42
|
+
body: body,
|
|
43
|
+
});
|
|
44
|
+
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.NotFoundError = NotFoundError;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
__exportStar(require("./BadRequestError"), exports);
|
|
22
|
+
__exportStar(require("./InternalServerError"), exports);
|
|
23
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
24
|
+
__exportStar(require("./ForbiddenError"), exports);
|
package/api/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
package/api/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
__exportStar(require("./resources"), exports);
|
|
22
|
+
__exportStar(require("./types"), exports);
|
|
23
|
+
__exportStar(require("./errors"), exports);
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
export var __esModule: boolean;
|
|
2
|
+
/**
|
|
3
|
+
* Administrative operations for managing rules, flows, folders, and usage
|
|
4
|
+
*/
|
|
5
|
+
export class Assets {
|
|
6
|
+
constructor(_options: any);
|
|
7
|
+
_options: any;
|
|
8
|
+
/**
|
|
9
|
+
* Delete a specific rule by its ID.
|
|
10
|
+
* @throws {@link RulebricksApi.BadRequestError}
|
|
11
|
+
* @throws {@link RulebricksApi.NotFoundError}
|
|
12
|
+
* @throws {@link RulebricksApi.InternalServerError}
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* await rulebricksApi.assets.deleteRule({})
|
|
16
|
+
*/
|
|
17
|
+
deleteRule(request: {} | undefined, requestOptions: any): any;
|
|
18
|
+
/**
|
|
19
|
+
* Export a specific rule by its ID.
|
|
20
|
+
* @throws {@link RulebricksApi.BadRequestError}
|
|
21
|
+
* @throws {@link RulebricksApi.NotFoundError}
|
|
22
|
+
* @throws {@link RulebricksApi.InternalServerError}
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await rulebricksApi.assets.exportRule({
|
|
26
|
+
* id: "id"
|
|
27
|
+
* })
|
|
28
|
+
*/
|
|
29
|
+
exportRule(request: any, requestOptions: any): any;
|
|
30
|
+
/**
|
|
31
|
+
* Import a rule into the user's account.
|
|
32
|
+
* @throws {@link RulebricksApi.BadRequestError}
|
|
33
|
+
* @throws {@link RulebricksApi.ForbiddenError}
|
|
34
|
+
* @throws {@link RulebricksApi.InternalServerError}
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* await rulebricksApi.assets.importRule({
|
|
38
|
+
* rule: {
|
|
39
|
+
* "key": "value"
|
|
40
|
+
* }
|
|
41
|
+
* })
|
|
42
|
+
*/
|
|
43
|
+
importRule(request: any, requestOptions: any): any;
|
|
44
|
+
/**
|
|
45
|
+
* List all rules in the organization. Optionally filter by folder name or ID.
|
|
46
|
+
* @throws {@link RulebricksApi.BadRequestError}
|
|
47
|
+
* @throws {@link RulebricksApi.InternalServerError}
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* await rulebricksApi.assets.listRules({})
|
|
51
|
+
*/
|
|
52
|
+
listRules(request: {} | undefined, requestOptions: any): any;
|
|
53
|
+
/**
|
|
54
|
+
* List all flows in the organization.
|
|
55
|
+
* @throws {@link RulebricksApi.InternalServerError}
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* await rulebricksApi.assets.listFlows()
|
|
59
|
+
*/
|
|
60
|
+
listFlows(requestOptions: any): any;
|
|
61
|
+
/**
|
|
62
|
+
* Get the rule execution usage of your organization.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* await rulebricksApi.assets.usage()
|
|
66
|
+
*/
|
|
67
|
+
usage(requestOptions: any): any;
|
|
68
|
+
/**
|
|
69
|
+
* Retrieve all rule folders for the authenticated user.
|
|
70
|
+
* @throws {@link RulebricksApi.InternalServerError}
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* await rulebricksApi.assets.listFolders()
|
|
74
|
+
*/
|
|
75
|
+
listFolders(requestOptions: any): any;
|
|
76
|
+
/**
|
|
77
|
+
* Create a new rule folder or update an existing one for the authenticated user.
|
|
78
|
+
* @throws {@link RulebricksApi.BadRequestError}
|
|
79
|
+
* @throws {@link RulebricksApi.InternalServerError}
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* await rulebricksApi.assets.upsertFolder({
|
|
83
|
+
* name: "Marketing Rules",
|
|
84
|
+
* description: "Rules for marketing automation workflows"
|
|
85
|
+
* })
|
|
86
|
+
*/
|
|
87
|
+
upsertFolder(request: any, requestOptions: any): any;
|
|
88
|
+
/**
|
|
89
|
+
* Delete a specific rule folder for the authenticated user. This does not delete the rules within the folder.
|
|
90
|
+
* @throws {@link RulebricksApi.BadRequestError}
|
|
91
|
+
* @throws {@link RulebricksApi.NotFoundError}
|
|
92
|
+
* @throws {@link RulebricksApi.InternalServerError}
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* await rulebricksApi.assets.deleteFolder({
|
|
96
|
+
* id: "abc123"
|
|
97
|
+
* })
|
|
98
|
+
*/
|
|
99
|
+
deleteFolder(request: any, requestOptions: any): any;
|
|
100
|
+
}
|