@botpress/client 0.17.0 → 0.18.2

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 (138) hide show
  1. package/.turbo/turbo-build.log +23 -0
  2. package/.turbo/turbo-generate.log +9 -0
  3. package/dist/bundle.cjs +13 -10
  4. package/dist/bundle.cjs.map +4 -4
  5. package/dist/gen/index.d.ts +365 -13
  6. package/dist/gen/models.d.ts +1159 -0
  7. package/dist/gen/operations/addParticipant.d.ts +56 -0
  8. package/dist/gen/operations/breakDownWorkspaceUsageByBot.d.ts +27 -0
  9. package/dist/gen/operations/callAction.d.ts +36 -0
  10. package/dist/gen/operations/changeAISpendQuota.d.ts +21 -0
  11. package/dist/gen/operations/chargeWorkspaceUnpaidInvoices.d.ts +40 -0
  12. package/dist/gen/operations/checkHandleAvailability.d.ts +24 -0
  13. package/dist/gen/operations/configureIntegration.d.ts +24 -0
  14. package/dist/gen/operations/createBot.d.ts +487 -0
  15. package/dist/gen/operations/createConversation.d.ts +70 -0
  16. package/dist/gen/operations/createEvent.d.ts +95 -0
  17. package/dist/gen/operations/createFile.d.ts +108 -0
  18. package/dist/gen/operations/createIntegration.d.ts +533 -0
  19. package/dist/gen/operations/createIntegrationApiKey.d.ts +29 -0
  20. package/dist/gen/operations/createMessage.d.ts +98 -0
  21. package/dist/gen/operations/createPersonalAccessToken.d.ts +33 -0
  22. package/dist/gen/operations/createTable.d.ts +151 -0
  23. package/dist/gen/operations/createTableRows.d.ts +71 -0
  24. package/dist/gen/operations/createTask.d.ts +125 -0
  25. package/dist/gen/operations/createUser.d.ts +70 -0
  26. package/dist/gen/operations/createWorkspace.d.ts +38 -0
  27. package/dist/gen/operations/createWorkspaceMember.d.ts +27 -0
  28. package/dist/gen/operations/deleteBot.d.ts +21 -0
  29. package/dist/gen/operations/deleteBotIssue.d.ts +22 -0
  30. package/dist/gen/operations/deleteConversation.d.ts +21 -0
  31. package/dist/gen/operations/deleteFile.d.ts +21 -0
  32. package/dist/gen/operations/deleteIntegration.d.ts +21 -0
  33. package/dist/gen/operations/deleteIntegrationApiKey.d.ts +21 -0
  34. package/dist/gen/operations/deleteMessage.d.ts +21 -0
  35. package/dist/gen/operations/deletePersonalAccessToken.d.ts +21 -0
  36. package/dist/gen/operations/deleteTable.d.ts +21 -0
  37. package/dist/gen/operations/deleteTableRows.d.ts +36 -0
  38. package/dist/gen/operations/deleteTask.d.ts +21 -0
  39. package/dist/gen/operations/deleteUser.d.ts +21 -0
  40. package/dist/gen/operations/deleteWorkspace.d.ts +21 -0
  41. package/dist/gen/operations/deleteWorkspaceMember.d.ts +21 -0
  42. package/dist/gen/operations/duplicateTable.d.ts +137 -0
  43. package/dist/gen/operations/findTableRows.d.ts +94 -0
  44. package/dist/gen/operations/getAccount.d.ts +31 -0
  45. package/dist/gen/operations/getAccountPreference.d.ts +22 -0
  46. package/dist/gen/operations/getAllWorkspaceQuotaCompletion.d.ts +24 -0
  47. package/dist/gen/operations/getAuditRecords.d.ts +38 -0
  48. package/dist/gen/operations/getBot.d.ts +308 -0
  49. package/dist/gen/operations/getBotAnalytics.d.ts +49 -0
  50. package/dist/gen/operations/getBotIssue.d.ts +39 -0
  51. package/dist/gen/operations/getBotLogs.d.ts +30 -0
  52. package/dist/gen/operations/getBotWebchat.d.ts +23 -0
  53. package/dist/gen/operations/getConversation.d.ts +56 -0
  54. package/dist/gen/operations/getEvent.d.ts +61 -0
  55. package/dist/gen/operations/getFile.d.ts +85 -0
  56. package/dist/gen/operations/getIntegration.d.ts +295 -0
  57. package/dist/gen/operations/getIntegrationByName.d.ts +296 -0
  58. package/dist/gen/operations/getIntegrationLogs.d.ts +30 -0
  59. package/dist/gen/operations/getMessage.d.ts +62 -0
  60. package/dist/gen/operations/getOrCreateConversation.d.ts +70 -0
  61. package/dist/gen/operations/getOrCreateMessage.d.ts +98 -0
  62. package/dist/gen/operations/getOrCreateTable.d.ts +164 -0
  63. package/dist/gen/operations/getOrCreateUser.d.ts +70 -0
  64. package/dist/gen/operations/getOrSetState.d.ts +76 -0
  65. package/dist/gen/operations/getParticipant.d.ts +53 -0
  66. package/dist/gen/operations/getPublicIntegration.d.ts +301 -0
  67. package/dist/gen/operations/getPublicIntegrationById.d.ts +300 -0
  68. package/dist/gen/operations/getPublicWorkspace.d.ts +31 -0
  69. package/dist/gen/operations/getState.d.ts +66 -0
  70. package/dist/gen/operations/getTable.d.ts +136 -0
  71. package/dist/gen/operations/getTableRow.d.ts +53 -0
  72. package/dist/gen/operations/getTask.d.ts +86 -0
  73. package/dist/gen/operations/getUpcomingInvoice.d.ts +29 -0
  74. package/dist/gen/operations/getUsage.d.ts +45 -0
  75. package/dist/gen/operations/getUser.d.ts +52 -0
  76. package/dist/gen/operations/getWorkspace.d.ts +38 -0
  77. package/dist/gen/operations/getWorkspaceMember.d.ts +25 -0
  78. package/dist/gen/operations/getWorkspaceQuota.d.ts +37 -0
  79. package/dist/gen/operations/introspect.d.ts +24 -0
  80. package/dist/gen/operations/listActivities.d.ts +42 -0
  81. package/dist/gen/operations/listBotIssueEvents.d.ts +32 -0
  82. package/dist/gen/operations/listBotIssues.d.ts +45 -0
  83. package/dist/gen/operations/listBots.d.ts +44 -0
  84. package/dist/gen/operations/listConversations.d.ts +64 -0
  85. package/dist/gen/operations/listEvents.d.ts +69 -0
  86. package/dist/gen/operations/listFiles.d.ts +94 -0
  87. package/dist/gen/operations/listIntegrationApiKeys.d.ts +26 -0
  88. package/dist/gen/operations/listIntegrations.d.ts +68 -0
  89. package/dist/gen/operations/listMessages.d.ts +69 -0
  90. package/dist/gen/operations/listParticipants.d.ts +56 -0
  91. package/dist/gen/operations/listPersonalAccessTokens.d.ts +25 -0
  92. package/dist/gen/operations/listPublicIntegrations.d.ts +72 -0
  93. package/dist/gen/operations/listTables.d.ts +126 -0
  94. package/dist/gen/operations/listTasks.d.ts +97 -0
  95. package/dist/gen/operations/listUsageHistory.d.ts +44 -0
  96. package/dist/gen/operations/listUsers.d.ts +59 -0
  97. package/dist/gen/operations/listWorkspaceInvoices.d.ts +53 -0
  98. package/dist/gen/operations/listWorkspaceMembers.d.ts +34 -0
  99. package/dist/gen/operations/listWorkspaceQuotas.d.ts +36 -0
  100. package/dist/gen/operations/listWorkspaceUsages.d.ts +45 -0
  101. package/dist/gen/operations/listWorkspaces.d.ts +47 -0
  102. package/dist/gen/operations/patchState.d.ts +72 -0
  103. package/dist/gen/operations/removeParticipant.d.ts +22 -0
  104. package/dist/gen/operations/renameTableColumn.d.ts +132 -0
  105. package/dist/gen/operations/runVrl.d.ts +28 -0
  106. package/dist/gen/operations/searchFiles.d.ts +60 -0
  107. package/dist/gen/operations/setAccountPreference.d.ts +22 -0
  108. package/dist/gen/operations/setState.d.ts +76 -0
  109. package/dist/gen/operations/setWorkspacePaymentMethod.d.ts +37 -0
  110. package/dist/gen/operations/trackAnalytics.d.ts +22 -0
  111. package/dist/gen/operations/transferBot.d.ts +25 -0
  112. package/dist/gen/operations/updateAccount.d.ts +34 -0
  113. package/dist/gen/operations/updateBot.d.ts +486 -0
  114. package/dist/gen/operations/updateConversation.d.ts +63 -0
  115. package/dist/gen/operations/updateFile.d.ts +95 -0
  116. package/dist/gen/operations/updateIntegration.d.ts +522 -0
  117. package/dist/gen/operations/updateMessage.d.ts +68 -0
  118. package/dist/gen/operations/updateTable.d.ts +152 -0
  119. package/dist/gen/operations/updateTableRows.d.ts +74 -0
  120. package/dist/gen/operations/updateTask.d.ts +114 -0
  121. package/dist/gen/operations/updateUser.d.ts +66 -0
  122. package/dist/gen/operations/updateWorkspace.d.ts +50 -0
  123. package/dist/gen/operations/updateWorkspaceMember.d.ts +27 -0
  124. package/dist/gen/operations/upsertTableRows.d.ts +107 -0
  125. package/dist/gen/to-axios.d.ts +16 -0
  126. package/dist/index.cjs +4 -1
  127. package/dist/index.cjs.map +4 -4
  128. package/dist/index.d.ts +5 -14
  129. package/dist/index.mjs +4 -1
  130. package/dist/index.mjs.map +4 -4
  131. package/openapi.ts +3 -3
  132. package/package.json +4 -2
  133. package/readme.md +2 -3
  134. package/dist/gen/api.d.ts +0 -14260
  135. package/dist/gen/base.d.ts +0 -54
  136. package/dist/gen/client.d.ts +0 -255
  137. package/dist/gen/common.d.ts +0 -65
  138. package/dist/gen/configuration.d.ts +0 -83
