profoundai 0.2.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.
- package/CHANGELOG.md +71 -0
- package/LICENSE +201 -0
- package/README.md +356 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +190 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +190 -0
- package/client.d.ts.map +1 -0
- package/client.js +470 -0
- package/client.js.map +1 -0
- package/client.mjs +466 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +86 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +80 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +138 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/index.d.mts +6 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +6 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +15 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +7 -0
- package/resources/index.mjs.map +1 -0
- package/resources/logs/index.d.mts +3 -0
- package/resources/logs/index.d.mts.map +1 -0
- package/resources/logs/index.d.ts +3 -0
- package/resources/logs/index.d.ts.map +1 -0
- package/resources/logs/index.js +9 -0
- package/resources/logs/index.js.map +1 -0
- package/resources/logs/index.mjs +4 -0
- package/resources/logs/index.mjs.map +1 -0
- package/resources/logs/logs.d.mts +10 -0
- package/resources/logs/logs.d.mts.map +1 -0
- package/resources/logs/logs.d.ts +10 -0
- package/resources/logs/logs.d.ts.map +1 -0
- package/resources/logs/logs.js +17 -0
- package/resources/logs/logs.js.map +1 -0
- package/resources/logs/logs.mjs +12 -0
- package/resources/logs/logs.mjs.map +1 -0
- package/resources/logs/raw.d.mts +192 -0
- package/resources/logs/raw.d.mts.map +1 -0
- package/resources/logs/raw.d.ts +192 -0
- package/resources/logs/raw.d.ts.map +1 -0
- package/resources/logs/raw.js +21 -0
- package/resources/logs/raw.js.map +1 -0
- package/resources/logs/raw.mjs +17 -0
- package/resources/logs/raw.mjs.map +1 -0
- package/resources/logs.d.mts +2 -0
- package/resources/logs.d.mts.map +1 -0
- package/resources/logs.d.ts +2 -0
- package/resources/logs.d.ts.map +1 -0
- package/resources/logs.js +6 -0
- package/resources/logs.js.map +1 -0
- package/resources/logs.mjs +3 -0
- package/resources/logs.mjs.map +1 -0
- package/resources/organizations/categories.d.mts +48 -0
- package/resources/organizations/categories.d.mts.map +1 -0
- package/resources/organizations/categories.d.ts +48 -0
- package/resources/organizations/categories.d.ts.map +1 -0
- package/resources/organizations/categories.js +34 -0
- package/resources/organizations/categories.js.map +1 -0
- package/resources/organizations/categories.mjs +30 -0
- package/resources/organizations/categories.mjs.map +1 -0
- package/resources/organizations/index.d.mts +3 -0
- package/resources/organizations/index.d.mts.map +1 -0
- package/resources/organizations/index.d.ts +3 -0
- package/resources/organizations/index.d.ts.map +1 -0
- package/resources/organizations/index.js +9 -0
- package/resources/organizations/index.js.map +1 -0
- package/resources/organizations/index.mjs +4 -0
- package/resources/organizations/index.mjs.map +1 -0
- package/resources/organizations/organizations.d.mts +35 -0
- package/resources/organizations/organizations.d.mts.map +1 -0
- package/resources/organizations/organizations.d.ts +35 -0
- package/resources/organizations/organizations.d.ts.map +1 -0
- package/resources/organizations/organizations.js +35 -0
- package/resources/organizations/organizations.js.map +1 -0
- package/resources/organizations/organizations.mjs +30 -0
- package/resources/organizations/organizations.mjs.map +1 -0
- package/resources/organizations.d.mts +2 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +2 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +6 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +3 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/prompts.d.mts +82 -0
- package/resources/prompts.d.mts.map +1 -0
- package/resources/prompts.d.ts +82 -0
- package/resources/prompts.d.ts.map +1 -0
- package/resources/prompts.js +15 -0
- package/resources/prompts.js.map +1 -0
- package/resources/prompts.mjs +11 -0
- package/resources/prompts.mjs.map +1 -0
- package/resources/reports.d.mts +256 -0
- package/resources/reports.d.mts.map +1 -0
- package/resources/reports.d.ts +256 -0
- package/resources/reports.d.ts.map +1 -0
- package/resources/reports.js +57 -0
- package/resources/reports.js.map +1 -0
- package/resources/reports.mjs +53 -0
- package/resources/reports.mjs.map +1 -0
- package/resources/shared.d.mts +14 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +14 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +4 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +3 -0
- package/resources/shared.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +775 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +127 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/index.ts +21 -0
- package/src/resources/logs/index.ts +10 -0
- package/src/resources/logs/logs.ts +21 -0
- package/src/resources/logs/raw.ts +301 -0
- package/src/resources/logs.ts +3 -0
- package/src/resources/organizations/categories.ts +83 -0
- package/src/resources/organizations/index.ts +16 -0
- package/src/resources/organizations/organizations.ts +74 -0
- package/src/resources/organizations.ts +3 -0
- package/src/resources/prompts.ts +136 -0
- package/src/resources/reports.ts +338 -0
- package/src/resources/shared.ts +16 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as ReportsAPI from "../reports.mjs";
|
|
3
|
+
import * as Shared from "../shared.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
export declare class Raw extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get identified bot logs with filters
|
|
9
|
+
*/
|
|
10
|
+
bots(body: RawBotsParams, options?: RequestOptions): APIPromise<RawBotsResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Get all logs with filters
|
|
13
|
+
*/
|
|
14
|
+
logs(body: RawLogsParams, options?: RequestOptions): APIPromise<RawLogsResponse>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Base response model for reports.
|
|
18
|
+
*/
|
|
19
|
+
export type RawBotsResponse = Array<RawBotsResponse.LogVisitBotList> | ReportsAPI.ReportResponse;
|
|
20
|
+
export declare namespace RawBotsResponse {
|
|
21
|
+
/**
|
|
22
|
+
* DB Model for a bot visit.
|
|
23
|
+
*/
|
|
24
|
+
interface LogVisitBotList {
|
|
25
|
+
bot_name: string;
|
|
26
|
+
bot_provider: string;
|
|
27
|
+
bot_types: Array<'ai_assistant' | 'ai_training' | 'index'>;
|
|
28
|
+
host: string;
|
|
29
|
+
ip: string;
|
|
30
|
+
method: string;
|
|
31
|
+
org_id: string;
|
|
32
|
+
path: string;
|
|
33
|
+
status_code: number;
|
|
34
|
+
timestamp: string;
|
|
35
|
+
user_agent: string;
|
|
36
|
+
bytes_sent?: number;
|
|
37
|
+
duration_ms?: number;
|
|
38
|
+
query_params?: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
referer?: string;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Base response model for reports.
|
|
46
|
+
*/
|
|
47
|
+
export type RawLogsResponse = Array<RawLogsResponse.LogVisitList> | ReportsAPI.ReportResponse;
|
|
48
|
+
export declare namespace RawLogsResponse {
|
|
49
|
+
/**
|
|
50
|
+
* DB Model for a log visit.
|
|
51
|
+
*/
|
|
52
|
+
interface LogVisitList {
|
|
53
|
+
host: string;
|
|
54
|
+
ip: string;
|
|
55
|
+
method: string;
|
|
56
|
+
org_id: string;
|
|
57
|
+
path: string;
|
|
58
|
+
status_code: number;
|
|
59
|
+
timestamp: string;
|
|
60
|
+
user_agent: string;
|
|
61
|
+
bytes_sent?: number;
|
|
62
|
+
duration_ms?: number;
|
|
63
|
+
query_params?: {
|
|
64
|
+
[key: string]: string;
|
|
65
|
+
};
|
|
66
|
+
referer?: string;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export interface RawBotsParams {
|
|
70
|
+
/**
|
|
71
|
+
* Domain to query logs for.
|
|
72
|
+
*/
|
|
73
|
+
domain: string;
|
|
74
|
+
metrics: Array<'count'>;
|
|
75
|
+
/**
|
|
76
|
+
* Start date for logs. Accepts: YYYY-MM-DD, YYYY-MM-DD HH:MM, YYYY-MM-DD HH:MM:SS,
|
|
77
|
+
* or full ISO timestamp.
|
|
78
|
+
*/
|
|
79
|
+
start_date: string;
|
|
80
|
+
/**
|
|
81
|
+
* Date interval for the report. (only used with date dimension)
|
|
82
|
+
*/
|
|
83
|
+
date_interval?: 'day' | 'week' | 'month' | 'year';
|
|
84
|
+
/**
|
|
85
|
+
* Dimensions to group the report by.
|
|
86
|
+
*/
|
|
87
|
+
dimensions?: Array<'method' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'query_params' | 'bot_name' | 'bot_provider' | 'bot_types'>;
|
|
88
|
+
/**
|
|
89
|
+
* End date for logs. Accepts same formats as start_date. Defaults to now if
|
|
90
|
+
* omitted.
|
|
91
|
+
*/
|
|
92
|
+
end_date?: string;
|
|
93
|
+
/**
|
|
94
|
+
* List of filters to apply to the report. Each filter has an operator, field, and
|
|
95
|
+
* value.
|
|
96
|
+
*/
|
|
97
|
+
filters?: Array<RawBotsParams.Filter>;
|
|
98
|
+
/**
|
|
99
|
+
* Custom ordering of the report results.
|
|
100
|
+
*
|
|
101
|
+
* The order is a record of key-value pairs where:
|
|
102
|
+
*
|
|
103
|
+
* - key is the field to order by, which can be a metric or dimension
|
|
104
|
+
* - value is the direction of the order, either 'asc' for ascending or 'desc' for
|
|
105
|
+
* descending.
|
|
106
|
+
*
|
|
107
|
+
* When not specified, the default order is the first metric in the query
|
|
108
|
+
* descending.
|
|
109
|
+
*/
|
|
110
|
+
order_by?: {
|
|
111
|
+
[key: string]: 'asc' | 'desc';
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Pagination settings for the report results.
|
|
115
|
+
*/
|
|
116
|
+
pagination?: Shared.Pagination;
|
|
117
|
+
}
|
|
118
|
+
export declare namespace RawBotsParams {
|
|
119
|
+
interface Filter {
|
|
120
|
+
field: 'method' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'query_params' | 'bot_name' | 'bot_provider' | 'bot_types';
|
|
121
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'contains_case_insensitive' | 'not_contains_case_insensitive' | 'matches';
|
|
122
|
+
/**
|
|
123
|
+
* Value for the filter. Can be a single value or a list of depending on the
|
|
124
|
+
* operator.
|
|
125
|
+
*/
|
|
126
|
+
value: string | Array<string> | number | Array<number>;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
export interface RawLogsParams {
|
|
130
|
+
/**
|
|
131
|
+
* Domain to query logs for.
|
|
132
|
+
*/
|
|
133
|
+
domain: string;
|
|
134
|
+
metrics: Array<'count'>;
|
|
135
|
+
/**
|
|
136
|
+
* Start date for logs. Accepts: YYYY-MM-DD, YYYY-MM-DD HH:MM, YYYY-MM-DD HH:MM:SS,
|
|
137
|
+
* or full ISO timestamp.
|
|
138
|
+
*/
|
|
139
|
+
start_date: string;
|
|
140
|
+
/**
|
|
141
|
+
* Date interval for the report. (only used with date dimension)
|
|
142
|
+
*/
|
|
143
|
+
date_interval?: 'day' | 'week' | 'month' | 'year';
|
|
144
|
+
/**
|
|
145
|
+
* Dimensions to group the report by.
|
|
146
|
+
*/
|
|
147
|
+
dimensions?: Array<'timestamp' | 'method' | 'host' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'bytes_sent' | 'duration_ms' | 'query_params'>;
|
|
148
|
+
/**
|
|
149
|
+
* End date for logs. Accepts same formats as start_date. Defaults to now if
|
|
150
|
+
* omitted.
|
|
151
|
+
*/
|
|
152
|
+
end_date?: string;
|
|
153
|
+
/**
|
|
154
|
+
* List of filters to apply to the report. Each filter has an operator, field, and
|
|
155
|
+
* value.
|
|
156
|
+
*/
|
|
157
|
+
filters?: Array<RawLogsParams.Filter>;
|
|
158
|
+
/**
|
|
159
|
+
* Custom ordering of the report results.
|
|
160
|
+
*
|
|
161
|
+
* The order is a record of key-value pairs where:
|
|
162
|
+
*
|
|
163
|
+
* - key is the field to order by, which can be a metric or dimension
|
|
164
|
+
* - value is the direction of the order, either 'asc' for ascending or 'desc' for
|
|
165
|
+
* descending.
|
|
166
|
+
*
|
|
167
|
+
* When not specified, the default order is the first metric in the query
|
|
168
|
+
* descending.
|
|
169
|
+
*/
|
|
170
|
+
order_by?: {
|
|
171
|
+
[key: string]: 'asc' | 'desc';
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Pagination settings for the report results.
|
|
175
|
+
*/
|
|
176
|
+
pagination?: Shared.Pagination;
|
|
177
|
+
}
|
|
178
|
+
export declare namespace RawLogsParams {
|
|
179
|
+
interface Filter {
|
|
180
|
+
field: 'method' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'query_params';
|
|
181
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'contains_case_insensitive' | 'not_contains_case_insensitive' | 'matches';
|
|
182
|
+
/**
|
|
183
|
+
* Value for the filter. Can be a single value or a list of depending on the
|
|
184
|
+
* operator.
|
|
185
|
+
*/
|
|
186
|
+
value: string | Array<string> | number | Array<number>;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
export declare namespace Raw {
|
|
190
|
+
export { type RawBotsResponse as RawBotsResponse, type RawLogsResponse as RawLogsResponse, type RawBotsParams as RawBotsParams, type RawLogsParams as RawLogsParams,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K,GAAG,MAAM,CAAA;KAAE,CAAC;IAE7C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CAChC;AAED,yBAAiB,aAAa,CAAC;IAC7B,UAAiB,MAAM;QACrB,KAAK,EAAE,QAAQ,GAAG,MAAM,GAAG,aAAa,GAAG,IAAI,GAAG,YAAY,GAAG,SAAS,GAAG,cAAc,CAAC;QAE5F,QAAQ,EACJ,IAAI,GACJ,QAAQ,GACR,IAAI,GACJ,QAAQ,GACR,UAAU,GACV,cAAc,GACd,2BAA2B,GAC3B,+BAA+B,GAC/B,SAAS,CAAC;QAEd;;;WAGG;QACH,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;KACxD;CACF;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as ReportsAPI from "../reports.js";
|
|
3
|
+
import * as Shared from "../shared.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
|
+
export declare class Raw extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get identified bot logs with filters
|
|
9
|
+
*/
|
|
10
|
+
bots(body: RawBotsParams, options?: RequestOptions): APIPromise<RawBotsResponse>;
|
|
11
|
+
/**
|
|
12
|
+
* Get all logs with filters
|
|
13
|
+
*/
|
|
14
|
+
logs(body: RawLogsParams, options?: RequestOptions): APIPromise<RawLogsResponse>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Base response model for reports.
|
|
18
|
+
*/
|
|
19
|
+
export type RawBotsResponse = Array<RawBotsResponse.LogVisitBotList> | ReportsAPI.ReportResponse;
|
|
20
|
+
export declare namespace RawBotsResponse {
|
|
21
|
+
/**
|
|
22
|
+
* DB Model for a bot visit.
|
|
23
|
+
*/
|
|
24
|
+
interface LogVisitBotList {
|
|
25
|
+
bot_name: string;
|
|
26
|
+
bot_provider: string;
|
|
27
|
+
bot_types: Array<'ai_assistant' | 'ai_training' | 'index'>;
|
|
28
|
+
host: string;
|
|
29
|
+
ip: string;
|
|
30
|
+
method: string;
|
|
31
|
+
org_id: string;
|
|
32
|
+
path: string;
|
|
33
|
+
status_code: number;
|
|
34
|
+
timestamp: string;
|
|
35
|
+
user_agent: string;
|
|
36
|
+
bytes_sent?: number;
|
|
37
|
+
duration_ms?: number;
|
|
38
|
+
query_params?: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
referer?: string;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Base response model for reports.
|
|
46
|
+
*/
|
|
47
|
+
export type RawLogsResponse = Array<RawLogsResponse.LogVisitList> | ReportsAPI.ReportResponse;
|
|
48
|
+
export declare namespace RawLogsResponse {
|
|
49
|
+
/**
|
|
50
|
+
* DB Model for a log visit.
|
|
51
|
+
*/
|
|
52
|
+
interface LogVisitList {
|
|
53
|
+
host: string;
|
|
54
|
+
ip: string;
|
|
55
|
+
method: string;
|
|
56
|
+
org_id: string;
|
|
57
|
+
path: string;
|
|
58
|
+
status_code: number;
|
|
59
|
+
timestamp: string;
|
|
60
|
+
user_agent: string;
|
|
61
|
+
bytes_sent?: number;
|
|
62
|
+
duration_ms?: number;
|
|
63
|
+
query_params?: {
|
|
64
|
+
[key: string]: string;
|
|
65
|
+
};
|
|
66
|
+
referer?: string;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export interface RawBotsParams {
|
|
70
|
+
/**
|
|
71
|
+
* Domain to query logs for.
|
|
72
|
+
*/
|
|
73
|
+
domain: string;
|
|
74
|
+
metrics: Array<'count'>;
|
|
75
|
+
/**
|
|
76
|
+
* Start date for logs. Accepts: YYYY-MM-DD, YYYY-MM-DD HH:MM, YYYY-MM-DD HH:MM:SS,
|
|
77
|
+
* or full ISO timestamp.
|
|
78
|
+
*/
|
|
79
|
+
start_date: string;
|
|
80
|
+
/**
|
|
81
|
+
* Date interval for the report. (only used with date dimension)
|
|
82
|
+
*/
|
|
83
|
+
date_interval?: 'day' | 'week' | 'month' | 'year';
|
|
84
|
+
/**
|
|
85
|
+
* Dimensions to group the report by.
|
|
86
|
+
*/
|
|
87
|
+
dimensions?: Array<'method' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'query_params' | 'bot_name' | 'bot_provider' | 'bot_types'>;
|
|
88
|
+
/**
|
|
89
|
+
* End date for logs. Accepts same formats as start_date. Defaults to now if
|
|
90
|
+
* omitted.
|
|
91
|
+
*/
|
|
92
|
+
end_date?: string;
|
|
93
|
+
/**
|
|
94
|
+
* List of filters to apply to the report. Each filter has an operator, field, and
|
|
95
|
+
* value.
|
|
96
|
+
*/
|
|
97
|
+
filters?: Array<RawBotsParams.Filter>;
|
|
98
|
+
/**
|
|
99
|
+
* Custom ordering of the report results.
|
|
100
|
+
*
|
|
101
|
+
* The order is a record of key-value pairs where:
|
|
102
|
+
*
|
|
103
|
+
* - key is the field to order by, which can be a metric or dimension
|
|
104
|
+
* - value is the direction of the order, either 'asc' for ascending or 'desc' for
|
|
105
|
+
* descending.
|
|
106
|
+
*
|
|
107
|
+
* When not specified, the default order is the first metric in the query
|
|
108
|
+
* descending.
|
|
109
|
+
*/
|
|
110
|
+
order_by?: {
|
|
111
|
+
[key: string]: 'asc' | 'desc';
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Pagination settings for the report results.
|
|
115
|
+
*/
|
|
116
|
+
pagination?: Shared.Pagination;
|
|
117
|
+
}
|
|
118
|
+
export declare namespace RawBotsParams {
|
|
119
|
+
interface Filter {
|
|
120
|
+
field: 'method' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'query_params' | 'bot_name' | 'bot_provider' | 'bot_types';
|
|
121
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'contains_case_insensitive' | 'not_contains_case_insensitive' | 'matches';
|
|
122
|
+
/**
|
|
123
|
+
* Value for the filter. Can be a single value or a list of depending on the
|
|
124
|
+
* operator.
|
|
125
|
+
*/
|
|
126
|
+
value: string | Array<string> | number | Array<number>;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
export interface RawLogsParams {
|
|
130
|
+
/**
|
|
131
|
+
* Domain to query logs for.
|
|
132
|
+
*/
|
|
133
|
+
domain: string;
|
|
134
|
+
metrics: Array<'count'>;
|
|
135
|
+
/**
|
|
136
|
+
* Start date for logs. Accepts: YYYY-MM-DD, YYYY-MM-DD HH:MM, YYYY-MM-DD HH:MM:SS,
|
|
137
|
+
* or full ISO timestamp.
|
|
138
|
+
*/
|
|
139
|
+
start_date: string;
|
|
140
|
+
/**
|
|
141
|
+
* Date interval for the report. (only used with date dimension)
|
|
142
|
+
*/
|
|
143
|
+
date_interval?: 'day' | 'week' | 'month' | 'year';
|
|
144
|
+
/**
|
|
145
|
+
* Dimensions to group the report by.
|
|
146
|
+
*/
|
|
147
|
+
dimensions?: Array<'timestamp' | 'method' | 'host' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'bytes_sent' | 'duration_ms' | 'query_params'>;
|
|
148
|
+
/**
|
|
149
|
+
* End date for logs. Accepts same formats as start_date. Defaults to now if
|
|
150
|
+
* omitted.
|
|
151
|
+
*/
|
|
152
|
+
end_date?: string;
|
|
153
|
+
/**
|
|
154
|
+
* List of filters to apply to the report. Each filter has an operator, field, and
|
|
155
|
+
* value.
|
|
156
|
+
*/
|
|
157
|
+
filters?: Array<RawLogsParams.Filter>;
|
|
158
|
+
/**
|
|
159
|
+
* Custom ordering of the report results.
|
|
160
|
+
*
|
|
161
|
+
* The order is a record of key-value pairs where:
|
|
162
|
+
*
|
|
163
|
+
* - key is the field to order by, which can be a metric or dimension
|
|
164
|
+
* - value is the direction of the order, either 'asc' for ascending or 'desc' for
|
|
165
|
+
* descending.
|
|
166
|
+
*
|
|
167
|
+
* When not specified, the default order is the first metric in the query
|
|
168
|
+
* descending.
|
|
169
|
+
*/
|
|
170
|
+
order_by?: {
|
|
171
|
+
[key: string]: 'asc' | 'desc';
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Pagination settings for the report results.
|
|
175
|
+
*/
|
|
176
|
+
pagination?: Shared.Pagination;
|
|
177
|
+
}
|
|
178
|
+
export declare namespace RawLogsParams {
|
|
179
|
+
interface Filter {
|
|
180
|
+
field: 'method' | 'path' | 'status_code' | 'ip' | 'user_agent' | 'referer' | 'query_params';
|
|
181
|
+
operator: 'is' | 'not_is' | 'in' | 'not_in' | 'contains' | 'not_contains' | 'contains_case_insensitive' | 'not_contains_case_insensitive' | 'matches';
|
|
182
|
+
/**
|
|
183
|
+
* Value for the filter. Can be a single value or a list of depending on the
|
|
184
|
+
* operator.
|
|
185
|
+
*/
|
|
186
|
+
value: string | Array<string> | number | Array<number>;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
export declare namespace Raw {
|
|
190
|
+
export { type RawBotsResponse as RawBotsResponse, type RawLogsResponse as RawLogsResponse, type RawBotsParams as RawBotsParams, type RawLogsParams as RawLogsParams, };
|
|
191
|
+
}
|
|
192
|
+
//# sourceMappingURL=raw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw.d.ts","sourceRoot":"","sources":["../../src/resources/logs/raw.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,I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UAAU,GACV,cAAc,GACd,2BAA2B,GAC3B,+BAA+B,GAC/B,SAAS,CAAC;QAEd;;;WAGG;QACH,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;KACxD;CACF;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,GACpC,CAAC;CACH"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Raw = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
class Raw extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Get identified bot logs with filters
|
|
9
|
+
*/
|
|
10
|
+
bots(body, options) {
|
|
11
|
+
return this._client.post('/v1/logs/raw/bots', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Get all logs with filters
|
|
15
|
+
*/
|
|
16
|
+
logs(body, options) {
|
|
17
|
+
return this._client.post('/v1/logs/raw', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Raw = Raw;
|
|
21
|
+
//# sourceMappingURL=raw.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw.js","sourceRoot":"","sources":["../../src/resources/logs/raw.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAMlD,MAAa,GAAI,SAAQ,sBAAW;IAClC;;OAEG;IACH,IAAI,CAAC,IAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;AAdD,kBAcC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
export class Raw extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Get identified bot logs with filters
|
|
6
|
+
*/
|
|
7
|
+
bots(body, options) {
|
|
8
|
+
return this._client.post('/v1/logs/raw/bots', { body, ...options });
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get all logs with filters
|
|
12
|
+
*/
|
|
13
|
+
logs(body, options) {
|
|
14
|
+
return this._client.post('/v1/logs/raw', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=raw.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raw.mjs","sourceRoot":"","sources":["../../src/resources/logs/raw.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAMtB,MAAM,OAAO,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,IAAI,CAAC,IAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,IAAmB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logs.d.mts","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./logs/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=logs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logs.mjs","sourceRoot":"","sources":["../src/resources/logs.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as CategoriesAPI from "./categories.mjs";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class Categories extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get the organization categories.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: RequestOptions): APIPromise<CategoryListResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Get Category Prompts
|
|
12
|
+
*/
|
|
13
|
+
prompts(categoryID: string, options?: RequestOptions): APIPromise<CategoryPromptsResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Get the organization tags for a specific category.
|
|
16
|
+
*/
|
|
17
|
+
tags(categoryID: string, options?: RequestOptions): APIPromise<CategoryTagsResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get the organization categories.
|
|
20
|
+
*/
|
|
21
|
+
topics(categoryID: string, options?: RequestOptions): APIPromise<CategoryTopicsResponse>;
|
|
22
|
+
}
|
|
23
|
+
export interface OrgItem {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}
|
|
27
|
+
export type CategoryListResponse = Array<OrgItem>;
|
|
28
|
+
export interface CategoryPromptsResponse {
|
|
29
|
+
data: Array<CategoryPromptsResponse.Data>;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace CategoryPromptsResponse {
|
|
32
|
+
interface Data {
|
|
33
|
+
id: string;
|
|
34
|
+
created_at: string;
|
|
35
|
+
platforms: Array<CategoriesAPI.OrgItem>;
|
|
36
|
+
prompt: string;
|
|
37
|
+
prompt_type: string;
|
|
38
|
+
regions: Array<CategoriesAPI.OrgItem>;
|
|
39
|
+
topic: CategoriesAPI.OrgItem;
|
|
40
|
+
tags?: Array<CategoriesAPI.OrgItem>;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export type CategoryTagsResponse = Array<OrgItem>;
|
|
44
|
+
export type CategoryTopicsResponse = Array<OrgItem>;
|
|
45
|
+
export declare namespace Categories {
|
|
46
|
+
export { type OrgItem as OrgItem, type CategoryListResponse as CategoryListResponse, type CategoryPromptsResponse as CategoryPromptsResponse, type CategoryTagsResponse as CategoryTagsResponse, type CategoryTopicsResponse as CategoryTopicsResponse, };
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=categories.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categories.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/categories.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,E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AAO,CAAC,CAAC;AAEpD,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as CategoriesAPI from "./categories.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Categories extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get the organization categories.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: RequestOptions): APIPromise<CategoryListResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Get Category Prompts
|
|
12
|
+
*/
|
|
13
|
+
prompts(categoryID: string, options?: RequestOptions): APIPromise<CategoryPromptsResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Get the organization tags for a specific category.
|
|
16
|
+
*/
|
|
17
|
+
tags(categoryID: string, options?: RequestOptions): APIPromise<CategoryTagsResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get the organization categories.
|
|
20
|
+
*/
|
|
21
|
+
topics(categoryID: string, options?: RequestOptions): APIPromise<CategoryTopicsResponse>;
|
|
22
|
+
}
|
|
23
|
+
export interface OrgItem {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
}
|
|
27
|
+
export type CategoryListResponse = Array<OrgItem>;
|
|
28
|
+
export interface CategoryPromptsResponse {
|
|
29
|
+
data: Array<CategoryPromptsResponse.Data>;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace CategoryPromptsResponse {
|
|
32
|
+
interface Data {
|
|
33
|
+
id: string;
|
|
34
|
+
created_at: string;
|
|
35
|
+
platforms: Array<CategoriesAPI.OrgItem>;
|
|
36
|
+
prompt: string;
|
|
37
|
+
prompt_type: string;
|
|
38
|
+
regions: Array<CategoriesAPI.OrgItem>;
|
|
39
|
+
topic: CategoriesAPI.OrgItem;
|
|
40
|
+
tags?: Array<CategoriesAPI.OrgItem>;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export type CategoryTagsResponse = Array<OrgItem>;
|
|
44
|
+
export type CategoryTopicsResponse = Array<OrgItem>;
|
|
45
|
+
export declare namespace Categories {
|
|
46
|
+
export { type OrgItem as OrgItem, type CategoryListResponse as CategoryListResponse, type CategoryPromptsResponse as CategoryPromptsResponse, type CategoryTagsResponse as CategoryTagsResponse, type CategoryTopicsResponse as CategoryTopicsResponse, };
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=categories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categories.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/categories.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhE;;OAEG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;OAEG;IACH,IAAI,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIpF;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;CAGzF;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAElD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,KAAK,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;CAC3C;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,IAAI;QACnB,EAAE,EAAE,MAAM,CAAC;QAEX,UAAU,EAAE,MAAM,CAAC;QAEnB,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAExC,MAAM,EAAE,MAAM,CAAC;QAEf,WAAW,EAAE,MAAM,CAAC;QAEpB,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAEtC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC;QAE7B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;KACrC;CACF;AAED,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAElD,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAEpD,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Categories = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Categories extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get the organization categories.
|
|
10
|
+
*/
|
|
11
|
+
list(options) {
|
|
12
|
+
return this._client.get('/v1/org/categories', options);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Get Category Prompts
|
|
16
|
+
*/
|
|
17
|
+
prompts(categoryID, options) {
|
|
18
|
+
return this._client.get((0, path_1.path) `/v1/org/categories/${categoryID}/prompts`, options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Get the organization tags for a specific category.
|
|
22
|
+
*/
|
|
23
|
+
tags(categoryID, options) {
|
|
24
|
+
return this._client.get((0, path_1.path) `/v1/org/categories/${categoryID}/tags`, options);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get the organization categories.
|
|
28
|
+
*/
|
|
29
|
+
topics(categoryID, options) {
|
|
30
|
+
return this._client.get((0, path_1.path) `/v1/org/categories/${categoryID}/topics`, options);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.Categories = Categories;
|
|
34
|
+
//# sourceMappingURL=categories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"categories.js","sourceRoot":"","sources":["../../src/resources/organizations/categories.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,UAAU,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,UAAkB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,OAAO,EAAE,OAAO,CAAC,CAAC;IAChF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAkB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,SAAS,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;CACF;AA5BD,gCA4BC"}
|