@botpress/client 0.16.2 → 0.18.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.
Files changed (134) hide show
  1. package/dist/bundle.cjs +13 -10
  2. package/dist/bundle.cjs.map +4 -4
  3. package/dist/gen/index.d.ts +372 -13
  4. package/dist/gen/models.d.ts +1160 -0
  5. package/dist/gen/operations/addParticipant.d.ts +56 -0
  6. package/dist/gen/operations/breakDownWorkspaceUsageByBot.d.ts +27 -0
  7. package/dist/gen/operations/callAction.d.ts +36 -0
  8. package/dist/gen/operations/changeAISpendQuota.d.ts +21 -0
  9. package/dist/gen/operations/chargeWorkspaceUnpaidInvoices.d.ts +40 -0
  10. package/dist/gen/operations/checkHandleAvailability.d.ts +24 -0
  11. package/dist/gen/operations/configureIntegration.d.ts +24 -0
  12. package/dist/gen/operations/createBot.d.ts +487 -0
  13. package/dist/gen/operations/createConversation.d.ts +70 -0
  14. package/dist/gen/operations/createEvent.d.ts +95 -0
  15. package/dist/gen/operations/createFile.d.ts +108 -0
  16. package/dist/gen/operations/createIntegration.d.ts +533 -0
  17. package/dist/gen/operations/createIntegrationApiKey.d.ts +29 -0
  18. package/dist/gen/operations/createMessage.d.ts +98 -0
  19. package/dist/gen/operations/createPersonalAccessToken.d.ts +33 -0
  20. package/dist/gen/operations/createTable.d.ts +151 -0
  21. package/dist/gen/operations/createTableRows.d.ts +71 -0
  22. package/dist/gen/operations/createTask.d.ts +125 -0
  23. package/dist/gen/operations/createUser.d.ts +70 -0
  24. package/dist/gen/operations/createWorkspace.d.ts +39 -0
  25. package/dist/gen/operations/createWorkspaceMember.d.ts +27 -0
  26. package/dist/gen/operations/deleteBot.d.ts +21 -0
  27. package/dist/gen/operations/deleteBotIssue.d.ts +22 -0
  28. package/dist/gen/operations/deleteConversation.d.ts +21 -0
  29. package/dist/gen/operations/deleteFile.d.ts +21 -0
  30. package/dist/gen/operations/deleteIntegration.d.ts +21 -0
  31. package/dist/gen/operations/deleteIntegrationApiKey.d.ts +21 -0
  32. package/dist/gen/operations/deleteMessage.d.ts +21 -0
  33. package/dist/gen/operations/deletePersonalAccessToken.d.ts +21 -0
  34. package/dist/gen/operations/deleteTable.d.ts +21 -0
  35. package/dist/gen/operations/deleteTableRows.d.ts +36 -0
  36. package/dist/gen/operations/deleteTask.d.ts +21 -0
  37. package/dist/gen/operations/deleteUser.d.ts +21 -0
  38. package/dist/gen/operations/deleteWorkspace.d.ts +21 -0
  39. package/dist/gen/operations/deleteWorkspaceMember.d.ts +21 -0
  40. package/dist/gen/operations/duplicateTable.d.ts +137 -0
  41. package/dist/gen/operations/findTableRows.d.ts +94 -0
  42. package/dist/gen/operations/getAccount.d.ts +31 -0
  43. package/dist/gen/operations/getAccountPreference.d.ts +22 -0
  44. package/dist/gen/operations/getAllWorkspaceQuotaCompletion.d.ts +24 -0
  45. package/dist/gen/operations/getAuditRecords.d.ts +38 -0
  46. package/dist/gen/operations/getBot.d.ts +308 -0
  47. package/dist/gen/operations/getBotAnalytics.d.ts +49 -0
  48. package/dist/gen/operations/getBotLogs.d.ts +30 -0
  49. package/dist/gen/operations/getBotWebchat.d.ts +23 -0
  50. package/dist/gen/operations/getConversation.d.ts +56 -0
  51. package/dist/gen/operations/getEvent.d.ts +61 -0
  52. package/dist/gen/operations/getFile.d.ts +85 -0
  53. package/dist/gen/operations/getIntegration.d.ts +295 -0
  54. package/dist/gen/operations/getIntegrationByName.d.ts +296 -0
  55. package/dist/gen/operations/getIntegrationLogs.d.ts +30 -0
  56. package/dist/gen/operations/getMessage.d.ts +62 -0
  57. package/dist/gen/operations/getOrCreateConversation.d.ts +70 -0
  58. package/dist/gen/operations/getOrCreateMessage.d.ts +98 -0
  59. package/dist/gen/operations/getOrCreateTable.d.ts +164 -0
  60. package/dist/gen/operations/getOrCreateUser.d.ts +70 -0
  61. package/dist/gen/operations/getOrSetState.d.ts +76 -0
  62. package/dist/gen/operations/getParticipant.d.ts +53 -0
  63. package/dist/gen/operations/getPublicIntegration.d.ts +301 -0
  64. package/dist/gen/operations/getPublicIntegrationById.d.ts +300 -0
  65. package/dist/gen/operations/getPublicWorkspace.d.ts +31 -0
  66. package/dist/gen/operations/getState.d.ts +66 -0
  67. package/dist/gen/operations/getTable.d.ts +136 -0
  68. package/dist/gen/operations/getTableRow.d.ts +53 -0
  69. package/dist/gen/operations/getTask.d.ts +86 -0
  70. package/dist/gen/operations/getUpcomingInvoice.d.ts +29 -0
  71. package/dist/gen/operations/getUsage.d.ts +45 -0
  72. package/dist/gen/operations/getUser.d.ts +52 -0
  73. package/dist/gen/operations/getWorkspace.d.ts +39 -0
  74. package/dist/gen/operations/getWorkspaceMember.d.ts +25 -0
  75. package/dist/gen/operations/getWorkspaceQuota.d.ts +37 -0
  76. package/dist/gen/operations/introspect.d.ts +24 -0
  77. package/dist/gen/operations/listActivities.d.ts +42 -0
  78. package/dist/gen/operations/listBotIssueEvents.d.ts +32 -0
  79. package/dist/gen/operations/listBotIssues.d.ts +45 -0
  80. package/dist/gen/operations/listBots.d.ts +44 -0
  81. package/dist/gen/operations/listConversations.d.ts +64 -0
  82. package/dist/gen/operations/listEvents.d.ts +69 -0
  83. package/dist/gen/operations/listFiles.d.ts +94 -0
  84. package/dist/gen/operations/listIntegrationApiKeys.d.ts +26 -0
  85. package/dist/gen/operations/listIntegrations.d.ts +68 -0
  86. package/dist/gen/operations/listMessages.d.ts +69 -0
  87. package/dist/gen/operations/listParticipants.d.ts +56 -0
  88. package/dist/gen/operations/listPersonalAccessTokens.d.ts +25 -0
  89. package/dist/gen/operations/listPublicIntegrations.d.ts +72 -0
  90. package/dist/gen/operations/listTables.d.ts +126 -0
  91. package/dist/gen/operations/listTasks.d.ts +97 -0
  92. package/dist/gen/operations/listUsageHistory.d.ts +44 -0
  93. package/dist/gen/operations/listUsers.d.ts +59 -0
  94. package/dist/gen/operations/listWorkspaceInvoices.d.ts +53 -0
  95. package/dist/gen/operations/listWorkspaceMembers.d.ts +34 -0
  96. package/dist/gen/operations/listWorkspaceQuotas.d.ts +36 -0
  97. package/dist/gen/operations/listWorkspaceUsages.d.ts +45 -0
  98. package/dist/gen/operations/listWorkspaces.d.ts +48 -0
  99. package/dist/gen/operations/patchState.d.ts +72 -0
  100. package/dist/gen/operations/removeParticipant.d.ts +22 -0
  101. package/dist/gen/operations/renameTableColumn.d.ts +132 -0
  102. package/dist/gen/operations/runVrl.d.ts +28 -0
  103. package/dist/gen/operations/searchFiles.d.ts +60 -0
  104. package/dist/gen/operations/setAccountPreference.d.ts +22 -0
  105. package/dist/gen/operations/setState.d.ts +76 -0
  106. package/dist/gen/operations/setWorkspacePaymentMethod.d.ts +37 -0
  107. package/dist/gen/operations/trackAnalytics.d.ts +22 -0
  108. package/dist/gen/operations/transferBot.d.ts +25 -0
  109. package/dist/gen/operations/updateAccount.d.ts +34 -0
  110. package/dist/gen/operations/updateBot.d.ts +486 -0
  111. package/dist/gen/operations/updateConversation.d.ts +63 -0
  112. package/dist/gen/operations/updateFile.d.ts +95 -0
  113. package/dist/gen/operations/updateIntegration.d.ts +522 -0
  114. package/dist/gen/operations/updateMessage.d.ts +68 -0
  115. package/dist/gen/operations/updateTable.d.ts +152 -0
  116. package/dist/gen/operations/updateTableRows.d.ts +74 -0
  117. package/dist/gen/operations/updateTask.d.ts +114 -0
  118. package/dist/gen/operations/updateUser.d.ts +66 -0
  119. package/dist/gen/operations/updateWorkspace.d.ts +51 -0
  120. package/dist/gen/operations/updateWorkspaceMember.d.ts +27 -0
  121. package/dist/gen/operations/upsertTableRows.d.ts +107 -0
  122. package/dist/index.cjs +4 -1
  123. package/dist/index.cjs.map +4 -4
  124. package/dist/index.d.ts +5 -14
  125. package/dist/index.mjs +4 -1
  126. package/dist/index.mjs.map +4 -4
  127. package/openapi.ts +3 -3
  128. package/package.json +4 -2
  129. package/readme.md +2 -3
  130. package/dist/gen/api.d.ts +0 -14072
  131. package/dist/gen/base.d.ts +0 -54
  132. package/dist/gen/client.d.ts +0 -255
  133. package/dist/gen/common.d.ts +0 -65
  134. package/dist/gen/configuration.d.ts +0 -83
