@botpress/client 0.24.1 → 0.24.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.
- package/.turbo/turbo-build.log +7 -7
- package/.turbo/turbo-generate.log +1 -1
- package/dist/index.d.ts +190 -1
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
|
|
2
|
-
> @botpress/client@0.24.
|
|
2
|
+
> @botpress/client@0.24.2 build /home/runner/work/botpress/botpress/packages/client
|
|
3
3
|
> pnpm build:type && pnpm build:node && pnpm build:browser && pnpm build:bundle
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @botpress/client@0.24.
|
|
6
|
+
> @botpress/client@0.24.2 build:type /home/runner/work/botpress/botpress/packages/client
|
|
7
7
|
> tsup ./src/index.ts --dts-resolve --dts-only
|
|
8
8
|
|
|
9
9
|
[34mCLI[39m Building entry: ./src/index.ts
|
|
10
10
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
11
11
|
[34mCLI[39m tsup v8.0.2
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 3103ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m358.90 KB[39m
|
|
15
15
|
|
|
16
|
-
> @botpress/client@0.24.
|
|
16
|
+
> @botpress/client@0.24.2 build:node /home/runner/work/botpress/botpress/packages/client
|
|
17
17
|
> ts-node -T ./build.ts --node
|
|
18
18
|
|
|
19
19
|
Done
|
|
20
20
|
|
|
21
|
-
> @botpress/client@0.24.
|
|
21
|
+
> @botpress/client@0.24.2 build:browser /home/runner/work/botpress/botpress/packages/client
|
|
22
22
|
> ts-node -T ./build.ts --browser
|
|
23
23
|
|
|
24
24
|
Done
|
|
25
25
|
|
|
26
|
-
> @botpress/client@0.24.
|
|
26
|
+
> @botpress/client@0.24.2 build:bundle /home/runner/work/botpress/botpress/packages/client
|
|
27
27
|
> ts-node -T ./build.ts --bundle
|
|
28
28
|
|
|
29
29
|
Done
|
package/dist/index.d.ts
CHANGED
|
@@ -10173,6 +10173,15 @@ interface Workspace {
|
|
|
10173
10173
|
isPublic?: boolean;
|
|
10174
10174
|
handle?: string;
|
|
10175
10175
|
}
|
|
10176
|
+
interface WorkspaceMember {
|
|
10177
|
+
id: string;
|
|
10178
|
+
userId?: string;
|
|
10179
|
+
email: string;
|
|
10180
|
+
createdAt: string;
|
|
10181
|
+
role: "viewer" | "billing" | "developer" | "manager" | "administrator" | "owner";
|
|
10182
|
+
profilePicture?: string;
|
|
10183
|
+
displayName?: string;
|
|
10184
|
+
}
|
|
10176
10185
|
interface Account {
|
|
10177
10186
|
id: string;
|
|
10178
10187
|
email: string;
|
|
@@ -10423,6 +10432,186 @@ interface State {
|
|
|
10423
10432
|
[k: string]: any;
|
|
10424
10433
|
};
|
|
10425
10434
|
}
|
|
10435
|
+
interface Table {
|
|
10436
|
+
/**
|
|
10437
|
+
* Unique identifier for the table
|
|
10438
|
+
*/
|
|
10439
|
+
id: string;
|
|
10440
|
+
/**
|
|
10441
|
+
* Required. This name is used to identify your table.
|
|
10442
|
+
*/
|
|
10443
|
+
name: string;
|
|
10444
|
+
/**
|
|
10445
|
+
* 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.
|
|
10446
|
+
*/
|
|
10447
|
+
factor?: number;
|
|
10448
|
+
/**
|
|
10449
|
+
* 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.
|
|
10450
|
+
*/
|
|
10451
|
+
frozen?: boolean;
|
|
10452
|
+
schema: {
|
|
10453
|
+
$schema: string;
|
|
10454
|
+
/**
|
|
10455
|
+
* List of keys/columns in the table.
|
|
10456
|
+
*/
|
|
10457
|
+
properties: {
|
|
10458
|
+
[k: string]: {
|
|
10459
|
+
type: "string" | "number" | "boolean" | "object" | "null";
|
|
10460
|
+
format?: "date-time";
|
|
10461
|
+
description?: string;
|
|
10462
|
+
nullable?: boolean;
|
|
10463
|
+
"x-zui": {
|
|
10464
|
+
index: number;
|
|
10465
|
+
/**
|
|
10466
|
+
* [deprecated] ID of the column.
|
|
10467
|
+
*/
|
|
10468
|
+
id?: string;
|
|
10469
|
+
/**
|
|
10470
|
+
* Indicates if the column is vectorized and searchable.
|
|
10471
|
+
*/
|
|
10472
|
+
searchable?: boolean;
|
|
10473
|
+
/**
|
|
10474
|
+
* Indicates if the field is hidden in the UI
|
|
10475
|
+
*/
|
|
10476
|
+
hidden?: boolean;
|
|
10477
|
+
/**
|
|
10478
|
+
* Order of the column in the UI
|
|
10479
|
+
*/
|
|
10480
|
+
order?: number;
|
|
10481
|
+
/**
|
|
10482
|
+
* Width of the column in the UI
|
|
10483
|
+
*/
|
|
10484
|
+
width?: number;
|
|
10485
|
+
computed?: {
|
|
10486
|
+
action: "ai" | "workflow";
|
|
10487
|
+
dependencies?: string[];
|
|
10488
|
+
/**
|
|
10489
|
+
* Prompt when action is "ai"
|
|
10490
|
+
*/
|
|
10491
|
+
prompt?: string;
|
|
10492
|
+
/**
|
|
10493
|
+
* Model to use when action is "ai"
|
|
10494
|
+
*/
|
|
10495
|
+
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";
|
|
10496
|
+
/**
|
|
10497
|
+
* ID of Workflow to execute when action is "workflow"
|
|
10498
|
+
*/
|
|
10499
|
+
workflowId?: string;
|
|
10500
|
+
enabled?: boolean;
|
|
10501
|
+
};
|
|
10502
|
+
/**
|
|
10503
|
+
* TypeScript typings for the column. Recommended if the type is "object", ex: "\{ foo: string; bar: number \}"
|
|
10504
|
+
*/
|
|
10505
|
+
typings?: string;
|
|
10506
|
+
};
|
|
10507
|
+
};
|
|
10508
|
+
};
|
|
10509
|
+
/**
|
|
10510
|
+
* Additional properties can be provided, but they will be ignored if no column matches.
|
|
10511
|
+
*/
|
|
10512
|
+
additionalProperties: true;
|
|
10513
|
+
/**
|
|
10514
|
+
* Array of required properties.
|
|
10515
|
+
*/
|
|
10516
|
+
required?: string[];
|
|
10517
|
+
type: "object";
|
|
10518
|
+
};
|
|
10519
|
+
/**
|
|
10520
|
+
* Optional tags to help organize your tables. These should be passed here as an object representing key/value pairs.
|
|
10521
|
+
*/
|
|
10522
|
+
tags?: {
|
|
10523
|
+
[k: string]: string;
|
|
10524
|
+
};
|
|
10525
|
+
/**
|
|
10526
|
+
* Indicates if the table is enabled for computation.
|
|
10527
|
+
*/
|
|
10528
|
+
isComputeEnabled?: boolean;
|
|
10529
|
+
/**
|
|
10530
|
+
* Timestamp of table creation.
|
|
10531
|
+
*/
|
|
10532
|
+
createdAt?: string;
|
|
10533
|
+
/**
|
|
10534
|
+
* Timestamp of the last table update.
|
|
10535
|
+
*/
|
|
10536
|
+
updatedAt?: string;
|
|
10537
|
+
}
|
|
10538
|
+
interface Column {
|
|
10539
|
+
/**
|
|
10540
|
+
* Unique identifier for the column.
|
|
10541
|
+
*/
|
|
10542
|
+
id?: string;
|
|
10543
|
+
/**
|
|
10544
|
+
* Name of the column, must be within length limits.
|
|
10545
|
+
*/
|
|
10546
|
+
name: string;
|
|
10547
|
+
/**
|
|
10548
|
+
* Optional descriptive text about the column.
|
|
10549
|
+
*/
|
|
10550
|
+
description?: string;
|
|
10551
|
+
/**
|
|
10552
|
+
* Indicates if the column is vectorized and searchable.
|
|
10553
|
+
*/
|
|
10554
|
+
searchable?: boolean;
|
|
10555
|
+
/**
|
|
10556
|
+
* Specifies the data type of the column. Use "object" for complex data structures.
|
|
10557
|
+
*/
|
|
10558
|
+
type: "string" | "number" | "boolean" | "date" | "object";
|
|
10559
|
+
/**
|
|
10560
|
+
* TypeScript typings for the column. Recommended if the type is "object", ex: "\{ foo: string; bar: number \}"
|
|
10561
|
+
*/
|
|
10562
|
+
typings?: string;
|
|
10563
|
+
computed?: {
|
|
10564
|
+
action: "ai" | "workflow";
|
|
10565
|
+
dependencies?: string[];
|
|
10566
|
+
/**
|
|
10567
|
+
* Prompt when action is "ai"
|
|
10568
|
+
*/
|
|
10569
|
+
prompt?: string;
|
|
10570
|
+
/**
|
|
10571
|
+
* Model to use when action is "ai"
|
|
10572
|
+
*/
|
|
10573
|
+
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";
|
|
10574
|
+
/**
|
|
10575
|
+
* ID of Workflow to execute when action is "workflow"
|
|
10576
|
+
*/
|
|
10577
|
+
workflowId?: string;
|
|
10578
|
+
enabled?: boolean;
|
|
10579
|
+
};
|
|
10580
|
+
schema?: {
|
|
10581
|
+
[k: string]: any;
|
|
10582
|
+
};
|
|
10583
|
+
}
|
|
10584
|
+
interface Row {
|
|
10585
|
+
/**
|
|
10586
|
+
* Unique identifier for the row.
|
|
10587
|
+
*/
|
|
10588
|
+
id: number;
|
|
10589
|
+
/**
|
|
10590
|
+
* Timestamp of row creation.
|
|
10591
|
+
*/
|
|
10592
|
+
createdAt?: string;
|
|
10593
|
+
/**
|
|
10594
|
+
* Timestamp of the last row update.
|
|
10595
|
+
*/
|
|
10596
|
+
updatedAt?: string;
|
|
10597
|
+
computed: {
|
|
10598
|
+
[k: string]: {
|
|
10599
|
+
status: string;
|
|
10600
|
+
error?: string;
|
|
10601
|
+
updatedBy?: string;
|
|
10602
|
+
updatedAt?: string;
|
|
10603
|
+
};
|
|
10604
|
+
};
|
|
10605
|
+
/**
|
|
10606
|
+
* [Read-only] List of stale values that are waiting to be recomputed.
|
|
10607
|
+
*/
|
|
10608
|
+
stale?: string[];
|
|
10609
|
+
/**
|
|
10610
|
+
* Optional numeric value indicating similarity, when using findTableRows.
|
|
10611
|
+
*/
|
|
10612
|
+
similarity?: number;
|
|
10613
|
+
[k: string]: any;
|
|
10614
|
+
}
|
|
10426
10615
|
interface File {
|
|
10427
10616
|
/**
|
|
10428
10617
|
* File ID
|
|
@@ -10933,4 +11122,4 @@ declare class Client extends Client$1 implements IClient {
|
|
|
10933
11122
|
readonly uploadFile: ({ key, index, tags, contentType, accessPolicies, content, url, }: ClientInputs['uploadFile']) => Promise<ClientOutputs['uploadFile']>;
|
|
10934
11123
|
}
|
|
10935
11124
|
|
|
10936
|
-
export { type Account, AlreadyExistsError, type ApiError, type Bot, BreakingChangesError, Client, type ClientConfig, type ClientInputs, type ClientOutputs, type ClientParams, type ClientProps, type ClientReturn, type Conversation, type ErrorType, type Event, type File, ForbiddenError, type IClient, type Integration, type Interface, InternalError, InvalidDataFormatError, InvalidIdentifierError, InvalidJsonSchemaError, InvalidPayloadError, InvalidQueryError, type Issue, type IssueEvent, LimitExceededError, type Message, MethodNotFoundError, type Operation, PayloadTooLargeError, PaymentRequiredError, QuotaExceededError, RateLimitedError, ReferenceConstraintError, ReferenceNotFoundError, RelationConflictError, ResourceLockedConflictError, ResourceNotFoundError, RuntimeError, type State, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, type Usage, type User, type Workspace, errorFrom, isApiError };
|
|
11125
|
+
export { type Account, AlreadyExistsError, type ApiError, type Bot, BreakingChangesError, Client, type ClientConfig, type ClientInputs, type ClientOutputs, type ClientParams, type ClientProps, type ClientReturn, type Column, type Conversation, type ErrorType, type Event, type File, ForbiddenError, type IClient, type Integration, type Interface, InternalError, InvalidDataFormatError, InvalidIdentifierError, InvalidJsonSchemaError, InvalidPayloadError, InvalidQueryError, type Issue, type IssueEvent, LimitExceededError, type Message, MethodNotFoundError, type Operation, PayloadTooLargeError, PaymentRequiredError, QuotaExceededError, RateLimitedError, ReferenceConstraintError, ReferenceNotFoundError, RelationConflictError, ResourceLockedConflictError, ResourceNotFoundError, type Row, RuntimeError, type State, type Table, UnauthorizedError, UnknownError, UnsupportedMediaTypeError, UploadFileError, type Usage, type User, type Workspace, type WorkspaceMember, errorFrom, isApiError };
|