@fern-api/typescript-dynamic-snippets 3.87.4 → 3.88.0-rc.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/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, AbstractDynamicSnippetsGenerator, Options, AbstractAstNode } from '@fern-api/browser-compatible-base-generator';
1
+ import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, Options, InvocationSnippetResponse, AbstractDynamicSnippetsGenerator, AbstractAstNode } from '@fern-api/browser-compatible-base-generator';
2
2
  import { FernIr } from '@fern-api/dynamic-ir-sdk';
3
3
  import { ts, TypescriptCustomConfigSchema, AstNode } from '@fern-api/typescript-ast';
4
4
 
@@ -104,6 +104,11 @@ declare class EndpointSnippetGenerator {
104
104
  endpoint: FernIr.dynamic.Endpoint;
105
105
  request: FernIr.dynamic.EndpointSnippetRequest;
106
106
  }): Promise<AstNode>;
107
+ generateInvocationSnippetSync({ endpoint, request, options }: {
108
+ endpoint: FernIr.dynamic.Endpoint;
109
+ request: FernIr.dynamic.EndpointSnippetRequest;
110
+ options?: Options;
111
+ }): InvocationSnippetResponse;
107
112
  private buildCodeBlock;
108
113
  private constructClient;
109
114
  private getConstructorArgs;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, AbstractDynamicSnippetsGenerator, Options, AbstractAstNode } from '@fern-api/browser-compatible-base-generator';
1
+ import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, Options, InvocationSnippetResponse, AbstractDynamicSnippetsGenerator, AbstractAstNode } from '@fern-api/browser-compatible-base-generator';
2
2
  import { FernIr } from '@fern-api/dynamic-ir-sdk';
3
3
  import { ts, TypescriptCustomConfigSchema, AstNode } from '@fern-api/typescript-ast';
4
4
 
@@ -104,6 +104,11 @@ declare class EndpointSnippetGenerator {
104
104
  endpoint: FernIr.dynamic.Endpoint;
105
105
  request: FernIr.dynamic.EndpointSnippetRequest;
106
106
  }): Promise<AstNode>;
107
+ generateInvocationSnippetSync({ endpoint, request, options }: {
108
+ endpoint: FernIr.dynamic.Endpoint;
109
+ request: FernIr.dynamic.EndpointSnippetRequest;
110
+ options?: Options;
111
+ }): InvocationSnippetResponse;
107
112
  private buildCodeBlock;
108
113
  private constructClient;
109
114
  private getConstructorArgs;