@@ -0,0 +1,98 @@
1
+ export interface CreateMessageRequestHeaders {
2
+ }
3
+ export interface CreateMessageRequestQuery {
4
+ }
5
+ export interface CreateMessageRequestParams {
6
+ }
7
+ export interface CreateMessageRequestBody {
8
+ /**
9
+ * Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
10
+ */
11
+ payload: {
12
+ [k: string]: any;
13
+ };
14
+ /**
15
+ * ID of the [User](#schema_user)
16
+ */
17
+ userId: string;
18
+ /**
19
+ * ID of the [Conversation](#schema_conversation)
20
+ */
21
+ conversationId: string;
22
+ /**
23
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
24
+ */
25
+ type: string;
26
+ /**
27
+ * Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Message](#schema_message). The set of [Tags](/docs/developers/concepts/tags) available on a [Message](#schema_message) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
28
+ */
29
+ tags: {
30
+ [k: string]: string;
31
+ };
32
+ /**
33
+ * Schedule the Message to be sent at a specific time. Either dateTime or delay must be provided.
34
+ */
35
+ schedule?: {
36
+ /**
37
+ * When the [Message](#schema_message) will be sent, in the ISO 8601 format
38
+ */
39
+ dateTime?: string;
40
+ /**
41
+ * Delay in milliseconds before sending the [Message](#schema_message)
42
+ */
43
+ delay?: number;
44
+ };
45
+ }
46
+ export type CreateMessageInput = CreateMessageRequestBody & CreateMessageRequestHeaders & CreateMessageRequestQuery & CreateMessageRequestParams;
47
+ export type CreateMessageRequest = {
48
+ headers: CreateMessageRequestHeaders;
49
+ query: CreateMessageRequestQuery;
50
+ params: CreateMessageRequestParams;
51
+ body: CreateMessageRequestBody;
52
+ };
53
+ export declare const parseReq: (input: CreateMessageInput) => CreateMessageRequest & {
54
+ path: string;
55
+ };
56
+ export interface CreateMessageResponse {
57
+ /**
58
+ * The Message object represents a message in a [Conversation](#schema_conversation) for a specific [User](#schema_user).
59
+ */
60
+ message: {
61
+ /**
62
+ * Id of the [Message](#schema_message)
63
+ */
64
+ id: string;
65
+ /**
66
+ * Creation date of the [Message](#schema_message) in ISO 8601 format
67
+ */
68
+ createdAt: string;
69
+ /**
70
+ * Type of the [Message](#schema_message) represents the resource type that the message is related to
71
+ */
72
+ type: string;
73
+ /**
74
+ * Payload is the content type of the message. Accepted payload options: Text, Image, Choice, Dropdown, Card, Carousel, File, Audio, Video, Location
75
+ */
76
+ payload: {
77
+ [k: string]: any;
78
+ };
79
+ /**
80
+ * Direction of the message (`incoming` or `outgoing`).
81
+ */
82
+ direction: "incoming" | "outgoing";
83
+ /**
84
+ * ID of the [User](#schema_user)
85
+ */
86
+ userId: string;
87
+ /**
88
+ * ID of the [Conversation](#schema_conversation)
89
+ */
90
+ conversationId: string;
91
+ /**
92
+ * Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Conversation](#schema_conversation). The set of [Tags](/docs/developers/concepts/tags) available on a [Conversation](#schema_conversation) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
93
+ */
94
+ tags: {
95
+ [k: string]: string;
96
+ };
97
+ };
98
+ }
@@ -0,0 +1,33 @@
1
+ export interface CreatePersonalAccessTokenRequestHeaders {
2
+ }
3
+ export interface CreatePersonalAccessTokenRequestQuery {
4
+ }
5
+ export interface CreatePersonalAccessTokenRequestParams {
6
+ }
7
+ export interface CreatePersonalAccessTokenRequestBody {
8
+ /**
9
+ * Note to identify the PAT
10
+ */
11
+ note: string;
12
+ }
13
+ export type CreatePersonalAccessTokenInput = CreatePersonalAccessTokenRequestBody & CreatePersonalAccessTokenRequestHeaders & CreatePersonalAccessTokenRequestQuery & CreatePersonalAccessTokenRequestParams;
14
+ export type CreatePersonalAccessTokenRequest = {
15
+ headers: CreatePersonalAccessTokenRequestHeaders;
16
+ query: CreatePersonalAccessTokenRequestQuery;
17
+ params: CreatePersonalAccessTokenRequestParams;
18
+ body: CreatePersonalAccessTokenRequestBody;
19
+ };
20
+ export declare const parseReq: (input: CreatePersonalAccessTokenInput) => CreatePersonalAccessTokenRequest & {
21
+ path: string;
22
+ };
23
+ export interface CreatePersonalAccessTokenResponse {
24
+ pat: {
25
+ id: string;
26
+ createdAt: string;
27
+ note: string;
28
+ /**
29
+ * The PAT value. This will only be returned here when created and cannot be retrieved later.
30
+ */
31
+ value: string;
32
+ };
33
+ }
@@ -0,0 +1,151 @@
1
+ export interface CreateTableRequestHeaders {
2
+ }
3
+ export interface CreateTableRequestQuery {
4
+ }
5
+ export interface CreateTableRequestParams {
6
+ }
7
+ export interface CreateTableRequestBody {
8
+ /**
9
+ * Required. This name is used to identify your table.
10
+ */
11
+ name: string;
12
+ /**
13
+ * The 'factor' multiplies the row's data storage limit by 4KB and its quota count, but can only be set at table creation and not modified later. For instance, a factor of 2 increases storage to 8KB but counts as 2 rows in your quota. The default factor is 1.
14
+ */
15
+ factor?: number;
16
+ /**
17
+ * A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
18
+ */
19
+ frozen?: boolean;
20
+ /**
21
+ * Provide an object or a JSON schema to define the columns of the table. A maximum of 20 keys in the object/schema is allowed.
22
+ */
23
+ schema: {
24
+ [k: string]: any;
25
+ };
26
+ /**
27
+ * Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
28
+ */
29
+ tags?: {
30
+ [k: string]: string;
31
+ };
32
+ /**
33
+ * Indicates if the table is enabled for computation.
34
+ */
35
+ isComputeEnabled?: boolean;
36
+ }
37
+ export type CreateTableInput = CreateTableRequestBody & CreateTableRequestHeaders & CreateTableRequestQuery & CreateTableRequestParams;
38
+ export type CreateTableRequest = {
39
+ headers: CreateTableRequestHeaders;
40
+ query: CreateTableRequestQuery;
41
+ params: CreateTableRequestParams;
42
+ body: CreateTableRequestBody;
43
+ };
44
+ export declare const parseReq: (input: CreateTableInput) => CreateTableRequest & {
45
+ path: string;
46
+ };
47
+ export interface CreateTableResponse {
48
+ table: {
49
+ /**
50
+ * Unique identifier for the table
51
+ */
52
+ id: string;
53
+ /**
54
+ * Required. This name is used to identify your table.
55
+ */
56
+ name: string;
57
+ /**
58
+ * The 'factor' multiplies the row's data storage limit by 4KB and its quota count, but can only be set at table creation and not modified later. For instance, a factor of 2 increases storage to 8KB but counts as 2 rows in your quota. The default factor is 1.
59
+ */
60
+ factor?: number;
61
+ /**
62
+ * A table designated as "frozen" is immutable in terms of its name and schema structure; modifications to its schema or a renaming operation are not permitted. The only action that can be taken on such a table is deletion. The schema established at the time of creation is locked in as the final structure. To implement any changes, the table must be duplicated with the desired alterations.
63
+ */
64
+ frozen?: boolean;
65
+ schema: {
66
+ $schema: string;
67
+ /**
68
+ * List of keys/columns in the table.
69
+ */
70
+ properties: {
71
+ [k: string]: {
72
+ type: "string" | "number" | "boolean" | "object" | "null";
73
+ format?: "date-time";
74
+ description?: string;
75
+ nullable?: boolean;
76
+ "x-zui": {
77
+ index: number;
78
+ /**
79
+ * [deprecated] ID of the column.
80
+ */
81
+ id?: string;
82
+ /**
83
+ * Indicates if the column is vectorized and searchable.
84
+ */
85
+ searchable?: boolean;
86
+ /**
87
+ * Indicates if the field is hidden in the UI
88
+ */
89
+ hidden?: boolean;
90
+ /**
91
+ * Order of the column in the UI
92
+ */
93
+ order?: number;
94
+ /**
95
+ * Width of the column in the UI
96
+ */
97
+ width?: number;
98
+ computed?: {
99
+ action: "ai" | "code";
100
+ dependencies?: string[];
101
+ /**
102
+ * Prompt when action is "ai"
103
+ */
104
+ prompt?: string;
105
+ /**
106
+ * Model to use when action is "ai"
107
+ */
108
+ model?: "gpt-3.5-turbo" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-16k" | "gpt-4o" | "gpt-4" | "gpt-4-turbo" | "gpt-4-0125-preview" | "gpt-4-1106-preview";
109
+ /**
110
+ * Code to execute when action is "code"
111
+ */
112
+ code?: string;
113
+ enabled?: boolean;
114
+ };
115
+ /**
116
+ * TypeScript typings for the column. Recommended if the type is "object", ex: "\{ foo: string; bar: number \}"
117
+ */
118
+ typings?: string;
119
+ };
120
+ };
121
+ };
122
+ /**
123
+ * Additional properties can be provided, but they will be ignored if no column matches.
124
+ */
125
+ additionalProperties: true;
126
+ /**
127
+ * Array of required properties.
128
+ */
129
+ required?: string[];
130
+ type: "object";
131
+ };
132
+ /**
133
+ * Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
134
+ */
135
+ tags?: {
136
+ [k: string]: string;
137
+ };
138
+ /**
139
+ * Indicates if the table is enabled for computation.
140
+ */
141
+ isComputeEnabled?: boolean;
142
+ /**
143
+ * Timestamp of table creation.
144
+ */
145
+ createdAt?: string;
146
+ /**
147
+ * Timestamp of the last table update.
148
+ */
149
+ updatedAt?: string;
150
+ };
151
+ }
@@ -0,0 +1,71 @@
1
+ export interface CreateTableRowsRequestHeaders {
2
+ }
3
+ export interface CreateTableRowsRequestQuery {
4
+ }
5
+ export interface CreateTableRowsRequestParams {
6
+ table: string;
7
+ }
8
+ export interface CreateTableRowsRequestBody {
9
+ /**
10
+ * @minItems 1
11
+ * @maxItems 1000
12
+ */
13
+ rows: {
14
+ [k: string]: any;
15
+ }[];
16
+ /**
17
+ * Ensure computed columns are fully processed before returning the result. This is applicable only when the number of rows involved is fewer than 1.
18
+ */
19
+ waitComputed?: boolean;
20
+ }
21
+ export type CreateTableRowsInput = CreateTableRowsRequestBody & CreateTableRowsRequestHeaders & CreateTableRowsRequestQuery & CreateTableRowsRequestParams;
22
+ export type CreateTableRowsRequest = {
23
+ headers: CreateTableRowsRequestHeaders;
24
+ query: CreateTableRowsRequestQuery;
25
+ params: CreateTableRowsRequestParams;
26
+ body: CreateTableRowsRequestBody;
27
+ };
28
+ export declare const parseReq: (input: CreateTableRowsInput) => CreateTableRowsRequest & {
29
+ path: string;
30
+ };
31
+ export interface CreateTableRowsResponse {
32
+ rows: {
33
+ /**
34
+ * Unique identifier for the row.
35
+ */
36
+ id: number;
37
+ /**
38
+ * Timestamp of row creation.
39
+ */
40
+ createdAt?: string;
41
+ /**
42
+ * Timestamp of the last row update.
43
+ */
44
+ updatedAt?: string;
45
+ computed: {
46
+ [k: string]: {
47
+ status: string;
48
+ error?: string;
49
+ updatedBy?: string;
50
+ updatedAt?: string;
51
+ };
52
+ };
53
+ /**
54
+ * [Read-only] List of stale values that are waiting to be recomputed.
55
+ */
56
+ stale?: string[];
57
+ /**
58
+ * Optional numeric value indicating similarity, when using findTableRows.
59
+ */
60
+ similarity?: number;
61
+ [k: string]: any;
62
+ }[];
63
+ /**
64
+ * Alerts for minor issues that don't block the operation but suggest possible improvements.
65
+ */
66
+ warnings?: string[];
67
+ /**
68
+ * Critical issues in specific elements that prevent their successful processing, allowing partial operation success.
69
+ */
70
+ errors?: string[];
71
+ }
@@ -0,0 +1,125 @@
1
+ export interface CreateTaskRequestHeaders {
2
+ }
3
+ export interface CreateTaskRequestQuery {
4
+ }
5
+ export interface CreateTaskRequestParams {
6
+ }
7
+ export interface CreateTaskRequestBody {
8
+ /**
9
+ * Title describing the task
10
+ */
11
+ title?: string;
12
+ /**
13
+ * All the notes related to the execution of the current task
14
+ */
15
+ description?: string;
16
+ /**
17
+ * Type of the task
18
+ */
19
+ type: string;
20
+ /**
21
+ * Content related to the task
22
+ */
23
+ data?: {
24
+ [k: string]: any;
25
+ };
26
+ /**
27
+ * Parent task id is the parent task that created this task
28
+ */
29
+ parentTaskId?: string;
30
+ /**
31
+ * Conversation id related to this task
32
+ */
33
+ conversationId: string;
34
+ /**
35
+ * Specific user related to this task
36
+ */
37
+ userId?: string;
38
+ /**
39
+ * The timeout date where the task should be failed in the ISO 8601 format
40
+ */
41
+ timeoutAt?: string;
42
+ /**
43
+ * Tags for the [Task](#schema_task)
44
+ */
45
+ tags?: {
46
+ [k: string]: string;
47
+ };
48
+ }
49
+ export type CreateTaskInput = CreateTaskRequestBody & CreateTaskRequestHeaders & CreateTaskRequestQuery & CreateTaskRequestParams;
50
+ export type CreateTaskRequest = {
51
+ headers: CreateTaskRequestHeaders;
52
+ query: CreateTaskRequestQuery;
53
+ params: CreateTaskRequestParams;
54
+ body: CreateTaskRequestBody;
55
+ };
56
+ export declare const parseReq: (input: CreateTaskInput) => CreateTaskRequest & {
57
+ path: string;
58
+ };
59
+ export interface CreateTaskResponse {
60
+ /**
61
+ * Task definition
62
+ */
63
+ task: {
64
+ /**
65
+ * Id of the [Task](#schema_task)
66
+ */
67
+ id: string;
68
+ /**
69
+ * Title describing the task
70
+ */
71
+ title: string;
72
+ /**
73
+ * All the notes related to the execution of the current task
74
+ */
75
+ description: string;
76
+ /**
77
+ * Type of the task
78
+ */
79
+ type: string;
80
+ /**
81
+ * Content related to the task
82
+ */
83
+ data: {
84
+ [k: string]: any;
85
+ };
86
+ /**
87
+ * Status of the task
88
+ */
89
+ status: "pending" | "in_progress" | "failed" | "completed" | "blocked" | "paused" | "timeout" | "cancelled";
90
+ /**
91
+ * Parent task id is the parent task that created this task
92
+ */
93
+ parentTaskId?: string;
94
+ /**
95
+ * Conversation id related to this task
96
+ */
97
+ conversationId?: string;
98
+ /**
99
+ * Specific user related to this task
100
+ */
101
+ userId?: string;
102
+ /**
103
+ * The timeout date where the task should be failed in the ISO 8601 format
104
+ */
105
+ timeoutAt: string;
106
+ /**
107
+ * Creation date of the task in ISO 8601 format
108
+ */
109
+ createdAt: string;
110
+ /**
111
+ * Updating date of the task in ISO 8601 format
112
+ */
113
+ updatedAt: string;
114
+ /**
115
+ * If the task fails this is the reason behind it
116
+ */
117
+ failureReason?: string;
118
+ /**
119
+ * Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [Task](#schema_task). Individual keys can be unset by posting an empty value to them.
120
+ */
121
+ tags: {
122
+ [k: string]: string;
123
+ };
124
+ };
125
+ }
@@ -0,0 +1,70 @@
1
+ export interface CreateUserRequestHeaders {
2
+ }
3
+ export interface CreateUserRequestQuery {
4
+ }
5
+ export interface CreateUserRequestParams {
6
+ }
7
+ export interface CreateUserRequestBody {
8
+ /**
9
+ * Tags for the [User](#schema_user)
10
+ */
11
+ tags: {
12
+ [k: string]: string;
13
+ };
14
+ /**
15
+ * @deprecated
16
+ * [DEPRECATED] To create a [User](#schema_user) from within a bot, call an action of the integration instead.
17
+ */
18
+ integrationName?: string;
19
+ /**
20
+ * Name of the user
21
+ */
22
+ name?: string;
23
+ /**
24
+ * URI of the user picture
25
+ */
26
+ pictureUrl?: string;
27
+ }
28
+ export type CreateUserInput = CreateUserRequestBody & CreateUserRequestHeaders & CreateUserRequestQuery & CreateUserRequestParams;
29
+ export type CreateUserRequest = {
30
+ headers: CreateUserRequestHeaders;
31
+ query: CreateUserRequestQuery;
32
+ params: CreateUserRequestParams;
33
+ body: CreateUserRequestBody;
34
+ };
35
+ export declare const parseReq: (input: CreateUserInput) => CreateUserRequest & {
36
+ path: string;
37
+ };
38
+ export interface CreateUserResponse {
39
+ /**
40
+ * The user object represents someone interacting with the bot within a specific integration. The same person interacting with a bot in slack and messenger will be represented with two different users.
41
+ */
42
+ user: {
43
+ /**
44
+ * Id of the [User](#schema_user)
45
+ */
46
+ id: string;
47
+ /**
48
+ * Creation date of the [User](#schema_user) in ISO 8601 format
49
+ */
50
+ createdAt: string;
51
+ /**
52
+ * Updating date of the [User](#schema_user) in ISO 8601 format
53
+ */
54
+ updatedAt: string;
55
+ /**
56
+ * Set of [Tags](/docs/developers/concepts/tags) that you can attach to a [User](#schema_user). The set of [Tags](/docs/developers/concepts/tags) available on a [User](#schema_user) is restricted by the list of [Tags](/docs/developers/concepts/tags) defined previously by the [Bot](#schema_bot). Individual keys can be unset by posting an empty value to them.
57
+ */
58
+ tags: {
59
+ [k: string]: string;
60
+ };
61
+ /**
62
+ * Name of the [User](#schema_user)
63
+ */
64
+ name?: string;
65
+ /**
66
+ * Picture URL of the [User](#schema_user)
67
+ */
68
+ pictureUrl?: string;
69
+ };
70
+ }
@@ -0,0 +1,39 @@
1
+ export interface CreateWorkspaceRequestHeaders {
2
+ }
3
+ export interface CreateWorkspaceRequestQuery {
4
+ }
5
+ export interface CreateWorkspaceRequestParams {
6
+ }
7
+ export interface CreateWorkspaceRequestBody {
8
+ name: string;
9
+ }
10
+ export type CreateWorkspaceInput = CreateWorkspaceRequestBody & CreateWorkspaceRequestHeaders & CreateWorkspaceRequestQuery & CreateWorkspaceRequestParams;
11
+ export type CreateWorkspaceRequest = {
12
+ headers: CreateWorkspaceRequestHeaders;
13
+ query: CreateWorkspaceRequestQuery;
14
+ params: CreateWorkspaceRequestParams;
15
+ body: CreateWorkspaceRequestBody;
16
+ };
17
+ export declare const parseReq: (input: CreateWorkspaceInput) => CreateWorkspaceRequest & {
18
+ path: string;
19
+ };
20
+ export interface CreateWorkspaceResponse {
21
+ id: string;
22
+ name: string;
23
+ ownerId: string;
24
+ createdAt: string;
25
+ updatedAt: string;
26
+ botCount: number;
27
+ accountType: "free" | "premium";
28
+ billingVersion: "v1" | "v2";
29
+ plan: "community" | "team" | "enterprise";
30
+ blocked: boolean;
31
+ spendingLimit: number;
32
+ about?: string;
33
+ profilePicture?: string;
34
+ contactEmail?: string;
35
+ website?: string;
36
+ socialAccounts?: string[];
37
+ isPublic?: boolean;
38
+ handle?: string;
39
+ }
@@ -0,0 +1,27 @@
1
+ export interface CreateWorkspaceMemberRequestHeaders {
2
+ }
3
+ export interface CreateWorkspaceMemberRequestQuery {
4
+ }
5
+ export interface CreateWorkspaceMemberRequestParams {
6
+ }
7
+ export interface CreateWorkspaceMemberRequestBody {
8
+ email: string;
9
+ role: "viewer" | "billing" | "developer" | "manager" | "administrator" | "owner";
10
+ }
11
+ export type CreateWorkspaceMemberInput = CreateWorkspaceMemberRequestBody & CreateWorkspaceMemberRequestHeaders & CreateWorkspaceMemberRequestQuery & CreateWorkspaceMemberRequestParams;
12
+ export type CreateWorkspaceMemberRequest = {
13
+ headers: CreateWorkspaceMemberRequestHeaders;
14
+ query: CreateWorkspaceMemberRequestQuery;
15
+ params: CreateWorkspaceMemberRequestParams;
16
+ body: CreateWorkspaceMemberRequestBody;
17
+ };
18
+ export declare const parseReq: (input: CreateWorkspaceMemberInput) => CreateWorkspaceMemberRequest & {
19
+ path: string;
20
+ };
21
+ export interface CreateWorkspaceMemberResponse {
22
+ id: string;
23
+ userId?: string;
24
+ email: string;
25
+ createdAt: string;
26
+ role: "viewer" | "billing" | "developer" | "manager" | "administrator" | "owner";
27
+ }
@@ -0,0 +1,21 @@
1
+ export interface DeleteBotRequestHeaders {
2
+ }
3
+ export interface DeleteBotRequestQuery {
4
+ }
5
+ export interface DeleteBotRequestParams {
6
+ id: string;
7
+ }
8
+ export interface DeleteBotRequestBody {
9
+ }
10
+ export type DeleteBotInput = DeleteBotRequestBody & DeleteBotRequestHeaders & DeleteBotRequestQuery & DeleteBotRequestParams;
11
+ export type DeleteBotRequest = {
12
+ headers: DeleteBotRequestHeaders;
13
+ query: DeleteBotRequestQuery;
14
+ params: DeleteBotRequestParams;
15
+ body: DeleteBotRequestBody;
16
+ };
17
+ export declare const parseReq: (input: DeleteBotInput) => DeleteBotRequest & {
18
+ path: string;
19
+ };
20
+ export interface DeleteBotResponse {
21
+ }
@@ -0,0 +1,22 @@
1
+ export interface DeleteBotIssueRequestHeaders {
2
+ }
3
+ export interface DeleteBotIssueRequestQuery {
4
+ }
5
+ export interface DeleteBotIssueRequestParams {
6
+ id: string;
7
+ issueId: string;
8
+ }
9
+ export interface DeleteBotIssueRequestBody {
10
+ }
11
+ export type DeleteBotIssueInput = DeleteBotIssueRequestBody & DeleteBotIssueRequestHeaders & DeleteBotIssueRequestQuery & DeleteBotIssueRequestParams;
12
+ export type DeleteBotIssueRequest = {
13
+ headers: DeleteBotIssueRequestHeaders;
14
+ query: DeleteBotIssueRequestQuery;
15
+ params: DeleteBotIssueRequestParams;
16
+ body: DeleteBotIssueRequestBody;
17
+ };
18
+ export declare const parseReq: (input: DeleteBotIssueInput) => DeleteBotIssueRequest & {
19
+ path: string;
20
+ };
21
+ export interface DeleteBotIssueResponse {
22
+ }
@@ -0,0 +1,21 @@
1
+ export interface DeleteConversationRequestHeaders {
2
+ }
3
+ export interface DeleteConversationRequestQuery {
4
+ }
5
+ export interface DeleteConversationRequestParams {
6
+ id: string;
7
+ }
8
+ export interface DeleteConversationRequestBody {
9
+ }
10
+ export type DeleteConversationInput = DeleteConversationRequestBody & DeleteConversationRequestHeaders & DeleteConversationRequestQuery & DeleteConversationRequestParams;
11
+ export type DeleteConversationRequest = {
12
+ headers: DeleteConversationRequestHeaders;
13
+ query: DeleteConversationRequestQuery;
14
+ params: DeleteConversationRequestParams;
15
+ body: DeleteConversationRequestBody;
16
+ };
17
+ export declare const parseReq: (input: DeleteConversationInput) => DeleteConversationRequest & {
18
+ path: string;
19
+ };
20
+ export interface DeleteConversationResponse {
21
+ }