Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/instal
rmdir samples || true
mkdir samples

npm install
npm install -g ts-node
npm install --ignore-scripts
npm install -g ts-node --ignore-scripts
npm link
npm link @inkeep/inkeep-analytics
TS_CONFIG_CONTENT=$(cat <<EOL
Expand Down
49 changes: 13 additions & 36 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,38 @@ id: 63a2136d-3fa3-4a0b-a766-1ddb2460cc12
management:
docChecksum: 70c76a1dc44e466c8e88842bdb15f661
docVersion: 0.1.1
speakeasyVersion: 1.596.0
generationVersion: 2.672.0
releaseVersion: 0.2.4-alpha.33
configChecksum: 4167732c073e3714b1d446f1b22dd972
speakeasyVersion: 1.666.0
generationVersion: 2.768.0
releaseVersion: 0.2.4-alpha.34
configChecksum: 0da456ceeba495e235a9e5e06219b714
repoURL: https://github.com/inkeep/inkeep-analytics-typescript.git
installationURL: https://github.com/inkeep/inkeep-analytics-typescript
published: true
features:
typescript:
additionalDependencies: 0.1.0
additionalProperties: 0.1.1
additionalProperties: 0.1.2
constsAndDefaults: 0.1.12
core: 3.21.19
core: 3.26.13
defaultEnabledRetries: 0.1.0
devContainers: 2.90.0
devContainers: 2.90.1
downloadStreams: 0.1.1
enumUnions: 0.1.0
envVarSecurityUsage: 0.1.2
globalSecurity: 2.82.13
globalSecurity: 2.82.14
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
globalServerURLs: 2.82.5
groups: 2.81.2
globalServerURLs: 2.83.0
groups: 2.81.3
mcpServer: 0.9.3
methodSecurity: 2.82.6
nameOverrides: 2.81.2
nullables: 0.1.1
reactQueryHooks: 0.2.3
responseFormat: 0.2.3
retries: 2.83.0
sdkHooks: 0.3.0
unions: 2.85.11
sdkHooks: 0.4.0
unions: 2.86.3
generatedFiles:
- .devcontainer/README.md
- .devcontainer/devcontainer.json
Expand All @@ -52,7 +52,6 @@ generatedFiles:
- docs/models/components/content.md
- docs/models/components/conversation.md
- docs/models/components/conversationsaggregationselection.md
- docs/models/components/conversationsaggregationselectiontype.md
- docs/models/components/conversationsfield.md
- docs/models/components/conversationsfilter.md
- docs/models/components/conversationsfilterand.md
Expand All @@ -65,10 +64,8 @@ generatedFiles:
- docs/models/components/conversationsselection.md
- docs/models/components/conversationssimplefieldselection.md
- docs/models/components/conversationssimplefieldselectionfield.md
- docs/models/components/conversationssimplefieldselectiontype.md
- docs/models/components/conversationstimebasedgroupbyselection.md
- docs/models/components/conversationstimebasedgroupbyselectionfield.md
- docs/models/components/conversationstimebasedgroupbyselectiontype.md
- docs/models/components/createconversation.md
- docs/models/components/createopenaiconversation.md
- docs/models/components/createopenaiconversationcontent.md
Expand All @@ -87,7 +84,6 @@ generatedFiles:
- docs/models/components/createsupportcopilotconversationmessagestype.md
- docs/models/components/createsupportcopilotconversationmessagesuserid.md
- docs/models/components/createsupportcopilotconversationmessagesuserproperties.md
- docs/models/components/createsupportcopilotconversationtype.md
- docs/models/components/createsupportcopilotconversationtype1.md
- docs/models/components/createsupportcopilotconversationuserid.md
- docs/models/components/createsupportcopilotconversationuserproperties.md
Expand All @@ -100,18 +96,15 @@ generatedFiles:
- docs/models/components/createsupportticketconversationmessagestype.md
- docs/models/components/createsupportticketconversationmessagesuserid.md
- docs/models/components/createsupportticketconversationmessagesuserproperties.md
- docs/models/components/createsupportticketconversationtype.md
- docs/models/components/createsupportticketconversationtype1.md
- docs/models/components/createsupportticketconversationuserid.md
- docs/models/components/createsupportticketconversationuserproperties.md
- docs/models/components/createsupportticketconversationvisibility.md
- docs/models/components/detail.md
- docs/models/components/direction.md
- docs/models/components/entitytype.md
- docs/models/components/eventsaggregationselection.md
- docs/models/components/eventsaggregationselectionaggregation.md
- docs/models/components/eventsaggregationselectionfield.md
- docs/models/components/eventsaggregationselectiontype.md
- docs/models/components/eventsfield.md
- docs/models/components/eventsfilter.md
- docs/models/components/eventsfilterand.md
Expand All @@ -130,14 +123,11 @@ generatedFiles:
- docs/models/components/eventsselection.md
- docs/models/components/eventssimplefieldselection.md
- docs/models/components/eventssimplefieldselectionfield.md
- docs/models/components/eventssimplefieldselectiontype.md
- docs/models/components/eventstimebasedgroupbyselection.md
- docs/models/components/eventstimebasedgroupbyselectionfield.md
- docs/models/components/eventstimebasedgroupbyselectiontype.md
- docs/models/components/feedbackaggregationselection.md
- docs/models/components/feedbackaggregationselectionaggregation.md
- docs/models/components/feedbackaggregationselectionfield.md
- docs/models/components/feedbackaggregationselectiontype.md
- docs/models/components/feedbackfield.md
- docs/models/components/feedbackfilter.md
- docs/models/components/feedbackfilterand.md
Expand All @@ -157,10 +147,8 @@ generatedFiles:
- docs/models/components/feedbackselection.md
- docs/models/components/feedbacksimplefieldselection.md
- docs/models/components/feedbacksimplefieldselectionfield.md
- docs/models/components/feedbacksimplefieldselectiontype.md
- docs/models/components/feedbacktimebasedgroupbyselection.md
- docs/models/components/feedbacktimebasedgroupbyselectionfield.md
- docs/models/components/feedbacktimebasedgroupbyselectiontype.md
- docs/models/components/field.md
- docs/models/components/filteroperator.md
- docs/models/components/four.md
Expand All @@ -179,7 +167,6 @@ generatedFiles:
- docs/models/components/getallfeedbackresponseuserproperties.md
- docs/models/components/id.md
- docs/models/components/insertconversationevent.md
- docs/models/components/insertconversationevententitytype.md
- docs/models/components/insertconversationeventid.md
- docs/models/components/insertconversationeventuserid.md
- docs/models/components/insertconversationeventuserproperties.md
Expand All @@ -189,7 +176,6 @@ generatedFiles:
- docs/models/components/insertmessageeventuserid.md
- docs/models/components/insertmessageeventuserproperties.md
- docs/models/components/insertsearchevent.md
- docs/models/components/insertsearchevententitytype.md
- docs/models/components/insertsearcheventid.md
- docs/models/components/insertsearcheventuserid.md
- docs/models/components/insertsearcheventuserproperties.md
Expand All @@ -205,7 +191,6 @@ generatedFiles:
- docs/models/components/openaicontentitemtype.md
- docs/models/components/openaiconversation.md
- docs/models/components/openaiconversationid.md
- docs/models/components/openaiconversationtype.md
- docs/models/components/openaiconversationuserid.md
- docs/models/components/openaiconversationuserproperties.md
- docs/models/components/openaiconversationvisibility.md
Expand Down Expand Up @@ -261,25 +246,21 @@ generatedFiles:
- docs/models/components/role.md
- docs/models/components/security.md
- docs/models/components/selectconversationevent.md
- docs/models/components/selectconversationevententitytype.md
- docs/models/components/selectconversationeventid.md
- docs/models/components/selectconversationeventuserid.md
- docs/models/components/selectconversationeventuserproperties.md
- docs/models/components/selectevent.md
- docs/models/components/selectmessageevent.md
- docs/models/components/selectmessageevententitytype.md
- docs/models/components/selectmessageeventid.md
- docs/models/components/selectmessageeventuserid.md
- docs/models/components/selectmessageeventuserproperties.md
- docs/models/components/selectsearchevent.md
- docs/models/components/selectsearchevententitytype.md
- docs/models/components/selectsearcheventid.md
- docs/models/components/selectsearcheventuserid.md
- docs/models/components/selectsearcheventuserproperties.md
- docs/models/components/semanticthreadaggregationselection.md
- docs/models/components/semanticthreadaggregationselectionaggregation.md
- docs/models/components/semanticthreadaggregationselectionfield.md
- docs/models/components/semanticthreadaggregationselectiontype.md
- docs/models/components/semanticthreadfield.md
- docs/models/components/semanticthreadfilter.md
- docs/models/components/semanticthreadfilterand.md
Expand All @@ -299,16 +280,13 @@ generatedFiles:
- docs/models/components/semanticthreadselection.md
- docs/models/components/semanticthreadsimplefieldselection.md
- docs/models/components/semanticthreadsimplefieldselectionfield.md
- docs/models/components/semanticthreadsimplefieldselectiontype.md
- docs/models/components/semanticthreadtimebasedgroupbyselection.md
- docs/models/components/semanticthreadtimebasedgroupbyselectionfield.md
- docs/models/components/semanticthreadtimebasedgroupbyselectiontype.md
- docs/models/components/seven.md
- docs/models/components/sources.md
- docs/models/components/status.md
- docs/models/components/supportcopilotconversation.md
- docs/models/components/supportcopilotconversationid.md
- docs/models/components/supportcopilotconversationtype.md
- docs/models/components/supportcopilotconversationuserid.md
- docs/models/components/supportcopilotconversationuserproperties.md
- docs/models/components/supportcopilotconversationvisibility.md
Expand All @@ -322,7 +300,6 @@ generatedFiles:
- docs/models/components/supportcopilotmessageuserproperties.md
- docs/models/components/supportticketconversation.md
- docs/models/components/supportticketconversationid.md
- docs/models/components/supportticketconversationtype.md
- docs/models/components/supportticketconversationuserid.md
- docs/models/components/supportticketconversationuserproperties.md
- docs/models/components/supportticketconversationvisibility.md
Expand All @@ -334,7 +311,6 @@ generatedFiles:
- docs/models/components/supportticketmessageuserid.md
- docs/models/components/supportticketmessageuserproperties.md
- docs/models/components/timeunit.md
- docs/models/components/type.md
- docs/models/components/type1.md
- docs/models/components/userid.md
- docs/models/components/userproperties.md
Expand Down Expand Up @@ -647,6 +623,7 @@ generatedFiles:
- src/types/operations.ts
- src/types/rfcdate.ts
- src/types/streams.ts
- src/types/unrecognized.ts
- tsconfig.json
examples:
topSearchQueries:
Expand Down
24 changes: 22 additions & 2 deletions .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,40 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
hoistGlobalSecurity: true
schemas:
allOfMergeStrategy: shallowMerge
requestBodyFieldName: ""
tests:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
typescript:
version: 0.2.4-alpha.33
version: 0.2.4-alpha.34
acceptHeaderEnum: true
additionalDependencies:
dependencies: {}
devDependencies: {}
peerDependencies: {}
additionalPackageJSON: {}
additionalScripts: {}
alwaysIncludeInboundAndOutbound: false
author: Speakeasy
baseErrorName: InkeepAnalyticsError
clientServerStatusCodesAsErrors: true
constFieldsAlwaysOptional: true
constFieldsAlwaysOptional: false
defaultErrorName: APIError
enableCustomCodeRegions: false
enableMCPServer: true
enableReactQuery: true
enumFormat: union
envVarPrefix: INKEEPANALYTICS
exportZodModelNamespace: false
flattenGlobalSecurity: true
flatteningOrder: parameters-first
formStringArrayEncodeMode: encoded-string
forwardCompatibleEnumsByDefault: false
forwardCompatibleUnionsByDefault: "false"
generateExamples: true
imports:
option: openapi
Expand All @@ -51,13 +62,22 @@ typescript:
operations: models/operations
shared: models/components
webhooks: models/webhooks
inferUnionDiscriminators: true
inputModelSuffix: input
jsonpath: legacy
laxMode: strict
maxMethodParams: 0
methodArguments: require-security-and-request
modelPropertyCasing: camel
moduleFormat: dual
multipartArrayFormat: legacy
outputModelSuffix: output
packageName: '@inkeep/inkeep-analytics'
preApplyUnionDiscriminators: true
responseFormat: flat
sseFlatResponse: false
templateVersion: v2
unionStrategy: left-to-right
usageSDKInitImports: []
useIndexModules: true
zodVersion: v3
6 changes: 3 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.596.0
speakeasyVersion: 1.666.0
sources:
Inkeep Analytics API:
sourceNamespace: inkeep-analytics-api
sourceRevisionDigest: sha256:cfaf97907f52bfd4ac6ecd7130f44c15ca33da9c0d26469e91a9b4152b3ed413
sourceBlobDigest: sha256:55b1b6aa7efa7193719f310504ab7dcf93b41f4368f9603e8c2f169db899f385
tags:
- latest
- speakeasy-sdk-regen-1754325423
- speakeasy-sdk-regen-1754454800
- 0.1.1
targets:
inkeep-analytics:
Expand All @@ -15,7 +15,7 @@ targets:
sourceRevisionDigest: sha256:cfaf97907f52bfd4ac6ecd7130f44c15ca33da9c0d26469e91a9b4152b3ed413
sourceBlobDigest: sha256:55b1b6aa7efa7193719f310504ab7dcf93b41f4368f9603e8c2f169db899f385
codeSamplesNamespace: inkeep-analytics-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:d2445d10c40aef993d8b00b7c86cd3d803093f6838ab4e48483c7fd213459b4b
codeSamplesRevisionDigest: sha256:41405845d0e2e35bd24f0993db8c49d7b9905b0b760b58d311cb9e0817461bf1
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,9 @@ bun add @tanstack/react-query react react-dom
### Yarn

```bash
yarn add @inkeep/inkeep-analytics zod
yarn add @inkeep/inkeep-analytics
# Install optional peer dependencies if you plan to use React hooks
yarn add @tanstack/react-query react react-dom

# Note that Yarn does not install peer dependencies automatically. You will need
# to install zod as shown above.
```

> [!NOTE]
Expand Down Expand Up @@ -601,7 +598,7 @@ httpClient.addHook("requestError", (error, request) => {
console.groupEnd();
});

const sdk = new InkeepAnalytics({ httpClient });
const sdk = new InkeepAnalytics({ httpClient: httpClient });
```
<!-- End Custom HTTP Client [http-client] -->

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,4 +378,14 @@ Based on:
### Generated
- [typescript v0.2.4-alpha.33] .
### Releases
- [NPM v0.2.4-alpha.33] https://www.npmjs.com/package/@inkeep/inkeep-analytics/v/0.2.4-alpha.33 - .
- [NPM v0.2.4-alpha.33] https://www.npmjs.com/package/@inkeep/inkeep-analytics/v/0.2.4-alpha.33 - .

## 2025-12-02 04:26:05
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.666.0 (2.768.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.2.4-alpha.34] .
### Releases
- [NPM v0.2.4-alpha.34] https://www.npmjs.com/package/@inkeep/inkeep-analytics/v/0.2.4-alpha.34 - .
12 changes: 6 additions & 6 deletions RUNTIMES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features:

* [Web Fetch API][web-fetch]
* [Web Streams API][web-streams] and in particular `ReadableStream`
* [Async iterables][async-iter] using `Symbol.asyncIterator`
- [Web Fetch API][web-fetch]
- [Web Streams API][web-streams] and in particular `ReadableStream`
- [Async iterables][async-iter] using `Symbol.asyncIterator`

[web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
[web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API
Expand All @@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are:

The following `tsconfig.json` options are recommended for projects using this
SDK in order to get static type support for features like async iterables,
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
[`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and
so on):

Expand All @@ -38,11 +38,11 @@ so on):
{
"compilerOptions": {
"target": "es2020", // or higher
"lib": ["es2020", "dom", "dom.iterable"],
"lib": ["es2020", "dom", "dom.iterable"]
}
}
```

While `target` can be set to older ECMAScript versions, it may result in extra,
unnecessary compatibility code being generated if you are not targeting old
runtimes.
runtimes.
Loading