@botpress/api 0.43.1 → 0.44.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/dist/index.js CHANGED
@@ -283245,6 +283245,13 @@ var state = {
283245
283245
  "status": {
283246
283246
  "in": "query",
283247
283247
  "type": "string",
283248
+ "enum": [
283249
+ "pending",
283250
+ "ignored",
283251
+ "processed",
283252
+ "failed",
283253
+ "scheduled"
283254
+ ],
283248
283255
  "description": "Filter by status. Allowed values: pending, ignored, processed, failed."
283249
283256
  }
283250
283257
  },
@@ -283927,7 +283934,8 @@ var state = {
283927
283934
  "user",
283928
283935
  "bot",
283929
283936
  "integration",
283930
- "task"
283937
+ "task",
283938
+ "workflow"
283931
283939
  ]
283932
283940
  },
283933
283941
  "id": {
@@ -283994,7 +284002,8 @@ var state = {
283994
284002
  "user",
283995
284003
  "bot",
283996
284004
  "integration",
283997
- "task"
284005
+ "task",
284006
+ "workflow"
283998
284007
  ]
283999
284008
  },
284000
284009
  "id": {
@@ -284054,7 +284063,8 @@ var state = {
284054
284063
  "user",
284055
284064
  "bot",
284056
284065
  "integration",
284057
- "task"
284066
+ "task",
284067
+ "workflow"
284058
284068
  ]
284059
284069
  },
284060
284070
  "id": {
@@ -284127,7 +284137,8 @@ var state = {
284127
284137
  "user",
284128
284138
  "bot",
284129
284139
  "integration",
284130
- "task"
284140
+ "task",
284141
+ "workflow"
284131
284142
  ]
284132
284143
  },
284133
284144
  "id": {
@@ -284212,7 +284223,8 @@ var state = {
284212
284223
  "user",
284213
284224
  "bot",
284214
284225
  "integration",
284215
- "task"
284226
+ "task",
284227
+ "workflow"
284216
284228
  ]
284217
284229
  },
284218
284230
  "id": {
@@ -284664,6 +284676,393 @@ var state = {
284664
284676
  }
284665
284677
  }
284666
284678
  },
