@crevio/sdk 0.2.0 → 0.2.5
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/README.md +5 -5
- package/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +5 -5
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +5 -5
- package/dist/esm/lib/config.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -2
- package/src/lib/config.ts +5 -5
package/README.md
CHANGED
|
@@ -327,10 +327,10 @@ run();
|
|
|
327
327
|
|
|
328
328
|
You can override the default server globally by passing a server index to the `serverIdx: number` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
|
|
329
329
|
|
|
330
|
-
| # | Server
|
|
331
|
-
| --- |
|
|
332
|
-
| 0 | `https://api.crevio.localhost/
|
|
333
|
-
| 1 | `https://api.crevio.co/
|
|
330
|
+
| # | Server | Description |
|
|
331
|
+
| --- | --------------------------------- | ------------------------ |
|
|
332
|
+
| 0 | `https://api.crevio.localhost/v1` | Local development server |
|
|
333
|
+
| 1 | `https://api.crevio.co/v1` | Production server |
|
|
334
334
|
|
|
335
335
|
#### Example
|
|
336
336
|
|
|
@@ -359,7 +359,7 @@ The default server can also be overridden globally by passing a URL to the `serv
|
|
|
359
359
|
import { Crevio } from "@crevio/sdk";
|
|
360
360
|
|
|
361
361
|
const crevio = new Crevio({
|
|
362
|
-
serverURL: "https://api.crevio.co/
|
|
362
|
+
serverURL: "https://api.crevio.co/v1",
|
|
363
363
|
apiKeyAuth: process.env["CREVIO_API_KEY_AUTH"] ?? "",
|
|
364
364
|
});
|
|
365
365
|
|
|
@@ -4,7 +4,7 @@ import { RetryConfig } from "./retries.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* Contains the list of servers available to the SDK
|
|
6
6
|
*/
|
|
7
|
-
export declare const ServerList: readonly ["https://api.crevio.localhost/
|
|
7
|
+
export declare const ServerList: readonly ["https://api.crevio.localhost/v1", "https://api.crevio.co/v1"];
|
|
8
8
|
export type SDKOptions = {
|
|
9
9
|
apiKeyAuth?: string | (() => Promise<string>) | undefined;
|
|
10
10
|
httpClient?: HTTPClient;
|
|
@@ -30,9 +30,9 @@ export type SDKOptions = {
|
|
|
30
30
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
|
-
readonly openapiDocVersion: "
|
|
34
|
-
readonly sdkVersion: "0.2.
|
|
33
|
+
readonly openapiDocVersion: "0.2.1";
|
|
34
|
+
readonly sdkVersion: "0.2.5";
|
|
35
35
|
readonly genVersion: "2.767.2";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.2.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.2.5 2.767.2 0.2.1 @crevio/sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,0EASb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAE1D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAepE;AAED,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC"}
|
|
@@ -13,11 +13,11 @@ exports.ServerList = [
|
|
|
13
13
|
/**
|
|
14
14
|
* Local development server
|
|
15
15
|
*/
|
|
16
|
-
"https://api.crevio.localhost/
|
|
16
|
+
"https://api.crevio.localhost/v1",
|
|
17
17
|
/**
|
|
18
18
|
* Production server
|
|
19
19
|
*/
|
|
20
|
-
"https://api.crevio.co/
|
|
20
|
+
"https://api.crevio.co/v1",
|
|
21
21
|
];
|
|
22
22
|
function serverURLFromOptions(options) {
|
|
23
23
|
let serverURL = options.serverURL;
|
|
@@ -34,9 +34,9 @@ function serverURLFromOptions(options) {
|
|
|
34
34
|
}
|
|
35
35
|
exports.SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
|
-
openapiDocVersion: "
|
|
38
|
-
sdkVersion: "0.2.
|
|
37
|
+
openapiDocVersion: "0.2.1",
|
|
38
|
+
sdkVersion: "0.2.5",
|
|
39
39
|
genVersion: "2.767.2",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.2.5 2.767.2 0.2.1 @crevio/sdk",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA6CH,oDAeC;AAvDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA6CH,oDAeC;AAvDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB;;OAEG;IACH,iCAAiC;IACjC;;OAEG;IACH,0BAA0B;CAClB,CAAC;AA0BX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,0DAA0D;CAC7D,CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { RetryConfig } from "./retries.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* Contains the list of servers available to the SDK
|
|
6
6
|
*/
|
|
7
|
-
export declare const ServerList: readonly ["https://api.crevio.localhost/
|
|
7
|
+
export declare const ServerList: readonly ["https://api.crevio.localhost/v1", "https://api.crevio.co/v1"];
|
|
8
8
|
export type SDKOptions = {
|
|
9
9
|
apiKeyAuth?: string | (() => Promise<string>) | undefined;
|
|
10
10
|
httpClient?: HTTPClient;
|
|
@@ -30,9 +30,9 @@ export type SDKOptions = {
|
|
|
30
30
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
|
-
readonly openapiDocVersion: "
|
|
34
|
-
readonly sdkVersion: "0.2.
|
|
33
|
+
readonly openapiDocVersion: "0.2.1";
|
|
34
|
+
readonly sdkVersion: "0.2.5";
|
|
35
35
|
readonly genVersion: "2.767.2";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.2.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.2.5 2.767.2 0.2.1 @crevio/sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,0EASb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAE1D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAepE;AAED,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC"}
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -9,11 +9,11 @@ export const ServerList = [
|
|
|
9
9
|
/**
|
|
10
10
|
* Local development server
|
|
11
11
|
*/
|
|
12
|
-
"https://api.crevio.localhost/
|
|
12
|
+
"https://api.crevio.localhost/v1",
|
|
13
13
|
/**
|
|
14
14
|
* Production server
|
|
15
15
|
*/
|
|
16
|
-
"https://api.crevio.co/
|
|
16
|
+
"https://api.crevio.co/v1",
|
|
17
17
|
];
|
|
18
18
|
export function serverURLFromOptions(options) {
|
|
19
19
|
let serverURL = options.serverURL;
|
|
@@ -30,9 +30,9 @@ export function serverURLFromOptions(options) {
|
|
|
30
30
|
}
|
|
31
31
|
export const SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
|
-
openapiDocVersion: "
|
|
34
|
-
sdkVersion: "0.2.
|
|
33
|
+
openapiDocVersion: "0.2.1",
|
|
34
|
+
sdkVersion: "0.2.5",
|
|
35
35
|
genVersion: "2.767.2",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.2.5 2.767.2 0.2.1 @crevio/sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAU,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAU,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB;;OAEG;IACH,iCAAiC;IACjC;;OAEG;IACH,0BAA0B;CAClB,CAAC;AA0BX,MAAM,UAAU,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,OAAO;IACnB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,0DAA0D;CAC7D,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crevio/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"author": "Speakeasy",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"tshy": {
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
24
24
|
"build": "tshy",
|
|
25
|
-
"prepublishOnly": "npm run build"
|
|
25
|
+
"prepublishOnly": "npm run build",
|
|
26
|
+
"prebuild": "rm -rf .tshy-build .tshy && find . -name '.DS_Store' -type f -delete 2>/dev/null || true"
|
|
26
27
|
},
|
|
27
28
|
"peerDependencies": {},
|
|
28
29
|
"devDependencies": {
|
package/src/lib/config.ts
CHANGED
|
@@ -14,11 +14,11 @@ export const ServerList = [
|
|
|
14
14
|
/**
|
|
15
15
|
* Local development server
|
|
16
16
|
*/
|
|
17
|
-
"https://api.crevio.localhost/
|
|
17
|
+
"https://api.crevio.localhost/v1",
|
|
18
18
|
/**
|
|
19
19
|
* Production server
|
|
20
20
|
*/
|
|
21
|
-
"https://api.crevio.co/
|
|
21
|
+
"https://api.crevio.co/v1",
|
|
22
22
|
] as const;
|
|
23
23
|
|
|
24
24
|
export type SDKOptions = {
|
|
@@ -64,8 +64,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
64
64
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
|
-
openapiDocVersion: "
|
|
68
|
-
sdkVersion: "0.2.
|
|
67
|
+
openapiDocVersion: "0.2.1",
|
|
68
|
+
sdkVersion: "0.2.5",
|
|
69
69
|
genVersion: "2.767.2",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.2.5 2.767.2 0.2.1 @crevio/sdk",
|
|
71
71
|
} as const;
|