Skip to content

Commit 044efe8

Browse files
committed
Update SDKs to v2.6.8.
1 parent e44411e commit 044efe8

83 files changed

Lines changed: 4587 additions & 660 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎REFERENCE.md‎

Lines changed: 359 additions & 10 deletions
Large diffs are not rendered by default.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "rulebricks"
3-
version = "2.6.7"
3+
version = "2.6.8"
44
description = "A JSON-based, server-side rule engine with a customizable decision table UI for non-technical end users"
55
readme = "README.md"
66
authors = ["Sid Garimella <sid@rulebricks.com>"]

‎src/rulebricks/__init__.py‎

Lines changed: 86 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
from .types import (
1010
AssetLabels,
1111
BulkRuleResponseItem,
12-
BulkRuleResponseItemError,
1312
CascadeContextRequest,
1413
CascadeContextResponse,
14+
CascadeContextResponseCascadedItem,
1515
CascadeResult,
1616
CascadeResultStatus,
1717
ContextBase,
@@ -26,12 +26,15 @@
2626
ContextBatchResponseResultsItemStatus,
2727
ContextBatchResponseTimings,
2828
ContextCascadeSummary,
29+
ContextDerivedField,
30+
ContextDerivedFieldType,
2931
ContextDetail,
3032
ContextDetailBoundFlowsItem,
3133
ContextDetailBoundFlowsItemOriginRule,
3234
ContextDetailBoundRulesItem,
3335
ContextDetailFolder,
3436
ContextDetailRelationships,
37+
ContextFlowOutcome,
3538
ContextInstanceHistory,
3639
ContextInstanceHistoryEntry,
3740
ContextInstancePendingEvaluation,
@@ -41,7 +44,9 @@
4144
ContextInstanceStateStatus,
4245
ContextListItem,
4346
ContextListItemFolder,
47+
ContextListPage,
4448
ContextListResponse,
49+
ContextOperationError,
4550
ContextRelationshipBase,
4651
ContextRelationshipBaseRelationType,
4752
ContextRelationshipIncoming,
@@ -50,11 +55,13 @@
5055
ContextRelationshipOutgoingTargetContext,
5156
ContextRelationshipsResponse,
5257
ContextRelationshipsResponseContext,
58+
ContextRuleOutcome,
5359
ContextSchema,
5460
ContextSchemaField,
5561
ContextSchemaFieldType,
5662
ContextWaitingOn,
5763
CreateContextResponse,
64+
CreateContextResponseOnSchemaMismatch,
5865
CreateRelationshipResponse,
5966
CreateTestRequest,
6067
CreateTestRequestPolicy,
@@ -65,6 +72,7 @@
6572
DecisionLogRequest,
6673
DecisionLogResponse,
6774
DeleteContextInstanceResponse,
75+
DeleteContextInstanceResponseCascadeRecovery,
6876
DeleteContextResponse,
6977
DeleteObjectResponse,
7078
DeleteObjectResponseValues,
@@ -78,6 +86,7 @@
7886
DynamicValuePage,
7987
DynamicValueValue,
8088
Error,
89+
ExecutionErrorResult,
8190
ExportManifestPreviewResponse,
8291
ExportManifestPreviewResponsePreview,
8392
ExportManifestPreviewResponsePreviewCounts,
@@ -95,6 +104,7 @@
95104
FlowExecutionError,
96105
FlowExecutionRequestPayload,
97106
FlowExecutionResponsePayload,
107+
FlowExecutionResult,
98108
FlowImportPayload,
99109
FlowImportResponse,
100110
FlowListResponse,
@@ -131,6 +141,7 @@
131141
RuleBase,
132142
RuleDetail,
133143
RuleDetailContext,
144+
RuleExecutionResult,
134145
RuleExport,
135146
RuleImportConditionRow,
136147
RuleImportPayload,
@@ -188,6 +199,7 @@
188199
TestTestState,
189200
TestTestStateEvaluationError,
190201
UpdateContextResponse,
202+
UpdateContextResponseOnSchemaMismatch,
191203
UpdateValuesSummaryResponse,
192204
UpsertObjectRequest,
193205
UpsertObjectRequestContent,
@@ -216,8 +228,8 @@
216228
GatewayTimeoutError,
217229
InternalServerError,
218230
NotFoundError,
219-
PaymentRequiredError,
220231
ServiceUnavailableError,
232+
TooManyRequestsError,
221233
UnprocessableEntityError,
222234
)
223235
from . import assets, contexts, decisions, flows, infra, objects, rules, tests, users, values
@@ -236,21 +248,49 @@
236248
QueryDecisionsRequestSort,
237249
)
238250
from .environment import RulebricksEnvironment
239-
from .forge import Condition, Rule, Vocabulary, VocabularyValue
251+
from .forge import (
252+
BooleanField,
253+
Condition,
254+
DateField,
255+
ListField,
256+
NumberField,
257+
RbmManifest,
258+
Rule,
259+
RulePublishError,
260+
RuleTest,
261+
StringField,
262+
TypeMismatchError,
263+
Vocabulary,
264+
VocabularyValue,
265+
VocabularyValueNotFoundError,
266+
)
240267
from .objects import DeleteObjectsRequestValues
241268
from .users import UserInviteRequestRole
242269
from .values import ListValuesResponse, UpdateValuesResponse
243270
_dynamic_imports: typing.Dict[str, str] = {
244271
"AssetLabels": ".types",
272+
"BooleanField": ".forge",
273+
"Condition": ".forge",
274+
"DateField": ".forge",
275+
"ListField": ".forge",
276+
"NumberField": ".forge",
277+
"RbmManifest": ".forge",
278+
"Rule": ".forge",
279+
"RulePublishError": ".forge",
280+
"RuleTest": ".forge",
281+
"StringField": ".forge",
282+
"TypeMismatchError": ".forge",
283+
"Vocabulary": ".forge",
284+
"VocabularyValue": ".forge",
285+
"VocabularyValueNotFoundError": ".forge",
245286
"AsyncRulebricks": ".client",
246287
"BadRequestError": ".errors",
247288
"BulkRuleResponseItem": ".types",
248-
"BulkRuleResponseItemError": ".types",
249289
"CascadeContextRequest": ".types",
250290
"CascadeContextResponse": ".types",
291+
"CascadeContextResponseCascadedItem": ".types",
251292
"CascadeResult": ".types",
252293
"CascadeResultStatus": ".types",
253-
"Condition": ".forge",
254294
"ConflictError": ".errors",
255295
"ContentTooLargeError": ".errors",
256296
"ContextBase": ".types",
@@ -265,12 +305,15 @@
265305
"ContextBatchResponseResultsItemStatus": ".types",
266306
"ContextBatchResponseTimings": ".types",
267307
"ContextCascadeSummary": ".types",
308+
"ContextDerivedField": ".types",
309+
"ContextDerivedFieldType": ".types",
268310
"ContextDetail": ".types",
269311
"ContextDetailBoundFlowsItem": ".types",
270312
"ContextDetailBoundFlowsItemOriginRule": ".types",
271313
"ContextDetailBoundRulesItem": ".types",
272314
"ContextDetailFolder": ".types",
273315
"ContextDetailRelationships": ".types",
316+
"ContextFlowOutcome": ".types",
274317
"ContextInstanceHistory": ".types",
275318
"ContextInstanceHistoryEntry": ".types",
276319
"ContextInstancePendingEvaluation": ".types",
@@ -280,7 +323,9 @@
280323
"ContextInstanceStateStatus": ".types",
281324
"ContextListItem": ".types",
282325
"ContextListItemFolder": ".types",
326+
"ContextListPage": ".types",
283327
"ContextListResponse": ".types",
328+
"ContextOperationError": ".types",
284329
"ContextRelationshipBase": ".types",
285330
"ContextRelationshipBaseRelationType": ".types",
286331
"ContextRelationshipIncoming": ".types",
@@ -289,11 +334,13 @@
289334
"ContextRelationshipOutgoingTargetContext": ".types",
290335
"ContextRelationshipsResponse": ".types",
291336
"ContextRelationshipsResponseContext": ".types",
337+
"ContextRuleOutcome": ".types",
292338
"ContextSchema": ".types",
293339
"ContextSchemaField": ".types",
294340
"ContextSchemaFieldType": ".types",
295341
"ContextWaitingOn": ".types",
296342
"CreateContextResponse": ".types",
343+
"CreateContextResponseOnSchemaMismatch": ".types",
297344
"CreateRelationshipResponse": ".types",
298345
"CreateTestRequest": ".types",
299346
"CreateTestRequestPolicy": ".types",
@@ -306,6 +353,7 @@
306353
"DefaultAioHttpClient": "._default_clients",
307354
"DefaultAsyncHttpxClient": "._default_clients",
308355
"DeleteContextInstanceResponse": ".types",
356+
"DeleteContextInstanceResponseCascadeRecovery": ".types",
309357
"DeleteContextResponse": ".types",
310358
"DeleteObjectResponse": ".types",
311359
"DeleteObjectResponseValues": ".types",
@@ -320,6 +368,7 @@
320368
"DynamicValuePage": ".types",
321369
"DynamicValueValue": ".types",
322370
"Error": ".types",
371+
"ExecutionErrorResult": ".types",
323372
"ExportManifestPreviewResponse": ".types",
324373
"ExportManifestPreviewResponsePreview": ".types",
325374
"ExportManifestPreviewResponsePreviewCounts": ".types",
@@ -339,6 +388,7 @@
339388
"FlowExecutionError": ".types",
340389
"FlowExecutionRequestPayload": ".types",
341390
"FlowExecutionResponsePayload": ".types",
391+
"FlowExecutionResult": ".types",
342392
"FlowImportPayload": ".types",
343393
"FlowImportResponse": ".types",
344394
"FlowListResponse": ".types",
@@ -377,17 +427,16 @@
377427
"ParallelSolveRequest": ".types",
378428
"ParallelSolveRequestValue": ".types",
379429
"ParallelSolveResponse": ".types",
380-
"PaymentRequiredError": ".errors",
381430
"PendingContextEvaluationResponse": ".types",
382431
"PendingContextEvaluationResponseStatus": ".types",
383432
"QueryDecisionsRequestCount": ".decisions",
384433
"QueryDecisionsRequestIncludeTraces": ".decisions",
385434
"QueryDecisionsRequestOrder": ".decisions",
386435
"QueryDecisionsRequestSort": ".decisions",
387-
"Rule": ".forge",
388436
"RuleBase": ".types",
389437
"RuleDetail": ".types",
390438
"RuleDetailContext": ".types",
439+
"RuleExecutionResult": ".types",
391440
"RuleExport": ".types",
392441
"RuleImportConditionRow": ".types",
393442
"RuleImportPayload": ".types",
@@ -447,8 +496,10 @@
447496
"TestPolicy": ".types",
448497
"TestTestState": ".types",
449498
"TestTestStateEvaluationError": ".types",
499+
"TooManyRequestsError": ".errors",
450500
"UnprocessableEntityError": ".errors",
451501
"UpdateContextResponse": ".types",
502+
"UpdateContextResponseOnSchemaMismatch": ".types",
452503
"UpdateValuesResponse": ".values",
453504
"UpdateValuesSummaryResponse": ".types",
454505
"UpsertObjectRequest": ".types",
@@ -468,8 +519,6 @@
468519
"ValueLimits": ".types",
469520
"ValueReference": ".types",
470521
"ValueReferenceRb": ".types",
471-
"Vocabulary": ".forge",
472-
"VocabularyValue": ".forge",
473522
"WorkspaceObject": ".types",
474523
"WorkspaceObjectParsedFieldsItem": ".types",
475524
"assets": ".assets",
@@ -508,15 +557,28 @@ def __dir__():
508557

509558
__all__ = [
510559
"AssetLabels",
560+
"BooleanField",
561+
"Condition",
562+
"DateField",
563+
"ListField",
564+
"NumberField",
565+
"RbmManifest",
566+
"Rule",
567+
"RulePublishError",
568+
"RuleTest",
569+
"StringField",
570+
"TypeMismatchError",
571+
"Vocabulary",
572+
"VocabularyValue",
573+
"VocabularyValueNotFoundError",
511574
"AsyncRulebricks",
512575
"BadRequestError",
513576
"BulkRuleResponseItem",
514-
"BulkRuleResponseItemError",
515577
"CascadeContextRequest",
516578
"CascadeContextResponse",
579+
"CascadeContextResponseCascadedItem",
517580
"CascadeResult",
518581
"CascadeResultStatus",
519-
"Condition",
520582
"ConflictError",
521583
"ContentTooLargeError",
522584
"ContextBase",
@@ -531,12 +593,15 @@ def __dir__():
531593
"ContextBatchResponseResultsItemStatus",
532594
"ContextBatchResponseTimings",
533595
"ContextCascadeSummary",
596+
"ContextDerivedField",
597+
"ContextDerivedFieldType",
534598
"ContextDetail",
535599
"ContextDetailBoundFlowsItem",
536600
"ContextDetailBoundFlowsItemOriginRule",
537601
"ContextDetailBoundRulesItem",
538602
"ContextDetailFolder",
539603
"ContextDetailRelationships",
604+
"ContextFlowOutcome",
540605
"ContextInstanceHistory",
541606
"ContextInstanceHistoryEntry",
542607
"ContextInstancePendingEvaluation",
@@ -546,7 +611,9 @@ def __dir__():
546611
"ContextInstanceStateStatus",
547612
"ContextListItem",
548613
"ContextListItemFolder",
614+
"ContextListPage",
549615
"ContextListResponse",
616+
"ContextOperationError",
550617
"ContextRelationshipBase",
551618
"ContextRelationshipBaseRelationType",
552619
"ContextRelationshipIncoming",
@@ -555,11 +622,13 @@ def __dir__():
555622
"ContextRelationshipOutgoingTargetContext",
556623
"ContextRelationshipsResponse",
557624
"ContextRelationshipsResponseContext",
625+
"ContextRuleOutcome",
558626
"ContextSchema",
559627
"ContextSchemaField",
560628
"ContextSchemaFieldType",
561629
"ContextWaitingOn",
562630
"CreateContextResponse",
631+
"CreateContextResponseOnSchemaMismatch",
563632
"CreateRelationshipResponse",
564633
"CreateTestRequest",
565634
"CreateTestRequestPolicy",
@@ -572,6 +641,7 @@ def __dir__():
572641
"DefaultAioHttpClient",
573642
"DefaultAsyncHttpxClient",
574643
"DeleteContextInstanceResponse",
644+
"DeleteContextInstanceResponseCascadeRecovery",
575645
"DeleteContextResponse",
576646
"DeleteObjectResponse",
577647
"DeleteObjectResponseValues",
@@ -586,6 +656,7 @@ def __dir__():
586656
"DynamicValuePage",
587657
"DynamicValueValue",
588658
"Error",
659+
"ExecutionErrorResult",
589660
"ExportManifestPreviewResponse",
590661
"ExportManifestPreviewResponsePreview",
591662
"ExportManifestPreviewResponsePreviewCounts",
@@ -605,6 +676,7 @@ def __dir__():
605676
"FlowExecutionError",
606677
"FlowExecutionRequestPayload",
607678
"FlowExecutionResponsePayload",
679+
"FlowExecutionResult",
608680
"FlowImportPayload",
609681
"FlowImportResponse",
610682
"FlowListResponse",
@@ -643,17 +715,16 @@ def __dir__():
643715
"ParallelSolveRequest",
644716
"ParallelSolveRequestValue",
645717
"ParallelSolveResponse",
646-
"PaymentRequiredError",
647718
"PendingContextEvaluationResponse",
648719
"PendingContextEvaluationResponseStatus",
649720
"QueryDecisionsRequestCount",
650721
"QueryDecisionsRequestIncludeTraces",
651722
"QueryDecisionsRequestOrder",
652723
"QueryDecisionsRequestSort",
653-
"Rule",
654724
"RuleBase",
655725
"RuleDetail",
656726
"RuleDetailContext",
727+
"RuleExecutionResult",
657728
"RuleExport",
658729
"RuleImportConditionRow",
659730
"RuleImportPayload",
@@ -713,8 +784,10 @@ def __dir__():
713784
"TestPolicy",
714785
"TestTestState",
715786
"TestTestStateEvaluationError",
787+
"TooManyRequestsError",
716788
"UnprocessableEntityError",
717789
"UpdateContextResponse",
790+
"UpdateContextResponseOnSchemaMismatch",
718791
"UpdateValuesResponse",
719792
"UpdateValuesSummaryResponse",
720793
"UpsertObjectRequest",
@@ -734,8 +807,6 @@ def __dir__():
734807
"ValueLimits",
735808
"ValueReference",
736809
"ValueReferenceRb",
737-
"Vocabulary",
738-
"VocabularyValue",
739810
"WorkspaceObject",
740811
"WorkspaceObjectParsedFieldsItem",
741812
"assets",

0 commit comments

Comments
 (0)