284679
+ "createWorkflow": {
284680
+ "name": "createWorkflow",
284681
+ "description": "Creates a new [Workflow](#schema_workflow).",
284682
+ "method": "post",
284683
+ "path": "/v1/chat/workflows",
284684
+ "requestBody": {
284685
+ "description": "Workflow data",
284686
+ "schema": {
284687
+ "type": "object",
284688
+ "properties": {
284689
+ "name": {
284690
+ "type": "string",
284691
+ "description": "Name of the workflow"
284692
+ },
284693
+ "input": {
284694
+ "type": "object",
284695
+ "additionalProperties": true,
284696
+ "description": "Content related to the workflow"
284697
+ },
284698
+ "parentWorkflowId": {
284699
+ "type": "string",
284700
+ "description": "Parent workflow id is the parent workflow that created this workflow"
284701
+ },
284702
+ "conversationId": {
284703
+ "type": "string",
284704
+ "description": "Conversation id related to this workflow"
284705
+ },
284706
+ "userId": {
284707
+ "type": "string",
284708
+ "description": "Specific user related to this workflow"
284709
+ },
284710
+ "timeoutAt": {
284711
+ "type": "string",
284712
+ "format": "date-time",
284713
+ "description": "The timeout date where the workflow should be failed in the ISO 8601 format"
284714
+ },
284715
+ "tags": {
284716
+ "type": "object",
284717
+ "additionalProperties": {
284718
+ "type": "string",
284719
+ "maxLength": 500
284720
+ },
284721
+ "description": "Tags for the [Workflow](#schema_workflow)"
284722
+ },
284723
+ "status": {
284724
+ "type": "string",
284725
+ "enum": [
284726
+ "pending",
284727
+ "in_progress"
284728
+ ]
284729
+ },
284730
+ "eventId": {
284731
+ "type": "string",
284732
+ "description": "Event id must be specified if the workflow is created with the status in_progress"
284733
+ }
284734
+ },
284735
+ "required": [
284736
+ "name",
284737
+ "status"
284738
+ ],
284739
+ "title": "createWorkflowBody",
284740
+ "additionalProperties": false
284741
+ }
284742
+ },
284743
+ "section": "workflow",
284744
+ "response": {
284745
+ "description": "Returns a [Workflow](#schema_workflow) object if creation succeeds. Returns an [Error](#errors) otherwise",
284746
+ "status": 201,
284747
+ "schema": {
284748
+ "type": "object",
284749
+ "properties": {
284750
+ "workflow": {
284751
+ "$ref": "#/components/schemas/Workflow"
284752
+ }
284753
+ },
284754
+ "required": [
284755
+ "workflow"
284756
+ ],
284757
+ "title": "createWorkflowResponse",
284758
+ "additionalProperties": false
284759
+ }
284760
+ },
284761
+ "parameters": {}
284762
+ },
284763
+ "getWorkflow": {
284764
+ "name": "getWorkflow",
284765
+ "description": "Retrieves the [Workflow](#schema_workflow) object for a valid identifier.",
284766
+ "method": "get",
284767
+ "path": "/v1/chat/workflows/{id}",
284768
+ "parameters": {
284769
+ "id": {
284770
+ "in": "path",
284771
+ "type": "string",
284772
+ "description": "Workflow id"
284773
+ }
284774
+ },
284775
+ "section": "workflow",
284776
+ "response": {
284777
+ "description": "Returns a [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
284778
+ "schema": {
284779
+ "type": "object",
284780
+ "properties": {
284781
+ "workflow": {
284782
+ "$ref": "#/components/schemas/Workflow"
284783
+ }
284784
+ },
284785
+ "required": [
284786
+ "workflow"
284787
+ ],
284788
+ "title": "getWorkflowResponse",
284789
+ "additionalProperties": false
284790
+ }
284791
+ }
284792
+ },
284793
+ "updateWorkflow": {
284794
+ "name": "updateWorkflow",
284795
+ "description": "Update a [Workflow](#schema_workflow) object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.",
284796
+ "method": "put",
284797
+ "path": "/v1/chat/workflows/{id}",
284798
+ "parameters": {
284799
+ "id": {
284800
+ "in": "path",
284801
+ "type": "string",
284802
+ "description": "Workflow id"
284803
+ }
284804
+ },
284805
+ "requestBody": {
284806
+ "description": "Workflow data",
284807
+ "schema": {
284808
+ "type": "object",
284809
+ "properties": {
284810
+ "output": {
284811
+ "type": "object",
284812
+ "additionalProperties": true,
284813
+ "description": "Content related to the workflow"
284814
+ },
284815
+ "timeoutAt": {
284816
+ "type": "string",
284817
+ "format": "date-time",
284818
+ "description": "The timeout date where the workflow should be failed in the ISO 8601 format"
284819
+ },
284820
+ "status": {
284821
+ "type": "string",
284822
+ "enum": [
284823
+ "completed",
284824
+ "cancelled",
284825
+ "listening",
284826
+ "paused",
284827
+ "failed"
284828
+ ],
284829
+ "description": "Status of the workflow"
284830
+ },
284831
+ "failureReason": {
284832
+ "type": "string",
284833
+ "description": "Reason why the workflow failed"
284834
+ },
284835
+ "tags": {
284836
+ "type": "object",
284837
+ "additionalProperties": {
284838
+ "type": "string",
284839
+ "maxLength": 500
284840
+ },
284841
+ "description": "Tags for the [Workflow](#schema_workflow)"
284842
+ },
284843
+ "userId": {
284844
+ "type": "string",
284845
+ "description": "Specific user related to this workflow"
284846
+ }
284847
+ },
284848
+ "title": "updateWorkflowBody",
284849
+ "additionalProperties": false
284850
+ }
284851
+ },
284852
+ "section": "workflow",
284853
+ "response": {
284854
+ "description": "Returns an updated [Workflow](#schema_workflow) object if a valid identifier was provided. Returns an [Error](#errors) otherwise",
284855
+ "schema": {
284856
+ "type": "object",
284857
+ "properties": {
284858
+ "workflow": {
284859
+ "$ref": "#/components/schemas/Workflow"
284860
+ }
284861
+ },
284862
+ "required": [
284863
+ "workflow"
284864
+ ],
284865
+ "title": "updateWorkflowResponse",
284866
+ "additionalProperties": false
284867
+ }
284868
+ }
284869
+ },
284870
+ "deleteWorkflow": {
284871
+ "name": "deleteWorkflow",
284872
+ "description": "Permanently deletes a [Workflow](#schema_workflow). It cannot be undone.",
284873
+ "method": "delete",
284874
+ "path": "/v1/chat/workflows/{id}",
284875
+ "parameters": {
284876
+ "id": {
284877
+ "in": "path",
284878
+ "type": "string",
284879
+ "description": "Workflow id"
284880
+ }
284881
+ },
284882
+ "section": "workflow",
284883
+ "response": {
284884
+ "description": "Returns the [Workflow](#schema_workflow) object that was deleted",
284885
+ "schema": {
284886
+ "type": "object",
284887
+ "title": "deleteWorkflowResponse",
284888
+ "additionalProperties": false
284889
+ }
284890
+ }
284891
+ },
284892
+ "listWorkflows": {
284893
+ "name": "listWorkflows",
284894
+ "description": "Retrieves a list of [Workflow](#schema_workflow) you've previously created. The workflows are returned in sorted order, with the most recent appearing first. The list can be filtered using [Tags](/docs/developers/concepts/tags).",
284895
+ "method": "get",
284896
+ "path": "/v1/chat/workflows",
284897
+ "parameters": {
284898
+ "nextToken": {
284899
+ "in": "query",
284900
+ "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
284901
+ "type": "string"
284902
+ },
284903
+ "tags": {
284904
+ "in": "query",
284905
+ "type": "object",
284906
+ "schema": {
284907
+ "type": "object",
284908
+ "additionalProperties": {
284909
+ "type": "string"
284910
+ }
284911
+ },
284912
+ "description": "Filter by tags"
284913
+ },
284914
+ "conversationId": {
284915
+ "in": "query",
284916
+ "type": "string",
284917
+ "description": "Conversation id"
284918
+ },
284919
+ "userId": {
284920
+ "in": "query",
284921
+ "type": "string",
284922
+ "description": "User id"
284923
+ },
284924
+ "parentWorkflowId": {
284925
+ "in": "query",
284926
+ "type": "string",
284927
+ "description": "Parent workflow id"
284928
+ },
284929
+ "statuses": {
284930
+ "in": "query",
284931
+ "type": "string[]",
284932
+ "description": "Status",
284933
+ "enum": [
284934
+ "pending",
284935
+ "in_progress",
284936
+ "failed",
284937
+ "completed",
284938
+ "listening",
284939
+ "paused",
284940
+ "timedout",
284941
+ "cancelled"
284942
+ ]
284943
+ },
284944
+ "name": {
284945
+ "in": "query",
284946
+ "description": "Workflow name",
284947
+ "type": "string"
284948
+ }
284949
+ },
284950
+ "section": "workflow",
284951
+ "response": {
284952
+ "description": "Returns a list of [Workflow](#schema_workflow) objects",
284953
+ "schema": {
284954
+ "type": "object",
284955
+ "properties": {
284956
+ "workflows": {
284957
+ "type": "array",
284958
+ "items": {
284959
+ "$ref": "#/components/schemas/Workflow"
284960
+ }
284961
+ },
284962
+ "meta": {
284963
+ "type": "object",
284964
+ "properties": {
284965
+ "nextToken": {
284966
+ "type": "string",
284967
+ "description": "The token to use to retrieve the next page of results, passed as a query string parameter (value should be URL-encoded) to this API endpoint."
284968
+ }
284969
+ },
284970
+ "additionalProperties": false
284971
+ }
284972
+ },
284973
+ "required": [
284974
+ "workflows",
284975
+ "meta"
284976
+ ],
284977
+ "title": "listWorkflowsResponse",
284978
+ "additionalProperties": false
284979
+ }
284980
+ }
284981
+ },
284982
+ "getOrCreateWorkflow": {
284983
+ "name": "getOrCreateWorkflow",
284984
+ "description": "Get a workflow by tags or creates a new [Workflow](#schema_workflow) if it doesn't exists.",
284985
+ "method": "post",
284986
+ "path": "/v1/chat/workflows/get-or-create",
284987
+ "requestBody": {
284988
+ "description": "Workflow data",
284989
+ "schema": {
284990
+ "type": "object",
284991
+ "properties": {
284992
+ "name": {
284993
+ "type": "string",
284994
+ "description": "Name of the workflow"
284995
+ },
284996
+ "input": {
284997
+ "type": "object",
284998
+ "additionalProperties": true,
284999
+ "description": "Content related to the workflow"
285000
+ },
285001
+ "parentWorkflowId": {
285002
+ "type": "string",
285003
+ "description": "Parent workflow id is the parent workflow that created this workflow"
285004
+ },
285005
+ "conversationId": {
285006
+ "type": "string",
285007
+ "description": "Conversation id related to this workflow"
285008
+ },
285009
+ "userId": {
285010
+ "type": "string",
285011
+ "description": "Specific user related to this workflow"
285012
+ },
285013
+ "timeoutAt": {
285014
+ "type": "string",
285015
+ "format": "date-time",
285016
+ "description": "The timeout date where the workflow should be failed in the ISO 8601 format"
285017
+ },
285018
+ "tags": {
285019
+ "type": "object",
285020
+ "additionalProperties": {
285021
+ "type": "string",
285022
+ "maxLength": 500
285023
+ },
285024
+ "description": "Tags for the [Workflow](#schema_workflow)"
285025
+ },
285026
+ "status": {
285027
+ "type": "string",
285028
+ "enum": [
285029
+ "pending",
285030
+ "in_progress"
285031
+ ]
285032
+ },
285033
+ "eventId": {
285034
+ "type": "string",
285035
+ "description": "Event id must be specified if the workflow is created with the status in_progress"
285036
+ }
285037
+ },
285038
+ "required": [
285039
+ "name",
285040
+ "status"
285041
+ ],
285042
+ "title": "getOrCreateWorkflowBody",
285043
+ "additionalProperties": false
285044
+ }
285045
+ },
285046
+ "section": "workflow",
285047
+ "response": {
285048
+ "description": "Returns a [Workflow](#schema_workflow) object if creation succeeds. Returns an [Error](#errors) otherwise",
285049
+ "status": 200,
285050
+ "schema": {
285051
+ "type": "object",
285052
+ "properties": {
285053
+ "workflow": {
285054
+ "$ref": "#/components/schemas/Workflow"
285055
+ }
285056
+ },
285057
+ "required": [
285058
+ "workflow"
285059
+ ],
285060
+ "title": "getOrCreateWorkflowResponse",
285061
+ "additionalProperties": false
285062
+ }
285063
+ },
285064
+ "parameters": {}
285065
+ },
284667
285066
  "trackAnalytics": {
284668
285067
  "name": "trackAnalytics",
284669
285068
  "description": "Add an event to the analytics",
@@ -292292,6 +292691,97 @@ var state = {
292292
292691
  }
292293
292692
  }
