@microsoft/rayfin-functions 1.32.0 → 1.33.0-beta.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @fileoverview Per-function typed client.
2
+ * @packageDocumentation Per-function typed client.
3
3
  *
4
4
  * Each property on the proxy returned by `createFunctionsApi` is a
5
5
  * `FunctionClient` whose `invoke()` signature is derived from the schema
@@ -35,8 +35,8 @@ export interface InvokeOptions {
35
35
  /**
36
36
  * A strongly-typed client for a single function.
37
37
  *
38
- * @template TInput - The parameter object the function expects (`void` when none).
39
- * @template TOutput - The type returned by the function.
38
+ * @typeParam TInput - The parameter object the function expects (`void` when none).
39
+ * @typeParam TOutput - The type returned by the function.
40
40
  */
41
41
  export declare class FunctionClient<TInput = any, TOutput = any> {
42
42
  private apiClient;
@@ -45,8 +45,11 @@ export declare class FunctionClient<TInput = any, TOutput = any> {
45
45
  /**
46
46
  * Invoke the function and return its typed output.
47
47
  *
48
- * @param params - Input parameters (omit when the function takes no input).
49
- * @param options - Optional per-call settings (extra headers, etc.).
48
+ * @param args - When the function accepts input, pass
49
+ * `[params, options?]` `params` are the input parameters declared
50
+ * by the function schema, `options` are optional per-call settings
51
+ * (extra headers, etc.). When the function takes no input, pass
52
+ * `[options?]` instead.
50
53
  * @returns The function's success-path output, typed as `TOutput`.
51
54
  *
52
55
  * Failure modes throw — a non-empty `errors` array or a non-success
@@ -61,9 +64,9 @@ export declare class FunctionClient<TInput = any, TOutput = any> {
61
64
  * value is available in the browser/Node console for correlation
62
65
  * without polluting the public return type.
63
66
  *
64
- * @throws {FunctionsError} If the function invocation fails.
65
- * @throws {NetworkError} For network-related issues.
66
- * @throws {SdkError} For any other unexpected SDK errors.
67
+ * @throws {@link FunctionsError} - If the function invocation fails.
68
+ * @throws `NetworkError` - For network-related issues.
69
+ * @throws `SdkError` - For any other unexpected SDK errors.
67
70
  *
68
71
  * @example
69
72
  * ```typescript
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @fileoverview Per-function typed client.
2
+ * @packageDocumentation Per-function typed client.
3
3
  *
4
4
  * Each property on the proxy returned by `createFunctionsApi` is a
5
5
  * `FunctionClient` whose `invoke()` signature is derived from the schema
@@ -11,8 +11,8 @@ import { FunctionsError } from './Functions.js';
11
11
  /**
12
12
  * A strongly-typed client for a single function.
13
13
  *
14
- * @template TInput - The parameter object the function expects (`void` when none).
15
- * @template TOutput - The type returned by the function.
14
+ * @typeParam TInput - The parameter object the function expects (`void` when none).
15
+ * @typeParam TOutput - The type returned by the function.
16
16
  */
17
17
  export class FunctionClient {
18
18
  apiClient;
@@ -24,8 +24,11 @@ export class FunctionClient {
24
24
  /**
25
25
  * Invoke the function and return its typed output.
26
26
  *
27
- * @param params - Input parameters (omit when the function takes no input).
28
- * @param options - Optional per-call settings (extra headers, etc.).
27
+ * @param args - When the function accepts input, pass
28
+ * `[params, options?]` `params` are the input parameters declared
29
+ * by the function schema, `options` are optional per-call settings
30
+ * (extra headers, etc.). When the function takes no input, pass
31
+ * `[options?]` instead.
29
32
  * @returns The function's success-path output, typed as `TOutput`.
30
33
  *
31
34
  * Failure modes throw — a non-empty `errors` array or a non-success
@@ -40,9 +43,9 @@ export class FunctionClient {
40
43
  * value is available in the browser/Node console for correlation
41
44
  * without polluting the public return type.
42
45
  *
43
- * @throws {FunctionsError} If the function invocation fails.
44
- * @throws {NetworkError} For network-related issues.
45
- * @throws {SdkError} For any other unexpected SDK errors.
46
+ * @throws {@link FunctionsError} - If the function invocation fails.
47
+ * @throws `NetworkError` - For network-related issues.
48
+ * @throws `SdkError` - For any other unexpected SDK errors.
46
49
  *
47
50
  * @example
48
51
  * ```typescript
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @fileoverview Functions API for invoking serverless functions.
2
+ * @packageDocumentation Functions API for invoking serverless functions.
3
3
  *
4
4
  * The single public surface is `client.functions.<name>.invoke(...)` where
5
5
  * `<name>` is constrained by the `FunctionsSchema` type parameter passed to
package/dist/Functions.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @fileoverview Functions API for invoking serverless functions.
2
+ * @packageDocumentation Functions API for invoking serverless functions.
3
3
  *
4
4
  * The single public surface is `client.functions.<name>.invoke(...)` where
5
5
  * `<name>` is constrained by the `FunctionsSchema` type parameter passed to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/rayfin-functions",
3
- "version": "1.32.0",
3
+ "version": "1.33.0-beta.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "rimraf": "~6.0.1"
20
20
  },
21
21
  "dependencies": {
22
- "@microsoft/rayfin-lib": "1.32.0"
22
+ "@microsoft/rayfin-lib": "1.33.0-beta.0"
23
23
  },
24
24
  "publishConfig": {
25
25
  "registry": "https://npm.pkg.github.com",