telnyx 7.20.0 → 7.22.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 +14 -0
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +2 -2
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +2 -2
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/anthropic/v1.d.mts +16 -0
- package/resources/ai/anthropic/v1.d.mts.map +1 -1
- package/resources/ai/anthropic/v1.d.ts +16 -0
- package/resources/ai/anthropic/v1.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +152 -1
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +152 -1
- 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/index.d.mts +1 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +1 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +25 -0
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +25 -0
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/chat.d.mts +77 -22
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +77 -22
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/index.d.mts +1 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +1 -1
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/openai/chat.d.mts +77 -22
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +77 -22
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/openai/openai.d.mts +16 -0
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +16 -0
- 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/compute/compute.d.mts +10 -0
- package/resources/compute/compute.d.mts.map +1 -0
- package/resources/compute/compute.d.ts +10 -0
- package/resources/compute/compute.d.ts.map +1 -0
- package/resources/compute/compute.js +17 -0
- package/resources/compute/compute.js.map +1 -0
- package/resources/compute/compute.mjs +12 -0
- package/resources/compute/compute.mjs.map +1 -0
- package/resources/compute/funcs.d.mts +179 -0
- package/resources/compute/funcs.d.mts.map +1 -0
- package/resources/compute/funcs.d.ts +179 -0
- package/resources/compute/funcs.d.ts.map +1 -0
- package/resources/compute/funcs.js +41 -0
- package/resources/compute/funcs.js.map +1 -0
- package/resources/compute/funcs.mjs +37 -0
- package/resources/compute/funcs.mjs.map +1 -0
- package/resources/compute/index.d.mts +3 -0
- package/resources/compute/index.d.mts.map +1 -0
- package/resources/compute/index.d.ts +3 -0
- package/resources/compute/index.d.ts.map +1 -0
- package/resources/compute/index.js +9 -0
- package/resources/compute/index.js.map +1 -0
- package/resources/compute/index.mjs +4 -0
- package/resources/compute/index.mjs.map +1 -0
- package/resources/compute.d.mts +2 -0
- package/resources/compute.d.mts.map +1 -0
- package/resources/compute.d.ts +2 -0
- package/resources/compute.d.ts.map +1 -0
- package/resources/compute.js +6 -0
- package/resources/compute.js.map +1 -0
- package/resources/compute.mjs +3 -0
- package/resources/compute.mjs.map +1 -0
- package/resources/credential-connections/credential-connections.d.mts +4 -1
- package/resources/credential-connections/credential-connections.d.mts.map +1 -1
- package/resources/credential-connections/credential-connections.d.ts +4 -1
- package/resources/credential-connections/credential-connections.d.ts.map +1 -1
- package/resources/credential-connections/credential-connections.js.map +1 -1
- package/resources/credential-connections/credential-connections.mjs.map +1 -1
- package/resources/email-inboxes/drafts.d.mts +7 -0
- package/resources/email-inboxes/drafts.d.mts.map +1 -1
- package/resources/email-inboxes/drafts.d.ts +7 -0
- package/resources/email-inboxes/drafts.d.ts.map +1 -1
- package/resources/email-messages/email-messages.d.mts +7 -3
- package/resources/email-messages/email-messages.d.mts.map +1 -1
- package/resources/email-messages/email-messages.d.ts +7 -3
- package/resources/email-messages/email-messages.d.ts.map +1 -1
- package/resources/email-messages/email-messages.js +3 -1
- package/resources/email-messages/email-messages.js.map +1 -1
- package/resources/email-messages/email-messages.mjs +3 -1
- package/resources/email-messages/email-messages.mjs.map +1 -1
- package/resources/fqdn-connections/fqdn-authentication.d.mts +4 -1
- package/resources/fqdn-connections/fqdn-authentication.d.mts.map +1 -1
- package/resources/fqdn-connections/fqdn-authentication.d.ts +4 -1
- package/resources/fqdn-connections/fqdn-authentication.d.ts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.mts +4 -1
- package/resources/fqdn-connections/fqdn-connections.d.mts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.d.ts +4 -1
- package/resources/fqdn-connections/fqdn-connections.d.ts.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.js.map +1 -1
- package/resources/fqdn-connections/fqdn-connections.mjs.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +6 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +79 -6
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +79 -6
- 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/messaging-profiles/actions.d.mts +1 -1
- package/resources/messaging-profiles/actions.d.mts.map +1 -1
- package/resources/messaging-profiles/actions.d.ts +1 -1
- package/resources/messaging-profiles/actions.d.ts.map +1 -1
- package/resources/messaging-profiles/index.d.mts +1 -1
- package/resources/messaging-profiles/index.d.mts.map +1 -1
- package/resources/messaging-profiles/index.d.ts +1 -1
- package/resources/messaging-profiles/index.d.ts.map +1 -1
- package/resources/messaging-profiles/index.js.map +1 -1
- package/resources/messaging-profiles/index.mjs.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts +185 -8
- package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts +185 -8
- package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.js +1 -1
- package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.mjs +1 -1
- package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
- package/resources/uac-connections/uac-connections.d.mts +9 -2
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +9 -2
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/webhooks.d.mts +129 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +129 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts +33 -0
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts +33 -0
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/index.d.mts +1 -1
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -1
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.mts +1 -1
- package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.js.map +1 -1
- package/resources/whatsapp/phone-numbers/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +147 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +147 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js +16 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs +16 -0
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/whatsapp/whatsapp.d.mts +2 -2
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +2 -2
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/resources/x402/credit-account/credit-account.d.mts +226 -0
- package/resources/x402/credit-account/credit-account.d.mts.map +1 -0
- package/resources/x402/credit-account/credit-account.d.ts +226 -0
- package/resources/x402/credit-account/credit-account.d.ts.map +1 -0
- package/resources/x402/credit-account/credit-account.js +66 -0
- package/resources/x402/credit-account/credit-account.js.map +1 -0
- package/resources/x402/credit-account/credit-account.mjs +61 -0
- package/resources/x402/credit-account/credit-account.mjs.map +1 -0
- package/resources/x402/credit-account/index.d.mts +3 -0
- package/resources/x402/credit-account/index.d.mts.map +1 -0
- package/resources/x402/credit-account/index.d.ts +3 -0
- package/resources/x402/credit-account/index.d.ts.map +1 -0
- package/resources/x402/credit-account/index.js +9 -0
- package/resources/x402/credit-account/index.js.map +1 -0
- package/resources/x402/credit-account/index.mjs +4 -0
- package/resources/x402/credit-account/index.mjs.map +1 -0
- package/resources/x402/credit-account/payments.d.mts +90 -0
- package/resources/x402/credit-account/payments.d.mts.map +1 -0
- package/resources/x402/credit-account/payments.d.ts +90 -0
- package/resources/x402/credit-account/payments.d.ts.map +1 -0
- package/resources/x402/credit-account/payments.js +47 -0
- package/resources/x402/credit-account/payments.js.map +1 -0
- package/resources/x402/credit-account/payments.mjs +43 -0
- package/resources/x402/credit-account/payments.mjs.map +1 -0
- package/resources/x402/credit-account.d.mts +1 -221
- package/resources/x402/credit-account.d.mts.map +1 -1
- package/resources/x402/credit-account.d.ts +1 -221
- package/resources/x402/credit-account.d.ts.map +1 -1
- package/resources/x402/credit-account.js +2 -54
- package/resources/x402/credit-account.js.map +1 -1
- package/resources/x402/credit-account.mjs +1 -52
- package/resources/x402/credit-account.mjs.map +1 -1
- package/resources/x402/index.d.mts +1 -1
- package/resources/x402/index.d.mts.map +1 -1
- package/resources/x402/index.d.ts +1 -1
- package/resources/x402/index.d.ts.map +1 -1
- package/resources/x402/index.js +2 -2
- package/resources/x402/index.js.map +1 -1
- package/resources/x402/index.mjs +1 -1
- package/resources/x402/index.mjs.map +1 -1
- package/resources/x402/x402.d.mts +2 -2
- package/resources/x402/x402.d.mts.map +1 -1
- package/resources/x402/x402.d.ts +2 -2
- package/resources/x402/x402.d.ts.map +1 -1
- package/resources/x402/x402.js +2 -2
- package/resources/x402/x402.js.map +1 -1
- package/resources/x402/x402.mjs +2 -2
- package/resources/x402/x402.mjs.map +1 -1
- package/src/client.ts +15 -2
- package/src/resources/ai/ai.ts +2 -0
- package/src/resources/ai/anthropic/v1.ts +18 -0
- package/src/resources/ai/assistants/assistants.ts +173 -0
- package/src/resources/ai/assistants/index.ts +1 -0
- package/src/resources/ai/assistants/versions.ts +27 -0
- package/src/resources/ai/chat.ts +87 -23
- package/src/resources/ai/index.ts +1 -0
- package/src/resources/ai/openai/chat.ts +87 -23
- package/src/resources/ai/openai/openai.ts +18 -0
- package/src/resources/compute/compute.ts +37 -0
- package/src/resources/compute/funcs.ts +298 -0
- package/src/resources/compute/index.ts +15 -0
- package/src/resources/compute.ts +3 -0
- package/src/resources/credential-connections/credential-connections.ts +4 -1
- package/src/resources/email-inboxes/drafts.ts +8 -0
- package/src/resources/email-messages/email-messages.ts +7 -2
- package/src/resources/fqdn-connections/fqdn-authentication.ts +4 -1
- package/src/resources/fqdn-connections/fqdn-connections.ts +4 -1
- package/src/resources/index.ts +6 -1
- package/src/resources/messages/messages.ts +89 -6
- package/src/resources/messaging-profiles/actions.ts +1 -1
- package/src/resources/messaging-profiles/index.ts +3 -1
- package/src/resources/messaging-profiles/messaging-profiles.ts +222 -9
- package/src/resources/uac-connections/uac-connections.ts +9 -2
- package/src/resources/webhooks.ts +177 -2
- package/src/resources/whatsapp/business-accounts/phone-numbers.ts +52 -0
- package/src/resources/whatsapp/index.ts +1 -0
- package/src/resources/whatsapp/phone-numbers/index.ts +1 -0
- package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +222 -0
- package/src/resources/whatsapp/whatsapp.ts +2 -0
- package/src/resources/x402/credit-account/credit-account.ts +312 -0
- package/src/resources/x402/credit-account/index.ts +16 -0
- package/src/resources/x402/credit-account/payments.ts +126 -0
- package/src/resources/x402/credit-account.ts +1 -290
- package/src/resources/x402/index.ts +1 -1
- package/src/resources/x402/x402.ts +2 -2
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/openai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,OAAO,mBAAgB;AACnC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAEnE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,gBAAgB,CACd,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAG5C;AAED,MAAM,MAAM,4BAA4B,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAEtE,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAEpD;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/openai/chat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,OAAO,mBAAgB;AACnC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAEnE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,gBAAgB,CACd,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4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IAAI,EAAE,aAAa,CAAC;KACrB;IAED,UAAiB,6BAA6B,CAAC;QAC7C;;;;;WAKG;QACH,UAAiB,UAAU;YACzB;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;YAEb;;;eAGG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB;;;;eAIG;YACH,MAAM,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;YAEpC;;;;eAIG;YACH,MAAM,CAAC,EAAE,OAAO,CAAC;SAClB;KACF;IAED,UAAiB,QAAQ;QACvB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;QAE5B,IAAI,EAAE,UAAU,CAAC;KAClB;IAED,UAAiB,QAAQ,CAAC;QACxB,UAAiB,QAAQ;YACvB,IAAI,EAAE,MAAM,CAAC;YAEb,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB,UAAU,CAAC,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;aAAE,CAAC;SACzC;KACF;IAED,UAAiB,SAAS;QACxB,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC;QAE7B,IAAI,EAAE,WAAW,CAAC;KACnB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -103,12 +103,28 @@ export interface OpenAICreateResponseParams {
|
|
|
103
103
|
* subsequent turns can rely on the stored history.
|
|
104
104
|
*/
|
|
105
105
|
instructions?: string;
|
|
106
|
+
/**
|
|
107
|
+
* How strictly `region` is applied. `preferred` (the default when `region` is set)
|
|
108
|
+
* tries that region first and falls back to another when the model cannot be
|
|
109
|
+
* served there, so a request that would have succeeded still succeeds. `strict`
|
|
110
|
+
* pins the request: it is served from that region or it fails with a 422, never
|
|
111
|
+
* redirected to another region. Requires `region`.
|
|
112
|
+
*/
|
|
113
|
+
mode?: 'preferred' | 'strict';
|
|
106
114
|
/**
|
|
107
115
|
* Model identifier to use for the response, for example `zai-org/GLM-5.1-FP8` or
|
|
108
116
|
* another model available from the Telnyx OpenAI-compatible models endpoint.
|
|
109
117
|
*/
|
|
110
118
|
model?: string;
|
|
111
119
|
reasoning?: OpenAICreateResponseParams.Reasoning;
|
|
120
|
+
/**
|
|
121
|
+
* Optional data-residency region the request should be served from, using the same
|
|
122
|
+
* vocabulary as your account's Data Locality setting. Behavior depends on `mode`.
|
|
123
|
+
* Supported for Telnyx-hosted models only: a request routed to an external
|
|
124
|
+
* provider never passes through Telnyx model routing, so a region cannot be
|
|
125
|
+
* enforced for it. Omit for today's latency-based routing.
|
|
126
|
+
*/
|
|
127
|
+
region?: 'USA' | 'EU' | 'AUS' | 'UAE';
|
|
112
128
|
/**
|
|
113
129
|
* The service tier to use for this request. Supported values vary by model; use
|
|
114
130
|
* `GET /v2/ai/openai/models` and inspect the model's `service_tiers` field. If
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai.d.mts","sourceRoot":"","sources":["../../../src/resources/ai/openai/openai.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,KAAK,kBAAc;AAC/B,OAAO,KAAK,OAAO,mBAAe;AAClC,OAAO,EAAE,IAAI,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,mBAAe;AACxF,OAAO,KAAK,aAAa,yBAAqB;AAC9C,OAAO,EACL,+BAA+B,EAC/B,iCAAiC,EACjC,oCAAoC,EACpC,UAAU,EACX,yBAAqB;AACtB,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE,qBAAa,MAAO,SAAQ,WAAW;IACrC,UAAU,EAAE,aAAa,CAAC,UAAU,CAA8C;IAClF,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;;;;;;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{
|
|
|
103
103
|
* subsequent turns can rely on the stored history.
|
|
104
104
|
*/
|
|
105
105
|
instructions?: string;
|
|
106
|
+
/**
|
|
107
|
+
* How strictly `region` is applied. `preferred` (the default when `region` is set)
|
|
108
|
+
* tries that region first and falls back to another when the model cannot be
|
|
109
|
+
* served there, so a request that would have succeeded still succeeds. `strict`
|
|
110
|
+
* pins the request: it is served from that region or it fails with a 422, never
|
|
111
|
+
* redirected to another region. Requires `region`.
|
|
112
|
+
*/
|
|
113
|
+
mode?: 'preferred' | 'strict';
|
|
106
114
|
/**
|
|
107
115
|
* Model identifier to use for the response, for example `zai-org/GLM-5.1-FP8` or
|
|
108
116
|
* another model available from the Telnyx OpenAI-compatible models endpoint.
|
|
109
117
|
*/
|
|
110
118
|
model?: string;
|
|
111
119
|
reasoning?: OpenAICreateResponseParams.Reasoning;
|
|
120
|
+
/**
|
|
121
|
+
* Optional data-residency region the request should be served from, using the same
|
|
122
|
+
* vocabulary as your account's Data Locality setting. Behavior depends on `mode`.
|
|
123
|
+
* Supported for Telnyx-hosted models only: a request routed to an external
|
|
124
|
+
* provider never passes through Telnyx model routing, so a region cannot be
|
|
125
|
+
* enforced for it. Omit for today's latency-based routing.
|
|
126
|
+
*/
|
|
127
|
+
region?: 'USA' | 'EU' | 'AUS' | 'UAE';
|
|
112
128
|
/**
|
|
113
129
|
* The service tier to use for this request. Supported values vary by model; use
|
|
114
130
|
* `GET /v2/ai/openai/models` and inspect the model's `service_tiers` field. If
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai.d.ts","sourceRoot":"","sources":["../../../src/resources/ai/openai/openai.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,KAAK,iBAAc;AAC/B,OAAO,KAAK,OAAO,kBAAe;AAClC,OAAO,EAAE,IAAI,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,kBAAe;AACxF,OAAO,KAAK,aAAa,wBAAqB;AAC9C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U,EACxB,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openai.js","sourceRoot":"","sources":["../../../src/resources/ai/openai/openai.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,2DAAkC;AAClC,oCAAwF;AACxF,uEAA8C;AAC9C,gDAKsB;AAItB,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgFtD,CAAC;IA9EC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,UAAU,CAAC,OAAwB;QACjC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACH,cAAc,CACZ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AAlFD,wBAkFC;
|
|
1
|
+
{"version":3,"file":"openai.js","sourceRoot":"","sources":["../../../src/resources/ai/openai/openai.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,2DAAkC;AAClC,oCAAwF;AACxF,uEAA8C;AAC9C,gDAK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EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AA6ED,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;AAC/B,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as FuncsAPI from "./funcs.mjs";
|
|
3
|
+
import { FuncRetrieveLogsParams, FuncRetrieveLogsResponse, FuncRetrieveMetricAggregatesParams, FuncRetrieveMetricAggregatesResponse, FuncRetrieveRevisionsParams, FuncRetrieveRevisionsResponse, FuncRetrieveShipInspectionResponse, Funcs, FunctionsObservabilityPaginationMeta, LogsMeta } from "./funcs.mjs";
|
|
4
|
+
export declare class Compute extends APIResource {
|
|
5
|
+
funcs: FuncsAPI.Funcs;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Compute {
|
|
8
|
+
export { Funcs as Funcs, 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, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=compute.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute.d.mts","sourceRoot":"","sources":["../../src/resources/compute/compute.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,kCAAkC,EAClC,oCAAoC,EACpC,2BAA2B,EAC3B,6BAA6B,EAC7B,kCAAkC,EAClC,KAAK,EACL,oCAAoC,EACpC,QAAQ,EACT,oBAAgB;AAEjB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,IAAI,KAAK,EACd,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;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as FuncsAPI from "./funcs.js";
|
|
3
|
+
import { FuncRetrieveLogsParams, FuncRetrieveLogsResponse, FuncRetrieveMetricAggregatesParams, FuncRetrieveMetricAggregatesResponse, FuncRetrieveRevisionsParams, FuncRetrieveRevisionsResponse, FuncRetrieveShipInspectionResponse, Funcs, FunctionsObservabilityPaginationMeta, LogsMeta } from "./funcs.js";
|
|
4
|
+
export declare class Compute extends APIResource {
|
|
5
|
+
funcs: FuncsAPI.Funcs;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Compute {
|
|
8
|
+
export { Funcs as Funcs, 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, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=compute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../../src/resources/compute/compute.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,kCAAkC,EAClC,oCAAoC,EACpC,2BAA2B,EAC3B,6BAA6B,EAC7B,kCAAkC,EAClC,KAAK,EACL,oCAAoC,EACpC,QAAQ,EACT,mBAAgB;AAEjB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,IAAI,KAAK,EACd,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;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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.Compute = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const FuncsAPI = tslib_1.__importStar(require("./funcs.js"));
|
|
8
|
+
const funcs_1 = require("./funcs.js");
|
|
9
|
+
class Compute extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.funcs = new FuncsAPI.Funcs(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Compute = Compute;
|
|
16
|
+
Compute.Funcs = funcs_1.Funcs;
|
|
17
|
+
//# sourceMappingURL=compute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute.js","sourceRoot":"","sources":["../../src/resources/compute/compute.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAWiB;AAEjB,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAFD,0BAEC;AAED,OAAO,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as FuncsAPI from "./funcs.mjs";
|
|
4
|
+
import { Funcs, } from "./funcs.mjs";
|
|
5
|
+
export class Compute extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.funcs = new FuncsAPI.Funcs(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Compute.Funcs = Funcs;
|
|
12
|
+
//# sourceMappingURL=compute.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compute.mjs","sourceRoot":"","sources":["../../src/resources/compute/compute.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAQL,KAAK,GAGN,oBAAgB;AAEjB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAED,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as FuncsAPI from "./funcs.mjs";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class Funcs extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Returns logs oldest first. `type=runtime` (default) returns function
|
|
8
|
+
* stdout/stderr. `type=invocations` returns one platform-generated record per HTTP
|
|
9
|
+
* request served.
|
|
10
|
+
*/
|
|
11
|
+
retrieveLogs(id: string, query?: FuncRetrieveLogsParams | null | undefined, options?: RequestOptions): APIPromise<FuncRetrieveLogsResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Returns aggregate request, latency, CPU, memory, and resource-limit metrics for
|
|
14
|
+
* a function over the requested window.
|
|
15
|
+
*/
|
|
16
|
+
retrieveMetricAggregates(id: string, query: FuncRetrieveMetricAggregatesParams, options?: RequestOptions): APIPromise<FuncRetrieveMetricAggregatesResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Lists a function's ship history newest first, including per-ship failure stage
|
|
19
|
+
* and reason when recorded.
|
|
20
|
+
*/
|
|
21
|
+
retrieveRevisions(id: string, query?: FuncRetrieveRevisionsParams | null | undefined, options?: RequestOptions): APIPromise<FuncRetrieveRevisionsResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the latest ship outcome. The stage is `none` on success, `pending` while
|
|
24
|
+
* building, or a failure stage such as `build`, `platform`, `pre_build`, `deploy`,
|
|
25
|
+
* or `security_review`. This stage-neutral customer-facing path is an alias over
|
|
26
|
+
* the same inspection resource as `build_log_inspection`.
|
|
27
|
+
*/
|
|
28
|
+
retrieveShipInspection(id: string, options?: RequestOptions): APIPromise<FuncRetrieveShipInspectionResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface FunctionsObservabilityPaginationMeta {
|
|
31
|
+
page_number?: number;
|
|
32
|
+
page_size?: number;
|
|
33
|
+
total_pages?: number;
|
|
34
|
+
total_results?: number;
|
|
35
|
+
}
|
|
36
|
+
export interface LogsMeta {
|
|
37
|
+
has_more?: boolean;
|
|
38
|
+
partial?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export type FuncRetrieveLogsResponse = FuncRetrieveLogsResponse.FuncRuntimeLogsResponse | FuncRetrieveLogsResponse.FuncInvocationLogsResponse;
|
|
41
|
+
export declare namespace FuncRetrieveLogsResponse {
|
|
42
|
+
interface FuncRuntimeLogsResponse {
|
|
43
|
+
data?: Array<FuncRuntimeLogsResponse.Data>;
|
|
44
|
+
meta?: FuncsAPI.LogsMeta;
|
|
45
|
+
}
|
|
46
|
+
namespace FuncRuntimeLogsResponse {
|
|
47
|
+
interface Data {
|
|
48
|
+
level?: string;
|
|
49
|
+
message?: string;
|
|
50
|
+
record_type?: 'compute_func_runtime_log';
|
|
51
|
+
timestamp?: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
interface FuncInvocationLogsResponse {
|
|
55
|
+
data?: Array<FuncInvocationLogsResponse.Data>;
|
|
56
|
+
meta?: FuncsAPI.LogsMeta;
|
|
57
|
+
}
|
|
58
|
+
namespace FuncInvocationLogsResponse {
|
|
59
|
+
interface Data {
|
|
60
|
+
duration_ms?: number;
|
|
61
|
+
method?: string;
|
|
62
|
+
path?: string;
|
|
63
|
+
record_type?: 'compute_func_invocation_log';
|
|
64
|
+
region?: string;
|
|
65
|
+
request_size_bytes?: number;
|
|
66
|
+
response_size_bytes?: number;
|
|
67
|
+
status_code?: number;
|
|
68
|
+
timestamp?: string;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export interface FuncRetrieveMetricAggregatesResponse {
|
|
73
|
+
data?: Array<FuncRetrieveMetricAggregatesResponse.Data>;
|
|
74
|
+
meta?: FunctionsObservabilityPaginationMeta;
|
|
75
|
+
}
|
|
76
|
+
export declare namespace FuncRetrieveMetricAggregatesResponse {
|
|
77
|
+
interface Data {
|
|
78
|
+
cpu_used_cores_avg?: number | null;
|
|
79
|
+
cpu_used_cores_max?: number | null;
|
|
80
|
+
end_time?: string;
|
|
81
|
+
function_id?: string;
|
|
82
|
+
function_name?: string;
|
|
83
|
+
memory_used_bytes_avg?: number | null;
|
|
84
|
+
memory_used_bytes_max?: number | null;
|
|
85
|
+
product?: string;
|
|
86
|
+
record_type?: string;
|
|
87
|
+
request_client_error_rate?: number | null;
|
|
88
|
+
request_count?: number | null;
|
|
89
|
+
request_error_rate?: number | null;
|
|
90
|
+
request_latency_avg_ms?: number | null;
|
|
91
|
+
request_latency_p50_ms?: number | null;
|
|
92
|
+
request_latency_p95_ms?: number | null;
|
|
93
|
+
request_latency_p99_ms?: number | null;
|
|
94
|
+
request_success_rate?: number | null;
|
|
95
|
+
start_time?: string;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export interface FuncRetrieveRevisionsResponse {
|
|
99
|
+
data?: Array<FuncRetrieveRevisionsResponse.Data>;
|
|
100
|
+
meta?: FunctionsObservabilityPaginationMeta;
|
|
101
|
+
}
|
|
102
|
+
export declare namespace FuncRetrieveRevisionsResponse {
|
|
103
|
+
interface Data {
|
|
104
|
+
active?: boolean;
|
|
105
|
+
build_ok_at?: string;
|
|
106
|
+
build_status?: string;
|
|
107
|
+
commit_sha?: string;
|
|
108
|
+
deploy_status?: string;
|
|
109
|
+
failure_reason?: string;
|
|
110
|
+
failure_stage?: string;
|
|
111
|
+
image?: string;
|
|
112
|
+
record_type?: string;
|
|
113
|
+
revision_id?: string;
|
|
114
|
+
shipped_at?: string;
|
|
115
|
+
shipped_by?: string;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export interface FuncRetrieveShipInspectionResponse {
|
|
119
|
+
data?: FuncRetrieveShipInspectionResponse.Data;
|
|
120
|
+
}
|
|
121
|
+
export declare namespace FuncRetrieveShipInspectionResponse {
|
|
122
|
+
interface Data {
|
|
123
|
+
created_at?: string;
|
|
124
|
+
reason?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Stable record type retained by both inspection path aliases.
|
|
127
|
+
*/
|
|
128
|
+
record_type?: 'build_log_inspection';
|
|
129
|
+
runtime?: string;
|
|
130
|
+
snippet?: string;
|
|
131
|
+
stage?: 'build' | 'platform' | 'pre_build' | 'deploy' | 'security_review' | 'none' | 'pending';
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export interface FuncRetrieveLogsParams {
|
|
135
|
+
/**
|
|
136
|
+
* Return records at or before this RFC 3339 timestamp.
|
|
137
|
+
*/
|
|
138
|
+
end_time?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Maximum records to return.
|
|
141
|
+
*/
|
|
142
|
+
limit?: number;
|
|
143
|
+
/**
|
|
144
|
+
* Return records at or after this RFC 3339 timestamp.
|
|
145
|
+
*/
|
|
146
|
+
start_time?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Log stream to return.
|
|
149
|
+
*/
|
|
150
|
+
type?: 'runtime' | 'invocations';
|
|
151
|
+
}
|
|
152
|
+
export interface FuncRetrieveMetricAggregatesParams {
|
|
153
|
+
/**
|
|
154
|
+
* Exclusive window end, UTC ISO 8601 with milliseconds
|
|
155
|
+
*/
|
|
156
|
+
end_time: string;
|
|
157
|
+
/**
|
|
158
|
+
* Inclusive window start, UTC ISO 8601 with milliseconds
|
|
159
|
+
*/
|
|
160
|
+
start_time: string;
|
|
161
|
+
/**
|
|
162
|
+
* Edge site filter
|
|
163
|
+
*/
|
|
164
|
+
'filter[edge_site]'?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Kubernetes namespace filter
|
|
167
|
+
*/
|
|
168
|
+
'filter[namespace]'?: string;
|
|
169
|
+
'page[number]'?: number;
|
|
170
|
+
'page[size]'?: number;
|
|
171
|
+
}
|
|
172
|
+
export interface FuncRetrieveRevisionsParams {
|
|
173
|
+
'page[number]'?: number;
|
|
174
|
+
'page[size]'?: number;
|
|
175
|
+
}
|
|
176
|
+
export declare namespace Funcs {
|
|
177
|
+
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, };
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=funcs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"funcs.d.mts","sourceRoot":"","sources":["../../src/resources/compute/funcs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;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;;;OAGG;IACH,wBAA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+
import * as FuncsAPI from "./funcs.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Funcs extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Returns logs oldest first. `type=runtime` (default) returns function
|
|
8
|
+
* stdout/stderr. `type=invocations` returns one platform-generated record per HTTP
|
|
9
|
+
* request served.
|
|
10
|
+
*/
|
|
11
|
+
retrieveLogs(id: string, query?: FuncRetrieveLogsParams | null | undefined, options?: RequestOptions): APIPromise<FuncRetrieveLogsResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Returns aggregate request, latency, CPU, memory, and resource-limit metrics for
|
|
14
|
+
* a function over the requested window.
|
|
15
|
+
*/
|
|
16
|
+
retrieveMetricAggregates(id: string, query: FuncRetrieveMetricAggregatesParams, options?: RequestOptions): APIPromise<FuncRetrieveMetricAggregatesResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* Lists a function's ship history newest first, including per-ship failure stage
|
|
19
|
+
* and reason when recorded.
|
|
20
|
+
*/
|
|
21
|
+
retrieveRevisions(id: string, query?: FuncRetrieveRevisionsParams | null | undefined, options?: RequestOptions): APIPromise<FuncRetrieveRevisionsResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the latest ship outcome. The stage is `none` on success, `pending` while
|
|
24
|
+
* building, or a failure stage such as `build`, `platform`, `pre_build`, `deploy`,
|
|
25
|
+
* or `security_review`. This stage-neutral customer-facing path is an alias over
|
|
26
|
+
* the same inspection resource as `build_log_inspection`.
|
|
27
|
+
*/
|
|
28
|
+
retrieveShipInspection(id: string, options?: RequestOptions): APIPromise<FuncRetrieveShipInspectionResponse>;
|
|
29
|
+
}
|
|
30
|
+
export interface FunctionsObservabilityPaginationMeta {
|
|
31
|
+
page_number?: number;
|
|
32
|
+
page_size?: number;
|
|
33
|
+
total_pages?: number;
|
|
34
|
+
total_results?: number;
|
|
35
|
+
}
|
|
36
|
+
export interface LogsMeta {
|
|
37
|
+
has_more?: boolean;
|
|
38
|
+
partial?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export type FuncRetrieveLogsResponse = FuncRetrieveLogsResponse.FuncRuntimeLogsResponse | FuncRetrieveLogsResponse.FuncInvocationLogsResponse;
|
|
41
|
+
export declare namespace FuncRetrieveLogsResponse {
|
|
42
|
+
interface FuncRuntimeLogsResponse {
|
|
43
|
+
data?: Array<FuncRuntimeLogsResponse.Data>;
|
|
44
|
+
meta?: FuncsAPI.LogsMeta;
|
|
45
|
+
}
|
|
46
|
+
namespace FuncRuntimeLogsResponse {
|
|
47
|
+
interface Data {
|
|
48
|
+
level?: string;
|
|
49
|
+
message?: string;
|
|
50
|
+
record_type?: 'compute_func_runtime_log';
|
|
51
|
+
timestamp?: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
interface FuncInvocationLogsResponse {
|
|
55
|
+
data?: Array<FuncInvocationLogsResponse.Data>;
|
|
56
|
+
meta?: FuncsAPI.LogsMeta;
|
|
57
|
+
}
|
|
58
|
+
namespace FuncInvocationLogsResponse {
|
|
59
|
+
interface Data {
|
|
60
|
+
duration_ms?: number;
|
|
61
|
+
method?: string;
|
|
62
|
+
path?: string;
|
|
63
|
+
record_type?: 'compute_func_invocation_log';
|
|
64
|
+
region?: string;
|
|
65
|
+
request_size_bytes?: number;
|
|
66
|
+
response_size_bytes?: number;
|
|
67
|
+
status_code?: number;
|
|
68
|
+
timestamp?: string;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export interface FuncRetrieveMetricAggregatesResponse {
|
|
73
|
+
data?: Array<FuncRetrieveMetricAggregatesResponse.Data>;
|
|
74
|
+
meta?: FunctionsObservabilityPaginationMeta;
|
|
75
|
+
}
|
|
76
|
+
export declare namespace FuncRetrieveMetricAggregatesResponse {
|
|
77
|
+
interface Data {
|
|
78
|
+
cpu_used_cores_avg?: number | null;
|
|
79
|
+
cpu_used_cores_max?: number | null;
|
|
80
|
+
end_time?: string;
|
|
81
|
+
function_id?: string;
|
|
82
|
+
function_name?: string;
|
|
83
|
+
memory_used_bytes_avg?: number | null;
|
|
84
|
+
memory_used_bytes_max?: number | null;
|
|
85
|
+
product?: string;
|
|
86
|
+
record_type?: string;
|
|
87
|
+
request_client_error_rate?: number | null;
|
|
88
|
+
request_count?: number | null;
|
|
89
|
+
request_error_rate?: number | null;
|
|
90
|
+
request_latency_avg_ms?: number | null;
|
|
91
|
+
request_latency_p50_ms?: number | null;
|
|
92
|
+
request_latency_p95_ms?: number | null;
|
|
93
|
+
request_latency_p99_ms?: number | null;
|
|
94
|
+
request_success_rate?: number | null;
|
|
95
|
+
start_time?: string;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export interface FuncRetrieveRevisionsResponse {
|
|
99
|
+
data?: Array<FuncRetrieveRevisionsResponse.Data>;
|
|
100
|
+
meta?: FunctionsObservabilityPaginationMeta;
|
|
101
|
+
}
|
|
102
|
+
export declare namespace FuncRetrieveRevisionsResponse {
|
|
103
|
+
interface Data {
|
|
104
|
+
active?: boolean;
|
|
105
|
+
build_ok_at?: string;
|
|
106
|
+
build_status?: string;
|
|
107
|
+
commit_sha?: string;
|
|
108
|
+
deploy_status?: string;
|
|
109
|
+
failure_reason?: string;
|
|
110
|
+
failure_stage?: string;
|
|
111
|
+
image?: string;
|
|
112
|
+
record_type?: string;
|
|
113
|
+
revision_id?: string;
|
|
114
|
+
shipped_at?: string;
|
|
115
|
+
shipped_by?: string;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export interface FuncRetrieveShipInspectionResponse {
|
|
119
|
+
data?: FuncRetrieveShipInspectionResponse.Data;
|
|
120
|
+
}
|
|
121
|
+
export declare namespace FuncRetrieveShipInspectionResponse {
|
|
122
|
+
interface Data {
|
|
123
|
+
created_at?: string;
|
|
124
|
+
reason?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Stable record type retained by both inspection path aliases.
|
|
127
|
+
*/
|
|
128
|
+
record_type?: 'build_log_inspection';
|
|
129
|
+
runtime?: string;
|
|
130
|
+
snippet?: string;
|
|
131
|
+
stage?: 'build' | 'platform' | 'pre_build' | 'deploy' | 'security_review' | 'none' | 'pending';
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export interface FuncRetrieveLogsParams {
|
|
135
|
+
/**
|
|
136
|
+
* Return records at or before this RFC 3339 timestamp.
|
|
137
|
+
*/
|
|
138
|
+
end_time?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Maximum records to return.
|
|
141
|
+
*/
|
|
142
|
+
limit?: number;
|
|
143
|
+
/**
|
|
144
|
+
* Return records at or after this RFC 3339 timestamp.
|
|
145
|
+
*/
|
|
146
|
+
start_time?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Log stream to return.
|
|
149
|
+
*/
|
|
150
|
+
type?: 'runtime' | 'invocations';
|
|
151
|
+
}
|
|
152
|
+
export interface FuncRetrieveMetricAggregatesParams {
|
|
153
|
+
/**
|
|
154
|
+
* Exclusive window end, UTC ISO 8601 with milliseconds
|
|
155
|
+
*/
|
|
156
|
+
end_time: string;
|
|
157
|
+
/**
|
|
158
|
+
* Inclusive window start, UTC ISO 8601 with milliseconds
|
|
159
|
+
*/
|
|
160
|
+
start_time: string;
|
|
161
|
+
/**
|
|
162
|
+
* Edge site filter
|
|
163
|
+
*/
|
|
164
|
+
'filter[edge_site]'?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Kubernetes namespace filter
|
|
167
|
+
*/
|
|
168
|
+
'filter[namespace]'?: string;
|
|
169
|
+
'page[number]'?: number;
|
|
170
|
+
'page[size]'?: number;
|
|
171
|
+
}
|
|
172
|
+
export interface FuncRetrieveRevisionsParams {
|
|
173
|
+
'page[number]'?: number;
|
|
174
|
+
'page[size]'?: number;
|
|
175
|
+
}
|
|
176
|
+
export declare namespace Funcs {
|
|
177
|
+
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, };
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=funcs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"funcs.d.ts","sourceRoot":"","sources":["../../src/resources/compute/funcs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;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;;;OAGG;IACH,wBAAwB,CACtB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,kCAAkC,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oCAAoC,CAAC;IAInD;;;OAGG;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;;;;;OAKG;IACH,sBAAsB,CACpB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;CAGlD;AAED,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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;AAED,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;CACH"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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 resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Funcs extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns logs oldest first. `type=runtime` (default) returns function
|
|
10
|
+
* stdout/stderr. `type=invocations` returns one platform-generated record per HTTP
|
|
11
|
+
* request served.
|
|
12
|
+
*/
|
|
13
|
+
retrieveLogs(id, query = {}, options) {
|
|
14
|
+
return this._client.get((0, path_1.path) `/compute/funcs/${id}/logs`, { query, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Returns aggregate request, latency, CPU, memory, and resource-limit metrics for
|
|
18
|
+
* a function over the requested window.
|
|
19
|
+
*/
|
|
20
|
+
retrieveMetricAggregates(id, query, options) {
|
|
21
|
+
return this._client.get((0, path_1.path) `/compute/funcs/${id}/metric_aggregates`, { query, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Lists a function's ship history newest first, including per-ship failure stage
|
|
25
|
+
* and reason when recorded.
|
|
26
|
+
*/
|
|
27
|
+
retrieveRevisions(id, query = {}, options) {
|
|
28
|
+
return this._client.get((0, path_1.path) `/compute/funcs/${id}/revisions`, { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns the latest ship outcome. The stage is `none` on success, `pending` while
|
|
32
|
+
* building, or a failure stage such as `build`, `platform`, `pre_build`, `deploy`,
|
|
33
|
+
* or `security_review`. This stage-neutral customer-facing path is an alias over
|
|
34
|
+
* the same inspection resource as `build_log_inspection`.
|
|
35
|
+
*/
|
|
36
|
+
retrieveShipInspection(id, options) {
|
|
37
|
+
return this._client.get((0, path_1.path) `/compute/funcs/${id}/ship_inspection`, options);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.Funcs = Funcs;
|
|
41
|
+
//# sourceMappingURL=funcs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"funcs.js","sourceRoot":"","sources":["../../src/resources/compute/funcs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;OAIG;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;;;OAGG;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;;;OAGG;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;;;;;OAKG;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;AAlDD,sBAkDC"}
|