Skip to content

Commit

Permalink
chore: add changes from running sdk generator (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris authored Oct 8, 2024
2 parents 21d1035 + b0e4f79 commit 5dcdb83
Show file tree
Hide file tree
Showing 12 changed files with 141 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,22 @@ example/opentelemetry/package.json
git_push.sh
index.ts
package.json
telemetry.ts
telemetry/attributes.ts
telemetry/configuration.ts
telemetry/counters.ts
telemetry/histograms.ts
telemetry/metrics.ts
tests/client.test.ts
tests/helpers/default-config.ts
tests/helpers/index.ts
tests/helpers/nocks.ts
tests/index.test.ts
tests/jest.config.js
tests/telemetry/attributes.test.ts
tests/telemetry/configuration.test.ts
tests/telemetry/counters.test.ts
tests/telemetry/histograms.test.ts
tests/telemetry/metrics.test.ts
tests/tsconfig.spec.json
tests/validation.test.ts
tsconfig.json
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ Please do not open issues for general support or usage questions. Instead, join

### Vulnerability Reporting

Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://github.com/openfga/js-sdk/blob/main/.github/SECURITY.md) details the procedure for disclosing security issues.
Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://github.com/openfga/.github/blob/main/SECURITY.md) details the procedure for disclosing security issues.
13 changes: 13 additions & 0 deletions telemetry/attributes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/**
* JavaScript and Node.js SDK for OpenFGA
*
* API version: 1.x
* Website: https://openfga.dev
* Documentation: https://openfga.dev/docs
* Support: https://openfga.dev/community
* License: [Apache-2.0](https://github.com/openfga/js-sdk/blob/main/LICENSE)
*
* NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
*/


import { URL } from "url";

export enum TelemetryAttribute {
Expand Down
13 changes: 13 additions & 0 deletions telemetry/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/**
* JavaScript and Node.js SDK for OpenFGA
*
* API version: 1.x
* Website: https://openfga.dev
* Documentation: https://openfga.dev/docs
* Support: https://openfga.dev/community
* License: [Apache-2.0](https://github.com/openfga/js-sdk/blob/main/LICENSE)
*
* NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
*/


import { FgaValidationError } from "../errors";
import { TelemetryAttribute } from "./attributes";
import { TelemetryMetric, MetricRecorder } from "./metrics";
Expand Down
13 changes: 13 additions & 0 deletions telemetry/counters.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/**
* JavaScript and Node.js SDK for OpenFGA
*
* API version: 1.x
* Website: https://openfga.dev
* Documentation: https://openfga.dev/docs
* Support: https://openfga.dev/community
* License: [Apache-2.0](https://github.com/openfga/js-sdk/blob/main/LICENSE)
*
* NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
*/


export interface TelemetryCounter {
name: string;
unit: string;
Expand Down
13 changes: 13 additions & 0 deletions telemetry/histograms.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/**
* JavaScript and Node.js SDK for OpenFGA
*
* API version: 1.x
* Website: https://openfga.dev
* Documentation: https://openfga.dev/docs
* Support: https://openfga.dev/community
* License: [Apache-2.0](https://github.com/openfga/js-sdk/blob/main/LICENSE)
*
* NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
*/


export interface TelemetryHistogram {
name: string;
unit: string;
Expand Down
13 changes: 13 additions & 0 deletions telemetry/metrics.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/**
* JavaScript and Node.js SDK for OpenFGA
*
* API version: 1.x
* Website: https://openfga.dev
* Documentation: https://openfga.dev/docs
* Support: https://openfga.dev/community
* License: [Apache-2.0](https://github.com/openfga/js-sdk/blob/main/LICENSE)
*
* NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
*/


import { Counter, Histogram, Meter } from "@opentelemetry/api";
import { TelemetryCounter } from "./counters";
import { TelemetryHistogram } from "./histograms";
Expand Down
13 changes: 13 additions & 0 deletions tests/telemetry/attributes.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/**
* JavaScript and Node.js SDK for OpenFGA
*
* API version: 1.x
* Website: https://openfga.dev
* Documentation: https://openfga.dev/docs
* Support: https://openfga.dev/community
* License: [Apache-2.0](https://github.com/openfga/js-sdk/blob/main/LICENSE)
*
* NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
*/


import { TelemetryAttribute, TelemetryAttributes } from "../../telemetry/attributes";

describe("TelemetryAttributes", () => {
Expand Down
13 changes: 13 additions & 0 deletions tests/telemetry/configuration.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/**
* JavaScript and Node.js SDK for OpenFGA
*
* API version: 1.x
* Website: https://openfga.dev
* Documentation: https://openfga.dev/docs
* Support: https://openfga.dev/community
* License: [Apache-2.0](https://github.com/openfga/js-sdk/blob/main/LICENSE)
*
* NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
*/


import { TelemetryConfiguration, TelemetryMetricConfig } from "../../telemetry/configuration";
import { TelemetryAttribute } from "../../telemetry/attributes";
import { TelemetryMetric } from "../../telemetry/metrics";
Expand Down
13 changes: 13 additions & 0 deletions tests/telemetry/counters.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/**
* JavaScript and Node.js SDK for OpenFGA
*
* API version: 1.x
* Website: https://openfga.dev
* Documentation: https://openfga.dev/docs
* Support: https://openfga.dev/community
* License: [Apache-2.0](https://github.com/openfga/js-sdk/blob/main/LICENSE)
*
* NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
*/


import { TelemetryCounters } from "../../telemetry/counters";

describe("TelemetryCounters", () => {
Expand Down
13 changes: 13 additions & 0 deletions tests/telemetry/histograms.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/**
* JavaScript and Node.js SDK for OpenFGA
*
* API version: 1.x
* Website: https://openfga.dev
* Documentation: https://openfga.dev/docs
* Support: https://openfga.dev/community
* License: [Apache-2.0](https://github.com/openfga/js-sdk/blob/main/LICENSE)
*
* NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
*/


import { TelemetryHistograms } from "../../telemetry/histograms";

describe("TelemetryHistograms", () => {
Expand Down
13 changes: 13 additions & 0 deletions tests/telemetry/metrics.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/**
* JavaScript and Node.js SDK for OpenFGA
*
* API version: 1.x
* Website: https://openfga.dev
* Documentation: https://openfga.dev/docs
* Support: https://openfga.dev/community
* License: [Apache-2.0](https://github.com/openfga/js-sdk/blob/main/LICENSE)
*
* NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
*/


import { MetricRecorder } from "../../telemetry/metrics";
import { TelemetryCounters } from "../../telemetry/counters";
import { TelemetryHistograms } from "../../telemetry/histograms";
Expand Down

0 comments on commit 5dcdb83

Please sign in to comment.