@botpress/api 0.3.3 → 0.5.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/gen/state.d.ts +284 -4
- package/dist/index.js +345 -10
- package/package.json +1 -1
- package/src/gen/metadata.json +1 -1
- package/src/gen/openapi.json +1 -1
- package/src/gen/state.ts +347 -5
package/dist/gen/state.d.ts
CHANGED
|
@@ -2131,6 +2131,69 @@ export declare const state: {
|
|
|
2131
2131
|
};
|
|
2132
2132
|
};
|
|
2133
2133
|
};
|
|
2134
|
+
createWorkspace: {
|
|
2135
|
+
name: string;
|
|
2136
|
+
description: string;
|
|
2137
|
+
method: "post";
|
|
2138
|
+
path: string;
|
|
2139
|
+
disableDefaultParameters: {
|
|
2140
|
+
"x-workspace-id": boolean;
|
|
2141
|
+
};
|
|
2142
|
+
requestBody: {
|
|
2143
|
+
description: string;
|
|
2144
|
+
schema: {
|
|
2145
|
+
type: "object";
|
|
2146
|
+
properties: {
|
|
2147
|
+
name: {
|
|
2148
|
+
type: "string";
|
|
2149
|
+
};
|
|
2150
|
+
};
|
|
2151
|
+
required: string[];
|
|
2152
|
+
title: string;
|
|
2153
|
+
additionalProperties: false;
|
|
2154
|
+
};
|
|
2155
|
+
};
|
|
2156
|
+
response: {
|
|
2157
|
+
description: string;
|
|
2158
|
+
schema: {
|
|
2159
|
+
type: "object";
|
|
2160
|
+
properties: {
|
|
2161
|
+
id: {
|
|
2162
|
+
type: "string";
|
|
2163
|
+
};
|
|
2164
|
+
name: {
|
|
2165
|
+
type: "string";
|
|
2166
|
+
};
|
|
2167
|
+
ownerId: {
|
|
2168
|
+
type: "string";
|
|
2169
|
+
};
|
|
2170
|
+
createdAt: {
|
|
2171
|
+
type: "string";
|
|
2172
|
+
};
|
|
2173
|
+
updatedAt: {
|
|
2174
|
+
type: "string";
|
|
2175
|
+
};
|
|
2176
|
+
botCount: {
|
|
2177
|
+
type: "number";
|
|
2178
|
+
};
|
|
2179
|
+
accountType: {
|
|
2180
|
+
type: "string";
|
|
2181
|
+
enum: string[];
|
|
2182
|
+
};
|
|
2183
|
+
blocked: {
|
|
2184
|
+
type: "boolean";
|
|
2185
|
+
};
|
|
2186
|
+
spendingLimit: {
|
|
2187
|
+
type: "number";
|
|
2188
|
+
};
|
|
2189
|
+
};
|
|
2190
|
+
required: string[];
|
|
2191
|
+
title: string;
|
|
2192
|
+
additionalProperties: false;
|
|
2193
|
+
};
|
|
2194
|
+
};
|
|
2195
|
+
parameters: {};
|
|
2196
|
+
};
|
|
2134
2197
|
getWorkspace: {
|
|
2135
2198
|
name: string;
|
|
2136
2199
|
description: string;
|
|
@@ -2191,6 +2254,9 @@ export declare const state: {
|
|
|
2191
2254
|
description: string;
|
|
2192
2255
|
method: "put";
|
|
2193
2256
|
path: string;
|
|
2257
|
+
disableDefaultParameters: {
|
|
2258
|
+
"x-workspace-id": boolean;
|
|
2259
|
+
};
|
|
2194
2260
|
parameters: {
|
|
2195
2261
|
id: {
|
|
2196
2262
|
type: "string";
|
|
@@ -2208,10 +2274,6 @@ export declare const state: {
|
|
|
2208
2274
|
minLength: number;
|
|
2209
2275
|
maxLength: number;
|
|
2210
2276
|
};
|
|
2211
|
-
accountType: {
|
|
2212
|
-
type: "string";
|
|
2213
|
-
enum: string[];
|
|
2214
|
-
};
|
|
2215
2277
|
spendingLimit: {
|
|
2216
2278
|
type: "number";
|
|
2217
2279
|
minimum: number;
|
|
@@ -2309,6 +2371,183 @@ export declare const state: {
|
|
|
2309
2371
|
type: "string";
|
|
2310
2372
|
enum: string[];
|
|
2311
2373
|
};
|
|
2374
|
+
blocked: {
|
|
2375
|
+
type: "boolean";
|
|
2376
|
+
};
|
|
2377
|
+
spendingLimit: {
|
|
2378
|
+
type: "number";
|
|
2379
|
+
};
|
|
2380
|
+
};
|
|
2381
|
+
required: string[];
|
|
2382
|
+
title: string;
|
|
2383
|
+
};
|
|
2384
|
+
};
|
|
2385
|
+
meta: {
|
|
2386
|
+
type: "object";
|
|
2387
|
+
properties: {
|
|
2388
|
+
nextToken: {
|
|
2389
|
+
type: "string";
|
|
2390
|
+
description: string;
|
|
2391
|
+
};
|
|
2392
|
+
};
|
|
2393
|
+
additionalProperties: false;
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2396
|
+
required: string[];
|
|
2397
|
+
title: string;
|
|
2398
|
+
additionalProperties: false;
|
|
2399
|
+
};
|
|
2400
|
+
};
|
|
2401
|
+
};
|
|
2402
|
+
changeWorkspacePlan: {
|
|
2403
|
+
name: string;
|
|
2404
|
+
description: string;
|
|
2405
|
+
method: "put";
|
|
2406
|
+
path: string;
|
|
2407
|
+
disableDefaultParameters: {
|
|
2408
|
+
"x-workspace-id": boolean;
|
|
2409
|
+
};
|
|
2410
|
+
parameters: {
|
|
2411
|
+
id: {
|
|
2412
|
+
type: "string";
|
|
2413
|
+
description: string;
|
|
2414
|
+
in: "path";
|
|
2415
|
+
};
|
|
2416
|
+
};
|
|
2417
|
+
requestBody: {
|
|
2418
|
+
description: string;
|
|
2419
|
+
schema: {
|
|
2420
|
+
type: "object";
|
|
2421
|
+
properties: {
|
|
2422
|
+
plan: {
|
|
2423
|
+
type: "string";
|
|
2424
|
+
enum: string[];
|
|
2425
|
+
};
|
|
2426
|
+
};
|
|
2427
|
+
required: string[];
|
|
2428
|
+
title: string;
|
|
2429
|
+
additionalProperties: false;
|
|
2430
|
+
};
|
|
2431
|
+
};
|
|
2432
|
+
response: {
|
|
2433
|
+
description: string;
|
|
2434
|
+
schema: {
|
|
2435
|
+
type: "object";
|
|
2436
|
+
properties: {
|
|
2437
|
+
id: {
|
|
2438
|
+
type: "string";
|
|
2439
|
+
};
|
|
2440
|
+
name: {
|
|
2441
|
+
type: "string";
|
|
2442
|
+
};
|
|
2443
|
+
ownerId: {
|
|
2444
|
+
type: "string";
|
|
2445
|
+
};
|
|
2446
|
+
createdAt: {
|
|
2447
|
+
type: "string";
|
|
2448
|
+
};
|
|
2449
|
+
updatedAt: {
|
|
2450
|
+
type: "string";
|
|
2451
|
+
};
|
|
2452
|
+
botCount: {
|
|
2453
|
+
type: "number";
|
|
2454
|
+
};
|
|
2455
|
+
accountType: {
|
|
2456
|
+
type: "string";
|
|
2457
|
+
enum: string[];
|
|
2458
|
+
};
|
|
2459
|
+
blocked: {
|
|
2460
|
+
type: "boolean";
|
|
2461
|
+
};
|
|
2462
|
+
spendingLimit: {
|
|
2463
|
+
type: "number";
|
|
2464
|
+
};
|
|
2465
|
+
};
|
|
2466
|
+
required: string[];
|
|
2467
|
+
title: string;
|
|
2468
|
+
additionalProperties: false;
|
|
2469
|
+
};
|
|
2470
|
+
};
|
|
2471
|
+
};
|
|
2472
|
+
deleteWorkspace: {
|
|
2473
|
+
name: string;
|
|
2474
|
+
description: string;
|
|
2475
|
+
method: "delete";
|
|
2476
|
+
path: string;
|
|
2477
|
+
disableDefaultParameters: {
|
|
2478
|
+
"x-workspace-id": boolean;
|
|
2479
|
+
};
|
|
2480
|
+
parameters: {
|
|
2481
|
+
id: {
|
|
2482
|
+
type: "string";
|
|
2483
|
+
description: string;
|
|
2484
|
+
in: "path";
|
|
2485
|
+
};
|
|
2486
|
+
};
|
|
2487
|
+
response: {
|
|
2488
|
+
description: string;
|
|
2489
|
+
schema: {
|
|
2490
|
+
type: "object";
|
|
2491
|
+
title: string;
|
|
2492
|
+
additionalProperties: false;
|
|
2493
|
+
};
|
|
2494
|
+
};
|
|
2495
|
+
};
|
|
2496
|
+
getAuditRecords: {
|
|
2497
|
+
name: string;
|
|
2498
|
+
description: string;
|
|
2499
|
+
method: "get";
|
|
2500
|
+
path: string;
|
|
2501
|
+
parameters: {
|
|
2502
|
+
id: {
|
|
2503
|
+
type: "string";
|
|
2504
|
+
description: string;
|
|
2505
|
+
in: "path";
|
|
2506
|
+
};
|
|
2507
|
+
};
|
|
2508
|
+
disableDefaultParameters: {
|
|
2509
|
+
"x-workspace-id": boolean;
|
|
2510
|
+
};
|
|
2511
|
+
response: {
|
|
2512
|
+
description: string;
|
|
2513
|
+
schema: {
|
|
2514
|
+
type: "object";
|
|
2515
|
+
properties: {
|
|
2516
|
+
records: {
|
|
2517
|
+
type: "array";
|
|
2518
|
+
items: {
|
|
2519
|
+
type: "object";
|
|
2520
|
+
properties: {
|
|
2521
|
+
id: {
|
|
2522
|
+
type: "string";
|
|
2523
|
+
format: string;
|
|
2524
|
+
};
|
|
2525
|
+
recordedAt: {
|
|
2526
|
+
type: "string";
|
|
2527
|
+
format: string;
|
|
2528
|
+
};
|
|
2529
|
+
userId: {
|
|
2530
|
+
type: "string";
|
|
2531
|
+
format: string;
|
|
2532
|
+
nullable: true;
|
|
2533
|
+
};
|
|
2534
|
+
userEmail: {
|
|
2535
|
+
type: "string";
|
|
2536
|
+
nullable: true;
|
|
2537
|
+
};
|
|
2538
|
+
resourceId: {
|
|
2539
|
+
type: "string";
|
|
2540
|
+
format: string;
|
|
2541
|
+
nullable: true;
|
|
2542
|
+
};
|
|
2543
|
+
resourceName: {
|
|
2544
|
+
type: "string";
|
|
2545
|
+
nullable: true;
|
|
2546
|
+
};
|
|
2547
|
+
action: {
|
|
2548
|
+
type: "string";
|
|
2549
|
+
enum: string[];
|
|
2550
|
+
};
|
|
2312
2551
|
};
|
|
2313
2552
|
required: string[];
|
|
2314
2553
|
};
|
|
@@ -3639,6 +3878,10 @@ export declare const state: {
|
|
|
3639
3878
|
status: 429;
|
|
3640
3879
|
type: string;
|
|
3641
3880
|
description: string;
|
|
3881
|
+
} | {
|
|
3882
|
+
status: 402;
|
|
3883
|
+
type: string;
|
|
3884
|
+
description: string;
|
|
3642
3885
|
})[];
|
|
3643
3886
|
refs: {
|
|
3644
3887
|
parameters: {};
|
|
@@ -3660,7 +3903,9 @@ export declare const state: {
|
|
|
3660
3903
|
createBotBody: true;
|
|
3661
3904
|
updateBotBody: true;
|
|
3662
3905
|
transferBotBody: true;
|
|
3906
|
+
createWorkspaceBody: true;
|
|
3663
3907
|
updateWorkspaceBody: true;
|
|
3908
|
+
changeWorkspacePlanBody: true;
|
|
3664
3909
|
createIntegrationBody: true;
|
|
3665
3910
|
updateIntegrationBody: true;
|
|
3666
3911
|
createWorkspaceMemberBody: true;
|
|
@@ -3707,9 +3952,13 @@ export declare const state: {
|
|
|
3707
3952
|
getBotLogsResponse: true;
|
|
3708
3953
|
getBotWebchatResponse: true;
|
|
3709
3954
|
getBotAnalyticsResponse: true;
|
|
3955
|
+
createWorkspaceResponse: true;
|
|
3710
3956
|
getWorkspaceResponse: true;
|
|
3711
3957
|
updateWorkspaceResponse: true;
|
|
3712
3958
|
listWorkspacesResponse: true;
|
|
3959
|
+
changeWorkspacePlanResponse: true;
|
|
3960
|
+
deleteWorkspaceResponse: true;
|
|
3961
|
+
getAuditRecordsResponse: true;
|
|
3713
3962
|
createIntegrationResponse: true;
|
|
3714
3963
|
updateIntegrationResponse: true;
|
|
3715
3964
|
listIntegrationsResponse: true;
|
|
@@ -3775,9 +4024,11 @@ export declare const state: {
|
|
|
3775
4024
|
};
|
|
3776
4025
|
name: {
|
|
3777
4026
|
type: "string";
|
|
4027
|
+
description: string;
|
|
3778
4028
|
};
|
|
3779
4029
|
version: {
|
|
3780
4030
|
type: "string";
|
|
4031
|
+
description: string;
|
|
3781
4032
|
};
|
|
3782
4033
|
webhookUrl: {
|
|
3783
4034
|
type: "string";
|
|
@@ -3794,6 +4045,35 @@ export declare const state: {
|
|
|
3794
4045
|
type: "string";
|
|
3795
4046
|
nullable: true;
|
|
3796
4047
|
};
|
|
4048
|
+
id: {
|
|
4049
|
+
type: "string";
|
|
4050
|
+
description: string;
|
|
4051
|
+
};
|
|
4052
|
+
createdAt: {
|
|
4053
|
+
type: "string";
|
|
4054
|
+
format: string;
|
|
4055
|
+
description: string;
|
|
4056
|
+
};
|
|
4057
|
+
updatedAt: {
|
|
4058
|
+
type: "string";
|
|
4059
|
+
format: string;
|
|
4060
|
+
description: string;
|
|
4061
|
+
};
|
|
4062
|
+
title: {
|
|
4063
|
+
type: "string";
|
|
4064
|
+
minLength: number;
|
|
4065
|
+
maxLength: number;
|
|
4066
|
+
description: string;
|
|
4067
|
+
};
|
|
4068
|
+
description: {
|
|
4069
|
+
type: "string";
|
|
4070
|
+
maxLength: number;
|
|
4071
|
+
description: string;
|
|
4072
|
+
};
|
|
4073
|
+
iconUrl: {
|
|
4074
|
+
type: "string";
|
|
4075
|
+
description: string;
|
|
4076
|
+
};
|
|
3797
4077
|
};
|
|
3798
4078
|
required: string[];
|
|
3799
4079
|
additionalProperties: false;
|