Skip to content

Commit b981580

Browse files
committed
pushing local run of speakeasy
1 parent 7eb4eb6 commit b981580

File tree

1,133 files changed

+1271
-1272
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,133 files changed

+1271
-1272
lines changed

.devcontainer/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mkdir samples
1010
npm install
1111
npm install -g ts-node
1212
npm link
13-
npm link inkeep-analytics-typescript
13+
npm link @inkeep/inkeep-analytics
1414
TS_CONFIG_CONTENT=$(cat <<EOL
1515
{
1616
"compilerOptions": {

.speakeasy/gen.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
lockVersion: 2.0.0
22
id: 63a2136d-3fa3-4a0b-a766-1ddb2460cc12
33
management:
4-
docChecksum: 44ce6139d161c09bcbf469901f6e3cb0
4+
docChecksum: b949f82fb6941cd8c31fdb7e41a02270
55
docVersion: 0.1.1
6-
speakeasyVersion: 1.484.1
7-
generationVersion: 2.503.2
8-
releaseVersion: 0.1.1
9-
configChecksum: b6713fbbed9991c38fcf1ec3257ad433
6+
speakeasyVersion: 1.486.0
7+
generationVersion: 2.505.0
8+
releaseVersion: 0.2.0
9+
configChecksum: b40165ff3242a0947682bd2504a0bef3
10+
published: true
1011
features:
1112
typescript:
1213
additionalDependencies: 0.1.0
1314
constsAndDefaults: 0.1.11
14-
core: 3.18.22
15+
core: 3.19.0
1516
defaultEnabledRetries: 0.1.0
1617
devContainers: 2.90.0
1718
downloadStreams: 0.1.1

.speakeasy/gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ generation:
1616
oAuth2ClientCredentialsEnabled: true
1717
oAuth2PasswordEnabled: true
1818
typescript:
19-
version: 0.1.1
19+
version: 0.2.0
2020
additionalDependencies:
2121
dependencies: {}
2222
devDependencies: {}
@@ -44,7 +44,7 @@ typescript:
4444
methodArguments: require-security-and-request
4545
moduleFormat: dual
4646
outputModelSuffix: output
47-
packageName: "@inkeep/inkeep-analytics"
47+
packageName: '@inkeep/inkeep-analytics'
4848
responseFormat: flat
4949
templateVersion: v2
5050
useIndexModules: true

.speakeasy/workflow.lock

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
speakeasyVersion: 1.484.1
1+
speakeasyVersion: 1.486.0
22
sources:
33
Inkeep Analytics API:
44
sourceNamespace: inkeep-analytics-api
5-
sourceRevisionDigest: sha256:0ba4b9b6ec7718179caaa67f3cbb8289136834f605bb51f531a3507773f17fdb
6-
sourceBlobDigest: sha256:30a2fd6259197d4d2f467bcb8f84affbbf85405fb0c9587ba4ea893c6ffaded3
5+
sourceRevisionDigest: sha256:0372169c5f483df3494595af785d651a06c6ea8b36ec8a4be898fe7a5dfd5a0a
6+
sourceBlobDigest: sha256:e30192fadddef0b09005a86f0089c58048523eef0dcb3116b47a286dc889b79d
77
tags:
88
- latest
99
- 0.1.1
1010
targets:
1111
inkeep-analytics:
1212
source: Inkeep Analytics API
1313
sourceNamespace: inkeep-analytics-api
14-
sourceRevisionDigest: sha256:0ba4b9b6ec7718179caaa67f3cbb8289136834f605bb51f531a3507773f17fdb
15-
sourceBlobDigest: sha256:30a2fd6259197d4d2f467bcb8f84affbbf85405fb0c9587ba4ea893c6ffaded3
14+
sourceRevisionDigest: sha256:0372169c5f483df3494595af785d651a06c6ea8b36ec8a4be898fe7a5dfd5a0a
15+
sourceBlobDigest: sha256:e30192fadddef0b09005a86f0089c58048523eef0dcb3116b47a286dc889b79d
1616
codeSamplesNamespace: inkeep-analytics-api-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:e84e648bf71ad495994cfb8183c7578d3c01c7b7670291c7caba9e24793a2f1c
17+
codeSamplesRevisionDigest: sha256:878ebaec1c27476f03662fbf94bacc1e2298ca68ced4c9702ea9954f8205df8a
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest
@@ -30,6 +30,9 @@ workflow:
3030
inkeep-analytics:
3131
target: typescript
3232
source: Inkeep Analytics API
33+
publish:
34+
npm:
35+
token: $npm_token
3336
codeSamples:
3437
registry:
3538
location: registry.speakeasyapi.dev/inkeep/inkeep/inkeep-analytics-api-typescript-code-samples

FUNCTIONS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ specific category of applications.
1919
## Example
2020

2121
```typescript
22-
import { InkeepAnalyticsCore } from "inkeep-analytics-typescript/core.js";
23-
import { conversationsLog } from "inkeep-analytics-typescript/funcs/conversationsLog.js";
24-
import { SDKValidationError } from "inkeep-analytics-typescript/models/errors/sdkvalidationerror.js";
22+
import { InkeepAnalyticsCore } from "@inkeep/inkeep-analytics/core.js";
23+
import { conversationsLog } from "@inkeep/inkeep-analytics/funcs/conversationsLog.js";
24+
import { SDKValidationError } from "@inkeep/inkeep-analytics/models/errors/sdkvalidationerror.js";
2525

2626
// Use `InkeepAnalyticsCore` for best tree-shaking performance.
2727
// You can create one instance of it to use across an application.

README.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ Developer-friendly & type-safe Typescript SDK specifically catered to leverage *
1717
<!-- Start Summary [summary] -->
1818
## Summary
1919

20-
Inkeep Analytics API:
21-
The Inkeep Analytics API provides endpoints for managing conversations, feedback, events, and queries.
20+
Inkeep Analytics API: The Inkeep Analytics API provides endpoints for managing and updating conversations, feedback, events, and queries.
2221
<!-- End Summary [summary] -->
2322

2423
<!-- Start Table of Contents [toc] -->
@@ -45,34 +44,30 @@ The Inkeep Analytics API provides endpoints for managing conversations, feedback
4544
<!-- Start SDK Installation [installation] -->
4645
## SDK Installation
4746

48-
> [!TIP]
49-
> To finish publishing your SDK to npm and others you must [run your first generation action](https://www.speakeasy.com/docs/github-setup#step-by-step-guide).
50-
51-
5247
The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers.
5348

5449
### NPM
5550

5651
```bash
57-
npm add <UNSET>
52+
npm add @inkeep/inkeep-analytics
5853
```
5954

6055
### PNPM
6156

6257
```bash
63-
pnpm add <UNSET>
58+
pnpm add @inkeep/inkeep-analytics
6459
```
6560

6661
### Bun
6762

6863
```bash
69-
bun add <UNSET>
64+
bun add @inkeep/inkeep-analytics
7065
```
7166

7267
### Yarn
7368

7469
```bash
75-
yarn add <UNSET> zod
70+
yarn add @inkeep/inkeep-analytics zod
7671

7772
# Note that Yarn does not install peer dependencies automatically. You will need
7873
# to install zod as shown above.
@@ -94,7 +89,7 @@ For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
9489
### Example
9590

9691
```typescript
97-
import { InkeepAnalytics } from "inkeep-analytics-typescript";
92+
import { InkeepAnalytics } from "@inkeep/inkeep-analytics";
9893

9994
const inkeepAnalytics = new InkeepAnalytics();
10095

@@ -132,7 +127,7 @@ This SDK supports the following security scheme globally:
132127

133128
To authenticate with the API the `apiIntegrationKey` parameter must be set when initializing the SDK client instance. For example:
134129
```typescript
135-
import { InkeepAnalytics } from "inkeep-analytics-typescript";
130+
import { InkeepAnalytics } from "@inkeep/inkeep-analytics";
136131

137132
const inkeepAnalytics = new InkeepAnalytics({
138133
apiIntegrationKey: process.env["INKEEPANALYTICS_API_INTEGRATION_KEY"] ?? "",
@@ -153,7 +148,7 @@ run();
153148

154149
Some operations in this SDK require the security scheme to be specified at the request level. For example:
155150
```typescript
156-
import { InkeepAnalytics } from "inkeep-analytics-typescript";
151+
import { InkeepAnalytics } from "@inkeep/inkeep-analytics";
157152

158153
const inkeepAnalytics = new InkeepAnalytics();
159154

@@ -253,7 +248,7 @@ Some of the endpoints in this SDK support retries. If you use the SDK without a
253248

254249
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
255250
```typescript
256-
import { InkeepAnalytics } from "inkeep-analytics-typescript";
251+
import { InkeepAnalytics } from "@inkeep/inkeep-analytics";
257252

258253
const inkeepAnalytics = new InkeepAnalytics();
259254

@@ -290,7 +285,7 @@ run();
290285

291286
If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
292287
```typescript
293-
import { InkeepAnalytics } from "inkeep-analytics-typescript";
288+
import { InkeepAnalytics } from "@inkeep/inkeep-analytics";
294289

295290
const inkeepAnalytics = new InkeepAnalytics({
296291
retryConfig: {
@@ -343,15 +338,15 @@ Some methods specify known errors which can be thrown. All the known errors are
343338
If the method throws an error and it is not captured by the known errors, it will default to throwing a `APIError`.
344339

345340
```typescript
346-
import { InkeepAnalytics } from "inkeep-analytics-typescript";
341+
import { InkeepAnalytics } from "@inkeep/inkeep-analytics";
347342
import {
348343
BadRequest,
349344
Forbidden,
350345
InternalServerError,
351346
SDKValidationError,
352347
Unauthorized,
353348
UnprocessableEntity,
354-
} from "inkeep-analytics-typescript/models/errors";
349+
} from "@inkeep/inkeep-analytics/models/errors";
355350

356351
const inkeepAnalytics = new InkeepAnalytics();
357352

@@ -439,7 +434,7 @@ In some rare cases, the SDK can fail to get a response from the server or even m
439434

440435
The default server can also be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:
441436
```typescript
442-
import { InkeepAnalytics } from "inkeep-analytics-typescript";
437+
import { InkeepAnalytics } from "@inkeep/inkeep-analytics";
443438

444439
const inkeepAnalytics = new InkeepAnalytics({
445440
serverURL: "https://api.analytics.inkeep.com",
@@ -484,8 +479,8 @@ custom header and a timeout to requests and how to use the `"requestError"` hook
484479
to log errors:
485480

486481
```typescript
487-
import { InkeepAnalytics } from "inkeep-analytics-typescript";
488-
import { HTTPClient } from "inkeep-analytics-typescript/lib/http";
482+
import { InkeepAnalytics } from "@inkeep/inkeep-analytics";
483+
import { HTTPClient } from "@inkeep/inkeep-analytics/lib/http";
489484

490485
const httpClient = new HTTPClient({
491486
// fetcher takes a function that has the same signature as native `fetch`.
@@ -526,7 +521,7 @@ You can pass a logger that matches `console`'s interface as an SDK option.
526521
> Beware that debug logging will reveal secrets, like API tokens in headers, in log messages printed to a console or files. It's recommended to use this feature only during local development and not in production.
527522
528523
```typescript
529-
import { InkeepAnalytics } from "inkeep-analytics-typescript";
524+
import { InkeepAnalytics } from "@inkeep/inkeep-analytics";
530525

531526
const sdk = new InkeepAnalytics({ debugLogger: console });
532527
```

USAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- Start SDK Example Usage [usage] -->
22
```typescript
3-
import { InkeepAnalytics } from "inkeep-analytics-typescript";
3+
import { InkeepAnalytics } from "@inkeep/inkeep-analytics";
44

55
const inkeepAnalytics = new InkeepAnalytics();
66

docs/models/components/aggregation1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Example Usage
44

55
```typescript
6-
import { Aggregation1 } from "inkeep-analytics-typescript/models/components";
6+
import { Aggregation1 } from "@inkeep/inkeep-analytics/models/components";
77

88
let value: Aggregation1 = "sum";
99
```

docs/models/components/aggregation2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Example Usage
44

55
```typescript
6-
import { Aggregation2 } from "inkeep-analytics-typescript/models/components";
6+
import { Aggregation2 } from "@inkeep/inkeep-analytics/models/components";
77

88
let value: Aggregation2 = "count";
99
```

docs/models/components/aggregation3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Example Usage
44

55
```typescript
6-
import { Aggregation3 } from "inkeep-analytics-typescript/models/components";
6+
import { Aggregation3 } from "@inkeep/inkeep-analytics/models/components";
77

88
let value: Aggregation3 = "avg";
99
```

0 commit comments

Comments
 (0)