@rulebricks/sdk 1.5.2 → 2.5.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 +3 -0
- package/Client.js +17 -12
- package/api/resources/assets/client/Client.d.ts +54 -1
- package/api/resources/assets/client/Client.js +134 -0
- package/api/resources/assets/client/index.d.ts +1 -1
- package/api/resources/assets/client/index.js +15 -0
- package/api/resources/assets/client/requests/ExportManifestRequest.d.ts +32 -0
- package/api/resources/assets/client/requests/ExportManifestRequest.js +14 -0
- package/api/resources/assets/client/requests/ImportManifestRequest.d.ts +72 -0
- package/api/resources/assets/client/requests/ImportManifestRequest.js +23 -0
- package/api/resources/assets/client/requests/index.d.ts +2 -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 +1 -0
- package/api/resources/assets/types/ExportRbmAssetsResponse.d.ts +2 -0
- package/api/resources/assets/types/ExportRbmAssetsResponse.js +3 -0
- package/api/resources/assets/types/index.d.ts +1 -0
- package/api/resources/assets/types/index.js +17 -0
- package/api/resources/contexts/client/Client.d.ts +170 -0
- package/api/resources/contexts/client/Client.js +555 -0
- package/api/resources/contexts/client/index.d.ts +1 -0
- package/api/resources/contexts/client/index.js +17 -0
- package/api/resources/contexts/client/requests/CascadeContextsRequest.d.ts +16 -0
- package/api/resources/contexts/client/requests/CascadeContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/DeleteContextsRequest.d.ts +13 -0
- package/api/resources/contexts/client/requests/DeleteContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/ExecuteContextsRequest.d.ts +19 -0
- package/api/resources/contexts/client/requests/ExecuteContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/GetContextsRequest.d.ts +13 -0
- package/api/resources/contexts/client/requests/GetContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/GetHistoryContextsRequest.d.ts +17 -0
- package/api/resources/contexts/client/requests/GetHistoryContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/GetPendingContextsRequest.d.ts +13 -0
- package/api/resources/contexts/client/requests/GetPendingContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/SolveContextsRequest.d.ts +19 -0
- package/api/resources/contexts/client/requests/SolveContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/SubmitContextsRequest.d.ts +19 -0
- package/api/resources/contexts/client/requests/SubmitContextsRequest.js +3 -0
- package/api/resources/contexts/client/requests/index.d.ts +8 -0
- package/api/resources/contexts/client/requests/index.js +2 -0
- package/api/resources/contexts/index.d.ts +2 -0
- package/api/resources/contexts/index.js +18 -0
- package/api/resources/contexts/resources/index.d.ts +4 -0
- package/api/resources/contexts/resources/index.js +43 -0
- package/api/resources/contexts/resources/objects/client/Client.d.ts +103 -0
- package/api/resources/contexts/resources/objects/client/Client.js +354 -0
- package/api/resources/contexts/resources/objects/client/index.d.ts +1 -0
- package/api/resources/contexts/resources/objects/client/index.js +17 -0
- package/api/resources/contexts/resources/objects/client/requests/CreateContextRequest.d.ts +58 -0
- package/api/resources/contexts/resources/objects/client/requests/CreateContextRequest.js +12 -0
- package/api/resources/contexts/resources/objects/client/requests/DeleteObjectsRequest.d.ts +10 -0
- package/api/resources/contexts/resources/objects/client/requests/DeleteObjectsRequest.js +3 -0
- package/api/resources/contexts/resources/objects/client/requests/GetObjectsRequest.d.ts +10 -0
- package/api/resources/contexts/resources/objects/client/requests/GetObjectsRequest.js +3 -0
- package/api/resources/contexts/resources/objects/client/requests/UpdateContextRequest.d.ts +49 -0
- package/api/resources/contexts/resources/objects/client/requests/UpdateContextRequest.js +12 -0
- package/api/resources/contexts/resources/objects/client/requests/index.d.ts +4 -0
- package/api/resources/contexts/resources/objects/client/requests/index.js +2 -0
- package/api/resources/contexts/resources/objects/index.d.ts +1 -0
- package/api/resources/contexts/resources/objects/index.js +17 -0
- package/api/resources/contexts/resources/relationships/client/Client.d.ts +67 -0
- package/api/resources/contexts/resources/relationships/client/Client.js +252 -0
- package/api/resources/contexts/resources/relationships/client/index.d.ts +1 -0
- package/api/resources/contexts/resources/relationships/client/index.js +17 -0
- package/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.d.ts +33 -0
- package/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.js +13 -0
- package/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.d.ts +13 -0
- package/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.js +3 -0
- package/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.d.ts +10 -0
- package/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.js +3 -0
- package/api/resources/contexts/resources/relationships/client/requests/index.d.ts +3 -0
- package/api/resources/contexts/resources/relationships/client/requests/index.js +2 -0
- package/api/resources/contexts/resources/relationships/index.d.ts +1 -0
- package/api/resources/contexts/resources/relationships/index.js +17 -0
- package/api/resources/index.d.ts +4 -0
- package/api/resources/index.js +8 -4
- package/api/resources/users/client/Client.d.ts +5 -5
- package/api/resources/users/client/Client.js +5 -5
- package/api/resources/users/client/requests/CreateUserRequest.d.ts +3 -3
- package/api/resources/users/client/requests/UserInviteRequest.d.ts +6 -6
- package/api/resources/values/client/Client.d.ts +3 -3
- package/api/resources/values/client/Client.js +3 -3
- package/api/resources/values/client/requests/UpdateValuesRequest.d.ts +7 -7
- package/api/types/CascadeContextRequest.d.ts +4 -0
- package/api/types/CascadeContextRequest.js +3 -0
- package/api/types/CascadeContextResponse.d.ts +10 -0
- package/api/types/CascadeContextResponse.js +3 -0
- package/api/types/CascadeResult.d.ts +29 -0
- package/api/types/CascadeResult.js +12 -0
- package/api/types/ContextBase.d.ts +33 -0
- package/api/types/ContextBase.js +12 -0
- package/api/types/ContextDetail.d.ts +58 -0
- package/api/types/ContextDetail.js +3 -0
- package/api/types/ContextInstanceHistory.d.ts +10 -0
- package/api/types/ContextInstanceHistory.js +3 -0
- package/api/types/ContextInstanceHistoryEntry.d.ts +9 -0
- package/api/types/ContextInstanceHistoryEntry.js +3 -0
- package/api/types/ContextInstancePendingEvaluation.d.ts +37 -0
- package/api/types/ContextInstancePendingEvaluation.js +12 -0
- package/api/types/ContextInstancePendingResponse.d.ts +8 -0
- package/api/types/ContextInstancePendingResponse.js +3 -0
- package/api/types/ContextInstanceState.d.ts +31 -0
- package/api/types/ContextInstanceState.js +12 -0
- package/api/types/ContextListItem.d.ts +24 -0
- package/api/types/ContextListItem.js +3 -0
- package/api/types/ContextListResponse.d.ts +2 -0
- package/api/types/ContextListResponse.js +3 -0
- package/api/types/ContextRelationshipBase.d.ts +23 -0
- package/api/types/ContextRelationshipBase.js +13 -0
- package/api/types/ContextRelationshipIncoming.d.ts +11 -0
- package/api/types/ContextRelationshipIncoming.js +3 -0
- package/api/types/ContextRelationshipOutgoing.d.ts +11 -0
- package/api/types/ContextRelationshipOutgoing.js +3 -0
- package/api/types/ContextRelationshipsResponse.d.ts +17 -0
- package/api/types/ContextRelationshipsResponse.js +3 -0
- package/api/types/ContextSchema.d.ts +10 -0
- package/api/types/ContextSchema.js +3 -0
- package/api/types/ContextSchemaField.d.ts +35 -0
- package/api/types/ContextSchemaField.js +16 -0
- package/api/types/CreateContextResponse.d.ts +2 -0
- package/api/types/CreateContextResponse.js +3 -0
- package/api/types/CreateRelationshipResponse.d.ts +2 -0
- package/api/types/CreateRelationshipResponse.js +3 -0
- package/api/types/CreateUserResponse.d.ts +3 -3
- package/api/types/DecisionLog.d.ts +13 -4
- package/api/types/DecisionLogResponse.d.ts +4 -4
- package/api/types/DeleteContextInstanceResponse.d.ts +9 -0
- package/api/types/DeleteContextInstanceResponse.js +3 -0
- package/api/types/DeleteContextResponse.d.ts +13 -0
- package/api/types/DeleteContextResponse.js +3 -0
- package/api/types/DeleteRelationshipResponse.d.ts +6 -0
- package/api/types/DeleteRelationshipResponse.js +3 -0
- package/api/types/DynamicValue.d.ts +9 -3
- package/api/types/ExportManifestPreviewResponse.d.ts +64 -0
- package/api/types/ExportManifestPreviewResponse.js +3 -0
- package/api/types/ExportManifestResponse.d.ts +30 -0
- package/api/types/ExportManifestResponse.js +3 -0
- package/api/types/FlowDetail.d.ts +28 -0
- package/api/types/Folder.d.ts +5 -1
- package/api/types/ImportManifestResponse.d.ts +66 -0
- package/api/types/ImportManifestResponse.js +3 -0
- package/api/types/RuleDetail.d.ts +17 -0
- package/api/types/SchemaField.d.ts +2 -2
- package/api/types/SolveContextFlowRequest.d.ts +4 -0
- package/api/types/SolveContextFlowRequest.js +3 -0
- package/api/types/SolveContextFlowResponse.d.ts +23 -0
- package/api/types/SolveContextFlowResponse.js +12 -0
- package/api/types/SolveContextRuleRequest.d.ts +4 -0
- package/api/types/SolveContextRuleRequest.js +3 -0
- package/api/types/SolveContextRuleResponse.d.ts +26 -0
- package/api/types/SolveContextRuleResponse.js +12 -0
- package/api/types/SubmitContextDataRequest.d.ts +4 -0
- package/api/types/SubmitContextDataRequest.js +3 -0
- package/api/types/SubmitContextDataResponse.d.ts +30 -0
- package/api/types/SubmitContextDataResponse.js +12 -0
- package/api/types/Test.d.ts +9 -9
- package/api/types/UpdateContextResponse.d.ts +13 -0
- package/api/types/UpdateContextResponse.js +3 -0
- package/api/types/UsageStatistics.d.ts +10 -4
- package/api/types/UserDetail.d.ts +4 -4
- package/api/types/UserGroup.d.ts +2 -0
- package/api/types/UserInviteResponse.d.ts +2 -2
- package/api/types/index.d.ts +33 -0
- package/api/types/index.js +33 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +17 -12
- package/dist/api/resources/assets/client/Client.d.ts +54 -1
- package/dist/api/resources/assets/client/Client.js +134 -0
- package/dist/api/resources/assets/client/index.d.ts +1 -1
- package/dist/api/resources/assets/client/index.js +15 -0
- package/dist/api/resources/assets/client/requests/ExportManifestRequest.d.ts +32 -0
- package/dist/api/resources/assets/client/requests/ExportManifestRequest.js +14 -0
- package/dist/api/resources/assets/client/requests/ImportManifestRequest.d.ts +72 -0
- package/dist/api/resources/assets/client/requests/ImportManifestRequest.js +23 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +2 -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 +1 -0
- package/dist/api/resources/assets/types/ExportRbmAssetsResponse.d.ts +2 -0
- package/dist/api/resources/assets/types/ExportRbmAssetsResponse.js +3 -0
- package/dist/api/resources/assets/types/index.d.ts +1 -0
- package/dist/api/resources/assets/types/index.js +17 -0
- package/dist/api/resources/contexts/client/Client.d.ts +170 -0
- package/dist/api/resources/contexts/client/Client.js +555 -0
- package/dist/api/resources/contexts/client/index.d.ts +1 -0
- package/dist/api/resources/contexts/client/index.js +17 -0
- package/dist/api/resources/contexts/client/requests/CascadeContextsRequest.d.ts +16 -0
- package/dist/api/resources/contexts/client/requests/CascadeContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/DeleteContextsRequest.d.ts +13 -0
- package/dist/api/resources/contexts/client/requests/DeleteContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/ExecuteContextsRequest.d.ts +19 -0
- package/dist/api/resources/contexts/client/requests/ExecuteContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/GetContextsRequest.d.ts +13 -0
- package/dist/api/resources/contexts/client/requests/GetContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/GetHistoryContextsRequest.d.ts +17 -0
- package/dist/api/resources/contexts/client/requests/GetHistoryContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/GetPendingContextsRequest.d.ts +13 -0
- package/dist/api/resources/contexts/client/requests/GetPendingContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/SolveContextsRequest.d.ts +19 -0
- package/dist/api/resources/contexts/client/requests/SolveContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/SubmitContextsRequest.d.ts +19 -0
- package/dist/api/resources/contexts/client/requests/SubmitContextsRequest.js +3 -0
- package/dist/api/resources/contexts/client/requests/index.d.ts +8 -0
- package/dist/api/resources/contexts/client/requests/index.js +2 -0
- package/dist/api/resources/contexts/index.d.ts +2 -0
- package/dist/api/resources/contexts/index.js +18 -0
- package/dist/api/resources/contexts/resources/index.d.ts +4 -0
- package/dist/api/resources/contexts/resources/index.js +43 -0
- package/dist/api/resources/contexts/resources/objects/client/Client.d.ts +103 -0
- package/dist/api/resources/contexts/resources/objects/client/Client.js +354 -0
- package/dist/api/resources/contexts/resources/objects/client/index.d.ts +1 -0
- package/dist/api/resources/contexts/resources/objects/client/index.js +17 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/CreateContextRequest.d.ts +58 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/CreateContextRequest.js +12 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/DeleteObjectsRequest.d.ts +10 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/DeleteObjectsRequest.js +3 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/GetObjectsRequest.d.ts +10 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/GetObjectsRequest.js +3 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/UpdateContextRequest.d.ts +49 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/UpdateContextRequest.js +12 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/index.d.ts +4 -0
- package/dist/api/resources/contexts/resources/objects/client/requests/index.js +2 -0
- package/dist/api/resources/contexts/resources/objects/index.d.ts +1 -0
- package/dist/api/resources/contexts/resources/objects/index.js +17 -0
- package/dist/api/resources/contexts/resources/relationships/client/Client.d.ts +67 -0
- package/dist/api/resources/contexts/resources/relationships/client/Client.js +252 -0
- package/dist/api/resources/contexts/resources/relationships/client/index.d.ts +1 -0
- package/dist/api/resources/contexts/resources/relationships/client/index.js +17 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.d.ts +33 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/CreateRelationshipRequest.js +13 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.d.ts +13 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/DeleteRelationshipsRequest.js +3 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.d.ts +10 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/ListRelationshipsRequest.js +3 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/index.d.ts +3 -0
- package/dist/api/resources/contexts/resources/relationships/client/requests/index.js +2 -0
- package/dist/api/resources/contexts/resources/relationships/index.d.ts +1 -0
- package/dist/api/resources/contexts/resources/relationships/index.js +17 -0
- package/dist/api/resources/index.d.ts +4 -0
- package/dist/api/resources/index.js +8 -4
- package/dist/api/resources/users/client/Client.d.ts +5 -5
- package/dist/api/resources/users/client/Client.js +5 -5
- package/dist/api/resources/users/client/requests/CreateUserRequest.d.ts +3 -3
- package/dist/api/resources/users/client/requests/UserInviteRequest.d.ts +6 -6
- package/dist/api/resources/values/client/Client.d.ts +3 -3
- package/dist/api/resources/values/client/Client.js +3 -3
- package/dist/api/resources/values/client/requests/UpdateValuesRequest.d.ts +7 -7
- package/dist/api/types/CascadeContextRequest.d.ts +4 -0
- package/dist/api/types/CascadeContextRequest.js +3 -0
- package/dist/api/types/CascadeContextResponse.d.ts +10 -0
- package/dist/api/types/CascadeContextResponse.js +3 -0
- package/dist/api/types/CascadeResult.d.ts +29 -0
- package/dist/api/types/CascadeResult.js +12 -0
- package/dist/api/types/ContextBase.d.ts +33 -0
- package/dist/api/types/ContextBase.js +12 -0
- package/dist/api/types/ContextDetail.d.ts +58 -0
- package/dist/api/types/ContextDetail.js +3 -0
- package/dist/api/types/ContextInstanceHistory.d.ts +10 -0
- package/dist/api/types/ContextInstanceHistory.js +3 -0
- package/dist/api/types/ContextInstanceHistoryEntry.d.ts +9 -0
- package/dist/api/types/ContextInstanceHistoryEntry.js +3 -0
- package/dist/api/types/ContextInstancePendingEvaluation.d.ts +37 -0
- package/dist/api/types/ContextInstancePendingEvaluation.js +12 -0
- package/dist/api/types/ContextInstancePendingResponse.d.ts +8 -0
- package/dist/api/types/ContextInstancePendingResponse.js +3 -0
- package/dist/api/types/ContextInstanceState.d.ts +31 -0
- package/dist/api/types/ContextInstanceState.js +12 -0
- package/dist/api/types/ContextListItem.d.ts +24 -0
- package/dist/api/types/ContextListItem.js +3 -0
- package/dist/api/types/ContextListResponse.d.ts +2 -0
- package/dist/api/types/ContextListResponse.js +3 -0
- package/dist/api/types/ContextRelationshipBase.d.ts +23 -0
- package/dist/api/types/ContextRelationshipBase.js +13 -0
- package/dist/api/types/ContextRelationshipIncoming.d.ts +11 -0
- package/dist/api/types/ContextRelationshipIncoming.js +3 -0
- package/dist/api/types/ContextRelationshipOutgoing.d.ts +11 -0
- package/dist/api/types/ContextRelationshipOutgoing.js +3 -0
- package/dist/api/types/ContextRelationshipsResponse.d.ts +17 -0
- package/dist/api/types/ContextRelationshipsResponse.js +3 -0
- package/dist/api/types/ContextSchema.d.ts +10 -0
- package/dist/api/types/ContextSchema.js +3 -0
- package/dist/api/types/ContextSchemaField.d.ts +35 -0
- package/dist/api/types/ContextSchemaField.js +16 -0
- package/dist/api/types/CreateContextResponse.d.ts +2 -0
- package/dist/api/types/CreateContextResponse.js +3 -0
- package/dist/api/types/CreateRelationshipResponse.d.ts +2 -0
- package/dist/api/types/CreateRelationshipResponse.js +3 -0
- package/dist/api/types/CreateUserResponse.d.ts +3 -3
- package/dist/api/types/DecisionLog.d.ts +13 -4
- package/dist/api/types/DecisionLogResponse.d.ts +4 -4
- package/dist/api/types/DeleteContextInstanceResponse.d.ts +9 -0
- package/dist/api/types/DeleteContextInstanceResponse.js +3 -0
- package/dist/api/types/DeleteContextResponse.d.ts +13 -0
- package/dist/api/types/DeleteContextResponse.js +3 -0
- package/dist/api/types/DeleteRelationshipResponse.d.ts +6 -0
- package/dist/api/types/DeleteRelationshipResponse.js +3 -0
- package/dist/api/types/DynamicValue.d.ts +9 -3
- package/dist/api/types/ExportManifestPreviewResponse.d.ts +64 -0
- package/dist/api/types/ExportManifestPreviewResponse.js +3 -0
- package/dist/api/types/ExportManifestResponse.d.ts +30 -0
- package/dist/api/types/ExportManifestResponse.js +3 -0
- package/dist/api/types/FlowDetail.d.ts +28 -0
- package/dist/api/types/Folder.d.ts +5 -1
- package/dist/api/types/ImportManifestResponse.d.ts +66 -0
- package/dist/api/types/ImportManifestResponse.js +3 -0
- package/dist/api/types/RuleDetail.d.ts +17 -0
- package/dist/api/types/SchemaField.d.ts +2 -2
- package/dist/api/types/SolveContextFlowRequest.d.ts +4 -0
- package/dist/api/types/SolveContextFlowRequest.js +3 -0
- package/dist/api/types/SolveContextFlowResponse.d.ts +23 -0
- package/dist/api/types/SolveContextFlowResponse.js +12 -0
- package/dist/api/types/SolveContextRuleRequest.d.ts +4 -0
- package/dist/api/types/SolveContextRuleRequest.js +3 -0
- package/dist/api/types/SolveContextRuleResponse.d.ts +26 -0
- package/dist/api/types/SolveContextRuleResponse.js +12 -0
- package/dist/api/types/SubmitContextDataRequest.d.ts +4 -0
- package/dist/api/types/SubmitContextDataRequest.js +3 -0
- package/dist/api/types/SubmitContextDataResponse.d.ts +30 -0
- package/dist/api/types/SubmitContextDataResponse.js +12 -0
- package/dist/api/types/Test.d.ts +9 -9
- package/dist/api/types/UpdateContextResponse.d.ts +13 -0
- package/dist/api/types/UpdateContextResponse.js +3 -0
- package/dist/api/types/UsageStatistics.d.ts +10 -4
- package/dist/api/types/UserDetail.d.ts +4 -4
- package/dist/api/types/UserGroup.d.ts +2 -0
- package/dist/api/types/UserInviteResponse.d.ts +2 -2
- package/dist/api/types/index.d.ts +33 -0
- package/dist/api/types/index.js +33 -0
- package/dist/forge/values.d.ts +1 -1
- package/dist/forge/values.js +2 -2
- package/forge/values.d.ts +1 -1
- package/forge/values.js +2 -2
- package/package.json +1 -2
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as Rulebricks from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Summary of a context for listing. Uses counts instead of full arrays.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContextListItem extends Rulebricks.ContextBase {
|
|
6
|
+
/** The field key used as the unique identifier for instances. */
|
|
7
|
+
identity_fact?: string | null;
|
|
8
|
+
schema?: Rulebricks.ContextSchema;
|
|
9
|
+
folder?: ContextListItem.Folder | null;
|
|
10
|
+
/** Number of rules bound to this context. */
|
|
11
|
+
bound_rules_count?: number;
|
|
12
|
+
/** Number of flows bound to this context. */
|
|
13
|
+
bound_flows_count?: number;
|
|
14
|
+
/** Total number of relationships for this context. */
|
|
15
|
+
relationships_count?: number;
|
|
16
|
+
created_at?: string;
|
|
17
|
+
updated_at?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace ContextListItem {
|
|
20
|
+
interface Folder {
|
|
21
|
+
id?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface ContextRelationshipBase {
|
|
2
|
+
/** The unique identifier for the relationship. */
|
|
3
|
+
id?: string;
|
|
4
|
+
/** The type of relationship. */
|
|
5
|
+
type?: ContextRelationshipBase.Type;
|
|
6
|
+
/** The field key used as the foreign key. */
|
|
7
|
+
foreign_key?: string;
|
|
8
|
+
/** Display name for the relationship. */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** Description of the relationship. */
|
|
11
|
+
description?: string;
|
|
12
|
+
/** When the relationship was created. */
|
|
13
|
+
created_at?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare namespace ContextRelationshipBase {
|
|
16
|
+
/** The type of relationship. */
|
|
17
|
+
const Type: {
|
|
18
|
+
readonly HasMany: "has_many";
|
|
19
|
+
readonly HasOne: "has_one";
|
|
20
|
+
readonly BelongsTo: "belongs_to";
|
|
21
|
+
};
|
|
22
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
23
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ContextRelationshipBase = void 0;
|
|
5
|
+
var ContextRelationshipBase;
|
|
6
|
+
(function (ContextRelationshipBase) {
|
|
7
|
+
/** The type of relationship. */
|
|
8
|
+
ContextRelationshipBase.Type = {
|
|
9
|
+
HasMany: "has_many",
|
|
10
|
+
HasOne: "has_one",
|
|
11
|
+
BelongsTo: "belongs_to",
|
|
12
|
+
};
|
|
13
|
+
})(ContextRelationshipBase || (exports.ContextRelationshipBase = ContextRelationshipBase = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Rulebricks from "../index.js";
|
|
2
|
+
export interface ContextRelationshipIncoming extends Rulebricks.ContextRelationshipBase {
|
|
3
|
+
source_context?: ContextRelationshipIncoming.SourceContext;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace ContextRelationshipIncoming {
|
|
6
|
+
interface SourceContext {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
slug?: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Rulebricks from "../index.js";
|
|
2
|
+
export interface ContextRelationshipOutgoing extends Rulebricks.ContextRelationshipBase {
|
|
3
|
+
target_context?: ContextRelationshipOutgoing.TargetContext;
|
|
4
|
+
}
|
|
5
|
+
export declare namespace ContextRelationshipOutgoing {
|
|
6
|
+
interface TargetContext {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
slug?: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Rulebricks from "../index.js";
|
|
2
|
+
export interface ContextRelationshipsResponse {
|
|
3
|
+
/** The context these relationships belong to. */
|
|
4
|
+
context?: ContextRelationshipsResponse.Context;
|
|
5
|
+
outgoing?: Rulebricks.ContextRelationshipOutgoing[];
|
|
6
|
+
incoming?: Rulebricks.ContextRelationshipIncoming[];
|
|
7
|
+
}
|
|
8
|
+
export declare namespace ContextRelationshipsResponse {
|
|
9
|
+
/**
|
|
10
|
+
* The context these relationships belong to.
|
|
11
|
+
*/
|
|
12
|
+
interface Context {
|
|
13
|
+
id?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
slug?: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Rulebricks from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The schema definition for a context.
|
|
4
|
+
*/
|
|
5
|
+
export interface ContextSchema {
|
|
6
|
+
/** User-defined base fields for the context. */
|
|
7
|
+
base?: Rulebricks.ContextSchemaField[];
|
|
8
|
+
/** Fields derived from bound rule/flow outputs. */
|
|
9
|
+
derived?: Rulebricks.ContextSchemaField[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A field definition within a context schema.
|
|
3
|
+
*/
|
|
4
|
+
export interface ContextSchemaField {
|
|
5
|
+
/** The unique key for this field. */
|
|
6
|
+
key?: string;
|
|
7
|
+
/** Display name for this field. */
|
|
8
|
+
name?: string;
|
|
9
|
+
/** Description of this field. */
|
|
10
|
+
description?: string;
|
|
11
|
+
/** Data type of this field. 'function' type fields compute values dynamically. */
|
|
12
|
+
type?: ContextSchemaField.Type;
|
|
13
|
+
/** Default value for this field. */
|
|
14
|
+
default_value?: unknown | null;
|
|
15
|
+
/** Whether this field is derived from rule/flow outputs. */
|
|
16
|
+
derived?: boolean;
|
|
17
|
+
/** The rule ID that derives this field (if derived). */
|
|
18
|
+
source_rule?: string | null;
|
|
19
|
+
/** The flow ID that derives this field (if derived). */
|
|
20
|
+
source_flow?: string | null;
|
|
21
|
+
/** The source field key in the rule/flow output. */
|
|
22
|
+
source_field?: string | null;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace ContextSchemaField {
|
|
25
|
+
/** Data type of this field. 'function' type fields compute values dynamically. */
|
|
26
|
+
const Type: {
|
|
27
|
+
readonly String: "string";
|
|
28
|
+
readonly Number: "number";
|
|
29
|
+
readonly Boolean: "boolean";
|
|
30
|
+
readonly Date: "date";
|
|
31
|
+
readonly List: "list";
|
|
32
|
+
readonly Function: "function";
|
|
33
|
+
};
|
|
34
|
+
type Type = (typeof Type)[keyof typeof Type];
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ContextSchemaField = void 0;
|
|
5
|
+
var ContextSchemaField;
|
|
6
|
+
(function (ContextSchemaField) {
|
|
7
|
+
/** Data type of this field. 'function' type fields compute values dynamically. */
|
|
8
|
+
ContextSchemaField.Type = {
|
|
9
|
+
String: "string",
|
|
10
|
+
Number: "number",
|
|
11
|
+
Boolean: "boolean",
|
|
12
|
+
Date: "date",
|
|
13
|
+
List: "list",
|
|
14
|
+
Function: "function",
|
|
15
|
+
};
|
|
16
|
+
})(ContextSchemaField || (exports.ContextSchemaField = ContextSchemaField = {}));
|
|
@@ -18,9 +18,9 @@ export declare namespace CreateUserResponse {
|
|
|
18
18
|
name?: string | null;
|
|
19
19
|
/** Role assigned to the user. */
|
|
20
20
|
role?: string;
|
|
21
|
-
/**
|
|
22
|
-
|
|
21
|
+
/** User groups assigned to the user. */
|
|
22
|
+
user_groups?: string[];
|
|
23
23
|
/** API key generated for the user. */
|
|
24
|
-
|
|
24
|
+
api_key?: string | null;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Rulebricks from "../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* Rule/flow execution log entry with request, response, and decision details.
|
|
3
4
|
*/
|
|
@@ -10,14 +11,22 @@ export interface DecisionLog {
|
|
|
10
11
|
endpoint?: string | null;
|
|
11
12
|
/** HTTP status code of the response. */
|
|
12
13
|
status?: number | null;
|
|
13
|
-
/** The request payload sent to the rule/flow. */
|
|
14
|
-
request?:
|
|
15
|
-
/** The response payload returned by the rule/flow. */
|
|
16
|
-
response?:
|
|
14
|
+
/** The request payload sent to the rule/flow. Can be an object for single requests or an array for bulk operations. */
|
|
15
|
+
request?: DecisionLog.Request | null;
|
|
16
|
+
/** The response payload returned by the rule/flow. Can be an object for single responses or an array for bulk operations. */
|
|
17
|
+
response?: Rulebricks.DecisionLogResponse | null;
|
|
17
18
|
/** Decision details including matched conditions, rows, and evaluation metadata. */
|
|
18
19
|
decision?: Record<string, unknown> | null;
|
|
19
20
|
/** Error message if the execution failed. */
|
|
20
21
|
error?: string | null;
|
|
21
22
|
/** Whether the request/response data was truncated due to size limits. */
|
|
22
23
|
abbreviated?: boolean;
|
|
24
|
+
/** Accepts any additional properties */
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace DecisionLog {
|
|
28
|
+
/**
|
|
29
|
+
* The request payload sent to the rule/flow. Can be an object for single requests or an array for bulk operations.
|
|
30
|
+
*/
|
|
31
|
+
type Request = Record<string, unknown> | Record<string, unknown>[];
|
|
23
32
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type * as Rulebricks from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Response containing decision logs or a count.
|
|
3
|
+
* Response containing decision logs or a count. Returns either {data, cursor} for log queries OR {count} for count queries - these are mutually exclusive based on the count parameter.
|
|
4
4
|
*/
|
|
5
5
|
export interface DecisionLogResponse {
|
|
6
|
-
/** Array of decision log entries
|
|
6
|
+
/** Array of decision log entries. Only present when count parameter is not 'true'. */
|
|
7
7
|
data?: Rulebricks.DecisionLog[];
|
|
8
|
-
/** Pagination cursor for fetching the next page. Null if no more results. */
|
|
8
|
+
/** Pagination cursor for fetching the next page. Null if no more results. Only present when count parameter is not 'true'. */
|
|
9
9
|
cursor?: string | null;
|
|
10
|
-
/** Total count of matching logs
|
|
10
|
+
/** Total count of matching logs. Only present when count parameter is 'true'. When this is returned, data and cursor are not included. */
|
|
11
11
|
count?: number;
|
|
12
12
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response after deleting a context instance.
|
|
3
|
+
*/
|
|
4
|
+
export interface DeleteContextInstanceResponse {
|
|
5
|
+
/** Success message. */
|
|
6
|
+
message?: string;
|
|
7
|
+
/** Number of pending evaluations that were cancelled when the instance was deleted. */
|
|
8
|
+
pending_evaluations_cancelled?: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response after deleting a context.
|
|
3
|
+
*/
|
|
4
|
+
export interface DeleteContextResponse {
|
|
5
|
+
/** Success message. */
|
|
6
|
+
message?: string;
|
|
7
|
+
/** Slugs of rules that were unbound from the deleted context. */
|
|
8
|
+
unbound_rules?: string[];
|
|
9
|
+
/** Slugs of flows that were unbound from the deleted context. */
|
|
10
|
+
unbound_flows?: string[];
|
|
11
|
+
/** Number of pending evaluations that were cancelled when the context was deleted. */
|
|
12
|
+
pending_evaluations_cancelled?: number;
|
|
13
|
+
}
|
|
@@ -7,9 +7,15 @@ export interface DynamicValue {
|
|
|
7
7
|
/** Type identifier for the value (e.g., 'string', 'number', 'boolean', 'list', 'function', etc.) */
|
|
8
8
|
type: string;
|
|
9
9
|
/** The actual value - can be any valid JSON type */
|
|
10
|
-
value?:
|
|
10
|
+
value?: DynamicValue.Value;
|
|
11
11
|
/** Rules that use this dynamic value (only included when 'include=usage' parameter is used). */
|
|
12
12
|
usages?: Rulebricks.RuleUsage[];
|
|
13
|
-
/**
|
|
14
|
-
|
|
13
|
+
/** User groups assigned to this value. */
|
|
14
|
+
user_groups?: string[];
|
|
15
|
+
}
|
|
16
|
+
export declare namespace DynamicValue {
|
|
17
|
+
/**
|
|
18
|
+
* The actual value - can be any valid JSON type
|
|
19
|
+
*/
|
|
20
|
+
type Value = string | number | boolean | unknown[] | Record<string, unknown>;
|
|
15
21
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export interface ExportManifestPreviewResponse {
|
|
2
|
+
/** Whether the preview completed successfully. */
|
|
3
|
+
success?: boolean;
|
|
4
|
+
/** Preview of assets that would be exported. */
|
|
5
|
+
preview?: ExportManifestPreviewResponse.Preview;
|
|
6
|
+
/** Error message if preview failed. */
|
|
7
|
+
error?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace ExportManifestPreviewResponse {
|
|
10
|
+
/**
|
|
11
|
+
* Preview of assets that would be exported.
|
|
12
|
+
*/
|
|
13
|
+
interface Preview {
|
|
14
|
+
counts?: Preview.Counts;
|
|
15
|
+
items?: Preview.Items;
|
|
16
|
+
}
|
|
17
|
+
namespace Preview {
|
|
18
|
+
interface Counts {
|
|
19
|
+
rules?: number;
|
|
20
|
+
flows?: number;
|
|
21
|
+
contexts?: number;
|
|
22
|
+
values?: number;
|
|
23
|
+
}
|
|
24
|
+
interface Items {
|
|
25
|
+
rules?: Items.Rules.Item[];
|
|
26
|
+
flows?: Items.Flows.Item[];
|
|
27
|
+
contexts?: Items.Contexts.Item[];
|
|
28
|
+
values?: Items.Values.Item[];
|
|
29
|
+
}
|
|
30
|
+
namespace Items {
|
|
31
|
+
type Rules = Rules.Item[];
|
|
32
|
+
namespace Rules {
|
|
33
|
+
interface Item {
|
|
34
|
+
id?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
slug?: string;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
type Flows = Flows.Item[];
|
|
40
|
+
namespace Flows {
|
|
41
|
+
interface Item {
|
|
42
|
+
id?: string;
|
|
43
|
+
name?: string;
|
|
44
|
+
slug?: string;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
type Contexts = Contexts.Item[];
|
|
48
|
+
namespace Contexts {
|
|
49
|
+
interface Item {
|
|
50
|
+
id?: string;
|
|
51
|
+
name?: string;
|
|
52
|
+
slug?: string;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
type Values = Values.Item[];
|
|
56
|
+
namespace Values {
|
|
57
|
+
interface Item {
|
|
58
|
+
id?: string;
|
|
59
|
+
name?: string;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface ExportManifestResponse {
|
|
2
|
+
/** Whether the export completed successfully. */
|
|
3
|
+
success?: boolean;
|
|
4
|
+
/** The exported manifest data. */
|
|
5
|
+
manifest?: ExportManifestResponse.Manifest;
|
|
6
|
+
/** Error message if export failed. */
|
|
7
|
+
error?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace ExportManifestResponse {
|
|
10
|
+
/**
|
|
11
|
+
* The exported manifest data.
|
|
12
|
+
*/
|
|
13
|
+
interface Manifest {
|
|
14
|
+
/** Manifest format version. */
|
|
15
|
+
version?: string;
|
|
16
|
+
/** Manifest name. */
|
|
17
|
+
name?: string;
|
|
18
|
+
/** Manifest description. */
|
|
19
|
+
description?: string;
|
|
20
|
+
exported_at?: string;
|
|
21
|
+
/** Exported contexts. */
|
|
22
|
+
contexts?: Record<string, unknown>[];
|
|
23
|
+
/** Exported dynamic values. */
|
|
24
|
+
values?: Record<string, unknown>[];
|
|
25
|
+
/** Exported rules. */
|
|
26
|
+
rules?: Record<string, unknown>[];
|
|
27
|
+
/** Exported flows. */
|
|
28
|
+
flows?: Record<string, unknown>[];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -4,4 +4,32 @@ export interface FlowDetail extends Rulebricks.FlowBase {
|
|
|
4
4
|
published?: boolean;
|
|
5
5
|
/** The date this flow was last updated. */
|
|
6
6
|
updated_at?: string;
|
|
7
|
+
/** The origin rule that this flow starts from. Flows execute starting from this rule's outputs. */
|
|
8
|
+
origin_rule?: FlowDetail.OriginRule | null;
|
|
9
|
+
/** The context this flow is bound to (via its origin rule). Flows inherit context binding from their origin rule. */
|
|
10
|
+
context?: FlowDetail.Context | null;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace FlowDetail {
|
|
13
|
+
/**
|
|
14
|
+
* The origin rule that this flow starts from. Flows execute starting from this rule's outputs.
|
|
15
|
+
*/
|
|
16
|
+
interface OriginRule {
|
|
17
|
+
/** The origin rule ID. */
|
|
18
|
+
id?: string;
|
|
19
|
+
/** The origin rule name. */
|
|
20
|
+
name?: string;
|
|
21
|
+
/** The origin rule slug. */
|
|
22
|
+
slug?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The context this flow is bound to (via its origin rule). Flows inherit context binding from their origin rule.
|
|
26
|
+
*/
|
|
27
|
+
interface Context {
|
|
28
|
+
/** The context ID. */
|
|
29
|
+
id?: string;
|
|
30
|
+
/** The context name. */
|
|
31
|
+
name?: string;
|
|
32
|
+
/** The context slug. */
|
|
33
|
+
slug?: string;
|
|
34
|
+
}
|
|
7
35
|
}
|
package/api/types/Folder.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ export interface Folder {
|
|
|
5
5
|
name?: string;
|
|
6
6
|
/** Description of the folder. */
|
|
7
7
|
description?: string;
|
|
8
|
+
/** Timestamp of when the folder was created. */
|
|
9
|
+
created_at?: string;
|
|
8
10
|
/** Timestamp of when the folder was last updated. */
|
|
9
|
-
|
|
11
|
+
updated_at?: string;
|
|
12
|
+
/** User groups that can view this folder. */
|
|
13
|
+
user_groups?: string[];
|
|
10
14
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export interface ImportManifestResponse {
|
|
2
|
+
/** Whether the import completed successfully. */
|
|
3
|
+
success?: boolean;
|
|
4
|
+
/** Assets that were created during import. */
|
|
5
|
+
created?: ImportManifestResponse.Created.Item[];
|
|
6
|
+
/** Assets that were updated during import. */
|
|
7
|
+
updated?: ImportManifestResponse.Updated.Item[];
|
|
8
|
+
/** Assets that were skipped during import. */
|
|
9
|
+
skipped?: ImportManifestResponse.Skipped.Item[];
|
|
10
|
+
/** Any errors encountered during import. */
|
|
11
|
+
errors?: ImportManifestResponse.Errors.Item[];
|
|
12
|
+
/** Non-fatal warnings from import validation. */
|
|
13
|
+
warnings?: string[];
|
|
14
|
+
/** IDs of any organizational folders created during import. */
|
|
15
|
+
organization_created?: ImportManifestResponse.OrganizationCreated | null;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace ImportManifestResponse {
|
|
18
|
+
type Created = Created.Item[];
|
|
19
|
+
namespace Created {
|
|
20
|
+
interface Item {
|
|
21
|
+
/** Asset type (context, value, rule, flow, relationship). */
|
|
22
|
+
type?: string;
|
|
23
|
+
/** Stable ID of asset. */
|
|
24
|
+
stable_id?: string;
|
|
25
|
+
/** Database ID of asset. */
|
|
26
|
+
db_id?: string;
|
|
27
|
+
/** Import status. */
|
|
28
|
+
status?: string;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
type Updated = Updated.Item[];
|
|
32
|
+
namespace Updated {
|
|
33
|
+
interface Item {
|
|
34
|
+
type?: string;
|
|
35
|
+
stable_id?: string;
|
|
36
|
+
db_id?: string;
|
|
37
|
+
status?: string;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
type Skipped = Skipped.Item[];
|
|
41
|
+
namespace Skipped {
|
|
42
|
+
interface Item {
|
|
43
|
+
type?: string;
|
|
44
|
+
stable_id?: string;
|
|
45
|
+
status?: string;
|
|
46
|
+
reason?: string;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
type Errors = Errors.Item[];
|
|
50
|
+
namespace Errors {
|
|
51
|
+
interface Item {
|
|
52
|
+
type?: string;
|
|
53
|
+
stable_id?: string;
|
|
54
|
+
status?: string;
|
|
55
|
+
reason?: string;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* IDs of any organizational folders created during import.
|
|
60
|
+
*/
|
|
61
|
+
interface OrganizationCreated {
|
|
62
|
+
entity_set_id?: string | null;
|
|
63
|
+
rule_tag_id?: string | null;
|
|
64
|
+
flow_tag_id?: string | null;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -2,9 +2,26 @@ import type * as Rulebricks from "../index.js";
|
|
|
2
2
|
export interface RuleDetail extends Rulebricks.RuleBase {
|
|
3
3
|
/** The date this rule was created. */
|
|
4
4
|
created_at?: string;
|
|
5
|
+
/** The date this rule was last updated. */
|
|
6
|
+
updated_at?: string;
|
|
5
7
|
folder?: Rulebricks.Folder;
|
|
8
|
+
/** The context this rule is bound to (if any). Rules bound to a context have their inputs/outputs mapped to context fields. */
|
|
9
|
+
context?: RuleDetail.Context | null;
|
|
6
10
|
/** The published request schema for the rule. */
|
|
7
11
|
request_schema?: Rulebricks.SchemaField[];
|
|
8
12
|
/** The published response schema for the rule. */
|
|
9
13
|
response_schema?: Rulebricks.SchemaField[];
|
|
10
14
|
}
|
|
15
|
+
export declare namespace RuleDetail {
|
|
16
|
+
/**
|
|
17
|
+
* The context this rule is bound to (if any). Rules bound to a context have their inputs/outputs mapped to context fields.
|
|
18
|
+
*/
|
|
19
|
+
interface Context {
|
|
20
|
+
/** The context ID. */
|
|
21
|
+
id?: string;
|
|
22
|
+
/** The context name. */
|
|
23
|
+
name?: string;
|
|
24
|
+
/** The context slug. */
|
|
25
|
+
slug?: string;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -10,9 +10,9 @@ export interface SchemaField {
|
|
|
10
10
|
/** Data type of this field. */
|
|
11
11
|
type?: SchemaField.Type;
|
|
12
12
|
/** Default value for this field. */
|
|
13
|
-
|
|
13
|
+
default_value?: SchemaField.DefaultValue | null;
|
|
14
14
|
/** Computed default value for this field. */
|
|
15
|
-
|
|
15
|
+
default_computed_value?: string | null;
|
|
16
16
|
/** Transformation expression to apply to this field. */
|
|
17
17
|
transform?: string;
|
|
18
18
|
}
|