@botpress/api 0.16.2 → 0.16.3
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 +158 -33
- package/dist/src/gen/state.d.ts +105 -5
- package/dist/src/index.d.ts +2 -2
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +161 -40
package/dist/index.js
CHANGED
|
@@ -428338,15 +428338,18 @@ var state = {
|
|
|
428338
428338
|
properties: {
|
|
428339
428339
|
title: {
|
|
428340
428340
|
type: "string",
|
|
428341
|
+
maxLength: 2e3,
|
|
428341
428342
|
description: "Title describing the task"
|
|
428342
428343
|
},
|
|
428343
|
-
|
|
428344
|
+
description: {
|
|
428344
428345
|
type: "string",
|
|
428346
|
+
maxLength: 2e4,
|
|
428345
428347
|
description: "All the notes related to the execution of the current task"
|
|
428346
428348
|
},
|
|
428347
428349
|
type: {
|
|
428348
428350
|
type: "string",
|
|
428349
|
-
|
|
428351
|
+
maxLength: 200,
|
|
428352
|
+
description: "Unique identifier of the integration that was installed on the bot"
|
|
428350
428353
|
},
|
|
428351
428354
|
data: {
|
|
428352
428355
|
type: "object",
|
|
@@ -428379,7 +428382,7 @@ var state = {
|
|
|
428379
428382
|
description: "Tags for the [Task](#schema_task)"
|
|
428380
428383
|
}
|
|
428381
428384
|
},
|
|
428382
|
-
required: ["
|
|
428385
|
+
required: ["type", "conversationId"],
|
|
428383
428386
|
title: "createTaskBody",
|
|
428384
428387
|
additionalProperties: false
|
|
428385
428388
|
}
|
|
@@ -428423,7 +428426,7 @@ var state = {
|
|
|
428423
428426
|
type: "string",
|
|
428424
428427
|
description: "Title describing the task"
|
|
428425
428428
|
},
|
|
428426
|
-
|
|
428429
|
+
description: {
|
|
428427
428430
|
type: "string",
|
|
428428
428431
|
description: "All the notes related to the execution of the current task"
|
|
428429
428432
|
},
|
|
@@ -428445,7 +428448,9 @@ var state = {
|
|
|
428445
428448
|
"failed",
|
|
428446
428449
|
"completed",
|
|
428447
428450
|
"blocked",
|
|
428448
|
-
"paused"
|
|
428451
|
+
"paused",
|
|
428452
|
+
"timeout",
|
|
428453
|
+
"cancelled"
|
|
428449
428454
|
],
|
|
428450
428455
|
description: "Status of the task"
|
|
428451
428456
|
},
|
|
@@ -428539,7 +428544,7 @@ var state = {
|
|
|
428539
428544
|
},
|
|
428540
428545
|
status: {
|
|
428541
428546
|
in: "query",
|
|
428542
|
-
type: "string",
|
|
428547
|
+
type: "string[]",
|
|
428543
428548
|
description: "Status",
|
|
428544
428549
|
enum: [
|
|
428545
428550
|
"pending",
|
|
@@ -428547,7 +428552,9 @@ var state = {
|
|
|
428547
428552
|
"failed",
|
|
428548
428553
|
"completed",
|
|
428549
428554
|
"blocked",
|
|
428550
|
-
"paused"
|
|
428555
|
+
"paused",
|
|
428556
|
+
"timeout",
|
|
428557
|
+
"cancelled"
|
|
428551
428558
|
]
|
|
428552
428559
|
},
|
|
428553
428560
|
type: {
|
|
@@ -431894,7 +431901,7 @@ var state = {
|
|
|
431894
431901
|
linkTemplateScript: {
|
|
431895
431902
|
type: "string",
|
|
431896
431903
|
maxLength: 2e3,
|
|
431897
|
-
description: "
|
|
431904
|
+
description: "Title describing the task"
|
|
431898
431905
|
}
|
|
431899
431906
|
},
|
|
431900
431907
|
additionalProperties: false
|
|
@@ -431997,12 +432004,12 @@ var state = {
|
|
|
431997
432004
|
fallbackHandlerScript: {
|
|
431998
432005
|
type: "string",
|
|
431999
432006
|
maxLength: 2e3,
|
|
432000
|
-
description: "
|
|
432007
|
+
description: "Title describing the task"
|
|
432001
432008
|
},
|
|
432002
432009
|
extractScript: {
|
|
432003
432010
|
type: "string",
|
|
432004
432011
|
maxLength: 2e3,
|
|
432005
|
-
description: "
|
|
432012
|
+
description: "Title describing the task"
|
|
432006
432013
|
}
|
|
432007
432014
|
},
|
|
432008
432015
|
additionalProperties: false
|
|
@@ -432250,7 +432257,7 @@ var state = {
|
|
|
432250
432257
|
linkTemplateScript: {
|
|
432251
432258
|
type: "string",
|
|
432252
432259
|
maxLength: 2e3,
|
|
432253
|
-
description: "
|
|
432260
|
+
description: "Title describing the task",
|
|
432254
432261
|
nullable: true
|
|
432255
432262
|
},
|
|
432256
432263
|
required: {
|
|
@@ -432377,13 +432384,13 @@ var state = {
|
|
|
432377
432384
|
extractScript: {
|
|
432378
432385
|
type: "string",
|
|
432379
432386
|
maxLength: 2e3,
|
|
432380
|
-
description: "
|
|
432387
|
+
description: "Title describing the task",
|
|
432381
432388
|
nullable: true
|
|
432382
432389
|
},
|
|
432383
432390
|
fallbackHandlerScript: {
|
|
432384
432391
|
type: "string",
|
|
432385
432392
|
maxLength: 2e3,
|
|
432386
|
-
description: "
|
|
432393
|
+
description: "Title describing the task",
|
|
432387
432394
|
nullable: true
|
|
432388
432395
|
}
|
|
432389
432396
|
},
|
|
@@ -432975,6 +432982,62 @@ var state = {
|
|
|
432975
432982
|
},
|
|
432976
432983
|
parameters: {}
|
|
432977
432984
|
},
|
|
432985
|
+
listActivities: {
|
|
432986
|
+
name: "listActivities",
|
|
432987
|
+
description: "List activities of a task",
|
|
432988
|
+
method: "get",
|
|
432989
|
+
section: "activity",
|
|
432990
|
+
path: "/v1/admin/activities",
|
|
432991
|
+
disableDefaultParameters: {
|
|
432992
|
+
"x-workspace-id": true
|
|
432993
|
+
},
|
|
432994
|
+
parameters: {
|
|
432995
|
+
nextToken: {
|
|
432996
|
+
in: "query",
|
|
432997
|
+
description: "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
432998
|
+
type: "string"
|
|
432999
|
+
},
|
|
433000
|
+
taskId: {
|
|
433001
|
+
in: "query",
|
|
433002
|
+
description: "ID of the task to list activities for",
|
|
433003
|
+
type: "string",
|
|
433004
|
+
required: true
|
|
433005
|
+
},
|
|
433006
|
+
botId: {
|
|
433007
|
+
in: "query",
|
|
433008
|
+
description: "ID of the bot to list activities for",
|
|
433009
|
+
type: "string",
|
|
433010
|
+
required: true
|
|
433011
|
+
}
|
|
433012
|
+
},
|
|
433013
|
+
response: {
|
|
433014
|
+
description: "Success",
|
|
433015
|
+
schema: {
|
|
433016
|
+
type: "object",
|
|
433017
|
+
properties: {
|
|
433018
|
+
activities: {
|
|
433019
|
+
type: "array",
|
|
433020
|
+
items: {
|
|
433021
|
+
$ref: "#/components/schemas/Activity"
|
|
433022
|
+
}
|
|
433023
|
+
},
|
|
433024
|
+
meta: {
|
|
433025
|
+
type: "object",
|
|
433026
|
+
properties: {
|
|
433027
|
+
nextToken: {
|
|
433028
|
+
type: "string",
|
|
433029
|
+
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."
|
|
433030
|
+
}
|
|
433031
|
+
},
|
|
433032
|
+
additionalProperties: false
|
|
433033
|
+
}
|
|
433034
|
+
},
|
|
433035
|
+
required: ["activities", "meta"],
|
|
433036
|
+
title: "listActivitiesResponse",
|
|
433037
|
+
additionalProperties: false
|
|
433038
|
+
}
|
|
433039
|
+
}
|
|
433040
|
+
},
|
|
432978
433041
|
introspect: {
|
|
432979
433042
|
name: "introspect",
|
|
432980
433043
|
description: "Introspect the API",
|
|
@@ -433193,7 +433256,7 @@ var state = {
|
|
|
433193
433256
|
title: "Botpress API",
|
|
433194
433257
|
description: "API for Botpress Cloud",
|
|
433195
433258
|
server: "https://api.botpress.cloud",
|
|
433196
|
-
version: "0.16.
|
|
433259
|
+
version: "0.16.3",
|
|
433197
433260
|
prefix: "v1"
|
|
433198
433261
|
},
|
|
433199
433262
|
errors: [
|
|
@@ -433432,6 +433495,7 @@ var state = {
|
|
|
433432
433495
|
getUsageResponse: true,
|
|
433433
433496
|
listUsageHistoryResponse: true,
|
|
433434
433497
|
changeAISpendQuotaResponse: true,
|
|
433498
|
+
listActivitiesResponse: true,
|
|
433435
433499
|
introspectResponse: true,
|
|
433436
433500
|
createFileResponse: true,
|
|
433437
433501
|
getFileResponse: true,
|
|
@@ -433448,6 +433512,7 @@ var state = {
|
|
|
433448
433512
|
Usage: true,
|
|
433449
433513
|
Issue: true,
|
|
433450
433514
|
IssueEvent: true,
|
|
433515
|
+
Activity: true,
|
|
433451
433516
|
User: true,
|
|
433452
433517
|
Conversation: true,
|
|
433453
433518
|
Event: true,
|
|
@@ -433485,7 +433550,7 @@ var state = {
|
|
|
433485
433550
|
signingSecret: {
|
|
433486
433551
|
type: "string",
|
|
433487
433552
|
maxLength: 2e3,
|
|
433488
|
-
description: "
|
|
433553
|
+
description: "Title describing the task"
|
|
433489
433554
|
},
|
|
433490
433555
|
integrations: {
|
|
433491
433556
|
type: "object",
|
|
@@ -433498,27 +433563,27 @@ var state = {
|
|
|
433498
433563
|
name: {
|
|
433499
433564
|
type: "string",
|
|
433500
433565
|
maxLength: 200,
|
|
433501
|
-
description: "Type of the
|
|
433566
|
+
description: "Type of the task"
|
|
433502
433567
|
},
|
|
433503
433568
|
version: {
|
|
433504
433569
|
type: "string",
|
|
433505
433570
|
maxLength: 200,
|
|
433506
|
-
description: "Type of the
|
|
433571
|
+
description: "Type of the task"
|
|
433507
433572
|
},
|
|
433508
433573
|
webhookUrl: {
|
|
433509
433574
|
type: "string",
|
|
433510
433575
|
maxLength: 2e3,
|
|
433511
|
-
description: "
|
|
433576
|
+
description: "Title describing the task"
|
|
433512
433577
|
},
|
|
433513
433578
|
webhookId: {
|
|
433514
433579
|
type: "string",
|
|
433515
433580
|
maxLength: 200,
|
|
433516
|
-
description: "Type of the
|
|
433581
|
+
description: "Type of the task"
|
|
433517
433582
|
},
|
|
433518
433583
|
identifier: {
|
|
433519
433584
|
type: "string",
|
|
433520
433585
|
maxLength: 2e3,
|
|
433521
|
-
description: "
|
|
433586
|
+
description: "Title describing the task"
|
|
433522
433587
|
},
|
|
433523
433588
|
configuration: {
|
|
433524
433589
|
type: "object",
|
|
@@ -433538,7 +433603,7 @@ var state = {
|
|
|
433538
433603
|
statusReason: {
|
|
433539
433604
|
type: "string",
|
|
433540
433605
|
maxLength: 2e3,
|
|
433541
|
-
description: "
|
|
433606
|
+
description: "Title describing the task",
|
|
433542
433607
|
nullable: true
|
|
433543
433608
|
},
|
|
433544
433609
|
id: {
|
|
@@ -433758,7 +433823,7 @@ var state = {
|
|
|
433758
433823
|
cron: {
|
|
433759
433824
|
type: "string",
|
|
433760
433825
|
maxLength: 200,
|
|
433761
|
-
description: "Type of the
|
|
433826
|
+
description: "Type of the task"
|
|
433762
433827
|
}
|
|
433763
433828
|
},
|
|
433764
433829
|
required: ["cron"],
|
|
@@ -433767,7 +433832,7 @@ var state = {
|
|
|
433767
433832
|
type: {
|
|
433768
433833
|
type: "string",
|
|
433769
433834
|
maxLength: 200,
|
|
433770
|
-
description: "Type of the
|
|
433835
|
+
description: "Type of the task"
|
|
433771
433836
|
},
|
|
433772
433837
|
payload: {
|
|
433773
433838
|
type: "object",
|
|
@@ -433923,12 +433988,12 @@ var state = {
|
|
|
433923
433988
|
name: {
|
|
433924
433989
|
type: "string",
|
|
433925
433990
|
maxLength: 200,
|
|
433926
|
-
description: "Type of the
|
|
433991
|
+
description: "Type of the task"
|
|
433927
433992
|
},
|
|
433928
433993
|
version: {
|
|
433929
433994
|
type: "string",
|
|
433930
433995
|
maxLength: 200,
|
|
433931
|
-
description: "Type of the
|
|
433996
|
+
description: "Type of the task"
|
|
433932
433997
|
},
|
|
433933
433998
|
configuration: {
|
|
433934
433999
|
type: "object",
|
|
@@ -433939,7 +434004,7 @@ var state = {
|
|
|
433939
434004
|
linkTemplateScript: {
|
|
433940
434005
|
type: "string",
|
|
433941
434006
|
maxLength: 2e3,
|
|
433942
|
-
description: "
|
|
434007
|
+
description: "Title describing the task"
|
|
433943
434008
|
},
|
|
433944
434009
|
required: {
|
|
433945
434010
|
type: "boolean"
|
|
@@ -434549,6 +434614,56 @@ var state = {
|
|
|
434549
434614
|
additionalProperties: false
|
|
434550
434615
|
}
|
|
434551
434616
|
},
|
|
434617
|
+
Activity: {
|
|
434618
|
+
section: "activity",
|
|
434619
|
+
schema: {
|
|
434620
|
+
type: "object",
|
|
434621
|
+
properties: {
|
|
434622
|
+
id: {
|
|
434623
|
+
type: "string"
|
|
434624
|
+
},
|
|
434625
|
+
description: {
|
|
434626
|
+
type: "string"
|
|
434627
|
+
},
|
|
434628
|
+
taskId: {
|
|
434629
|
+
type: "string"
|
|
434630
|
+
},
|
|
434631
|
+
category: {
|
|
434632
|
+
type: "string",
|
|
434633
|
+
enum: [
|
|
434634
|
+
"unknown",
|
|
434635
|
+
"capture",
|
|
434636
|
+
"bot_message",
|
|
434637
|
+
"user_message",
|
|
434638
|
+
"agent_message",
|
|
434639
|
+
"event",
|
|
434640
|
+
"action",
|
|
434641
|
+
"task_status",
|
|
434642
|
+
"subtask_status",
|
|
434643
|
+
"exception"
|
|
434644
|
+
]
|
|
434645
|
+
},
|
|
434646
|
+
data: {
|
|
434647
|
+
type: "object",
|
|
434648
|
+
additionalProperties: true
|
|
434649
|
+
},
|
|
434650
|
+
createdAt: {
|
|
434651
|
+
type: "string",
|
|
434652
|
+
format: "date-time",
|
|
434653
|
+
description: "Creation date of the activity in ISO 8601 format"
|
|
434654
|
+
}
|
|
434655
|
+
},
|
|
434656
|
+
required: [
|
|
434657
|
+
"id",
|
|
434658
|
+
"description",
|
|
434659
|
+
"taskId",
|
|
434660
|
+
"category",
|
|
434661
|
+
"data",
|
|
434662
|
+
"createdAt"
|
|
434663
|
+
],
|
|
434664
|
+
additionalProperties: false
|
|
434665
|
+
}
|
|
434666
|
+
},
|
|
434552
434667
|
User: {
|
|
434553
434668
|
section: "user",
|
|
434554
434669
|
schema: {
|
|
@@ -434667,7 +434782,7 @@ var state = {
|
|
|
434667
434782
|
type: {
|
|
434668
434783
|
type: "string",
|
|
434669
434784
|
maxLength: 200,
|
|
434670
|
-
description: "Type of the
|
|
434785
|
+
description: "Type of the task"
|
|
434671
434786
|
},
|
|
434672
434787
|
payload: {
|
|
434673
434788
|
type: "object",
|
|
@@ -434734,7 +434849,7 @@ var state = {
|
|
|
434734
434849
|
type: {
|
|
434735
434850
|
type: "string",
|
|
434736
434851
|
maxLength: 200,
|
|
434737
|
-
description: "Type of the
|
|
434852
|
+
description: "Type of the task"
|
|
434738
434853
|
},
|
|
434739
434854
|
payload: {
|
|
434740
434855
|
type: "object",
|
|
@@ -434822,7 +434937,7 @@ var state = {
|
|
|
434822
434937
|
name: {
|
|
434823
434938
|
type: "string",
|
|
434824
434939
|
maxLength: 200,
|
|
434825
|
-
description: "Type of the
|
|
434940
|
+
description: "Type of the task"
|
|
434826
434941
|
},
|
|
434827
434942
|
type: {
|
|
434828
434943
|
type: "string",
|
|
@@ -434864,7 +434979,7 @@ var state = {
|
|
|
434864
434979
|
maxLength: 64,
|
|
434865
434980
|
description: "Title describing the task"
|
|
434866
434981
|
},
|
|
434867
|
-
|
|
434982
|
+
description: {
|
|
434868
434983
|
type: "string",
|
|
434869
434984
|
maxLength: 256,
|
|
434870
434985
|
description: "All the notes related to the execution of the current task"
|
|
@@ -434886,7 +435001,9 @@ var state = {
|
|
|
434886
435001
|
"failed",
|
|
434887
435002
|
"completed",
|
|
434888
435003
|
"blocked",
|
|
434889
|
-
"paused"
|
|
435004
|
+
"paused",
|
|
435005
|
+
"timeout",
|
|
435006
|
+
"cancelled"
|
|
434890
435007
|
],
|
|
434891
435008
|
description: "Status of the task"
|
|
434892
435009
|
},
|
|
@@ -434939,7 +435056,7 @@ var state = {
|
|
|
434939
435056
|
required: [
|
|
434940
435057
|
"id",
|
|
434941
435058
|
"title",
|
|
434942
|
-
"
|
|
435059
|
+
"description",
|
|
434943
435060
|
"type",
|
|
434944
435061
|
"data",
|
|
434945
435062
|
"status",
|
|
@@ -435064,7 +435181,8 @@ var state = {
|
|
|
435064
435181
|
},
|
|
435065
435182
|
additionalProperties: {
|
|
435066
435183
|
type: "boolean",
|
|
435067
|
-
enum: [
|
|
435184
|
+
enum: [true],
|
|
435185
|
+
description: "Additional properties can be provided, but they will be ignored if no column matches."
|
|
435068
435186
|
},
|
|
435069
435187
|
required: {
|
|
435070
435188
|
type: "array",
|
|
@@ -435377,6 +435495,13 @@ var state = {
|
|
|
435377
435495
|
name: "helper",
|
|
435378
435496
|
operations: ["runVrl"]
|
|
435379
435497
|
},
|
|
435498
|
+
{
|
|
435499
|
+
title: "Activity",
|
|
435500
|
+
description: "",
|
|
435501
|
+
name: "activity",
|
|
435502
|
+
operations: ["listActivities"],
|
|
435503
|
+
schema: "Activity"
|
|
435504
|
+
},
|
|
435380
435505
|
{
|
|
435381
435506
|
title: "Tables",
|
|
435382
435507
|
description: "Operations related to table management.",
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as opapi from "@bpinternal/opapi";
|
|
2
|
-
export type State = opapi.State<"Bot" | "Integration" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "User" | "Conversation" | "Event" | "Message" | "State" | "Task" | "File" | "Table" | "Column" | "Row", never, "user" | "conversation" | "event" | "message" | "file" | "state" | "hub" | "action" | "task" | "bot" | "integration" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "tables">;
|
|
2
|
+
export type State = opapi.State<"Bot" | "Integration" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "Activity" | "User" | "Conversation" | "Event" | "Message" | "State" | "Task" | "File" | "Table" | "Column" | "Row", never, "user" | "conversation" | "event" | "message" | "file" | "state" | "hub" | "action" | "task" | "bot" | "integration" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity" | "tables">;
|
|
3
3
|
export declare const state: {
|
|
4
4
|
operations: {
|
|
5
5
|
createConversation: {
|
|
@@ -1444,14 +1444,17 @@ export declare const state: {
|
|
|
1444
1444
|
properties: {
|
|
1445
1445
|
title: {
|
|
1446
1446
|
type: "string";
|
|
1447
|
+
maxLength: number;
|
|
1447
1448
|
description: string;
|
|
1448
1449
|
};
|
|
1449
|
-
|
|
1450
|
+
description: {
|
|
1450
1451
|
type: "string";
|
|
1452
|
+
maxLength: number;
|
|
1451
1453
|
description: string;
|
|
1452
1454
|
};
|
|
1453
1455
|
type: {
|
|
1454
1456
|
type: "string";
|
|
1457
|
+
maxLength: number;
|
|
1455
1458
|
description: string;
|
|
1456
1459
|
};
|
|
1457
1460
|
data: {
|
|
@@ -1529,7 +1532,7 @@ export declare const state: {
|
|
|
1529
1532
|
type: "string";
|
|
1530
1533
|
description: string;
|
|
1531
1534
|
};
|
|
1532
|
-
|
|
1535
|
+
description: {
|
|
1533
1536
|
type: "string";
|
|
1534
1537
|
description: string;
|
|
1535
1538
|
};
|
|
@@ -1638,7 +1641,7 @@ export declare const state: {
|
|
|
1638
1641
|
};
|
|
1639
1642
|
status: {
|
|
1640
1643
|
in: "query";
|
|
1641
|
-
type: "string";
|
|
1644
|
+
type: "string[]";
|
|
1642
1645
|
description: string;
|
|
1643
1646
|
enum: string[];
|
|
1644
1647
|
};
|
|
@@ -5771,6 +5774,62 @@ export declare const state: {
|
|
|
5771
5774
|
};
|
|
5772
5775
|
parameters: {};
|
|
5773
5776
|
};
|
|
5777
|
+
listActivities: {
|
|
5778
|
+
name: string;
|
|
5779
|
+
description: string;
|
|
5780
|
+
method: "get";
|
|
5781
|
+
section: "activity";
|
|
5782
|
+
path: string;
|
|
5783
|
+
disableDefaultParameters: {
|
|
5784
|
+
"x-workspace-id": boolean;
|
|
5785
|
+
};
|
|
5786
|
+
parameters: {
|
|
5787
|
+
nextToken: {
|
|
5788
|
+
in: "query";
|
|
5789
|
+
description: string;
|
|
5790
|
+
type: "string";
|
|
5791
|
+
};
|
|
5792
|
+
taskId: {
|
|
5793
|
+
in: "query";
|
|
5794
|
+
description: string;
|
|
5795
|
+
type: "string";
|
|
5796
|
+
required: true;
|
|
5797
|
+
};
|
|
5798
|
+
botId: {
|
|
5799
|
+
in: "query";
|
|
5800
|
+
description: string;
|
|
5801
|
+
type: "string";
|
|
5802
|
+
required: true;
|
|
5803
|
+
};
|
|
5804
|
+
};
|
|
5805
|
+
response: {
|
|
5806
|
+
description: string;
|
|
5807
|
+
schema: {
|
|
5808
|
+
type: "object";
|
|
5809
|
+
properties: {
|
|
5810
|
+
activities: {
|
|
5811
|
+
type: "array";
|
|
5812
|
+
items: {
|
|
5813
|
+
$ref: string;
|
|
5814
|
+
};
|
|
5815
|
+
};
|
|
5816
|
+
meta: {
|
|
5817
|
+
type: "object";
|
|
5818
|
+
properties: {
|
|
5819
|
+
nextToken: {
|
|
5820
|
+
type: "string";
|
|
5821
|
+
description: string;
|
|
5822
|
+
};
|
|
5823
|
+
};
|
|
5824
|
+
additionalProperties: false;
|
|
5825
|
+
};
|
|
5826
|
+
};
|
|
5827
|
+
required: string[];
|
|
5828
|
+
title: string;
|
|
5829
|
+
additionalProperties: false;
|
|
5830
|
+
};
|
|
5831
|
+
};
|
|
5832
|
+
};
|
|
5774
5833
|
introspect: {
|
|
5775
5834
|
name: string;
|
|
5776
5835
|
description: string;
|
|
@@ -6166,6 +6225,7 @@ export declare const state: {
|
|
|
6166
6225
|
getUsageResponse: true;
|
|
6167
6226
|
listUsageHistoryResponse: true;
|
|
6168
6227
|
changeAISpendQuotaResponse: true;
|
|
6228
|
+
listActivitiesResponse: true;
|
|
6169
6229
|
introspectResponse: true;
|
|
6170
6230
|
createFileResponse: true;
|
|
6171
6231
|
getFileResponse: true;
|
|
@@ -6182,6 +6242,7 @@ export declare const state: {
|
|
|
6182
6242
|
Usage: true;
|
|
6183
6243
|
Issue: true;
|
|
6184
6244
|
IssueEvent: true;
|
|
6245
|
+
Activity: true;
|
|
6185
6246
|
User: true;
|
|
6186
6247
|
Conversation: true;
|
|
6187
6248
|
Event: true;
|
|
@@ -7173,6 +7234,38 @@ export declare const state: {
|
|
|
7173
7234
|
additionalProperties: false;
|
|
7174
7235
|
};
|
|
7175
7236
|
};
|
|
7237
|
+
Activity: {
|
|
7238
|
+
section: "activity";
|
|
7239
|
+
schema: {
|
|
7240
|
+
type: "object";
|
|
7241
|
+
properties: {
|
|
7242
|
+
id: {
|
|
7243
|
+
type: "string";
|
|
7244
|
+
};
|
|
7245
|
+
description: {
|
|
7246
|
+
type: "string";
|
|
7247
|
+
};
|
|
7248
|
+
taskId: {
|
|
7249
|
+
type: "string";
|
|
7250
|
+
};
|
|
7251
|
+
category: {
|
|
7252
|
+
type: "string";
|
|
7253
|
+
enum: string[];
|
|
7254
|
+
};
|
|
7255
|
+
data: {
|
|
7256
|
+
type: "object";
|
|
7257
|
+
additionalProperties: true;
|
|
7258
|
+
};
|
|
7259
|
+
createdAt: {
|
|
7260
|
+
type: "string";
|
|
7261
|
+
format: string;
|
|
7262
|
+
description: string;
|
|
7263
|
+
};
|
|
7264
|
+
};
|
|
7265
|
+
required: string[];
|
|
7266
|
+
additionalProperties: false;
|
|
7267
|
+
};
|
|
7268
|
+
};
|
|
7176
7269
|
User: {
|
|
7177
7270
|
section: "user";
|
|
7178
7271
|
schema: {
|
|
@@ -7457,7 +7550,7 @@ export declare const state: {
|
|
|
7457
7550
|
maxLength: number;
|
|
7458
7551
|
description: string;
|
|
7459
7552
|
};
|
|
7460
|
-
|
|
7553
|
+
description: {
|
|
7461
7554
|
type: "string";
|
|
7462
7555
|
maxLength: number;
|
|
7463
7556
|
description: string;
|
|
@@ -7640,6 +7733,7 @@ export declare const state: {
|
|
|
7640
7733
|
additionalProperties: {
|
|
7641
7734
|
type: "boolean";
|
|
7642
7735
|
enum: boolean[];
|
|
7736
|
+
description: string;
|
|
7643
7737
|
};
|
|
7644
7738
|
required: {
|
|
7645
7739
|
type: "array";
|
|
@@ -7846,6 +7940,12 @@ export declare const state: {
|
|
|
7846
7940
|
name: "helper";
|
|
7847
7941
|
operations: string[];
|
|
7848
7942
|
schema?: undefined;
|
|
7943
|
+
} | {
|
|
7944
|
+
title: string;
|
|
7945
|
+
description: string;
|
|
7946
|
+
name: "activity";
|
|
7947
|
+
operations: string[];
|
|
7948
|
+
schema: string;
|
|
7849
7949
|
} | {
|
|
7850
7950
|
title: string;
|
|
7851
7951
|
description: string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './gen/state';
|
|
2
2
|
export declare const api: {
|
|
3
|
-
getModelRef: (name: "Bot" | "Integration" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "User" | "Conversation" | "Event" | "Message" | "State" | "Task" | "File" | "Table" | "Column" | "Row") => import("@bpinternal/opapi").OpenApiZodAny;
|
|
4
|
-
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-workspace-id", "user" | "conversation" | "event" | "message" | "file" | "state" | "hub" | "action" | "task" | "bot" | "integration" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "tables", Path, "zod-schema">) => void;
|
|
3
|
+
getModelRef: (name: "Bot" | "Integration" | "Workspace" | "WorkspaceMember" | "Account" | "Usage" | "Issue" | "IssueEvent" | "Activity" | "User" | "Conversation" | "Event" | "Message" | "State" | "Task" | "File" | "Table" | "Column" | "Row") => import("@bpinternal/opapi").OpenApiZodAny;
|
|
4
|
+
addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-workspace-id", "user" | "conversation" | "event" | "message" | "file" | "state" | "hub" | "action" | "task" | "bot" | "integration" | "workspace" | "workspaceMember" | "account" | "usage" | "quotas" | "helper" | "activity" | "tables", Path, "zod-schema">) => void;
|
|
5
5
|
exportClient: (dir: string | undefined, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined) => Promise<void>;
|
|
6
6
|
exportTypesBySection: (dir?: string | undefined) => Promise<void>;
|
|
7
7
|
exportServer: (dir: string | undefined, useExpressTypes: boolean) => Promise<void>;
|