@botpress/api 0.4.0 → 0.5.1

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.
@@ -2493,6 +2493,87 @@ export declare const state: {
2493
2493
  };
2494
2494
  };
2495
2495
  };
2496
+ getAuditRecords: {
2497
+ name: string;
2498
+ description: string;
2499
+ method: "get";
2500
+ path: string;
2501
+ parameters: {
2502
+ nextToken: {
2503
+ in: "query";
2504
+ description: string;
2505
+ type: "string";
2506
+ };
2507
+ id: {
2508
+ type: "string";
2509
+ description: string;
2510
+ in: "path";
2511
+ };
2512
+ };
2513
+ disableDefaultParameters: {
2514
+ "x-workspace-id": boolean;
2515
+ };
2516
+ response: {
2517
+ description: string;
2518
+ schema: {
2519
+ type: "object";
2520
+ properties: {
2521
+ records: {
2522
+ type: "array";
2523
+ items: {
2524
+ type: "object";
2525
+ properties: {
2526
+ id: {
2527
+ type: "string";
2528
+ format: string;
2529
+ };
2530
+ recordedAt: {
2531
+ type: "string";
2532
+ format: string;
2533
+ };
2534
+ userId: {
2535
+ type: "string";
2536
+ format: string;
2537
+ nullable: true;
2538
+ };
2539
+ userEmail: {
2540
+ type: "string";
2541
+ nullable: true;
2542
+ };
2543
+ resourceId: {
2544
+ type: "string";
2545
+ format: string;
2546
+ nullable: true;
2547
+ };
2548
+ resourceName: {
2549
+ type: "string";
2550
+ nullable: true;
2551
+ };
2552
+ action: {
2553
+ type: "string";
2554
+ enum: string[];
2555
+ };
2556
+ };
2557
+ required: string[];
2558
+ };
2559
+ };
2560
+ meta: {
2561
+ type: "object";
2562
+ properties: {
2563
+ nextToken: {
2564
+ type: "string";
2565
+ description: string;
2566
+ };
2567
+ };
2568
+ additionalProperties: false;
2569
+ };
2570
+ };
2571
+ required: string[];
2572
+ title: string;
2573
+ additionalProperties: false;
2574
+ };
2575
+ };
2576
+ };
2496
2577
  createIntegration: {
2497
2578
  name: string;
2498
2579
  description: string;
@@ -3802,6 +3883,10 @@ export declare const state: {
3802
3883
  status: 429;
3803
3884
  type: string;
3804
3885
  description: string;
3886
+ } | {
3887
+ status: 402;
3888
+ type: string;
3889
+ description: string;
3805
3890
  })[];
3806
3891
  refs: {
3807
3892
  parameters: {};
@@ -3878,6 +3963,7 @@ export declare const state: {
3878
3963
  listWorkspacesResponse: true;
3879
3964
  changeWorkspacePlanResponse: true;
3880
3965
  deleteWorkspaceResponse: true;
3966
+ getAuditRecordsResponse: true;
3881
3967
  createIntegrationResponse: true;
3882
3968
  updateIntegrationResponse: true;
3883
3969
  listIntegrationsResponse: true;
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export declare const api: {
2
2
  getModelRef: (name: "Bot" | "Integration" | "Workspace" | "User" | "Conversation" | "Event" | "Message" | "State" | "File") => import("@bpinternal/opapi").OpenApiZodAny;
3
3
  addOperation: <Path extends string>(operationProps: import("@bpinternal/opapi").Operation<"x-workspace-id", "user" | "conversation" | "event" | "message" | "file" | "state" | "hub" | "action" | "bot" | "integration" | "workspace", Path, "zod-schema">) => void;
4
4
  exportClient: (dir: string | undefined, openapiGeneratorEndpoint: string, postProcessors?: import("@bpinternal/opapi").OpenApiPostProcessors | undefined) => Promise<void>;
5
+ exportTypesBySection: (dir?: string | undefined) => Promise<void>;
5
6
  exportServer: (dir: string | undefined, useExpressTypes: boolean) => Promise<void>;
6
7
  exportOpenapi: (dir?: string | undefined) => void;
7
8
  exportState: (dir?: string | undefined) => void;