Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.399.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Sep 19, 2024
1 parent 29ab667 commit 087315d
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 107 deletions.
6 changes: 3 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: caaaa8c3-6dd7-43a5-841e-c3193e68cc73
management:
docChecksum: df43e764b8eb28b0b843f5f4e489a795
docChecksum: 85754de0244c73cbb1c69b25ea2c7b84
docVersion: "1.0"
speakeasyVersion: 1.399.2
generationVersion: 2.416.6
releaseVersion: 0.13.6
configChecksum: 54dc3961974da8b857c42f2f1cd52b95
releaseVersion: 0.13.7
configChecksum: a67cb1918371b34fe4ecbfd50d9af6d0
repoURL: https://github.com/panoratech/typescript-sdk.git
installationURL: https://github.com/panoratech/typescript-sdk
published: true
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.13.6
version: 0.13.7
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.399.2
sources:
panora-open-api-swagger:
sourceNamespace: panora-open-api-swagger
sourceRevisionDigest: sha256:b3385926f3a17c420c322518393c3d580691089ae337494bdd71d8b4a29bd824
sourceBlobDigest: sha256:c0678c7ec897cd7bd4771c9c746b305aa47ed2b412ae8271f4aa3b98300d8728
sourceRevisionDigest: sha256:30f88af1cbd2b7fb9a75fc3f1684c47bf1c50b5229df1fe2e6c6cd3ad1882ce3
sourceBlobDigest: sha256:448db7f4e3a8eccc58c9e6f2c79e23ff930158322f19557f97845048c501ef37
tags:
- latest
- main
targets:
my-first-target:
source: panora-open-api-swagger
sourceNamespace: panora-open-api-swagger
sourceRevisionDigest: sha256:b3385926f3a17c420c322518393c3d580691089ae337494bdd71d8b4a29bd824
sourceBlobDigest: sha256:c0678c7ec897cd7bd4771c9c746b305aa47ed2b412ae8271f4aa3b98300d8728
sourceRevisionDigest: sha256:30f88af1cbd2b7fb9a75fc3f1684c47bf1c50b5229df1fe2e6c6cd3ad1882ce3
sourceBlobDigest: sha256:448db7f4e3a8eccc58c9e6f2c79e23ff930158322f19557f97845048c501ef37
codeSamplesNamespace: code-samples-typescript-my-first-target
codeSamplesRevisionDigest: sha256:63675c7d0886bee62f5e86ada612ee46b90e76b987d2754297315256e8330def
codeSamplesRevisionDigest: sha256:c36f6221f66d0acc13250c9d29a8a29a942b76ca46addbf24664cce74656e423
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,4 +298,14 @@ Based on:
### Generated
- [typescript v0.13.6] .
### Releases
- [NPM v0.13.6] https://www.npmjs.com/package/@panora/sdk/v/0.13.6 - .
- [NPM v0.13.6] https://www.npmjs.com/package/@panora/sdk/v/0.13.6 - .

