Skip to content

Commit fd2cb15

Browse files
committed
Generate updated docs.
1 parent d8ebbb8 commit fd2cb15

File tree

5 files changed

+123
-15
lines changed

5 files changed

+123
-15
lines changed

docs-devsite/_toc.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,10 +375,16 @@ toc:
375375
path: /docs/reference/js/functions.functions.md
376376
- title: FunctionsError
377377
path: /docs/reference/js/functions.functionserror.md
378+
- title: HttpsCallable
379+
path: /docs/reference/js/functions.httpscallable.md
378380
- title: HttpsCallableOptions
379381
path: /docs/reference/js/functions.httpscallableoptions.md
380382
- title: HttpsCallableResult
381383
path: /docs/reference/js/functions.httpscallableresult.md
384+
- title: HttpsCallableStreamOptions
385+
path: /docs/reference/js/functions.httpscallablestreamoptions.md
386+
- title: HttpsCallableStreamResult
387+
path: /docs/reference/js/functions.httpscallablestreamresult.md
382388
- title: installations
383389
path: /docs/reference/js/installations.md
384390
section:
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Project: /docs/reference/js/_project.yaml
2+
Book: /docs/reference/_book.yaml
3+
page_type: reference
4+
5+
{% comment %}
6+
DO NOT EDIT THIS FILE!
7+
This is generated by the JS SDK team, and any local changes will be
8+
overwritten. Changes should be made in the source code at
9+
https://github.com/firebase/firebase-js-sdk
10+
{% endcomment %}
11+
12+
# HttpsCallable interface
13+
A reference to a "callable" HTTP trigger in Google Cloud Functions.
14+
15+
<b>Signature:</b>
16+
17+
```typescript
18+
export interface HttpsCallable<RequestData = unknown, ResponseData = unknown, StreamData = unknown>
19+
```
20+
21+
## Properties
22+
23+
| Property | Type | Description |
24+
| --- | --- | --- |
25+
| [stream](./functions.httpscallable.md#httpscallablestream) | (data?: RequestData \| null, options?: [HttpsCallableStreamOptions](./functions.httpscallablestreamoptions.md#httpscallablestreamoptions_interface)<!-- -->) =&gt; Promise&lt;[HttpsCallableStreamResult](./functions.httpscallablestreamresult.md#httpscallablestreamresult_interface)<!-- -->&lt;ResponseData, StreamData&gt;&gt; | |
26+
27+
## HttpsCallable.stream
28+
29+
<b>Signature:</b>
30+
31+
```typescript
32+
stream: (data?: RequestData | null, options?: HttpsCallableStreamOptions) => Promise<HttpsCallableStreamResult<ResponseData, StreamData>>;
33+
```
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Project: /docs/reference/js/_project.yaml
2+
Book: /docs/reference/_book.yaml
3+
page_type: reference
4+
5+
{% comment %}
6+
DO NOT EDIT THIS FILE!
7+
This is generated by the JS SDK team, and any local changes will be
8+
overwritten. Changes should be made in the source code at
9+
https://github.com/firebase/firebase-js-sdk
10+
{% endcomment %}
11+
12+
# HttpsCallableStreamOptions interface
13+
An interface for metadata about how stream call should be executed.
14+
15+
<b>Signature:</b>
16+
17+
```typescript
18+
export interface HttpsCallableStreamOptions
19+
```
20+
21+
## Properties
22+
23+
| Property | Type | Description |
24+
| --- | --- | --- |
25+
| [signal](./functions.httpscallablestreamoptions.md#httpscallablestreamoptionssignal) | AbortSignal | An AbortSignal that can be used to cancel the streaming response. When the signal is aborted, both the underlying connection and stream will be terminated. |
26+
27+
## HttpsCallableStreamOptions.signal
28+
29+
An AbortSignal that can be used to cancel the streaming response. When the signal is aborted, both the underlying connection and stream will be terminated.
30+
31+
<b>Signature:</b>
32+
33+
```typescript
34+
signal?: AbortSignal;
35+
```
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Project: /docs/reference/js/_project.yaml
2+
Book: /docs/reference/_book.yaml
3+
page_type: reference
4+
5+
{% comment %}
6+
DO NOT EDIT THIS FILE!
7+
This is generated by the JS SDK team, and any local changes will be
8+
overwritten. Changes should be made in the source code at
9+
https://github.com/firebase/firebase-js-sdk
10+
{% endcomment %}
11+
12+
# HttpsCallableStreamResult interface
13+
An `HttpsCallableStreamResult` wraps a single streaming result from a function call.
14+
15+
<b>Signature:</b>
16+
17+
```typescript
18+
export interface HttpsCallableStreamResult<ResponseData = unknown, StreamData = unknown>
19+
```
20+
21+
## Properties
22+
23+
| Property | Type | Description |
24+
| --- | --- | --- |
25+
| [data](./functions.httpscallablestreamresult.md#httpscallablestreamresultdata) | Promise&lt;ResponseData&gt; | |
26+
| [stream](./functions.httpscallablestreamresult.md#httpscallablestreamresultstream) | AsyncIterable&lt;StreamData&gt; | |
27+
28+
## HttpsCallableStreamResult.data
29+
30+
<b>Signature:</b>
31+
32+
```typescript
33+
readonly data: Promise<ResponseData>;
34+
```
35+
36+
## HttpsCallableStreamResult.stream
37+
38+
<b>Signature:</b>
39+
40+
```typescript
41+
readonly stream: AsyncIterable<StreamData>;
42+
```

docs-devsite/functions.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,18 @@ Cloud Functions for Firebase
3434
| Interface | Description |
3535
| --- | --- |
3636
| [Functions](./functions.functions.md#functions_interface) | A <code>Functions</code> instance. |
37+
| [HttpsCallable](./functions.httpscallable.md#httpscallable_interface) | A reference to a "callable" HTTP trigger in Google Cloud Functions. |
3738
| [HttpsCallableOptions](./functions.httpscallableoptions.md#httpscallableoptions_interface) | An interface for metadata about how calls should be executed. |
3839
| [HttpsCallableResult](./functions.httpscallableresult.md#httpscallableresult_interface) | An <code>HttpsCallableResult</code> wraps a single result from a function call. |
40+
| [HttpsCallableStreamOptions](./functions.httpscallablestreamoptions.md#httpscallablestreamoptions_interface) | An interface for metadata about how stream call should be executed. |
41+
| [HttpsCallableStreamResult](./functions.httpscallablestreamresult.md#httpscallablestreamresult_interface) | An <code>HttpsCallableStreamResult</code> wraps a single streaming result from a function call. |
3942

4043
## Type Aliases
4144

4245
| Type Alias | Description |
4346
| --- | --- |
4447
| [FunctionsErrorCode](./functions.md#functionserrorcode) | The set of Firebase Functions status codes. The codes are the same at the ones exposed by gRPC here: https://github.com/grpc/grpc/blob/master/doc/statuscodes.md<!-- -->Possible values: - 'cancelled': The operation was cancelled (typically by the caller). - 'unknown': Unknown error or an error from a different error domain. - 'invalid-argument': Client specified an invalid argument. Note that this differs from 'failed-precondition'. 'invalid-argument' indicates arguments that are problematic regardless of the state of the system (e.g. an invalid field name). - 'deadline-exceeded': Deadline expired before operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. - 'not-found': Some requested document was not found. - 'already-exists': Some document that we attempted to create already exists. - 'permission-denied': The caller does not have permission to execute the specified operation. - 'resource-exhausted': Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. - 'failed-precondition': Operation was rejected because the system is not in a state required for the operation's execution. - 'aborted': The operation was aborted, typically due to a concurrency issue like transaction aborts, etc. - 'out-of-range': Operation was attempted past the valid range. - 'unimplemented': Operation is not implemented or not supported/enabled. - 'internal': Internal errors. Means some invariants expected by underlying system has been broken. If you see one of these errors, something is very broken. - 'unavailable': The service is currently unavailable. This is most likely a transient condition and may be corrected by retrying with a backoff. - 'data-loss': Unrecoverable data loss or corruption. - 'unauthenticated': The request does not have valid authentication credentials for the operation. |
4548
| [FunctionsErrorCodeCore](./functions.md#functionserrorcodecore) | Functions error code string appended after "functions/" product prefix. See [FunctionsErrorCode](./functions.md#functionserrorcode) for full documentation of codes. |
46-
| [HttpsCallable](./functions.md#httpscallable) | A reference to a "callable" HTTP trigger in Google Cloud Functions. |
4749

4850
## function(app, ...)
4951

@@ -101,7 +103,7 @@ Returns a reference to the callable HTTPS trigger with the given name.
101103
<b>Signature:</b>
102104

103105
```typescript
104-
export declare function httpsCallable<RequestData = unknown, ResponseData = unknown>(functionsInstance: Functions, name: string, options?: HttpsCallableOptions): HttpsCallable<RequestData, ResponseData>;
106+
export declare function httpsCallable<RequestData = unknown, ResponseData = unknown, StreamData = unknown>(functionsInstance: Functions, name: string, options?: HttpsCallableOptions): HttpsCallable<RequestData, ResponseData, StreamData>;
105107
```
106108

107109
#### Parameters
@@ -114,7 +116,7 @@ export declare function httpsCallable<RequestData = unknown, ResponseData = unkn
114116

115117
<b>Returns:</b>
116118

117-
[HttpsCallable](./functions.md#httpscallable)<!-- -->&lt;RequestData, ResponseData&gt;
119+
[HttpsCallable](./functions.httpscallable.md#httpscallable_interface)<!-- -->&lt;RequestData, ResponseData, StreamData&gt;
118120

119121
### httpsCallableFromURL(functionsInstance, url, options) {:#httpscallablefromurl_7af6987}
120122

@@ -123,7 +125,7 @@ Returns a reference to the callable HTTPS trigger with the specified url.
123125
<b>Signature:</b>
124126

125127
```typescript
126-
export declare function httpsCallableFromURL<RequestData = unknown, ResponseData = unknown>(functionsInstance: Functions, url: string, options?: HttpsCallableOptions): HttpsCallable<RequestData, ResponseData>;
128+
export declare function httpsCallableFromURL<RequestData = unknown, ResponseData = unknown, StreamData = unknown>(functionsInstance: Functions, url: string, options?: HttpsCallableOptions): HttpsCallable<RequestData, ResponseData, StreamData>;
127129
```
128130

129131
#### Parameters
@@ -136,7 +138,7 @@ export declare function httpsCallableFromURL<RequestData = unknown, ResponseData
136138

137139
<b>Returns:</b>
138140

139-
[HttpsCallable](./functions.md#httpscallable)<!-- -->&lt;RequestData, ResponseData&gt;
141+
[HttpsCallable](./functions.httpscallable.md#httpscallable_interface)<!-- -->&lt;RequestData, ResponseData, StreamData&gt;
140142

141143
## FunctionsErrorCode
142144

@@ -159,13 +161,3 @@ Functions error code string appended after "functions/" product prefix. See [Fun
159161
```typescript
160162
export type FunctionsErrorCodeCore = 'ok' | 'cancelled' | 'unknown' | 'invalid-argument' | 'deadline-exceeded' | 'not-found' | 'already-exists' | 'permission-denied' | 'resource-exhausted' | 'failed-precondition' | 'aborted' | 'out-of-range' | 'unimplemented' | 'internal' | 'unavailable' | 'data-loss' | 'unauthenticated';
161163
```
162-
163-
## HttpsCallable
164-
165-
A reference to a "callable" HTTP trigger in Google Cloud Functions.
166-
167-
<b>Signature:</b>
168-
169-
```typescript
170-
export type HttpsCallable<RequestData = unknown, ResponseData = unknown> = (data?: RequestData | null) => Promise<HttpsCallableResult<ResponseData>>;
171-
```

0 commit comments

Comments
 (0)