@sinch/functions-runtime 0.4.19 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2534,6 +2534,26 @@ export declare class DefaultEndpointHandler {
2534
2534
  * TypeScript projects compile to dist/function.js
2535
2535
  */
2536
2536
  export declare function findFunctionPath(): string;
2537
+ /** ICE callback payload as delivered to your handler (`callid` normalized to `callId`). */
2538
+ export type IceCallback = Omit<Voice.IceRequest, "callid"> & {
2539
+ callId?: string;
2540
+ };
2541
+ /** ACE callback payload as delivered to your handler. */
2542
+ export type AceCallback = Omit<Voice.AceRequest, "callid"> & {
2543
+ callId?: string;
2544
+ };
2545
+ /** PIE callback payload as delivered to your handler. */
2546
+ export type PieCallback = Omit<Voice.PieRequest, "callid"> & {
2547
+ callId?: string;
2548
+ };
2549
+ /** DICE callback payload as delivered to your handler. */
2550
+ export type DiceCallback = Omit<Voice.DiceRequest, "callid"> & {
2551
+ callId?: string;
2552
+ };
2553
+ /** NOTIFY callback payload as delivered to your handler. */
2554
+ export type NotifyCallback = Omit<Voice.NotifyRequest, "callid"> & {
2555
+ callId?: string;
2556
+ };
2537
2557
  /** @deprecated Import from '@sinch/voice' instead: `import type { Voice } from '@sinch/voice'` then use `Voice.IceRequest` @internal */
2538
2558
  export type IceCallbackData = Voice.IceRequest;
2539
2559
  /** @deprecated Import from '@sinch/voice' instead @internal */
@@ -2711,7 +2731,7 @@ export declare class SecretsLoader {
2711
2731
  private platformHint;
2712
2732
  private warnPlaintext;
2713
2733
  /**
2714
- * Load custom secrets added via 'sinch functions secrets' command
2734
+ * Load custom secrets added via the 'sinch secrets' command
2715
2735
  */
2716
2736
  loadCustomSecrets(secretNames?: string[]): Promise<Record<string, string>>;
2717
2737
  /**