## 2024-09-19 01:33:09
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.399.2 (2.416.6) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.13.7] .
### Releases
- [NPM v0.13.7] https://www.npmjs.com/package/@panora/sdk/v/0.13.7 - .
2 changes: 1 addition & 1 deletion codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ actions:
x-codeSamples:
- lang: typescript
label: verifyEvent
source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await panora.webhooks.verifyEvent({\n payload: {\n idEvent: \"801f9ede-c698-4e66-a7fc-48d19eebaa4f\",\n type: \"connection.created\",\n },\n signature: \"<value>\",\n secret: \"<value>\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();"
source: "import { Panora } from \"@panora/sdk\";\n\nconst panora = new Panora({\n apiKey: \"<YOUR_API_KEY_HERE>\",\n});\n\nasync function run() {\n const result = await panora.webhooks.verifyEvent({\n payload: {},\n signature: \"<value>\",\n secret: \"<value>\",\n });\n \n // Handle the result\n console.log(result)\n}\n\nrun();"
- target: $["paths"]["/webhooks/{id}"]["delete"]
update:
x-codeSamples:
Expand Down
11 changes: 3 additions & 8 deletions docs/models/components/eventpayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@
```typescript
import { EventPayload } from "@panora/sdk/models/components";

let value: EventPayload = {
idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
type: "connection.created",
};
let value: EventPayload = {};
```

## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| `idEvent` | *string* | :heavy_check_mark: | The id of the event. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f |
| `type` | *string* | :heavy_check_mark: | The type of the event. | connection.created |
| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
11 changes: 3 additions & 8 deletions docs/models/components/payload.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,10 @@ The payload event of the webhook.
```typescript
import { Payload } from "@panora/sdk/models/components";

let value: Payload = {
idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
type: "connection.created",
};
let value: Payload = {};
```

## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ |
| `idEvent` | *string* | :heavy_check_mark: | The id of the event. | 801f9ede-c698-4e66-a7fc-48d19eebaa4f |
| `type` | *string* | :heavy_check_mark: | The type of the event. | connection.created |
| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
5 changes: 1 addition & 4 deletions docs/models/components/signatureverificationdto.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
import { SignatureVerificationDto } from "@panora/sdk/models/components";

let value: SignatureVerificationDto = {
payload: {
idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
type: "connection.created",
},
payload: {},
signature: "<value>",
secret: "<value>",
};
Expand Down
10 changes: 2 additions & 8 deletions docs/sdks/webhooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,7 @@ const panora = new Panora({

async function run() {
const result = await panora.webhooks.verifyEvent({
payload: {
idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
type: "connection.created",
},
payload: {},
signature: "<value>",
secret: "<value>",
});
Expand Down Expand Up @@ -368,10 +365,7 @@ const panora = new PanoraCore({

async function run() {
const res = await webhooksVerifyEvent(panora, {
payload: {
idEvent: "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
type: "connection.created",
},
payload: {},
signature: "<value>",
secret: "<value>",
});
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@panora/sdk",
"version": "0.13.6",
"version": "0.13.7",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@panora/sdk",
"version": "0.13.6",
"version": "0.13.7",
"author": "Speakeasy",
"main": "./index.js",
"sideEffects": false,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "1.0",
sdkVersion: "0.13.6",
sdkVersion: "0.13.7",
genVersion: "2.416.6",
userAgent: "speakeasy-sdk/typescript 0.13.6 2.416.6 1.0 @panora/sdk",
userAgent: "speakeasy-sdk/typescript 0.13.7 2.416.6 1.0 @panora/sdk",
} as const;
35 changes: 4 additions & 31 deletions src/models/components/eventpayload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,52 +3,25 @@
*/

import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";

export type EventPayload = {
/**
* The id of the event.
*/
idEvent: string | null;
/**
* The type of the event.
*/
type: string | null;
};
export type EventPayload = {};

/** @internal */
export const EventPayload$inboundSchema: z.ZodType<
EventPayload,
z.ZodTypeDef,
unknown
> = z.object({
id_event: z.nullable(z.string()),
type: z.nullable(z.string()),
}).transform((v) => {
return remap$(v, {
"id_event": "idEvent",
});
});
> = z.object({});

/** @internal */
export type EventPayload$Outbound = {
id_event: string | null;
type: string | null;
};
export type EventPayload$Outbound = {};

/** @internal */
export const EventPayload$outboundSchema: z.ZodType<
EventPayload$Outbound,
z.ZodTypeDef,
EventPayload
> = z.object({
idEvent: z.nullable(z.string()),
type: z.nullable(z.string()),
}).transform((v) => {
return remap$(v, {
idEvent: "id_event",
});
});
> = z.object({});

/**
* @internal
Expand Down
35 changes: 4 additions & 31 deletions src/models/components/signatureverificationdto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,11 @@
*/

import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";

/**
* The payload event of the webhook.
*/
export type Payload = {
/**
* The id of the event.
*/
idEvent: string | null;
/**
* The type of the event.
*/
type: string | null;
};
export type Payload = {};

export type SignatureVerificationDto = {
/**
Expand All @@ -36,34 +26,17 @@ export type SignatureVerificationDto = {

/** @internal */
export const Payload$inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown> =
z.object({
id_event: z.nullable(z.string()),
type: z.nullable(z.string()),
}).transform((v) => {
return remap$(v, {
"id_event": "idEvent",
});
});
z.object({});

/** @internal */
export type Payload$Outbound = {
id_event: string | null;
type: string | null;
};
export type Payload$Outbound = {};

/** @internal */
export const Payload$outboundSchema: z.ZodType<
Payload$Outbound,
z.ZodTypeDef,
Payload
> = z.object({
idEvent: z.nullable(z.string()),
type: z.nullable(z.string()),
}).transform((v) => {
return remap$(v, {
idEvent: "id_event",
});
});
> = z.object({});

/**
* @internal
Expand Down

0 comments on commit 087315d

Please sign in to comment.