292294
292693
  },
292694
+ "listUsageActivity": {
292695
+ "name": "listUsageActivity",
292696
+ "path": "/v1/admin/usages/{id}/activity",
292697
+ "method": "get",
292698
+ "description": "List the usage activity for a given usage type and ID. The most recent activity is listed first.",
292699
+ "parameters": {
292700
+ "type": {
292701
+ "in": "query",
292702
+ "description": "Usage type",
292703
+ "type": "string",
292704
+ "enum": [
292705
+ "invocation_timeout",
292706
+ "invocation_calls",
292707
+ "storage_count",
292708
+ "bot_count",
292709
+ "knowledgebase_vector_storage",
292710
+ "workspace_ratelimit",
292711
+ "table_row_count",
292712
+ "workspace_member_count",
292713
+ "integrations_owned_count",
292714
+ "ai_spend",
292715
+ "openai_spend",
292716
+ "bing_search_spend",
292717
+ "always_alive"
292718
+ ],
292719
+ "required": true
292720
+ },
292721
+ "id": {
292722
+ "type": "string",
292723
+ "description": 'ID of a bot or a workspace, depending on the "type" parameter',
292724
+ "in": "path"
292725
+ },
292726
+ "nextToken": {
292727
+ "in": "query",
292728
+ "description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
292729
+ "type": "string"
292730
+ }
292731
+ },
292732
+ "response": {
292733
+ "description": "Success",
292734
+ "schema": {
292735
+ "type": "object",
292736
+ "properties": {
292737
+ "data": {
292738
+ "type": "array",
292739
+ "items": {
292740
+ "type": "object",
292741
+ "properties": {
292742
+ "timestamp": {
292743
+ "type": "string"
292744
+ },
292745
+ "value": {
292746
+ "type": "number"
292747
+ },
292748
+ "period": {
292749
+ "type": "string"
292750
+ },
292751
+ "metadata": {
292752
+ "type": "object",
292753
+ "additionalProperties": {
292754
+ "nullable": true
292755
+ }
292756
+ }
292757
+ },
292758
+ "required": [
292759
+ "timestamp",
292760
+ "value",
292761
+ "period",
292762
+ "metadata"
292763
+ ]
292764
+ }
292765
+ },
292766
+ "meta": {
292767
+ "type": "object",
292768
+ "properties": {
292769
+ "nextToken": {
292770
+ "type": "string"
292771
+ }
292772
+ },
292773
+ "additionalProperties": false
292774
+ }
292775
+ },
292776
+ "required": [
292777
+ "data",
292778
+ "meta"
292779
+ ],
292780
+ "title": "listUsageActivityResponse",
292781
+ "additionalProperties": false
292782
+ }
292783
+ }
292784
+ },
292295
292785
  "changeAISpendQuota": {
292296
292786
  "name": "changeAISpendQuota",
292297
292787
  "path": "/v1/admin/quotas/ai-spend",
@@ -294232,7 +294722,7 @@ var state = {
294232
294722
  "title": "Botpress API",
294233
294723
  "description": "API for Botpress Cloud",
294234
294724
  "server": "https://api.botpress.cloud",
294235
- "version": "0.43.1",
294725
+ "version": "0.44.0",
294236
294726
  "prefix": "v1"
294237
294727
  },
294238
294728
  "errors": [
@@ -294379,6 +294869,9 @@ var state = {
294379
294869
  "configureIntegrationBody": true,
294380
294870
  "createTaskBody": true,
294381
294871
  "updateTaskBody": true,
294872
+ "createWorkflowBody": true,
294873
+ "updateWorkflowBody": true,
294874
+ "getOrCreateWorkflowBody": true,
294382
294875
  "trackAnalyticsBody": true,
294383
294876
  "runVrlBody": true,
294384
294877
  "updateAccountBody": true,
@@ -294455,6 +294948,12 @@ var state = {
294455
294948
  "updateTaskResponse": true,
294456
294949
  "deleteTaskResponse": true,
294457
294950
  "listTasksResponse": true,
294951
+ "createWorkflowResponse": true,
294952
+ "getWorkflowResponse": true,
294953
+ "updateWorkflowResponse": true,
294954
+ "deleteWorkflowResponse": true,
294955
+ "listWorkflowsResponse": true,
294956
+ "getOrCreateWorkflowResponse": true,
294458
294957
  "trackAnalyticsResponse": true,
294459
294958
  "runVrlResponse": true,
294460
294959
  "getAccountResponse": true,
@@ -294527,6 +295026,7 @@ var state = {
294527
295026
  "getUsageResponse": true,
294528
295027
  "getMultipleUsagesResponse": true,
294529
295028
  "listUsageHistoryResponse": true,
295029
+ "listUsageActivityResponse": true,
294530
295030
  "changeAISpendQuotaResponse": true,
294531
295031
  "listActivitiesResponse": true,
294532
295032
  "introspectResponse": true,
@@ -294570,6 +295070,7 @@ var state = {
294570
295070
  "Message": true,
294571
295071
  "State": true,
294572
295072
  "Task": true,
295073
+ "Workflow": true,
294573
295074
  "Table": true,
294574
295075
  "Column": true,
294575
295076
  "Row": true,
@@ -296352,6 +296853,12 @@ var state = {
296352
296853
  "maxLength": 36,
296353
296854
  "description": "Id of the current [Task](#schema_task)"
296354
296855
  },
296856
+ "currentWorkflowId": {
296857
+ "type": "string",
296858
+ "minLength": 28,
296859
+ "maxLength": 36,
296860
+ "description": "Id of the current [Workflow](#schema_workflow)"
296861
+ },
296355
296862
  "createdAt": {
296356
296863
  "type": "string",
296357
296864
  "format": "date-time",
@@ -296386,7 +296893,7 @@ var state = {
296386
296893
  "integration",
296387
296894
  "tags"
296388
296895
  ],
296389
- "description": "The conversation object represents an exchange of messages between one or more users. A [Conversation](#schema_conversation) is always linked to an integration's channels. For example, a Slack channel represents a conversation.",
296896
+ "description": "The [Conversation](#schema_conversation) object represents an exchange of messages between one or more users. A [Conversation](#schema_conversation) is always linked to an integration's channels. For example, a Slack channel represents a conversation.",
296390
296897
  "additionalProperties": false
296391
296898
  }
296392
296899
  },
@@ -296582,9 +297089,10 @@ var state = {
296582
297089
  "user",
296583
297090
  "bot",
296584
297091
  "task",
296585
- "integration"
297092
+ "integration",
297093
+ "workflow"
296586
297094
  ],
296587
- "description": "Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task` or `integration`) that the state is related to"
297095
+ "description": "Type of the [State](#schema_state) represents the resource type (`conversation`, `user`, `bot`, `task`, `integration` or `workflow`) that the state is related to"
296588
297096
  },
296589
297097
  "payload": {
296590
297098
  "type": "object",
@@ -296711,6 +297219,112 @@ var state = {
296711
297219
  "additionalProperties": false
296712
297220
  }
296713
297221
  },
297222
+ "Workflow": {
297223
+ "section": "workflow",
297224
+ "schema": {
297225
+ "type": "object",
297226
+ "properties": {
297227
+ "id": {
297228
+ "type": "string",
297229
+ "minLength": 28,
297230
+ "maxLength": 36,
297231
+ "description": "Id of the [Workflow](#schema_workflow)"
297232
+ },
297233
+ "name": {
297234
+ "type": "string",
297235
+ "maxLength": 200,
297236
+ "description": "Name of the workflow"
297237
+ },
297238
+ "status": {
297239
+ "type": "string",
297240
+ "enum": [
297241
+ "pending",
297242
+ "in_progress",
297243
+ "failed",
297244
+ "completed",
297245
+ "listening",
297246
+ "paused",
297247
+ "timedout",
297248
+ "cancelled"
297249
+ ],
297250
+ "description": "Status of the [Workflow](#schema_workflow)"
297251
+ },
297252
+ "input": {
297253
+ "type": "object",
297254
+ "additionalProperties": true,
297255
+ "description": "Input provided to the [Workflow](#schema_workflow)"
297256
+ },
297257
+ "output": {
297258
+ "type": "object",
297259
+ "additionalProperties": true,
297260
+ "description": "Data returned by the [Workflow](#schema_workflow) output"
297261
+ },
297262
+ "parentWorkflowId": {
297263
+ "type": "string",
297264
+ "minLength": 28,
297265
+ "maxLength": 36,
297266
+ "description": "Parent [Workflow](#schema_workflow) id is the parent [Workflow](#schema_workflow) that created this [Workflow](#schema_workflow)"
297267
+ },
297268
+ "conversationId": {
297269
+ "type": "string",
297270
+ "minLength": 28,
297271
+ "maxLength": 36,
297272
+ "description": "Conversation id related to this [Workflow](#schema_workflow)"
297273
+ },
297274
+ "userId": {
297275
+ "type": "string",
297276
+ "minLength": 28,
297277
+ "maxLength": 36,
297278
+ "description": "User id related to this [Workflow](#schema_workflow)"
297279
+ },
297280
+ "createdAt": {
297281
+ "type": "string",
297282
+ "format": "date-time",
297283
+ "description": "Creation date of the [Workflow](#schema_workflow) in ISO 8601 format"
297284
+ },
297285
+ "updatedAt": {
297286
+ "type": "string",
297287
+ "format": "date-time",
297288
+ "description": "Updating date of the [Workflow](#schema_workflow) in ISO 8601 format"
297289
+ },
297290
+ "completedAt": {
297291
+ "type": "string",
297292
+ "format": "date-time",
297293
+ "description": "The date when the [Workflow](#schema_workflow) completed in ISO 8601 format"
297294
+ },
297295
+ "failureReason": {
297296
+ "type": "string",
297297
+ "maxLength": 2e3,
297298
+ "description": "If the [Workflow](#schema_workflow) fails this is the reason behind it"
297299
+ },
297300
+ "timeoutAt": {
297301
+ "type": "string",
297302
+ "format": "date-time",
297303
+ "description": "The timeout date when the [Workflow](#schema_workflow) will fail in the ISO 8601 format"
297304
+ },
297305
+ "tags": {
297306
+ "type": "object",
297307
+ "additionalProperties": {
297308
+ "type": "string"
297309
+ },
297310
+ "description": "Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Workflow](#schema_workflow). Individual keys can be unset by posting an empty value to them."
297311
+ }
297312
+ },
297313
+ "required": [
297314
+ "id",
297315
+ "name",
297316
+ "status",
297317
+ "input",
297318
+ "output",
297319
+ "createdAt",
297320
+ "updatedAt",
297321
+ "timeoutAt",
297322
+ "tags"
297323
+ ],
297324
+ "description": "Workflow definition",
297325
+ "additionalProperties": false
297326
+ }
297327
+ },
296714
297328
  "Table": {
296715
297329
  "section": "tables",
296716
297330
  "schema": {
@@ -296852,6 +297466,10 @@ var state = {
296852
297466
  "type": "number",
296853
297467
  "description": "Width of the column in the UI"
296854
297468
  },
297469
+ "schemaId": {
297470
+ "type": "string",
297471
+ "description": "ID of the schema"
297472
+ },
296855
297473
  "computed": {
296856
297474
  "type": "object",
296857
297475
  "properties": {
@@ -297336,6 +297954,20 @@ var state = {
297336
297954
  ],
297337
297955
  "schema": "Task"
297338
297956
  },
297957
+ {
297958
+ "description": "",
297959
+ "title": "Workflow",
297960
+ "name": "workflow",
297961
+ "operations": [
297962
+ "createWorkflow",
297963
+ "getWorkflow",
297964
+ "updateWorkflow",
297965
+ "deleteWorkflow",
297966
+ "listWorkflows",
297967
+ "getOrCreateWorkflow"
297968
+ ],
297969
+ "schema": "Workflow"
297970
+ },
297339
297971
  {
297340
297972
  "title": "Bot",
297341
297973
  "description": "",