@botpress/api 0.43.2 → 0.44.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.
- package/dist/index.js +97 -1
- package/dist/src/gen/state.d.ts +74 -0
- package/package.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +97 -1
package/dist/index.js
CHANGED
|
@@ -292691,6 +292691,97 @@ var state = {
|
|
|
292691
292691
|
}
|
|
292692
292692
|
}
|
|
292693
292693
|
},
|
|
292694
|
+
"listUsageActivity": {
|
|
292695
|
+
"name": "listUsageActivity",
|
|
292696
|
+
"path": "/v1/admin/usages/{id}/activity",
|
|
292697
|
+
"method": "get",
|
|
292698
|
+
"description": "List the usage activity for a given usage type and ID. The most recent activity is listed first.",
|
|
292699
|
+
"parameters": {
|
|
292700
|
+
"type": {
|
|
292701
|
+
"in": "query",
|
|
292702
|
+
"description": "Usage type",
|
|
292703
|
+
"type": "string",
|
|
292704
|
+
"enum": [
|
|
292705
|
+
"invocation_timeout",
|
|
292706
|
+
"invocation_calls",
|
|
292707
|
+
"storage_count",
|
|
292708
|
+
"bot_count",
|
|
292709
|
+
"knowledgebase_vector_storage",
|
|
292710
|
+
"workspace_ratelimit",
|
|
292711
|
+
"table_row_count",
|
|
292712
|
+
"workspace_member_count",
|
|
292713
|
+
"integrations_owned_count",
|
|
292714
|
+
"ai_spend",
|
|
292715
|
+
"openai_spend",
|
|
292716
|
+
"bing_search_spend",
|
|
292717
|
+
"always_alive"
|
|
292718
|
+
],
|
|
292719
|
+
"required": true
|
|
292720
|
+
},
|
|
292721
|
+
"id": {
|
|
292722
|
+
"type": "string",
|
|
292723
|
+
"description": 'ID of a bot or a workspace, depending on the "type" parameter',
|
|
292724
|
+
"in": "path"
|
|
292725
|
+
},
|
|
292726
|
+
"nextToken": {
|
|
292727
|
+
"in": "query",
|
|
292728
|
+
"description": "Provide the `meta.nextToken` value provided in the last API response to retrieve the next page of results",
|
|
292729
|
+
"type": "string"
|
|
292730
|
+
}
|
|
292731
|
+
},
|
|
292732
|
+
"response": {
|
|
292733
|
+
"description": "Success",
|
|
292734
|
+
"schema": {
|
|
292735
|
+
"type": "object",
|
|
292736
|
+
"properties": {
|
|
292737
|
+
"data": {
|
|
292738
|
+
"type": "array",
|
|
292739
|
+
"items": {
|
|
292740
|
+
"type": "object",
|
|
292741
|
+
"properties": {
|
|
292742
|
+
"timestamp": {
|
|
292743
|
+
"type": "string"
|
|
292744
|
+
},
|
|
292745
|
+
"value": {
|
|
292746
|
+
"type": "number"
|
|
292747
|
+
},
|
|
292748
|
+
"period": {
|
|
292749
|
+
"type": "string"
|
|
292750
|
+
},
|
|
292751
|
+
"metadata": {
|
|
292752
|
+
"type": "object",
|
|
292753
|
+
"additionalProperties": {
|
|
292754
|
+
"nullable": true
|
|
292755
|
+
}
|
|
292756
|
+
}
|
|
292757
|
+
},
|
|
292758
|
+
"required": [
|
|
292759
|
+
"timestamp",
|
|
292760
|
+
"value",
|
|
292761
|
+
"period",
|
|
292762
|
+
"metadata"
|
|
292763
|
+
]
|
|
292764
|
+
}
|
|
292765
|
+
},
|
|
292766
|
+
"meta": {
|
|
292767
|
+
"type": "object",
|
|
292768
|
+
"properties": {
|
|
292769
|
+
"nextToken": {
|
|
292770
|
+
"type": "string"
|
|
292771
|
+
}
|
|
292772
|
+
},
|
|
292773
|
+
"additionalProperties": false
|
|
292774
|
+
}
|
|
292775
|
+
},
|
|
292776
|
+
"required": [
|
|
292777
|
+
"data",
|
|
292778
|
+
"meta"
|
|
292779
|
+
],
|
|
292780
|
+
"title": "listUsageActivityResponse",
|
|
292781
|
+
"additionalProperties": false
|
|
292782
|
+
}
|
|
292783
|
+
}
|
|
292784
|
+
},
|
|
292694
292785
|
"changeAISpendQuota": {
|
|
292695
292786
|
"name": "changeAISpendQuota",
|
|
292696
292787
|
"path": "/v1/admin/quotas/ai-spend",
|
|
@@ -294631,7 +294722,7 @@ var state = {
|
|
|
294631
294722
|
"title": "Botpress API",
|
|
294632
294723
|
"description": "API for Botpress Cloud",
|
|
294633
294724
|
"server": "https://api.botpress.cloud",
|
|
294634
|
-
"version": "0.
|
|
294725
|
+
"version": "0.44.0",
|
|
294635
294726
|
"prefix": "v1"
|
|
294636
294727
|
},
|
|
294637
294728
|
"errors": [
|
|
@@ -294935,6 +295026,7 @@ var state = {
|
|
|
294935
295026
|
"getUsageResponse": true,
|
|
294936
295027
|
"getMultipleUsagesResponse": true,
|
|
294937
295028
|
"listUsageHistoryResponse": true,
|
|
295029
|
+
"listUsageActivityResponse": true,
|
|
294938
295030
|
"changeAISpendQuotaResponse": true,
|
|
294939
295031
|
"listActivitiesResponse": true,
|
|
294940
295032
|
"introspectResponse": true,
|
|
@@ -297374,6 +297466,10 @@ var state = {
|
|
|
297374
297466
|
"type": "number",
|
|
297375
297467
|
"description": "Width of the column in the UI"
|
|
297376
297468
|
},
|
|
297469
|
+
"schemaId": {
|
|
297470
|
+
"type": "string",
|
|
297471
|
+
"description": "ID of the schema"
|
|
297472
|
+
},
|
|
297377
297473
|
"computed": {
|
|
297378
297474
|
"type": "object",
|
|
297379
297475
|
"properties": {
|
package/dist/src/gen/state.d.ts
CHANGED
|
@@ -8847,6 +8847,75 @@ export declare const state: {
|
|
|
8847
8847
|
};
|
|
8848
8848
|
};
|
|
8849
8849
|
};
|
|
8850
|
+
listUsageActivity: {
|
|
8851
|
+
name: string;
|
|
8852
|
+
path: string;
|
|
8853
|
+
method: "get";
|
|
8854
|
+
description: string;
|
|
8855
|
+
parameters: {
|
|
8856
|
+
type: {
|
|
8857
|
+
in: "query";
|
|
8858
|
+
description: string;
|
|
8859
|
+
type: "string";
|
|
8860
|
+
enum: string[];
|
|
8861
|
+
required: true;
|
|
8862
|
+
};
|
|
8863
|
+
id: {
|
|
8864
|
+
type: "string";
|
|
8865
|
+
description: string;
|
|
8866
|
+
in: "path";
|
|
8867
|
+
};
|
|
8868
|
+
nextToken: {
|
|
8869
|
+
in: "query";
|
|
8870
|
+
description: string;
|
|
8871
|
+
type: "string";
|
|
8872
|
+
};
|
|
8873
|
+
};
|
|
8874
|
+
response: {
|
|
8875
|
+
description: string;
|
|
8876
|
+
schema: {
|
|
8877
|
+
type: "object";
|
|
8878
|
+
properties: {
|
|
8879
|
+
data: {
|
|
8880
|
+
type: "array";
|
|
8881
|
+
items: {
|
|
8882
|
+
type: "object";
|
|
8883
|
+
properties: {
|
|
8884
|
+
timestamp: {
|
|
8885
|
+
type: "string";
|
|
8886
|
+
};
|
|
8887
|
+
value: {
|
|
8888
|
+
type: "number";
|
|
8889
|
+
};
|
|
8890
|
+
period: {
|
|
8891
|
+
type: "string";
|
|
8892
|
+
};
|
|
8893
|
+
metadata: {
|
|
8894
|
+
type: "object";
|
|
8895
|
+
additionalProperties: {
|
|
8896
|
+
nullable: true;
|
|
8897
|
+
};
|
|
8898
|
+
};
|
|
8899
|
+
};
|
|
8900
|
+
required: string[];
|
|
8901
|
+
};
|
|
8902
|
+
};
|
|
8903
|
+
meta: {
|
|
8904
|
+
type: "object";
|
|
8905
|
+
properties: {
|
|
8906
|
+
nextToken: {
|
|
8907
|
+
type: "string";
|
|
8908
|
+
};
|
|
8909
|
+
};
|
|
8910
|
+
additionalProperties: false;
|
|
8911
|
+
};
|
|
8912
|
+
};
|
|
8913
|
+
required: string[];
|
|
8914
|
+
title: string;
|
|
8915
|
+
additionalProperties: false;
|
|
8916
|
+
};
|
|
8917
|
+
};
|
|
8918
|
+
};
|
|
8850
8919
|
changeAISpendQuota: {
|
|
8851
8920
|
name: string;
|
|
8852
8921
|
path: string;
|
|
@@ -10790,6 +10859,7 @@ export declare const state: {
|
|
|
10790
10859
|
getUsageResponse: true;
|
|
10791
10860
|
getMultipleUsagesResponse: true;
|
|
10792
10861
|
listUsageHistoryResponse: true;
|
|
10862
|
+
listUsageActivityResponse: true;
|
|
10793
10863
|
changeAISpendQuotaResponse: true;
|
|
10794
10864
|
listActivitiesResponse: true;
|
|
10795
10865
|
introspectResponse: true;
|
|
@@ -12808,6 +12878,10 @@ export declare const state: {
|
|
|
12808
12878
|
type: "number";
|
|
12809
12879
|
description: string;
|
|
12810
12880
|
};
|
|
12881
|
+
schemaId: {
|
|
12882
|
+
type: "string";
|
|
12883
|
+
description: string;
|
|
12884
|
+
};
|
|
12811
12885
|
computed: {
|
|
12812
12886
|
type: "object";
|
|
12813
12887
|
properties: {
|