telnyx 7.22.0 → 7.23.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/CHANGELOG.md +7 -0
- package/client.d.mts +34 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +34 -4
- package/client.d.ts.map +1 -1
- package/client.js +30 -0
- package/client.js.map +1 -1
- package/client.mjs +30 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +6 -2
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +6 -2
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +4 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +5 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +256 -46
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +256 -46
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +34 -12
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +34 -12
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/audio.d.mts +78 -43
- package/resources/ai/audio.d.mts.map +1 -1
- package/resources/ai/audio.d.ts +78 -43
- package/resources/ai/audio.d.ts.map +1 -1
- package/resources/ai/audio.js.map +1 -1
- package/resources/ai/audio.mjs.map +1 -1
- package/resources/ai/chat.d.mts +2 -10
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +2 -10
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/chat.js.map +1 -1
- package/resources/ai/chat.mjs.map +1 -1
- package/resources/ai/index.d.mts +2 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -1
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +3 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +2 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/openai/chat.d.mts +10 -11
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +10 -11
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/openai/chat.js.map +1 -1
- package/resources/ai/openai/chat.mjs.map +1 -1
- package/resources/ai/openai/index.d.mts +1 -1
- package/resources/ai/openai/index.d.mts.map +1 -1
- package/resources/ai/openai/index.d.ts +1 -1
- package/resources/ai/openai/index.d.ts.map +1 -1
- package/resources/ai/openai/index.js.map +1 -1
- package/resources/ai/openai/index.mjs +1 -1
- package/resources/ai/openai/index.mjs.map +1 -1
- package/resources/ai/openai/openai.d.mts +2 -2
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +2 -2
- package/resources/ai/openai/openai.d.ts.map +1 -1
- package/resources/ai/openai/openai.js.map +1 -1
- package/resources/ai/openai/openai.mjs.map +1 -1
- package/resources/ai/typesafe/index.d.mts +3 -0
- package/resources/ai/typesafe/index.d.mts.map +1 -0
- package/resources/ai/typesafe/index.d.ts +3 -0
- package/resources/ai/typesafe/index.d.ts.map +1 -0
- package/resources/ai/typesafe/index.js +9 -0
- package/resources/ai/typesafe/index.js.map +1 -0
- package/resources/ai/typesafe/index.mjs +4 -0
- package/resources/ai/typesafe/index.mjs.map +1 -0
- package/resources/ai/typesafe/typesafe.d.mts +10 -0
- package/resources/ai/typesafe/typesafe.d.mts.map +1 -0
- package/resources/ai/typesafe/typesafe.d.ts +10 -0
- package/resources/ai/typesafe/typesafe.d.ts.map +1 -0
- package/resources/ai/typesafe/typesafe.js +17 -0
- package/resources/ai/typesafe/typesafe.js.map +1 -0
- package/resources/ai/typesafe/typesafe.mjs +12 -0
- package/resources/ai/typesafe/typesafe.mjs.map +1 -0
- package/resources/ai/typesafe/v1.d.mts +274 -0
- package/resources/ai/typesafe/v1.d.mts.map +1 -0
- package/resources/ai/typesafe/v1.d.ts +274 -0
- package/resources/ai/typesafe/v1.d.ts.map +1 -0
- package/resources/ai/typesafe/v1.js +67 -0
- package/resources/ai/typesafe/v1.js.map +1 -0
- package/resources/ai/typesafe/v1.mjs +63 -0
- package/resources/ai/typesafe/v1.mjs.map +1 -0
- package/resources/ai/typesafe.d.mts +2 -0
- package/resources/ai/typesafe.d.mts.map +1 -0
- package/resources/ai/typesafe.d.ts +2 -0
- package/resources/ai/typesafe.d.ts.map +1 -0
- package/resources/ai/typesafe.js +6 -0
- package/resources/ai/typesafe.js.map +1 -0
- package/resources/ai/typesafe.mjs +3 -0
- package/resources/ai/typesafe.mjs.map +1 -0
- package/resources/bot-challenge.d.mts +80 -0
- package/resources/bot-challenge.d.mts.map +1 -0
- package/resources/bot-challenge.d.ts +80 -0
- package/resources/bot-challenge.d.ts.map +1 -0
- package/resources/bot-challenge.js +35 -0
- package/resources/bot-challenge.js.map +1 -0
- package/resources/bot-challenge.mjs +31 -0
- package/resources/bot-challenge.mjs.map +1 -0
- package/resources/bot-sessions.d.mts +49 -0
- package/resources/bot-sessions.d.mts.map +1 -0
- package/resources/bot-sessions.d.ts +49 -0
- package/resources/bot-sessions.d.ts.map +1 -0
- package/resources/bot-sessions.js +28 -0
- package/resources/bot-sessions.js.map +1 -0
- package/resources/bot-sessions.mjs +24 -0
- package/resources/bot-sessions.mjs.map +1 -0
- package/resources/bot-signup.d.mts +114 -0
- package/resources/bot-signup.d.mts.map +1 -0
- package/resources/bot-signup.d.ts +114 -0
- package/resources/bot-signup.d.ts.map +1 -0
- package/resources/bot-signup.js +63 -0
- package/resources/bot-signup.js.map +1 -0
- package/resources/bot-signup.mjs +59 -0
- package/resources/bot-signup.mjs.map +1 -0
- package/resources/calls/actions.d.mts +57 -11
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +57 -11
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +45 -5
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +45 -5
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/compute/compute.d.mts +2 -2
- package/resources/compute/compute.d.mts.map +1 -1
- package/resources/compute/compute.d.ts +2 -2
- package/resources/compute/compute.d.ts.map +1 -1
- package/resources/compute/compute.js +2 -2
- package/resources/compute/compute.js.map +1 -1
- package/resources/compute/compute.mjs +2 -2
- package/resources/compute/compute.mjs.map +1 -1
- package/resources/compute/funcs/export.d.mts +121 -0
- package/resources/compute/funcs/export.d.mts.map +1 -0
- package/resources/compute/funcs/export.d.ts +121 -0
- package/resources/compute/funcs/export.d.ts.map +1 -0
- package/resources/compute/funcs/export.js +68 -0
- package/resources/compute/funcs/export.js.map +1 -0
- package/resources/compute/funcs/export.mjs +64 -0
- package/resources/compute/funcs/export.mjs.map +1 -0
- package/resources/compute/funcs/funcs.d.mts +214 -0
- package/resources/compute/funcs/funcs.d.mts.map +1 -0
- package/resources/compute/funcs/funcs.d.ts +214 -0
- package/resources/compute/funcs/funcs.d.ts.map +1 -0
- package/resources/compute/funcs/funcs.js +80 -0
- package/resources/compute/funcs/funcs.js.map +1 -0
- package/resources/compute/funcs/funcs.mjs +75 -0
- package/resources/compute/funcs/funcs.mjs.map +1 -0
- package/resources/compute/funcs/index.d.mts +3 -0
- package/resources/compute/funcs/index.d.mts.map +1 -0
- package/resources/compute/funcs/index.d.ts +3 -0
- package/resources/compute/funcs/index.d.ts.map +1 -0
- package/resources/compute/funcs/index.js +9 -0
- package/resources/compute/funcs/index.js.map +1 -0
- package/resources/compute/funcs/index.mjs +4 -0
- package/resources/compute/funcs/index.mjs.map +1 -0
- package/resources/compute/funcs.d.mts +1 -178
- package/resources/compute/funcs.d.mts.map +1 -1
- package/resources/compute/funcs.d.ts +1 -178
- package/resources/compute/funcs.d.ts.map +1 -1
- package/resources/compute/funcs.js +2 -37
- package/resources/compute/funcs.js.map +1 -1
- package/resources/compute/funcs.mjs +1 -35
- package/resources/compute/funcs.mjs.map +1 -1
- package/resources/compute/index.d.mts +1 -1
- package/resources/compute/index.d.mts.map +1 -1
- package/resources/compute/index.d.ts +1 -1
- package/resources/compute/index.d.ts.map +1 -1
- package/resources/compute/index.js +2 -2
- package/resources/compute/index.js.map +1 -1
- package/resources/compute/index.mjs +1 -1
- package/resources/compute/index.mjs.map +1 -1
- package/resources/connections.d.mts +109 -1
- package/resources/connections.d.mts.map +1 -1
- package/resources/connections.d.ts +109 -1
- package/resources/connections.d.ts.map +1 -1
- package/resources/connections.js +8 -0
- package/resources/connections.js.map +1 -1
- package/resources/connections.mjs +8 -0
- package/resources/connections.mjs.map +1 -1
- package/resources/detail-records.d.mts +18 -1
- package/resources/detail-records.d.mts.map +1 -1
- package/resources/detail-records.d.ts +18 -1
- package/resources/detail-records.d.ts.map +1 -1
- package/resources/email-messages/email-messages.d.mts +5 -3
- package/resources/email-messages/email-messages.d.mts.map +1 -1
- package/resources/email-messages/email-messages.d.ts +5 -3
- package/resources/email-messages/email-messages.d.ts.map +1 -1
- package/resources/email-messages/email-messages.js +5 -3
- package/resources/email-messages/email-messages.js.map +1 -1
- package/resources/email-messages/email-messages.mjs +5 -3
- package/resources/email-messages/email-messages.mjs.map +1 -1
- package/resources/index.d.mts +7 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +14 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +5 -0
- package/resources/index.mjs.map +1 -1
- package/resources/machine-payments.d.mts +142 -0
- package/resources/machine-payments.d.mts.map +1 -0
- package/resources/machine-payments.d.ts +142 -0
- package/resources/machine-payments.d.ts.map +1 -0
- package/resources/machine-payments.js +56 -0
- package/resources/machine-payments.js.map +1 -0
- package/resources/machine-payments.mjs +52 -0
- package/resources/machine-payments.mjs.map +1 -0
- package/resources/messages/messages.d.mts +135 -23
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +135 -23
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/noise-suppression-engines.d.mts +42 -0
- package/resources/noise-suppression-engines.d.mts.map +1 -0
- package/resources/noise-suppression-engines.d.ts +42 -0
- package/resources/noise-suppression-engines.d.ts.map +1 -0
- package/resources/noise-suppression-engines.js +21 -0
- package/resources/noise-suppression-engines.js.map +1 -0
- package/resources/noise-suppression-engines.mjs +17 -0
- package/resources/noise-suppression-engines.mjs.map +1 -0
- package/resources/speech-to-text/speech-to-text.d.mts +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.mts +117 -0
- package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.ts +117 -0
- package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.js.map +1 -1
- package/resources/texml/accounts/calls/calls.mjs.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.mts +39 -0
- package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.ts +39 -0
- package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
- package/resources/texml/calls.d.mts +71 -0
- package/resources/texml/calls.d.mts.map +1 -0
- package/resources/texml/calls.d.ts +71 -0
- package/resources/texml/calls.d.ts.map +1 -0
- package/resources/texml/calls.js +33 -0
- package/resources/texml/calls.js.map +1 -0
- package/resources/texml/calls.mjs +29 -0
- package/resources/texml/calls.mjs.map +1 -0
- package/resources/texml/index.d.mts +1 -0
- package/resources/texml/index.d.mts.map +1 -1
- package/resources/texml/index.d.ts +1 -0
- package/resources/texml/index.d.ts.map +1 -1
- package/resources/texml/index.js +3 -1
- package/resources/texml/index.js.map +1 -1
- package/resources/texml/index.mjs +1 -0
- package/resources/texml/index.mjs.map +1 -1
- package/resources/texml/texml.d.mts +43 -0
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +43 -0
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js +4 -0
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs +4 -0
- package/resources/texml/texml.mjs.map +1 -1
- package/resources/voice-clones.d.mts +6 -4
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +6 -4
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/voice-clones.js +4 -2
- package/resources/voice-clones.js.map +1 -1
- package/resources/voice-clones.mjs +4 -2
- package/resources/voice-clones.mjs.map +1 -1
- package/resources/webhooks.d.mts +26 -49
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +26 -49
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +80 -0
- package/src/resources/ai/ai.ts +13 -1
- package/src/resources/ai/assistants/assistants.ts +281 -45
- package/src/resources/ai/assistants/versions.ts +34 -12
- package/src/resources/ai/audio.ts +93 -45
- package/src/resources/ai/chat.ts +2 -11
- package/src/resources/ai/index.ts +7 -1
- package/src/resources/ai/openai/chat.ts +11 -11
- package/src/resources/ai/openai/index.ts +6 -1
- package/src/resources/ai/openai/openai.ts +2 -1
- package/src/resources/ai/typesafe/index.ts +4 -0
- package/src/resources/ai/typesafe/typesafe.ts +19 -0
- package/src/resources/ai/typesafe/v1.ts +298 -0
- package/src/resources/ai/typesafe.ts +3 -0
- package/src/resources/bot-challenge.ts +101 -0
- package/src/resources/bot-sessions.ts +61 -0
- package/src/resources/bot-signup.ts +140 -0
- package/src/resources/calls/actions.ts +65 -10
- package/src/resources/calls/calls.ts +52 -5
- package/src/resources/compute/compute.ts +2 -2
- package/src/resources/compute/funcs/export.ts +156 -0
- package/src/resources/compute/funcs/funcs.ts +341 -0
- package/src/resources/compute/funcs/index.ts +15 -0
- package/src/resources/compute/funcs.ts +1 -296
- package/src/resources/compute/index.ts +1 -1
- package/src/resources/connections.ts +133 -0
- package/src/resources/detail-records.ts +18 -1
- package/src/resources/email-messages/email-messages.ts +5 -3
- package/src/resources/index.ts +23 -0
- package/src/resources/machine-payments.ts +169 -0
- package/src/resources/messages/messages.ts +168 -23
- package/src/resources/noise-suppression-engines.ts +51 -0
- package/src/resources/speech-to-text/speech-to-text.ts +1 -0
- package/src/resources/texml/accounts/calls/calls.ts +138 -0
- package/src/resources/texml/accounts/conferences/participants.ts +46 -0
- package/src/resources/texml/calls.ts +90 -0
- package/src/resources/texml/index.ts +1 -0
- package/src/resources/texml/texml.ts +56 -0
- package/src/resources/voice-clones.ts +6 -4
- package/src/resources/webhooks.ts +31 -58
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as FuncsAPI from "./funcs.mjs";
|
|
3
|
+
import * as ExportAPI from "./export.mjs";
|
|
4
|
+
import { Export, ExportCreateParams, FuncLogExportConfigResponse } from "./export.mjs";
|
|
5
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
7
|
+
export declare class Funcs extends APIResource {
|
|
8
|
+
export: ExportAPI.Export;
|
|
9
|
+
/**
|
|
10
|
+
* Returns logs oldest first. `type=runtime` (default) returns function
|
|
11
|
+
* stdout/stderr. `type=invocations` returns one platform-generated record per HTTP
|
|
12
|
+
* request served.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response = await client.compute.funcs.retrieveLogs(
|
|
17
|
+
* 'id',
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
retrieveLogs(id: string, query?: FuncRetrieveLogsParams | null | undefined, options?: RequestOptions): APIPromise<FuncRetrieveLogsResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns aggregate request, latency, CPU, memory, and resource-limit metrics for
|
|
24
|
+
* a function over the requested window.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const response =
|
|
29
|
+
* await client.compute.funcs.retrieveMetricAggregates(
|
|
30
|
+
* 'id',
|
|
31
|
+
* {
|
|
32
|
+
* end_time: '2019-12-27T18:11:19.117Z',
|
|
33
|
+
* start_time: '2019-12-27T18:11:19.117Z',
|
|
34
|
+
* },
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
retrieveMetricAggregates(id: string, query: FuncRetrieveMetricAggregatesParams, options?: RequestOptions): APIPromise<FuncRetrieveMetricAggregatesResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Lists a function's ship history newest first, including per-ship failure stage
|
|
41
|
+
* and reason when recorded.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const response =
|
|
46
|
+
* await client.compute.funcs.retrieveRevisions('id');
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
retrieveRevisions(id: string, query?: FuncRetrieveRevisionsParams | null | undefined, options?: RequestOptions): APIPromise<FuncRetrieveRevisionsResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the latest ship outcome. The stage is `none` on success, `pending` while
|
|
52
|
+
* building, or a failure stage such as `build`, `platform`, `pre_build`, `deploy`,
|
|
53
|
+
* or `security_review`. This stage-neutral customer-facing path is an alias over
|
|
54
|
+
* the same inspection resource as `build_log_inspection`.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const response =
|
|
59
|
+
* await client.compute.funcs.retrieveShipInspection('id');
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
retrieveShipInspection(id: string, options?: RequestOptions): APIPromise<FuncRetrieveShipInspectionResponse>;
|
|
63
|
+
}
|
|
64
|
+
export interface FunctionsObservabilityPaginationMeta {
|
|
65
|
+
page_number?: number;
|
|
66
|
+
page_size?: number;
|
|
67
|
+
total_pages?: number;
|
|
68
|
+
total_results?: number;
|
|
69
|
+
}
|
|
70
|
+
export interface LogsMeta {
|
|
71
|
+
has_more?: boolean;
|
|
72
|
+
partial?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export type FuncRetrieveLogsResponse = FuncRetrieveLogsResponse.FuncRuntimeLogsResponse | FuncRetrieveLogsResponse.FuncInvocationLogsResponse;
|
|
75
|
+
export declare namespace FuncRetrieveLogsResponse {
|
|
76
|
+
interface FuncRuntimeLogsResponse {
|
|
77
|
+
data?: Array<FuncRuntimeLogsResponse.Data>;
|
|
78
|
+
meta?: FuncsAPI.LogsMeta;
|
|
79
|
+
}
|
|
80
|
+
namespace FuncRuntimeLogsResponse {
|
|
81
|
+
interface Data {
|
|
82
|
+
level?: string;
|
|
83
|
+
message?: string;
|
|
84
|
+
record_type?: 'compute_func_runtime_log';
|
|
85
|
+
timestamp?: string;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
interface FuncInvocationLogsResponse {
|
|
89
|
+
data?: Array<FuncInvocationLogsResponse.Data>;
|
|
90
|
+
meta?: FuncsAPI.LogsMeta;
|
|
91
|
+
}
|
|
92
|
+
namespace FuncInvocationLogsResponse {
|
|
93
|
+
interface Data {
|
|
94
|
+
duration_ms?: number;
|
|
95
|
+
method?: string;
|
|
96
|
+
path?: string;
|
|
97
|
+
record_type?: 'compute_func_invocation_log';
|
|
98
|
+
region?: string;
|
|
99
|
+
request_size_bytes?: number;
|
|
100
|
+
response_size_bytes?: number;
|
|
101
|
+
status_code?: number;
|
|
102
|
+
timestamp?: string;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export interface FuncRetrieveMetricAggregatesResponse {
|
|
107
|
+
data?: Array<FuncRetrieveMetricAggregatesResponse.Data>;
|
|
108
|
+
meta?: FunctionsObservabilityPaginationMeta;
|
|
109
|
+
}
|
|
110
|
+
export declare namespace FuncRetrieveMetricAggregatesResponse {
|
|
111
|
+
interface Data {
|
|
112
|
+
cpu_used_cores_avg?: number | null;
|
|
113
|
+
cpu_used_cores_max?: number | null;
|
|
114
|
+
end_time?: string;
|
|
115
|
+
function_id?: string;
|
|
116
|
+
function_name?: string;
|
|
117
|
+
memory_used_bytes_avg?: number | null;
|
|
118
|
+
memory_used_bytes_max?: number | null;
|
|
119
|
+
product?: string;
|
|
120
|
+
record_type?: string;
|
|
121
|
+
request_client_error_rate?: number | null;
|
|
122
|
+
request_count?: number | null;
|
|
123
|
+
request_error_rate?: number | null;
|
|
124
|
+
request_latency_avg_ms?: number | null;
|
|
125
|
+
request_latency_p50_ms?: number | null;
|
|
126
|
+
request_latency_p95_ms?: number | null;
|
|
127
|
+
request_latency_p99_ms?: number | null;
|
|
128
|
+
request_success_rate?: number | null;
|
|
129
|
+
start_time?: string;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
export interface FuncRetrieveRevisionsResponse {
|
|
133
|
+
data?: Array<FuncRetrieveRevisionsResponse.Data>;
|
|
134
|
+
meta?: FunctionsObservabilityPaginationMeta;
|
|
135
|
+
}
|
|
136
|
+
export declare namespace FuncRetrieveRevisionsResponse {
|
|
137
|
+
interface Data {
|
|
138
|
+
active?: boolean;
|
|
139
|
+
build_ok_at?: string;
|
|
140
|
+
build_status?: string;
|
|
141
|
+
commit_sha?: string;
|
|
142
|
+
deploy_status?: string;
|
|
143
|
+
failure_reason?: string;
|
|
144
|
+
failure_stage?: string;
|
|
145
|
+
image?: string;
|
|
146
|
+
record_type?: string;
|
|
147
|
+
revision_id?: string;
|
|
148
|
+
shipped_at?: string;
|
|
149
|
+
shipped_by?: string;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
export interface FuncRetrieveShipInspectionResponse {
|
|
153
|
+
data?: FuncRetrieveShipInspectionResponse.Data;
|
|
154
|
+
}
|
|
155
|
+
export declare namespace FuncRetrieveShipInspectionResponse {
|
|
156
|
+
interface Data {
|
|
157
|
+
created_at?: string;
|
|
158
|
+
reason?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Stable record type retained by both inspection path aliases.
|
|
161
|
+
*/
|
|
162
|
+
record_type?: 'build_log_inspection';
|
|
163
|
+
runtime?: string;
|
|
164
|
+
snippet?: string;
|
|
165
|
+
stage?: 'build' | 'platform' | 'pre_build' | 'deploy' | 'security_review' | 'none' | 'pending';
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
export interface FuncRetrieveLogsParams {
|
|
169
|
+
/**
|
|
170
|
+
* Return records at or before this RFC 3339 timestamp.
|
|
171
|
+
*/
|
|
172
|
+
end_time?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Maximum records to return.
|
|
175
|
+
*/
|
|
176
|
+
limit?: number;
|
|
177
|
+
/**
|
|
178
|
+
* Return records at or after this RFC 3339 timestamp.
|
|
179
|
+
*/
|
|
180
|
+
start_time?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Log stream to return.
|
|
183
|
+
*/
|
|
184
|
+
type?: 'runtime' | 'invocations';
|
|
185
|
+
}
|
|
186
|
+
export interface FuncRetrieveMetricAggregatesParams {
|
|
187
|
+
/**
|
|
188
|
+
* Exclusive window end, UTC ISO 8601 with milliseconds
|
|
189
|
+
*/
|
|
190
|
+
end_time: string;
|
|
191
|
+
/**
|
|
192
|
+
* Inclusive window start, UTC ISO 8601 with milliseconds
|
|
193
|
+
*/
|
|
194
|
+
start_time: string;
|
|
195
|
+
/**
|
|
196
|
+
* Edge site filter
|
|
197
|
+
*/
|
|
198
|
+
'filter[edge_site]'?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Kubernetes namespace filter
|
|
201
|
+
*/
|
|
202
|
+
'filter[namespace]'?: string;
|
|
203
|
+
'page[number]'?: number;
|
|
204
|
+
'page[size]'?: number;
|
|
205
|
+
}
|
|
206
|
+
export interface FuncRetrieveRevisionsParams {
|
|
207
|
+
'page[number]'?: number;
|
|
208
|
+
'page[size]'?: number;
|
|
209
|
+
}
|
|
210
|
+
export declare namespace Funcs {
|
|
211
|
+
export { type FunctionsObservabilityPaginationMeta as FunctionsObservabilityPaginationMeta, type LogsMeta as LogsMeta, type FuncRetrieveLogsResponse as FuncRetrieveLogsResponse, type FuncRetrieveMetricAggregatesResponse as FuncRetrieveMetricAggregatesResponse, type FuncRetrieveRevisionsResponse as FuncRetrieveRevisionsResponse, type FuncRetrieveShipInspectionResponse as FuncRetrieveShipInspectionResponse, type FuncRetrieveLogsParams as FuncRetrieveLogsParams, type FuncRetrieveMetricAggregatesParams as FuncRetrieveMetricAggregatesParams, type FuncRetrieveRevisionsParams as FuncRetrieveRevisionsParams, };
|
|
212
|
+
export { Export as Export, type FuncLogExportConfigResponse as FuncLogExportConfigResponse, type ExportCreateParams as ExportCreateParams, };
|
|
213
|
+
}
|
|
214
|
+
//# sourceMappingURL=funcs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"funcs.d.mts","sourceRoot":"","sources":["../../../src/resources/compute/funcs/funcs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,qBAAiB;AACnF,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,KAAM,SAAQ,WAAW;IACpC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;;OAWG;IACH,YAAY,CACV,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,sBA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kC,IAAI,kCAAkC,EAC7E,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as FuncsAPI from "./funcs.js";
|
|
3
|
+
import * as ExportAPI from "./export.js";
|
|
4
|
+
import { Export, ExportCreateParams, FuncLogExportConfigResponse } from "./export.js";
|
|
5
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
7
|
+
export declare class Funcs extends APIResource {
|
|
8
|
+
export: ExportAPI.Export;
|
|
9
|
+
/**
|
|
10
|
+
* Returns logs oldest first. `type=runtime` (default) returns function
|
|
11
|
+
* stdout/stderr. `type=invocations` returns one platform-generated record per HTTP
|
|
12
|
+
* request served.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const response = await client.compute.funcs.retrieveLogs(
|
|
17
|
+
* 'id',
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
retrieveLogs(id: string, query?: FuncRetrieveLogsParams | null | undefined, options?: RequestOptions): APIPromise<FuncRetrieveLogsResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns aggregate request, latency, CPU, memory, and resource-limit metrics for
|
|
24
|
+
* a function over the requested window.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const response =
|
|
29
|
+
* await client.compute.funcs.retrieveMetricAggregates(
|
|
30
|
+
* 'id',
|
|
31
|
+
* {
|
|
32
|
+
* end_time: '2019-12-27T18:11:19.117Z',
|
|
33
|
+
* start_time: '2019-12-27T18:11:19.117Z',
|
|
34
|
+
* },
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
retrieveMetricAggregates(id: string, query: FuncRetrieveMetricAggregatesParams, options?: RequestOptions): APIPromise<FuncRetrieveMetricAggregatesResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* Lists a function's ship history newest first, including per-ship failure stage
|
|
41
|
+
* and reason when recorded.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const response =
|
|
46
|
+
* await client.compute.funcs.retrieveRevisions('id');
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
retrieveRevisions(id: string, query?: FuncRetrieveRevisionsParams | null | undefined, options?: RequestOptions): APIPromise<FuncRetrieveRevisionsResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Returns the latest ship outcome. The stage is `none` on success, `pending` while
|
|
52
|
+
* building, or a failure stage such as `build`, `platform`, `pre_build`, `deploy`,
|
|
53
|
+
* or `security_review`. This stage-neutral customer-facing path is an alias over
|
|
54
|
+
* the same inspection resource as `build_log_inspection`.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const response =
|
|
59
|
+
* await client.compute.funcs.retrieveShipInspection('id');
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
retrieveShipInspection(id: string, options?: RequestOptions): APIPromise<FuncRetrieveShipInspectionResponse>;
|
|
63
|
+
}
|
|
64
|
+
export interface FunctionsObservabilityPaginationMeta {
|
|
65
|
+
page_number?: number;
|
|
66
|
+
page_size?: number;
|
|
67
|
+
total_pages?: number;
|
|
68
|
+
total_results?: number;
|
|
69
|
+
}
|
|
70
|
+
export interface LogsMeta {
|
|
71
|
+
has_more?: boolean;
|
|
72
|
+
partial?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export type FuncRetrieveLogsResponse = FuncRetrieveLogsResponse.FuncRuntimeLogsResponse | FuncRetrieveLogsResponse.FuncInvocationLogsResponse;
|
|
75
|
+
export declare namespace FuncRetrieveLogsResponse {
|
|
76
|
+
interface FuncRuntimeLogsResponse {
|
|
77
|
+
data?: Array<FuncRuntimeLogsResponse.Data>;
|
|
78
|
+
meta?: FuncsAPI.LogsMeta;
|
|
79
|
+
}
|
|
80
|
+
namespace FuncRuntimeLogsResponse {
|
|
81
|
+
interface Data {
|
|
82
|
+
level?: string;
|
|
83
|
+
message?: string;
|
|
84
|
+
record_type?: 'compute_func_runtime_log';
|
|
85
|
+
timestamp?: string;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
interface FuncInvocationLogsResponse {
|
|
89
|
+
data?: Array<FuncInvocationLogsResponse.Data>;
|
|
90
|
+
meta?: FuncsAPI.LogsMeta;
|
|
91
|
+
}
|
|
92
|
+
namespace FuncInvocationLogsResponse {
|
|
93
|
+
interface Data {
|
|
94
|
+
duration_ms?: number;
|
|
95
|
+
method?: string;
|
|
96
|
+
path?: string;
|
|
97
|
+
record_type?: 'compute_func_invocation_log';
|
|
98
|
+
region?: string;
|
|
99
|
+
request_size_bytes?: number;
|
|
100
|
+
response_size_bytes?: number;
|
|
101
|
+
status_code?: number;
|
|
102
|
+
timestamp?: string;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export interface FuncRetrieveMetricAggregatesResponse {
|
|
107
|
+
data?: Array<FuncRetrieveMetricAggregatesResponse.Data>;
|
|
108
|
+
meta?: FunctionsObservabilityPaginationMeta;
|
|
109
|
+
}
|
|
110
|
+
export declare namespace FuncRetrieveMetricAggregatesResponse {
|
|
111
|
+
interface Data {
|
|
112
|
+
cpu_used_cores_avg?: number | null;
|
|
113
|
+
cpu_used_cores_max?: number | null;
|
|
114
|
+
end_time?: string;
|
|
115
|
+
function_id?: string;
|
|
116
|
+
function_name?: string;
|
|
117
|
+
memory_used_bytes_avg?: number | null;
|
|
118
|
+
memory_used_bytes_max?: number | null;
|
|
119
|
+
product?: string;
|
|
120
|
+
record_type?: string;
|
|
121
|
+
request_client_error_rate?: number | null;
|
|
122
|
+
request_count?: number | null;
|
|
123
|
+
request_error_rate?: number | null;
|
|
124
|
+
request_latency_avg_ms?: number | null;
|
|
125
|
+
request_latency_p50_ms?: number | null;
|
|
126
|
+
request_latency_p95_ms?: number | null;
|
|
127
|
+
request_latency_p99_ms?: number | null;
|
|
128
|
+
request_success_rate?: number | null;
|
|
129
|
+
start_time?: string;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
export interface FuncRetrieveRevisionsResponse {
|
|
133
|
+
data?: Array<FuncRetrieveRevisionsResponse.Data>;
|
|
134
|
+
meta?: FunctionsObservabilityPaginationMeta;
|
|
135
|
+
}
|
|
136
|
+
export declare namespace FuncRetrieveRevisionsResponse {
|
|
137
|
+
interface Data {
|
|
138
|
+
active?: boolean;
|
|
139
|
+
build_ok_at?: string;
|
|
140
|
+
build_status?: string;
|
|
141
|
+
commit_sha?: string;
|
|
142
|
+
deploy_status?: string;
|
|
143
|
+
failure_reason?: string;
|
|
144
|
+
failure_stage?: string;
|
|
145
|
+
image?: string;
|
|
146
|
+
record_type?: string;
|
|
147
|
+
revision_id?: string;
|
|
148
|
+
shipped_at?: string;
|
|
149
|
+
shipped_by?: string;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
export interface FuncRetrieveShipInspectionResponse {
|
|
153
|
+
data?: FuncRetrieveShipInspectionResponse.Data;
|
|
154
|
+
}
|
|
155
|
+
export declare namespace FuncRetrieveShipInspectionResponse {
|
|
156
|
+
interface Data {
|
|
157
|
+
created_at?: string;
|
|
158
|
+
reason?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Stable record type retained by both inspection path aliases.
|
|
161
|
+
*/
|
|
162
|
+
record_type?: 'build_log_inspection';
|
|
163
|
+
runtime?: string;
|
|
164
|
+
snippet?: string;
|
|
165
|
+
stage?: 'build' | 'platform' | 'pre_build' | 'deploy' | 'security_review' | 'none' | 'pending';
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
export interface FuncRetrieveLogsParams {
|
|
169
|
+
/**
|
|
170
|
+
* Return records at or before this RFC 3339 timestamp.
|
|
171
|
+
*/
|
|
172
|
+
end_time?: string;
|
|
173
|
+
/**
|
|
174
|
+
* Maximum records to return.
|
|
175
|
+
*/
|
|
176
|
+
limit?: number;
|
|
177
|
+
/**
|
|
178
|
+
* Return records at or after this RFC 3339 timestamp.
|
|
179
|
+
*/
|
|
180
|
+
start_time?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Log stream to return.
|
|
183
|
+
*/
|
|
184
|
+
type?: 'runtime' | 'invocations';
|
|
185
|
+
}
|
|
186
|
+
export interface FuncRetrieveMetricAggregatesParams {
|
|
187
|
+
/**
|
|
188
|
+
* Exclusive window end, UTC ISO 8601 with milliseconds
|
|
189
|
+
*/
|
|
190
|
+
end_time: string;
|
|
191
|
+
/**
|
|
192
|
+
* Inclusive window start, UTC ISO 8601 with milliseconds
|
|
193
|
+
*/
|
|
194
|
+
start_time: string;
|
|
195
|
+
/**
|
|
196
|
+
* Edge site filter
|
|
197
|
+
*/
|
|
198
|
+
'filter[edge_site]'?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Kubernetes namespace filter
|
|
201
|
+
*/
|
|
202
|
+
'filter[namespace]'?: string;
|
|
203
|
+
'page[number]'?: number;
|
|
204
|
+
'page[size]'?: number;
|
|
205
|
+
}
|
|
206
|
+
export interface FuncRetrieveRevisionsParams {
|
|
207
|
+
'page[number]'?: number;
|
|
208
|
+
'page[size]'?: number;
|
|
209
|
+
}
|
|
210
|
+
export declare namespace Funcs {
|
|
211
|
+
export { type FunctionsObservabilityPaginationMeta as FunctionsObservabilityPaginationMeta, type LogsMeta as LogsMeta, type FuncRetrieveLogsResponse as FuncRetrieveLogsResponse, type FuncRetrieveMetricAggregatesResponse as FuncRetrieveMetricAggregatesResponse, type FuncRetrieveRevisionsResponse as FuncRetrieveRevisionsResponse, type FuncRetrieveShipInspectionResponse as FuncRetrieveShipInspectionResponse, type FuncRetrieveLogsParams as FuncRetrieveLogsParams, type FuncRetrieveMetricAggregatesParams as FuncRetrieveMetricAggregatesParams, type FuncRetrieveRevisionsParams as FuncRetrieveRevisionsParams, };
|
|
212
|
+
export { Export as Export, type FuncLogExportConfigResponse as FuncLogExportConfigResponse, type ExportCreateParams as ExportCreateParams, };
|
|
213
|
+
}
|
|
214
|
+
//# sourceMappingURL=funcs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"funcs.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/funcs/funcs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,2BAA2B,EAAE,oBAAiB;AACnF,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,KAAM,SAAQ,WAAW;IACpC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;;OAWG;IACH,YAAY,CACV,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;;;;;;;;;;;;;OAeG;IACH,wBAAwB,CACtB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,kCAAkC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oCAAoC,CAAC;IAInD;;;;;;;;;OASG;IACH,iBAAiB,CACf,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;;;;;;OAWG;IACH,sBAAsB,CACpB,EAAE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;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CAClC;AAED,MAAM,WAAW,kCAAkC;IACjD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.Funcs = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const ExportAPI = tslib_1.__importStar(require("./export.js"));
|
|
8
|
+
const export_1 = require("./export.js");
|
|
9
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
10
|
+
class Funcs extends resource_1.APIResource {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.export = new ExportAPI.Export(this._client);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns logs oldest first. `type=runtime` (default) returns function
|
|
17
|
+
* stdout/stderr. `type=invocations` returns one platform-generated record per HTTP
|
|
18
|
+
* request served.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const response = await client.compute.funcs.retrieveLogs(
|
|
23
|
+
* 'id',
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
retrieveLogs(id, query = {}, options) {
|
|
28
|
+
return this._client.get((0, path_1.path) `/compute/funcs/${id}/logs`, { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns aggregate request, latency, CPU, memory, and resource-limit metrics for
|
|
32
|
+
* a function over the requested window.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const response =
|
|
37
|
+
* await client.compute.funcs.retrieveMetricAggregates(
|
|
38
|
+
* 'id',
|
|
39
|
+
* {
|
|
40
|
+
* end_time: '2019-12-27T18:11:19.117Z',
|
|
41
|
+
* start_time: '2019-12-27T18:11:19.117Z',
|
|
42
|
+
* },
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
retrieveMetricAggregates(id, query, options) {
|
|
47
|
+
return this._client.get((0, path_1.path) `/compute/funcs/${id}/metric_aggregates`, { query, ...options });
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Lists a function's ship history newest first, including per-ship failure stage
|
|
51
|
+
* and reason when recorded.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const response =
|
|
56
|
+
* await client.compute.funcs.retrieveRevisions('id');
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
retrieveRevisions(id, query = {}, options) {
|
|
60
|
+
return this._client.get((0, path_1.path) `/compute/funcs/${id}/revisions`, { query, ...options });
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Returns the latest ship outcome. The stage is `none` on success, `pending` while
|
|
64
|
+
* building, or a failure stage such as `build`, `platform`, `pre_build`, `deploy`,
|
|
65
|
+
* or `security_review`. This stage-neutral customer-facing path is an alias over
|
|
66
|
+
* the same inspection resource as `build_log_inspection`.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const response =
|
|
71
|
+
* await client.compute.funcs.retrieveShipInspection('id');
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
retrieveShipInspection(id, options) {
|
|
75
|
+
return this._client.get((0, path_1.path) `/compute/funcs/${id}/ship_inspection`, options);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.Funcs = Funcs;
|
|
79
|
+
Funcs.Export = export_1.Export;
|
|
80
|
+
//# sourceMappingURL=funcs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"funcs.js","sourceRoot":"","sources":["../../../src/resources/compute/funcs/funcs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,+DAAsC;AACtC,wCAAmF;AAGnF,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkFhE,CAAC;IAhFC;;;;;;;;;;;OAWG;IACH,YAAY,CACV,EAAU,EACV,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,wBAAwB,CACtB,EAAU,EACV,KAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;;OASG;IACH,iBAAiB,CACf,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,sBAAsB,CACpB,EAAU,EACV,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAnFD,sBAmFC;AAmOD,KAAK,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as ExportAPI from "./export.mjs";
|
|
4
|
+
import { Export } from "./export.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
export class Funcs extends APIResource {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
this.export = new ExportAPI.Export(this._client);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Returns logs oldest first. `type=runtime` (default) returns function
|
|
13
|
+
* stdout/stderr. `type=invocations` returns one platform-generated record per HTTP
|
|
14
|
+
* request served.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const response = await client.compute.funcs.retrieveLogs(
|
|
19
|
+
* 'id',
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
retrieveLogs(id, query = {}, options) {
|
|
24
|
+
return this._client.get(path `/compute/funcs/${id}/logs`, { query, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Returns aggregate request, latency, CPU, memory, and resource-limit metrics for
|
|
28
|
+
* a function over the requested window.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const response =
|
|
33
|
+
* await client.compute.funcs.retrieveMetricAggregates(
|
|
34
|
+
* 'id',
|
|
35
|
+
* {
|
|
36
|
+
* end_time: '2019-12-27T18:11:19.117Z',
|
|
37
|
+
* start_time: '2019-12-27T18:11:19.117Z',
|
|
38
|
+
* },
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
retrieveMetricAggregates(id, query, options) {
|
|
43
|
+
return this._client.get(path `/compute/funcs/${id}/metric_aggregates`, { query, ...options });
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Lists a function's ship history newest first, including per-ship failure stage
|
|
47
|
+
* and reason when recorded.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const response =
|
|
52
|
+
* await client.compute.funcs.retrieveRevisions('id');
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
retrieveRevisions(id, query = {}, options) {
|
|
56
|
+
return this._client.get(path `/compute/funcs/${id}/revisions`, { query, ...options });
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Returns the latest ship outcome. The stage is `none` on success, `pending` while
|
|
60
|
+
* building, or a failure stage such as `build`, `platform`, `pre_build`, `deploy`,
|
|
61
|
+
* or `security_review`. This stage-neutral customer-facing path is an alias over
|
|
62
|
+
* the same inspection resource as `build_log_inspection`.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const response =
|
|
67
|
+
* await client.compute.funcs.retrieveShipInspection('id');
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
retrieveShipInspection(id, options) {
|
|
71
|
+
return this._client.get(path `/compute/funcs/${id}/ship_inspection`, options);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
Funcs.Export = Export;
|
|
75
|
+
//# sourceMappingURL=funcs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"funcs.mjs","sourceRoot":"","sources":["../../../src/resources/compute/funcs/funcs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,MAAM,EAAmD,qBAAiB;AAGnF,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkFhE,CAAC;IAhFC;;;;;;;;;;;OAWG;IACH,YAAY,CACV,EAAU,EACV,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,wBAAwB,CACtB,EAAU,EACV,KAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;;;;;;;OASG;IACH,iBAAiB,CACf,EAAU,EACV,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,sBAAsB,CACpB,EAAU,EACV,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAmOD,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Export, type FuncLogExportConfigResponse, type ExportCreateParams } from "./export.mjs";
|
|
2
|
+
export { Funcs, type FunctionsObservabilityPaginationMeta, type LogsMeta, type FuncRetrieveLogsResponse, type FuncRetrieveMetricAggregatesResponse, type FuncRetrieveRevisionsResponse, type FuncRetrieveShipInspectionResponse, type FuncRetrieveLogsParams, type FuncRetrieveMetricAggregatesParams, type FuncRetrieveRevisionsParams, } from "./funcs.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/compute/funcs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,2BAA2B,EAAE,KAAK,kBAAkB,EAAE,qBAAiB;AAC7F,OAAO,EACL,KAAK,EACL,KAAK,oCAAoC,EACzC,KAAK,QAAQ,EACb,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,EACzC,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,sBAAsB,EAC3B,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,GACjC,oBAAgB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Export, type FuncLogExportConfigResponse, type ExportCreateParams } from "./export.js";
|
|
2
|
+
export { Funcs, type FunctionsObservabilityPaginationMeta, type LogsMeta, type FuncRetrieveLogsResponse, type FuncRetrieveMetricAggregatesResponse, type FuncRetrieveRevisionsResponse, type FuncRetrieveShipInspectionResponse, type FuncRetrieveLogsParams, type FuncRetrieveMetricAggregatesParams, type FuncRetrieveRevisionsParams, } from "./funcs.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/compute/funcs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,2BAA2B,EAAE,KAAK,kBAAkB,EAAE,oBAAiB;AAC7F,OAAO,EACL,KAAK,EACL,KAAK,oCAAoC,EACzC,KAAK,QAAQ,EACb,KAAK,wBAAwB,EAC7B,KAAK,oCAAoC,EACzC,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,sBAAsB,EAC3B,KAAK,kCAAkC,EACvC,KAAK,2BAA2B,GACjC,mBAAgB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Funcs = exports.Export = void 0;
|
|
5
|
+
var export_1 = require("./export.js");
|
|
6
|
+
Object.defineProperty(exports, "Export", { enumerable: true, get: function () { return export_1.Export; } });
|
|
7
|
+
var funcs_1 = require("./funcs.js");
|
|
8
|
+
Object.defineProperty(exports, "Funcs", { enumerable: true, get: function () { return funcs_1.Funcs; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/compute/funcs/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAA6F;AAApF,gGAAA,MAAM,OAAA;AACf,oCAWiB;AAVf,8FAAA,KAAK,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/compute/funcs/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,MAAM,EAA6D,qBAAiB;AAC7F,OAAO,EACL,KAAK,GAUN,oBAAgB"}
|