@botpress/api 0.30.1 → 0.30.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 +81 -51
- package/dist/src/gen/state.d.ts +48 -23
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +81 -51
package/dist/index.js
CHANGED
|
@@ -271549,6 +271549,13 @@ var state = {
|
|
|
271549
271549
|
"administrator",
|
|
271550
271550
|
"owner"
|
|
271551
271551
|
]
|
|
271552
|
+
},
|
|
271553
|
+
"profilePicture": {
|
|
271554
|
+
"type": "string"
|
|
271555
|
+
},
|
|
271556
|
+
"displayName": {
|
|
271557
|
+
"type": "string",
|
|
271558
|
+
"maxLength": 100
|
|
271552
271559
|
}
|
|
271553
271560
|
},
|
|
271554
271561
|
"required": [
|
|
@@ -271613,6 +271620,13 @@ var state = {
|
|
|
271613
271620
|
"administrator",
|
|
271614
271621
|
"owner"
|
|
271615
271622
|
]
|
|
271623
|
+
},
|
|
271624
|
+
"profilePicture": {
|
|
271625
|
+
"type": "string"
|
|
271626
|
+
},
|
|
271627
|
+
"displayName": {
|
|
271628
|
+
"type": "string",
|
|
271629
|
+
"maxLength": 100
|
|
271616
271630
|
}
|
|
271617
271631
|
},
|
|
271618
271632
|
"required": [
|
|
@@ -271712,6 +271726,13 @@ var state = {
|
|
|
271712
271726
|
"administrator",
|
|
271713
271727
|
"owner"
|
|
271714
271728
|
]
|
|
271729
|
+
},
|
|
271730
|
+
"profilePicture": {
|
|
271731
|
+
"type": "string"
|
|
271732
|
+
},
|
|
271733
|
+
"displayName": {
|
|
271734
|
+
"type": "string",
|
|
271735
|
+
"maxLength": 100
|
|
271715
271736
|
}
|
|
271716
271737
|
},
|
|
271717
271738
|
"required": [
|
|
@@ -271788,6 +271809,13 @@ var state = {
|
|
|
271788
271809
|
"administrator",
|
|
271789
271810
|
"owner"
|
|
271790
271811
|
]
|
|
271812
|
+
},
|
|
271813
|
+
"profilePicture": {
|
|
271814
|
+
"type": "string"
|
|
271815
|
+
},
|
|
271816
|
+
"displayName": {
|
|
271817
|
+
"type": "string",
|
|
271818
|
+
"maxLength": 100
|
|
271791
271819
|
}
|
|
271792
271820
|
},
|
|
271793
271821
|
"required": [
|
|
@@ -273484,19 +273512,19 @@ var state = {
|
|
|
273484
273512
|
},
|
|
273485
273513
|
"parameters": {}
|
|
273486
273514
|
},
|
|
273487
|
-
"
|
|
273488
|
-
"name": "
|
|
273515
|
+
"upsertFile": {
|
|
273516
|
+
"name": "upsertFile",
|
|
273489
273517
|
"path": "/v1/files",
|
|
273490
|
-
"description": "Creates a file
|
|
273491
|
-
"method": "
|
|
273518
|
+
"description": "Creates or updates a file using the `key` parameter as unique identifier. Updating a file will erase the existing content of the file. Upload the file content by sending it in a PUT request to the `uploadUrl` returned in the response.",
|
|
273519
|
+
"method": "put",
|
|
273492
273520
|
"requestBody": {
|
|
273493
|
-
"description": "
|
|
273521
|
+
"description": "Properties of the file to create or update.",
|
|
273494
273522
|
"schema": {
|
|
273495
273523
|
"type": "object",
|
|
273496
273524
|
"properties": {
|
|
273497
|
-
"
|
|
273525
|
+
"key": {
|
|
273498
273526
|
"type": "string",
|
|
273499
|
-
"description": "
|
|
273527
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
273500
273528
|
},
|
|
273501
273529
|
"tags": {
|
|
273502
273530
|
"type": "object",
|
|
@@ -273508,12 +273536,12 @@ var state = {
|
|
|
273508
273536
|
},
|
|
273509
273537
|
"size": {
|
|
273510
273538
|
"type": "number",
|
|
273511
|
-
"description": "File size in bytes. This will count against your
|
|
273539
|
+
"description": "File size in bytes. This will count against your File Storage quota. If the `index` parameter is set to `true`, this will also count against your Vector DB Storage quota."
|
|
273512
273540
|
},
|
|
273513
273541
|
"index": {
|
|
273514
273542
|
"default": false,
|
|
273515
273543
|
"type": "boolean",
|
|
273516
|
-
"description": "Set to a value of 'true' to index the file in vector storage. Only PDFs, Office documents, and text-based files are currently supported. Note that if a file is indexed, it will count towards the Vector Storage quota
|
|
273544
|
+
"description": "Set to a value of 'true' to index the file in vector storage. Only PDFs, Office documents, and text-based files are currently supported. Note that if a file is indexed, it will count towards both the Vector DB Storage quota and the File Storage quota of the workspace."
|
|
273517
273545
|
},
|
|
273518
273546
|
"accessPolicies": {
|
|
273519
273547
|
"type": "array",
|
|
@@ -273528,20 +273556,21 @@ var state = {
|
|
|
273528
273556
|
},
|
|
273529
273557
|
"contentType": {
|
|
273530
273558
|
"type": "string",
|
|
273531
|
-
"description": 'File content type. If omitted, the content type will be inferred from the file extension
|
|
273559
|
+
"description": 'File content type. If omitted, the content type will be inferred from the file extension (if any) specified in `key`. If a content type cannot be inferred, the default is "application/octet-stream".'
|
|
273532
273560
|
}
|
|
273533
273561
|
},
|
|
273534
273562
|
"required": [
|
|
273563
|
+
"key",
|
|
273535
273564
|
"size"
|
|
273536
273565
|
],
|
|
273537
|
-
"title": "
|
|
273566
|
+
"title": "upsertFileBody",
|
|
273538
273567
|
"additionalProperties": false
|
|
273539
273568
|
}
|
|
273540
273569
|
},
|
|
273541
273570
|
"contentType": "application/json",
|
|
273542
273571
|
"section": "files",
|
|
273543
273572
|
"response": {
|
|
273544
|
-
"description": "The created file",
|
|
273573
|
+
"description": "The created or updated file",
|
|
273545
273574
|
"schema": {
|
|
273546
273575
|
"type": "object",
|
|
273547
273576
|
"properties": {
|
|
@@ -273556,10 +273585,9 @@ var state = {
|
|
|
273556
273585
|
"type": "string",
|
|
273557
273586
|
"description": "The ID of the bot the file belongs to"
|
|
273558
273587
|
},
|
|
273559
|
-
"
|
|
273588
|
+
"key": {
|
|
273560
273589
|
"type": "string",
|
|
273561
|
-
"description": "
|
|
273562
|
-
"nullable": true
|
|
273590
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
273563
273591
|
},
|
|
273564
273592
|
"size": {
|
|
273565
273593
|
"type": "number",
|
|
@@ -273625,7 +273653,7 @@ var state = {
|
|
|
273625
273653
|
"required": [
|
|
273626
273654
|
"id",
|
|
273627
273655
|
"botId",
|
|
273628
|
-
"
|
|
273656
|
+
"key",
|
|
273629
273657
|
"size",
|
|
273630
273658
|
"contentType",
|
|
273631
273659
|
"tags",
|
|
@@ -273642,7 +273670,7 @@ var state = {
|
|
|
273642
273670
|
"required": [
|
|
273643
273671
|
"file"
|
|
273644
273672
|
],
|
|
273645
|
-
"title": "
|
|
273673
|
+
"title": "upsertFileResponse",
|
|
273646
273674
|
"additionalProperties": false
|
|
273647
273675
|
}
|
|
273648
273676
|
},
|
|
@@ -273712,10 +273740,9 @@ var state = {
|
|
|
273712
273740
|
"type": "string",
|
|
273713
273741
|
"description": "The ID of the bot the file belongs to"
|
|
273714
273742
|
},
|
|
273715
|
-
"
|
|
273743
|
+
"key": {
|
|
273716
273744
|
"type": "string",
|
|
273717
|
-
"description": "
|
|
273718
|
-
"nullable": true
|
|
273745
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
273719
273746
|
},
|
|
273720
273747
|
"url": {
|
|
273721
273748
|
"type": "string",
|
|
@@ -273782,7 +273809,7 @@ var state = {
|
|
|
273782
273809
|
"required": [
|
|
273783
273810
|
"id",
|
|
273784
273811
|
"botId",
|
|
273785
|
-
"
|
|
273812
|
+
"key",
|
|
273786
273813
|
"url",
|
|
273787
273814
|
"size",
|
|
273788
273815
|
"contentType",
|
|
@@ -273844,10 +273871,9 @@ var state = {
|
|
|
273844
273871
|
"type": "string",
|
|
273845
273872
|
"description": "The ID of the bot the file belongs to"
|
|
273846
273873
|
},
|
|
273847
|
-
"
|
|
273874
|
+
"key": {
|
|
273848
273875
|
"type": "string",
|
|
273849
|
-
"description": "
|
|
273850
|
-
"nullable": true
|
|
273876
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
273851
273877
|
},
|
|
273852
273878
|
"url": {
|
|
273853
273879
|
"type": "string",
|
|
@@ -273914,7 +273940,7 @@ var state = {
|
|
|
273914
273940
|
"required": [
|
|
273915
273941
|
"id",
|
|
273916
273942
|
"botId",
|
|
273917
|
-
"
|
|
273943
|
+
"key",
|
|
273918
273944
|
"url",
|
|
273919
273945
|
"size",
|
|
273920
273946
|
"contentType",
|
|
@@ -273936,10 +273962,10 @@ var state = {
|
|
|
273936
273962
|
}
|
|
273937
273963
|
}
|
|
273938
273964
|
},
|
|
273939
|
-
"
|
|
273940
|
-
"name": "
|
|
273965
|
+
"updateFileMetadata": {
|
|
273966
|
+
"name": "updateFileMetadata",
|
|
273941
273967
|
"path": "/v1/files/{id}",
|
|
273942
|
-
"description": "Update file",
|
|
273968
|
+
"description": "Update file metadata, without updating the file content.",
|
|
273943
273969
|
"method": "put",
|
|
273944
273970
|
"section": "files",
|
|
273945
273971
|
"parameters": {
|
|
@@ -273975,7 +274001,7 @@ var state = {
|
|
|
273975
274001
|
"description": "New access policies to set for the file. Omit to keep existing policies intact."
|
|
273976
274002
|
}
|
|
273977
274003
|
},
|
|
273978
|
-
"title": "
|
|
274004
|
+
"title": "updateFileMetadataBody",
|
|
273979
274005
|
"additionalProperties": false
|
|
273980
274006
|
}
|
|
273981
274007
|
},
|
|
@@ -273995,10 +274021,9 @@ var state = {
|
|
|
273995
274021
|
"type": "string",
|
|
273996
274022
|
"description": "The ID of the bot the file belongs to"
|
|
273997
274023
|
},
|
|
273998
|
-
"
|
|
274024
|
+
"key": {
|
|
273999
274025
|
"type": "string",
|
|
274000
|
-
"description": "
|
|
274001
|
-
"nullable": true
|
|
274026
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
274002
274027
|
},
|
|
274003
274028
|
"url": {
|
|
274004
274029
|
"type": "string",
|
|
@@ -274065,7 +274090,7 @@ var state = {
|
|
|
274065
274090
|
"required": [
|
|
274066
274091
|
"id",
|
|
274067
274092
|
"botId",
|
|
274068
|
-
"
|
|
274093
|
+
"key",
|
|
274069
274094
|
"url",
|
|
274070
274095
|
"size",
|
|
274071
274096
|
"contentType",
|
|
@@ -274082,7 +274107,7 @@ var state = {
|
|
|
274082
274107
|
"required": [
|
|
274083
274108
|
"file"
|
|
274084
274109
|
],
|
|
274085
|
-
"title": "
|
|
274110
|
+
"title": "updateFileMetadataResponse",
|
|
274086
274111
|
"additionalProperties": false
|
|
274087
274112
|
}
|
|
274088
274113
|
}
|
|
@@ -274147,11 +274172,6 @@ var state = {
|
|
|
274147
274172
|
"type": "string",
|
|
274148
274173
|
"description": "File ID"
|
|
274149
274174
|
},
|
|
274150
|
-
"name": {
|
|
274151
|
-
"type": "string",
|
|
274152
|
-
"description": "File name",
|
|
274153
|
-
"nullable": true
|
|
274154
|
-
},
|
|
274155
274175
|
"tags": {
|
|
274156
274176
|
"type": "object",
|
|
274157
274177
|
"additionalProperties": {
|
|
@@ -274171,7 +274191,6 @@ var state = {
|
|
|
274171
274191
|
},
|
|
274172
274192
|
"required": [
|
|
274173
274193
|
"id",
|
|
274174
|
-
"name",
|
|
274175
274194
|
"tags",
|
|
274176
274195
|
"createdAt",
|
|
274177
274196
|
"updatedAt"
|
|
@@ -275095,7 +275114,7 @@ var state = {
|
|
|
275095
275114
|
"title": "Botpress API",
|
|
275096
275115
|
"description": "API for Botpress Cloud",
|
|
275097
275116
|
"server": "https://api.botpress.cloud",
|
|
275098
|
-
"version": "0.30.
|
|
275117
|
+
"version": "0.30.3",
|
|
275099
275118
|
"prefix": "v1"
|
|
275100
275119
|
},
|
|
275101
275120
|
"errors": [
|
|
@@ -275169,6 +275188,11 @@ var state = {
|
|
|
275169
275188
|
"type": "ReferenceConstraint",
|
|
275170
275189
|
"description": "The resource cannot be deleted because it's referenced by another resource"
|
|
275171
275190
|
},
|
|
275191
|
+
{
|
|
275192
|
+
"status": 409,
|
|
275193
|
+
"type": "ResourceLockedConflict",
|
|
275194
|
+
"description": "The resource is current locked and cannot be operated on until the lock is released."
|
|
275195
|
+
},
|
|
275172
275196
|
{
|
|
275173
275197
|
"status": 400,
|
|
275174
275198
|
"type": "ReferenceNotFound",
|
|
@@ -275256,8 +275280,8 @@ var state = {
|
|
|
275256
275280
|
"updateIntegrationBody": true,
|
|
275257
275281
|
"changeAISpendQuotaBody": true,
|
|
275258
275282
|
"introspectBody": true,
|
|
275259
|
-
"
|
|
275260
|
-
"
|
|
275283
|
+
"upsertFileBody": true,
|
|
275284
|
+
"updateFileMetadataBody": true,
|
|
275261
275285
|
"getOrCreateTableBody": true,
|
|
275262
275286
|
"createTableBody": true,
|
|
275263
275287
|
"duplicateTableBody": true,
|
|
@@ -275370,11 +275394,11 @@ var state = {
|
|
|
275370
275394
|
"changeAISpendQuotaResponse": true,
|
|
275371
275395
|
"listActivitiesResponse": true,
|
|
275372
275396
|
"introspectResponse": true,
|
|
275373
|
-
"
|
|
275397
|
+
"upsertFileResponse": true,
|
|
275374
275398
|
"deleteFileResponse": true,
|
|
275375
275399
|
"listFilesResponse": true,
|
|
275376
275400
|
"getFileResponse": true,
|
|
275377
|
-
"
|
|
275401
|
+
"updateFileMetadataResponse": true,
|
|
275378
275402
|
"searchFilesResponse": true,
|
|
275379
275403
|
"listTablesResponse": true,
|
|
275380
275404
|
"getTableResponse": true,
|
|
@@ -276556,6 +276580,13 @@ var state = {
|
|
|
276556
276580
|
"administrator",
|
|
276557
276581
|
"owner"
|
|
276558
276582
|
]
|
|
276583
|
+
},
|
|
276584
|
+
"profilePicture": {
|
|
276585
|
+
"type": "string"
|
|
276586
|
+
},
|
|
276587
|
+
"displayName": {
|
|
276588
|
+
"type": "string",
|
|
276589
|
+
"maxLength": 100
|
|
276559
276590
|
}
|
|
276560
276591
|
},
|
|
276561
276592
|
"required": [
|
|
@@ -277630,10 +277661,9 @@ var state = {
|
|
|
277630
277661
|
"type": "string",
|
|
277631
277662
|
"description": "The ID of the bot the file belongs to"
|
|
277632
277663
|
},
|
|
277633
|
-
"
|
|
277664
|
+
"key": {
|
|
277634
277665
|
"type": "string",
|
|
277635
|
-
"description": "
|
|
277636
|
-
"nullable": true
|
|
277666
|
+
"description": "Unique key for the file. Must be unique across the bot (and the integration, when applicable)."
|
|
277637
277667
|
},
|
|
277638
277668
|
"url": {
|
|
277639
277669
|
"type": "string",
|
|
@@ -277700,7 +277730,7 @@ var state = {
|
|
|
277700
277730
|
"required": [
|
|
277701
277731
|
"id",
|
|
277702
277732
|
"botId",
|
|
277703
|
-
"
|
|
277733
|
+
"key",
|
|
277704
277734
|
"url",
|
|
277705
277735
|
"size",
|
|
277706
277736
|
"contentType",
|
|
@@ -277977,11 +278007,11 @@ var state = {
|
|
|
277977
278007
|
"description": "The Files API allows you to create, manage, and index files that can be used by your bots and integrations. Files can be in any text or binary format, and documents (such as PDF, Microsoft Office, HTML, CSV, etc.) can be indexed to be used for semantic search in RAG (Retrieval Augmented Generation) implementations. Files are private by default but can be made publicly accessible through a permanent URL that's unique for each file.",
|
|
277978
278008
|
"name": "files",
|
|
277979
278009
|
"operations": [
|
|
277980
|
-
"
|
|
278010
|
+
"upsertFile",
|
|
277981
278011
|
"deleteFile",
|
|
277982
278012
|
"listFiles",
|
|
277983
278013
|
"getFile",
|
|
277984
|
-
"
|
|
278014
|
+
"updateFileMetadata",
|
|
277985
278015
|
"searchFiles"
|
|
277986
278016
|
],
|
|
277987
278017
|
"schema": "File"
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -5834,6 +5834,13 @@ export declare const state: {
|
|
|
5834
5834
|
type: "string";
|
|
5835
5835
|
enum: string[];
|
|
5836
5836
|
};
|
|
5837
|
+
profilePicture: {
|
|
5838
|
+
type: "string";
|
|
5839
|
+
};
|
|
5840
|
+
displayName: {
|
|
5841
|
+
type: "string";
|
|
5842
|
+
maxLength: number;
|
|
5843
|
+
};
|
|
5837
5844
|
};
|
|
5838
5845
|
required: string[];
|
|
5839
5846
|
};
|
|
@@ -5883,6 +5890,13 @@ export declare const state: {
|
|
|
5883
5890
|
type: "string";
|
|
5884
5891
|
enum: string[];
|
|
5885
5892
|
};
|
|
5893
|
+
profilePicture: {
|
|
5894
|
+
type: "string";
|
|
5895
|
+
};
|
|
5896
|
+
displayName: {
|
|
5897
|
+
type: "string";
|
|
5898
|
+
maxLength: number;
|
|
5899
|
+
};
|
|
5886
5900
|
};
|
|
5887
5901
|
required: string[];
|
|
5888
5902
|
title: string;
|
|
@@ -5960,6 +5974,13 @@ export declare const state: {
|
|
|
5960
5974
|
type: "string";
|
|
5961
5975
|
enum: string[];
|
|
5962
5976
|
};
|
|
5977
|
+
profilePicture: {
|
|
5978
|
+
type: "string";
|
|
5979
|
+
};
|
|
5980
|
+
displayName: {
|
|
5981
|
+
type: "string";
|
|
5982
|
+
maxLength: number;
|
|
5983
|
+
};
|
|
5963
5984
|
};
|
|
5964
5985
|
required: string[];
|
|
5965
5986
|
title: string;
|
|
@@ -6017,6 +6038,13 @@ export declare const state: {
|
|
|
6017
6038
|
type: "string";
|
|
6018
6039
|
enum: string[];
|
|
6019
6040
|
};
|
|
6041
|
+
profilePicture: {
|
|
6042
|
+
type: "string";
|
|
6043
|
+
};
|
|
6044
|
+
displayName: {
|
|
6045
|
+
type: "string";
|
|
6046
|
+
maxLength: number;
|
|
6047
|
+
};
|
|
6020
6048
|
};
|
|
6021
6049
|
required: string[];
|
|
6022
6050
|
title: string;
|
|
@@ -7543,17 +7571,17 @@ export declare const state: {
|
|
|
7543
7571
|
};
|
|
7544
7572
|
parameters: {};
|
|
7545
7573
|
};
|
|
7546
|
-
|
|
7574
|
+
upsertFile: {
|
|
7547
7575
|
name: string;
|
|
7548
7576
|
path: string;
|
|
7549
7577
|
description: string;
|
|
7550
|
-
method: "
|
|
7578
|
+
method: "put";
|
|
7551
7579
|
requestBody: {
|
|
7552
7580
|
description: string;
|
|
7553
7581
|
schema: {
|
|
7554
7582
|
type: "object";
|
|
7555
7583
|
properties: {
|
|
7556
|
-
|
|
7584
|
+
key: {
|
|
7557
7585
|
type: "string";
|
|
7558
7586
|
description: string;
|
|
7559
7587
|
};
|
|
@@ -7610,10 +7638,9 @@ export declare const state: {
|
|
|
7610
7638
|
type: "string";
|
|
7611
7639
|
description: string;
|
|
7612
7640
|
};
|
|
7613
|
-
|
|
7641
|
+
key: {
|
|
7614
7642
|
type: "string";
|
|
7615
7643
|
description: string;
|
|
7616
|
-
nullable: true;
|
|
7617
7644
|
};
|
|
7618
7645
|
size: {
|
|
7619
7646
|
type: "number";
|
|
@@ -7741,10 +7768,9 @@ export declare const state: {
|
|
|
7741
7768
|
type: "string";
|
|
7742
7769
|
description: string;
|
|
7743
7770
|
};
|
|
7744
|
-
|
|
7771
|
+
key: {
|
|
7745
7772
|
type: "string";
|
|
7746
7773
|
description: string;
|
|
7747
|
-
nullable: true;
|
|
7748
7774
|
};
|
|
7749
7775
|
url: {
|
|
7750
7776
|
type: "string";
|
|
@@ -7847,10 +7873,9 @@ export declare const state: {
|
|
|
7847
7873
|
type: "string";
|
|
7848
7874
|
description: string;
|
|
7849
7875
|
};
|
|
7850
|
-
|
|
7876
|
+
key: {
|
|
7851
7877
|
type: "string";
|
|
7852
7878
|
description: string;
|
|
7853
|
-
nullable: true;
|
|
7854
7879
|
};
|
|
7855
7880
|
url: {
|
|
7856
7881
|
type: "string";
|
|
@@ -7914,7 +7939,7 @@ export declare const state: {
|
|
|
7914
7939
|
};
|
|
7915
7940
|
};
|
|
7916
7941
|
};
|
|
7917
|
-
|
|
7942
|
+
updateFileMetadata: {
|
|
7918
7943
|
name: string;
|
|
7919
7944
|
path: string;
|
|
7920
7945
|
description: string;
|
|
@@ -7970,10 +7995,9 @@ export declare const state: {
|
|
|
7970
7995
|
type: "string";
|
|
7971
7996
|
description: string;
|
|
7972
7997
|
};
|
|
7973
|
-
|
|
7998
|
+
key: {
|
|
7974
7999
|
type: "string";
|
|
7975
8000
|
description: string;
|
|
7976
|
-
nullable: true;
|
|
7977
8001
|
};
|
|
7978
8002
|
url: {
|
|
7979
8003
|
type: "string";
|
|
@@ -8097,11 +8121,6 @@ export declare const state: {
|
|
|
8097
8121
|
type: "string";
|
|
8098
8122
|
description: string;
|
|
8099
8123
|
};
|
|
8100
|
-
name: {
|
|
8101
|
-
type: "string";
|
|
8102
|
-
description: string;
|
|
8103
|
-
nullable: true;
|
|
8104
|
-
};
|
|
8105
8124
|
tags: {
|
|
8106
8125
|
type: "object";
|
|
8107
8126
|
additionalProperties: {
|
|
@@ -9065,8 +9084,8 @@ export declare const state: {
|
|
|
9065
9084
|
updateIntegrationBody: true;
|
|
9066
9085
|
changeAISpendQuotaBody: true;
|
|
9067
9086
|
introspectBody: true;
|
|
9068
|
-
|
|
9069
|
-
|
|
9087
|
+
upsertFileBody: true;
|
|
9088
|
+
updateFileMetadataBody: true;
|
|
9070
9089
|
getOrCreateTableBody: true;
|
|
9071
9090
|
createTableBody: true;
|
|
9072
9091
|
duplicateTableBody: true;
|
|
@@ -9179,11 +9198,11 @@ export declare const state: {
|
|
|
9179
9198
|
changeAISpendQuotaResponse: true;
|
|
9180
9199
|
listActivitiesResponse: true;
|
|
9181
9200
|
introspectResponse: true;
|
|
9182
|
-
|
|
9201
|
+
upsertFileResponse: true;
|
|
9183
9202
|
deleteFileResponse: true;
|
|
9184
9203
|
listFilesResponse: true;
|
|
9185
9204
|
getFileResponse: true;
|
|
9186
|
-
|
|
9205
|
+
updateFileMetadataResponse: true;
|
|
9187
9206
|
searchFilesResponse: true;
|
|
9188
9207
|
listTablesResponse: true;
|
|
9189
9208
|
getTableResponse: true;
|
|
@@ -10180,6 +10199,13 @@ export declare const state: {
|
|
|
10180
10199
|
type: "string";
|
|
10181
10200
|
enum: string[];
|
|
10182
10201
|
};
|
|
10202
|
+
profilePicture: {
|
|
10203
|
+
type: "string";
|
|
10204
|
+
};
|
|
10205
|
+
displayName: {
|
|
10206
|
+
type: "string";
|
|
10207
|
+
maxLength: number;
|
|
10208
|
+
};
|
|
10183
10209
|
};
|
|
10184
10210
|
required: string[];
|
|
10185
10211
|
additionalProperties: false;
|
|
@@ -11041,10 +11067,9 @@ export declare const state: {
|
|
|
11041
11067
|
type: "string";
|
|
11042
11068
|
description: string;
|
|
11043
11069
|
};
|
|
11044
|
-
|
|
11070
|
+
key: {
|
|
11045
11071
|
type: "string";
|
|
11046
11072
|
description: string;
|
|
11047
|
-
nullable: true;
|
|
11048
11073
|
};
|
|
11049
11074
|
url: {
|
|
11050
11075
|
type: "string";
|
package/package.json
CHANGED
package/src/gen/metadata.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation","listParticipants","addParticipant","getParticipant","removeParticipant"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"File","name":"file","operations":[]},{"description":"","title":"State","name":"state","operations":["getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage","getMultipleUsages"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"The Files API allows you to create, manage, and index files that can be used by your bots and integrations. Files can be in any text or binary format, and documents (such as PDF, Microsoft Office, HTML, CSV, etc.) can be indexed to be used for semantic search in RAG (Retrieval Augmented Generation) implementations. Files are private by default but can be made publicly accessible through a permanent URL that's unique for each file.","name":"files","operations":["
|
|
1
|
+
{"sections":[{"description":"","title":"User","name":"user","operations":["createUser","getUser","listUsers","getOrCreateUser","updateUser","deleteUser"],"schema":"User"},{"description":"","title":"Conversation","name":"conversation","operations":["createConversation","getConversation","listConversations","getOrCreateConversation","updateConversation","deleteConversation","listParticipants","addParticipant","getParticipant","removeParticipant"],"schema":"Conversation"},{"description":"","title":"Event","name":"event","operations":["createEvent","getEvent","listEvents"],"schema":"Event"},{"description":"","title":"Message","name":"message","operations":["createMessage","getOrCreateMessage","getMessage","updateMessage","listMessages","deleteMessage"],"schema":"Message"},{"description":"","title":"File","name":"file","operations":[]},{"description":"","title":"State","name":"state","operations":["getState","setState","getOrSetState","patchState"],"schema":"State"},{"title":"Hub","description":"","name":"hub","operations":["listPublicIntegrations","getPublicIntegrationById","getPublicIntegration"]},{"description":"","title":"Action","name":"action","operations":["callAction"]},{"description":"","title":"Task","name":"task","operations":["getTask","createTask","updateTask","deleteTask","listTasks"],"schema":"Task"},{"title":"Bot","description":"","name":"bot","operations":["createBot","updateBot","transferBot","listBots","getBot","deleteBot","getBotLogs","getBotWebchat","getBotAnalytics","getBotIssue","listBotIssues","deleteBotIssue","listBotIssueEvents"],"schema":"Bot"},{"title":"Integration","description":"","name":"integration","operations":["listIntegrationApiKeys","createIntegrationApiKey","deleteIntegrationApiKey","createIntegration","updateIntegration","listIntegrations","getIntegration","getIntegrationLogs","getIntegrationByName","deleteIntegration"],"schema":"Integration"},{"title":"Workspace","description":"","name":"workspace","operations":["setWorkspacePaymentMethod","listWorkspaceInvoices","getUpcomingInvoice","chargeWorkspaceUnpaidInvoices","createWorkspace","getPublicWorkspace","getWorkspace","listWorkspaceUsages","breakDownWorkspaceUsageByBot","getAllWorkspaceQuotaCompletion","getWorkspaceQuota","listWorkspaceQuotas","updateWorkspace","checkHandleAvailability","listWorkspaces","listPublicWorkspaces","deleteWorkspace","getAuditRecords"],"schema":"Workspace"},{"title":"Workspace Member","description":"","name":"workspaceMember","operations":["listWorkspaceMembers","getWorkspaceMember","deleteWorkspaceMember","createWorkspaceMember","updateWorkspaceMember"],"schema":"WorkspaceMember"},{"title":"Account","description":"","name":"account","operations":["getAccount","updateAccount","listPersonalAccessTokens","createPersonalAccessToken","deletePersonalAccessToken","setAccountPreference","getAccountPreference"],"schema":"Account"},{"title":"Usage","description":"","name":"usage","operations":["getUsage","getMultipleUsages"],"schema":"Usage"},{"title":"Quotas","description":"","name":"quotas","operations":["changeAISpendQuota"]},{"title":"Helper","description":"","name":"helper","operations":["runVrl"]},{"title":"Activity","description":"","name":"activity","operations":["listActivities"],"schema":"Activity"},{"title":"Tables","description":"Manage and interact with table structures, including creation, updates, and querying of tables and their rows.","name":"tables","operations":["listTables","getTable","getOrCreateTable","createTable","duplicateTable","updateTable","renameTableColumn","deleteTable","getTableRow","findTableRows","createTableRows","deleteTableRows","updateTableRows","upsertTableRows"],"schema":"Table"},{"title":"Files","description":"The Files API allows you to create, manage, and index files that can be used by your bots and integrations. Files can be in any text or binary format, and documents (such as PDF, Microsoft Office, HTML, CSV, etc.) can be indexed to be used for semantic search in RAG (Retrieval Augmented Generation) implementations. Files are private by default but can be made publicly accessible through a permanent URL that's unique for each file.","name":"files","operations":["upsertFile","deleteFile","listFiles","getFile","updateFileMetadata","searchFiles"],"schema":"File"}],"errors":[{"status":500,"type":"Unknown","description":"An unknown error occurred"},{"status":500,"type":"Internal","description":"An internal error occurred"},{"status":401,"type":"Unauthorized","description":"The request requires to be authenticated."},{"status":403,"type":"Forbidden","description":"The requested action can't be peform by this resource."},{"status":413,"type":"PayloadTooLarge","description":"The request payload is too large."},{"status":400,"type":"InvalidPayload","description":"The request payload is invalid."},{"status":415,"type":"UnsupportedMediaType","description":"The request is invalid because the content-type is not supported."},{"status":405,"type":"MethodNotFound","description":"The requested method does not exist."},{"status":404,"type":"ResourceNotFound","description":"The requested resource does not exist."},{"status":400,"type":"InvalidJsonSchema","description":"The provided JSON schema is invalid."},{"status":400,"type":"InvalidDataFormat","description":"The provided data doesn't respect the provided JSON schema."},{"status":400,"type":"InvalidIdentifier","description":"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters."},{"status":409,"type":"RelationConflict","description":"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together."},{"status":409,"type":"ReferenceConstraint","description":"The resource cannot be deleted because it's referenced by another resource"},{"status":409,"type":"ResourceLockedConflict","description":"The resource is current locked and cannot be operated on until the lock is released."},{"status":400,"type":"ReferenceNotFound","description":"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request."},{"status":400,"type":"InvalidQuery","description":"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource."},{"status":400,"type":"Runtime","description":"An error happened during the execution of a runtime (bot or integration)."},{"status":409,"type":"AlreadyExists","description":"The record attempted to be created already exists."},{"status":429,"type":"RateLimited","description":"The request has been rate limited."},{"status":402,"type":"PaymentRequired","description":"A payment is required to perform this request."},{"status":403,"type":"QuotaExceeded","description":"The request exceeds the allowed quota. Quotas are a soft limit that can be increased."},{"status":413,"type":"LimitExceeded","description":"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased."},{"status":400,"type":"BreakingChanges","description":"Request payload contains breaking changes which is not allowed for this resource without a version increment."}]}
|