@@ -0,0 +1,152 @@
1
+ export interface UpdateTableRequestHeaders {
2
+ }
3
+ export interface UpdateTableRequestQuery {
4
+ }
5
+ export interface UpdateTableRequestParams {
6
+ table: string;
7
+ }
8
+ export interface UpdateTableRequestBody {
9
+ /**
10
+ * Required. This name is used to identify your table.
11
+ */
12
+ name?: string;
13
+ /**
14
+ * 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.
15
+ */
16
+ frozen?: boolean;
17
+ /**
18
+ * 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.
19
+ */
20
+ schema?: {
21
+ [k: string]: any;
22
+ };
23
+ /**
24
+ * Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
25
+ */
26
+ tags?: {
27
+ [k: string]: string;
28
+ };
29
+ /**
30
+ * Indicates if the table is enabled for computation.
31
+ */
32
+ isComputeEnabled?: boolean;
33
+ }
34
+ export type UpdateTableInput = UpdateTableRequestBody & UpdateTableRequestHeaders & UpdateTableRequestQuery & UpdateTableRequestParams;
35
+ export type UpdateTableRequest = {
36
+ headers: UpdateTableRequestHeaders;
37
+ query: UpdateTableRequestQuery;
38
+ params: UpdateTableRequestParams;
39
+ body: UpdateTableRequestBody;
40
+ };
41
+ export declare const parseReq: (input: UpdateTableInput) => UpdateTableRequest & {
42
+ path: string;
43
+ };
44
+ export interface UpdateTableResponse {
45
+ table: {
46
+ /**
47
+ * Unique identifier for the table
48
+ */
49
+ id: string;
50
+ /**
51
+ * Required. This name is used to identify your table.
52
+ */
53
+ name: string;
54
+ /**
55
+ * 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.
56
+ */
57
+ factor?: number;
58
+ /**
59
+ * 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.
60
+ */
61
+ frozen?: boolean;
62
+ schema: {
63
+ $schema: string;
64
+ /**
65
+ * List of keys/columns in the table.
66
+ */
67
+ properties: {
68
+ [k: string]: {
69
+ type: "string" | "number" | "boolean" | "object" | "null";
70
+ format?: "date-time";
71
+ description?: string;
72
+ nullable?: boolean;
73
+ "x-zui": {
74
+ index: number;
75
+ /**
76
+ * [deprecated] ID of the column.
77
+ */
78
+ id?: string;
79
+ /**
80
+ * Indicates if the column is vectorized and searchable.
81
+ */
82
+ searchable?: boolean;
83
+ /**
84
+ * Indicates if the field is hidden in the UI
85
+ */
86
+ hidden?: boolean;
87
+ /**
88
+ * Order of the column in the UI
89
+ */
90
+ order?: number;
91
+ /**
92
+ * Width of the column in the UI
93
+ */
94
+ width?: number;
95
+ computed?: {
96
+ action: "ai" | "code";
97
+ dependencies?: string[];
98
+ /**
99
+ * Prompt when action is "ai"
100
+ */
101
+ prompt?: string;
102
+ /**
103
+ * Model to use when action is "ai"
104
+ */
105
+ 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";
106
+ /**
107
+ * Code to execute when action is "code"
108
+ */
109
+ code?: string;
110
+ enabled?: boolean;
111
+ };
112
+ /**
113
+ * TypeScript typings for the column. Recommended if the type is "object", ex: "\{ foo: string; bar: number \}"
114
+ */
115
+ typings?: string;
116
+ };
117
+ };
118
+ };
119
+ /**
120
+ * Additional properties can be provided, but they will be ignored if no column matches.
121
+ */
122
+ additionalProperties: true;
123
+ /**
124
+ * Array of required properties.
125
+ */
126
+ required?: string[];
127
+ type: "object";
128
+ };
129
+ /**
130
+ * Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
131
+ */
132
+ tags?: {
133
+ [k: string]: string;
134
+ };
135
+ /**
136
+ * Indicates if the table is enabled for computation.
137
+ */
138
+ isComputeEnabled?: boolean;
139
+ /**
140
+ * Timestamp of table creation.
141
+ */
142
+ createdAt?: string;
143
+ /**
144
+ * Timestamp of the last table update.
145
+ */
146
+ updatedAt?: string;
147
+ };
148
+ /**
149
+ * List of columns that have become stale following the modification.
150
+ */
151
+ staleColumns?: string[];
152
+ }
@@ -0,0 +1,74 @@
1
+ export interface UpdateTableRowsRequestHeaders {
2
+ }
3
+ export interface UpdateTableRowsRequestQuery {
4
+ }
5
+ export interface UpdateTableRowsRequestParams {
6
+ table: string;
7
+ }
8
+ export interface UpdateTableRowsRequestBody {
9
+ /**
10
+ * Rows with updated data, identified by ID.
11
+ *
12
+ * @minItems 1
13
+ * @maxItems 1000
14
+ */
15
+ rows: {
16
+ id: number;
17
+ [k: string]: any;
18
+ }[];
19
+ /**
20
+ * Ensure computed columns are fully processed before returning the result. This is applicable only when the number of rows involved is fewer than 1.
21
+ */
22
+ waitComputed?: boolean;
23
+ }
24
+ export type UpdateTableRowsInput = UpdateTableRowsRequestBody & UpdateTableRowsRequestHeaders & UpdateTableRowsRequestQuery & UpdateTableRowsRequestParams;
25
+ export type UpdateTableRowsRequest = {
26
+ headers: UpdateTableRowsRequestHeaders;
27
+ query: UpdateTableRowsRequestQuery;
28
+ params: UpdateTableRowsRequestParams;
29
+ body: UpdateTableRowsRequestBody;
30
+ };
31
+ export declare const parseReq: (input: UpdateTableRowsInput) => UpdateTableRowsRequest & {
32
+ path: string;
33
+ };
34
+ export interface UpdateTableRowsResponse {
35
+ rows: {
36
+ /**
37
+ * Unique identifier for the row.
38
+ */
39
+ id: number;
40
+ /**
41
+ * Timestamp of row creation.
42
+ */
43
+ createdAt?: string;
44
+ /**
45
+ * Timestamp of the last row update.
46
+ */
47
+ updatedAt?: string;
48
+ computed: {
49
+ [k: string]: {
50
+ status: string;
51
+ error?: string;
52
+ updatedBy?: string;
53
+ updatedAt?: string;
54
+ };
55
+ };
56
+ /**
57
+ * [Read-only] List of stale values that are waiting to be recomputed.
58
+ */
59
+ stale?: string[];
60
+ /**
61
+ * Optional numeric value indicating similarity, when using findTableRows.
62
+ */
63
+ similarity?: number;
64
+ [k: string]: any;
65
+ }[];
66
+ /**
67
+ * Alerts for minor issues that don't block the operation but suggest possible improvements.
68
+ */
69
+ warnings?: string[];
70
+ /**
71
+ * Critical issues in specific elements that prevent their successful processing, allowing partial operation success.
72
+ */
73
+ errors?: string[];
74
+ }
@@ -0,0 +1,114 @@
1
+ export interface UpdateTaskRequestHeaders {
2
+ }
3
+ export interface UpdateTaskRequestQuery {
4
+ }
5
+ export interface UpdateTaskRequestParams {
6
+ id: string;
7
+ }
8
+ export interface UpdateTaskRequestBody {
9
+ /**
10
+ * Title describing the task
11
+ */
12
+ title?: string;
13
+ /**
14
+ * All the notes related to the execution of the current task
15
+ */
16
+ description?: string;
17
+ /**
18
+ * Content related to the task
19
+ */
20
+ data?: {
21
+ [k: string]: any;
22
+ };
23
+ /**
24
+ * The timeout date where the task should be failed in the ISO 8601 format
25
+ */
26
+ timeoutAt?: string;
27
+ /**
28
+ * Status of the task
29
+ */
30
+ status?: "pending" | "in_progress" | "failed" | "completed" | "blocked" | "paused" | "timeout" | "cancelled";
31
+ /**
32
+ * Tags for the [Task](#schema_task)
33
+ */
34
+ tags?: {
35
+ [k: string]: string;
36
+ };
37
+ }
38
+ export type UpdateTaskInput = UpdateTaskRequestBody & UpdateTaskRequestHeaders & UpdateTaskRequestQuery & UpdateTaskRequestParams;
39
+ export type UpdateTaskRequest = {
40
+ headers: UpdateTaskRequestHeaders;
41
+ query: UpdateTaskRequestQuery;
42
+ params: UpdateTaskRequestParams;
43
+ body: UpdateTaskRequestBody;
44
+ };
45
+ export declare const parseReq: (input: UpdateTaskInput) => UpdateTaskRequest & {
46
+ path: string;
47
+ };
48
+ export interface UpdateTaskResponse {
49
+ /**
50
+ * Task definition
51
+ */
52
+ task: {
53
+ /**
54
+ * Id of the [Task](#schema_task)
55
+ */
56
+ id: string;
57
+ /**
58
+ * Title describing the task
59
+ */
60
+ title: string;
61
+ /**
62
+ * All the notes related to the execution of the current task
63
+ */
64
+ description: string;
65
+ /**
66
+ * Type of the task
67
+ */
68
+ type: string;
69
+ /**
70
+ * Content related to the task
71
+ */
72
+ data: {
73
+ [k: string]: any;
74
+ };
75
+ /**
76
+ * Status of the task
77
+ */
78
+ status: "pending" | "in_progress" | "failed" | "completed" | "blocked" | "paused" | "timeout" | "cancelled";
79
+ /**
80
+ * Parent task id is the parent task that created this task
81
+ */
82
+ parentTaskId?: string;
83
+ /**
84
+ * Conversation id related to this task
85
+ */
86
+ conversationId?: string;
87
+ /**
88
+ * Specific user related to this task
89
+ */
90
+ userId?: string;
91
+ /**
92
+ * The timeout date where the task should be failed in the ISO 8601 format
93
+ */
94
+ timeoutAt: string;
95
+ /**
96
+ * Creation date of the task in ISO 8601 format
97
+ */
98
+ createdAt: string;
99
+ /**
100
+ * Updating date of the task in ISO 8601 format
101
+ */
102
+ updatedAt: string;
103
+ /**
104
+ * If the task fails this is the reason behind it
105
+ */
106
+ failureReason?: string;
107
+ /**
108
+ * 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.
109
+ */
110
+ tags: {
111
+ [k: string]: string;
112
+ };
113
+ };
114
+ }
@@ -0,0 +1,66 @@
1
+ export interface UpdateUserRequestHeaders {
2
+ }
3
+ export interface UpdateUserRequestQuery {
4
+ }
5
+ export interface UpdateUserRequestParams {
6
+ id: string;
7
+ }
8
+ export interface UpdateUserRequestBody {
9
+ /**
10
+ * Tags for the [User](#schema_user)
11
+ */
12
+ tags?: {
13
+ [k: string]: string;
14
+ };
15
+ /**
16
+ * Name of the user
17
+ */
18
+ name?: string;
19
+ /**
20
+ * URI of the user picture
21
+ */
22
+ pictureUrl?: string | null;
23
+ }
24
+ export type UpdateUserInput = UpdateUserRequestBody & UpdateUserRequestHeaders & UpdateUserRequestQuery & UpdateUserRequestParams;
25
+ export type UpdateUserRequest = {
26
+ headers: UpdateUserRequestHeaders;
27
+ query: UpdateUserRequestQuery;
28
+ params: UpdateUserRequestParams;
29
+ body: UpdateUserRequestBody;
30
+ };
31
+ export declare const parseReq: (input: UpdateUserInput) => UpdateUserRequest & {
32
+ path: string;
33
+ };
34
+ export interface UpdateUserResponse {
35
+ /**
36
+ * 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.
37
+ */
38
+ user: {
39
+ /**
40
+ * Id of the [User](#schema_user)
41
+ */
42
+ id: string;
43
+ /**
44
+ * Creation date of the [User](#schema_user) in ISO 8601 format
45
+ */
46
+ createdAt: string;
47
+ /**
48
+ * Updating date of the [User](#schema_user) in ISO 8601 format
49
+ */
50
+ updatedAt: string;
51
+ /**
52
+ * 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.
53
+ */
54
+ tags: {
55
+ [k: string]: string;
56
+ };
57
+ /**
58
+ * Name of the [User](#schema_user)
59
+ */
60
+ name?: string;
61
+ /**
62
+ * Picture URL of the [User](#schema_user)
63
+ */
64
+ pictureUrl?: string;
65
+ };
66
+ }
@@ -0,0 +1,50 @@
1
+ export interface UpdateWorkspaceRequestHeaders {
2
+ }
3
+ export interface UpdateWorkspaceRequestQuery {
4
+ }
5
+ export interface UpdateWorkspaceRequestParams {
6
+ id: string;
7
+ }
8
+ export interface UpdateWorkspaceRequestBody {
9
+ name?: string;
10
+ spendingLimit?: number;
11
+ about?: string;
12
+ profilePicture?: string;
13
+ contactEmail?: string;
14
+ website?: string;
15
+ /**
16
+ * @maxItems 5
17
+ */
18
+ socialAccounts?: string[];
19
+ isPublic?: boolean;
20
+ handle?: string;
21
+ }
22
+ export type UpdateWorkspaceInput = UpdateWorkspaceRequestBody & UpdateWorkspaceRequestHeaders & UpdateWorkspaceRequestQuery & UpdateWorkspaceRequestParams;
23
+ export type UpdateWorkspaceRequest = {
24
+ headers: UpdateWorkspaceRequestHeaders;
25
+ query: UpdateWorkspaceRequestQuery;
26
+ params: UpdateWorkspaceRequestParams;
27
+ body: UpdateWorkspaceRequestBody;
28
+ };
29
+ export declare const parseReq: (input: UpdateWorkspaceInput) => UpdateWorkspaceRequest & {
30
+ path: string;
31
+ };
32
+ export interface UpdateWorkspaceResponse {
33
+ id: string;
34
+ name: string;
35
+ ownerId: string;
36
+ createdAt: string;
37
+ updatedAt: string;
38
+ botCount: number;
39
+ billingVersion: "v1" | "v2";
40
+ plan: "community" | "team" | "enterprise";
41
+ blocked: boolean;
42
+ spendingLimit: number;
43
+ about?: string;
44
+ profilePicture?: string;
45
+ contactEmail?: string;
46
+ website?: string;
47
+ socialAccounts?: string[];
48
+ isPublic?: boolean;
49
+ handle?: string;
50
+ }
@@ -0,0 +1,27 @@
1
+ export interface UpdateWorkspaceMemberRequestHeaders {
2
+ }
3
+ export interface UpdateWorkspaceMemberRequestQuery {
4
+ }
5
+ export interface UpdateWorkspaceMemberRequestParams {
6
+ id: string;
7
+ }
8
+ export interface UpdateWorkspaceMemberRequestBody {
9
+ role?: "viewer" | "billing" | "developer" | "manager" | "administrator" | "owner";
10
+ }
11
+ export type UpdateWorkspaceMemberInput = UpdateWorkspaceMemberRequestBody & UpdateWorkspaceMemberRequestHeaders & UpdateWorkspaceMemberRequestQuery & UpdateWorkspaceMemberRequestParams;
12
+ export type UpdateWorkspaceMemberRequest = {
13
+ headers: UpdateWorkspaceMemberRequestHeaders;
14
+ query: UpdateWorkspaceMemberRequestQuery;
15
+ params: UpdateWorkspaceMemberRequestParams;
16
+ body: UpdateWorkspaceMemberRequestBody;
17
+ };
18
+ export declare const parseReq: (input: UpdateWorkspaceMemberInput) => UpdateWorkspaceMemberRequest & {
19
+ path: string;
20
+ };
21
+ export interface UpdateWorkspaceMemberResponse {
22
+ id: string;
23
+ userId?: string;
24
+ email: string;
25
+ createdAt: string;
26
+ role: "viewer" | "billing" | "developer" | "manager" | "administrator" | "owner";
27
+ }
@@ -0,0 +1,107 @@
1
+ export interface UpsertTableRowsRequestHeaders {
2
+ }
3
+ export interface UpsertTableRowsRequestQuery {
4
+ }
5
+ export interface UpsertTableRowsRequestParams {
6
+ table: string;
7
+ }
8
+ export interface UpsertTableRowsRequestBody {
9
+ /**
10
+ * @minItems 1
11
+ * @maxItems 1000
12
+ */
13
+ rows: {
14
+ id?: number;
15
+ [k: string]: any;
16
+ }[];
17
+ /**
18
+ * Determines if a row is inserted or updated. Defaults to "id".
19
+ */
20
+ keyColumn?: string;
21
+ /**
22
+ * Ensure computed columns are fully processed before returning the result. This is applicable only when the number of rows involved is fewer than 1.
23
+ */
24
+ waitComputed?: boolean;
25
+ }
26
+ export type UpsertTableRowsInput = UpsertTableRowsRequestBody & UpsertTableRowsRequestHeaders & UpsertTableRowsRequestQuery & UpsertTableRowsRequestParams;
27
+ export type UpsertTableRowsRequest = {
28
+ headers: UpsertTableRowsRequestHeaders;
29
+ query: UpsertTableRowsRequestQuery;
30
+ params: UpsertTableRowsRequestParams;
31
+ body: UpsertTableRowsRequestBody;
32
+ };
33
+ export declare const parseReq: (input: UpsertTableRowsInput) => UpsertTableRowsRequest & {
34
+ path: string;
35
+ };
36
+ export interface UpsertTableRowsResponse {
37
+ inserted: {
38
+ /**
39
+ * Unique identifier for the row.
40
+ */
41
+ id: number;
42
+ /**
43
+ * Timestamp of row creation.
44
+ */
45
+ createdAt?: string;
46
+ /**
47
+ * Timestamp of the last row update.
48
+ */
49
+ updatedAt?: string;
50
+ computed: {
51
+ [k: string]: {
52
+ status: string;
53
+ error?: string;
54
+ updatedBy?: string;
55
+ updatedAt?: string;
56
+ };
57
+ };
58
+ /**
59
+ * [Read-only] List of stale values that are waiting to be recomputed.
60
+ */
61
+ stale?: string[];
62
+ /**
63
+ * Optional numeric value indicating similarity, when using findTableRows.
64
+ */
65
+ similarity?: number;
66
+ [k: string]: any;
67
+ }[];
68
+ updated: {
69
+ /**
70
+ * Unique identifier for the row.
71
+ */
72
+ id: number;
73
+ /**
74
+ * Timestamp of row creation.
75
+ */
76
+ createdAt?: string;
77
+ /**
78
+ * Timestamp of the last row update.
79
+ */
80
+ updatedAt?: string;
81
+ computed: {
82
+ [k: string]: {
83
+ status: string;
84
+ error?: string;
85
+ updatedBy?: string;
86
+ updatedAt?: string;
87
+ };
88
+ };
89
+ /**
90
+ * [Read-only] List of stale values that are waiting to be recomputed.
91
+ */
92
+ stale?: string[];
93
+ /**
94
+ * Optional numeric value indicating similarity, when using findTableRows.
95
+ */
96
+ similarity?: number;
97
+ [k: string]: any;
98
+ }[];
99
+ /**
100
+ * Alerts for minor issues that don't block the operation but suggest possible improvements.
101
+ */
102
+ warnings?: string[];
103
+ /**
104
+ * Critical issues in specific elements that prevent their successful processing, allowing partial operation success.
105
+ */
106
+ errors?: string[];
107
+ }
@@ -0,0 +1,16 @@
1
+ import { AxiosRequestConfig } from "axios";
2
+ export type Primitive = string | number | boolean;
3
+ export type Value<P extends Primitive> = P | P[] | Record<string, P>;
4
+ export type QueryValue = Value<string> | Value<boolean> | Value<number> | undefined;
5
+ export type AnyQueryParams = Record<string, QueryValue>;
6
+ export type HeaderValue = string | undefined;
7
+ export type AnyHeaderParams = Record<string, HeaderValue>;
8
+ export type AnyBodyParams = Record<string, any>;
9
+ export type ParsedRequest = {
10
+ method: string;
11
+ path: string;
12
+ query: AnyQueryParams;
13
+ headers: AnyHeaderParams;
14
+ body: AnyBodyParams;
15
+ };
16
+ export declare const toAxiosRequest: (req: ParsedRequest) => AxiosRequestConfig;