@roarkanalytics/sdk 2.19.1 → 2.20.0
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/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/src/_shims/auto/runtime-bun.ts +1 -1
- package/src/_shims/auto/runtime-node.ts +1 -1
- package/src/_shims/auto/runtime.ts +1 -1
- package/src/_shims/auto/types-node.ts +1 -1
- package/src/_shims/bun-runtime.ts +2 -2
- package/src/_shims/index.d.ts +3 -3
- package/src/_shims/index.mjs +1 -1
- package/src/_shims/node-runtime.ts +3 -3
- package/src/_shims/registry.ts +1 -1
- package/src/_shims/web-runtime.ts +3 -3
- package/src/core.ts +5 -5
- package/src/error.ts +1 -1
- package/src/index.ts +15 -15
- package/src/internal/qs/formats.ts +1 -1
- package/src/internal/qs/index.ts +3 -3
- package/src/internal/qs/stringify.ts +3 -3
- package/src/internal/qs/utils.ts +2 -2
- package/src/resource.ts +1 -1
- package/src/resources/call.ts +3 -3
- package/src/resources/evaluation.ts +3 -3
- package/src/resources/health.ts +2 -2
- package/src/resources/index.ts +7 -7
- package/src/resources/integrations.ts +2 -2
- package/src/resources/metric.ts +2 -2
- package/src/resources/persona.ts +3 -3
- package/src/resources/simulation.ts +3 -3
- package/src/resources.ts +1 -1
- package/src/shims/node.ts +3 -3
- package/src/shims/web.ts +3 -3
- package/src/uploads.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.20.0 (2026-02-10)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v2.19.1...v2.20.0](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v2.19.1...v2.20.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([af5bc43](https://github.com/roarkhq/sdk-roark-analytics-node/commit/af5bc43133f9342ae7487f64af41f75c39d9dd32))
|
|
10
|
+
* **api:** api update ([530d7da](https://github.com/roarkhq/sdk-roark-analytics-node/commit/530d7da85e57cc00a73670c8ac09ffba9b3d7d7f))
|
|
11
|
+
|
|
3
12
|
## 2.19.1 (2026-02-10)
|
|
4
13
|
|
|
5
14
|
Full Changelog: [v2.19.0...v2.19.1](https://github.com/roarkhq/sdk-roark-analytics-node/compare/v2.19.0...v2.19.1)
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
import { type Shims } from
|
|
5
|
-
import { getRuntime as getWebRuntime } from
|
|
4
|
+
import { type Shims } from './registry';
|
|
5
|
+
import { getRuntime as getWebRuntime } from './web-runtime';
|
|
6
6
|
import { ReadStream as FsReadStream } from 'node:fs';
|
|
7
7
|
|
|
8
8
|
export function getRuntime(): Shims {
|
package/src/_shims/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
import { manual } from
|
|
5
|
-
import * as auto from "./auto/types
|
|
6
|
-
import { type RequestOptions } from
|
|
4
|
+
import { manual } from './manual-types';
|
|
5
|
+
import * as auto from "./auto/types";
|
|
6
|
+
import { type RequestOptions } from '../core';
|
|
7
7
|
|
|
8
8
|
type SelectType<Manual, Auto> = unknown extends Manual ? Auto : Manual;
|
|
9
9
|
|
package/src/_shims/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
4
|
import * as shims from './registry.mjs';
|
|
5
|
-
import * as auto from "./auto/runtime
|
|
5
|
+
import * as auto from "./auto/runtime";
|
|
6
6
|
export const init = () => {
|
|
7
7
|
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
|
|
8
8
|
};
|
|
@@ -10,9 +10,9 @@ import { ReadStream as FsReadStream } from 'node:fs';
|
|
|
10
10
|
import { type Agent } from 'node:http';
|
|
11
11
|
import { FormDataEncoder } from 'form-data-encoder';
|
|
12
12
|
import { Readable } from 'node:stream';
|
|
13
|
-
import { type RequestOptions } from
|
|
14
|
-
import { MultipartBody } from
|
|
15
|
-
import { type Shims } from
|
|
13
|
+
import { type RequestOptions } from '../core';
|
|
14
|
+
import { MultipartBody } from './MultipartBody';
|
|
15
|
+
import { type Shims } from './registry';
|
|
16
16
|
import { ReadableStream } from 'node:stream/web';
|
|
17
17
|
|
|
18
18
|
type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'>;
|
package/src/_shims/registry.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
import { MultipartBody } from
|
|
5
|
-
import { type RequestOptions } from
|
|
6
|
-
import { type Shims } from
|
|
4
|
+
import { MultipartBody } from './MultipartBody';
|
|
5
|
+
import { type RequestOptions } from '../core';
|
|
6
|
+
import { type Shims } from './registry';
|
|
7
7
|
|
|
8
8
|
export function getRuntime({ manuallyImported }: { manuallyImported?: boolean } = {}): Shims {
|
|
9
9
|
const recommendation =
|
package/src/core.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { VERSION } from
|
|
1
|
+
import { VERSION } from './version';
|
|
2
2
|
import {
|
|
3
3
|
RoarkError,
|
|
4
4
|
APIError,
|
|
5
5
|
APIConnectionError,
|
|
6
6
|
APIConnectionTimeoutError,
|
|
7
7
|
APIUserAbortError,
|
|
8
|
-
} from
|
|
8
|
+
} from './error';
|
|
9
9
|
import {
|
|
10
10
|
kind as shimsKind,
|
|
11
11
|
type Readable,
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
type Response,
|
|
18
18
|
type HeadersInit,
|
|
19
19
|
init,
|
|
20
|
-
} from
|
|
20
|
+
} from './_shims/index';
|
|
21
21
|
|
|
22
22
|
// try running side effects outside of _shims/index to workaround https://github.com/vercel/next.js/issues/76881
|
|
23
23
|
init();
|
|
24
24
|
|
|
25
25
|
export { type Response };
|
|
26
|
-
import { BlobLike, isBlobLike, isMultipartBody } from
|
|
26
|
+
import { BlobLike, isBlobLike, isMultipartBody } from './uploads';
|
|
27
27
|
export {
|
|
28
28
|
maybeMultipartFormRequestOptions,
|
|
29
29
|
multipartFormRequestOptions,
|
|
30
30
|
createForm,
|
|
31
31
|
type Uploadable,
|
|
32
|
-
} from
|
|
32
|
+
} from './uploads';
|
|
33
33
|
|
|
34
34
|
export type Fetch = (url: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
35
35
|
|
package/src/error.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { type Agent } from
|
|
4
|
-
import * as qs from
|
|
5
|
-
import * as Core from
|
|
6
|
-
import * as Errors from
|
|
7
|
-
import * as Uploads from
|
|
8
|
-
import * as API from
|
|
3
|
+
import { type Agent } from './_shims/index';
|
|
4
|
+
import * as qs from './internal/qs';
|
|
5
|
+
import * as Core from './core';
|
|
6
|
+
import * as Errors from './error';
|
|
7
|
+
import * as Uploads from './uploads';
|
|
8
|
+
import * as API from './resources/index';
|
|
9
9
|
import {
|
|
10
10
|
Call,
|
|
11
11
|
CallCreateParams,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
CallListParams,
|
|
18
18
|
CallListResponse,
|
|
19
19
|
CallListSentimentRunsResponse,
|
|
20
|
-
} from
|
|
20
|
+
} from './resources/call';
|
|
21
21
|
import {
|
|
22
22
|
Evaluation,
|
|
23
23
|
EvaluationCreateJobParams,
|
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
EvaluationListEvaluatorsResponse,
|
|
29
29
|
EvaluationListJobRunsParams,
|
|
30
30
|
EvaluationListJobRunsResponse,
|
|
31
|
-
} from
|
|
32
|
-
import { Health, HealthGetResponse } from
|
|
31
|
+
} from './resources/evaluation';
|
|
32
|
+
import { Health, HealthGetResponse } from './resources/health';
|
|
33
33
|
import {
|
|
34
34
|
IntegrationCreateRetellCallParams,
|
|
35
35
|
IntegrationCreateRetellCallResponse,
|
|
36
36
|
IntegrationCreateVapiCallParams,
|
|
37
37
|
IntegrationCreateVapiCallResponse,
|
|
38
38
|
Integrations,
|
|
39
|
-
} from
|
|
40
|
-
import { Metric, MetricListDefinitionsResponse } from
|
|
39
|
+
} from './resources/integrations';
|
|
40
|
+
import { Metric, MetricListDefinitionsResponse } from './resources/metric';
|
|
41
41
|
import {
|
|
42
42
|
Persona,
|
|
43
43
|
PersonaCreateParams,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
PersonaListResponse,
|
|
48
48
|
PersonaUpdateParams,
|
|
49
49
|
PersonaUpdateResponse,
|
|
50
|
-
} from
|
|
50
|
+
} from './resources/persona';
|
|
51
51
|
import {
|
|
52
52
|
Simulation,
|
|
53
53
|
SimulationGetRunPlanJobResponse,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
SimulationLookupSimulationJobParams,
|
|
60
60
|
SimulationLookupSimulationJobResponse,
|
|
61
61
|
SimulationStartRunPlanJobResponse,
|
|
62
|
-
} from
|
|
62
|
+
} from './resources/simulation';
|
|
63
63
|
|
|
64
64
|
export interface ClientOptions {
|
|
65
65
|
/**
|
|
@@ -305,7 +305,7 @@ export declare namespace Roark {
|
|
|
305
305
|
};
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
export { toFile, fileFromPath } from
|
|
308
|
+
export { toFile, fileFromPath } from './uploads';
|
|
309
309
|
export {
|
|
310
310
|
RoarkError,
|
|
311
311
|
APIError,
|
|
@@ -320,6 +320,6 @@ export {
|
|
|
320
320
|
InternalServerError,
|
|
321
321
|
PermissionDeniedError,
|
|
322
322
|
UnprocessableEntityError,
|
|
323
|
-
} from
|
|
323
|
+
} from './error';
|
|
324
324
|
|
|
325
325
|
export default Roark;
|
package/src/internal/qs/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default_format, formatters, RFC1738, RFC3986 } from
|
|
1
|
+
import { default_format, formatters, RFC1738, RFC3986 } from './formats';
|
|
2
2
|
|
|
3
3
|
const formats = {
|
|
4
4
|
formatters,
|
|
@@ -7,7 +7,7 @@ const formats = {
|
|
|
7
7
|
default: default_format,
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
export { stringify } from
|
|
10
|
+
export { stringify } from './stringify';
|
|
11
11
|
export { formats };
|
|
12
12
|
|
|
13
|
-
export type { DefaultDecoder, DefaultEncoder, Format, ParseOptions, StringifyOptions } from
|
|
13
|
+
export type { DefaultDecoder, DefaultEncoder, Format, ParseOptions, StringifyOptions } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { encode, is_buffer, maybe_map } from
|
|
2
|
-
import { default_format, formatters } from
|
|
3
|
-
import type { NonNullableProperties, StringifyOptions } from
|
|
1
|
+
import { encode, is_buffer, maybe_map } from './utils';
|
|
2
|
+
import { default_format, formatters } from './formats';
|
|
3
|
+
import type { NonNullableProperties, StringifyOptions } from './types';
|
|
4
4
|
|
|
5
5
|
const has = Object.prototype.hasOwnProperty;
|
|
6
6
|
|
package/src/internal/qs/utils.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RFC1738 } from
|
|
2
|
-
import type { DefaultEncoder, Format } from
|
|
1
|
+
import { RFC1738 } from './formats';
|
|
2
|
+
import type { DefaultEncoder, Format } from './types';
|
|
3
3
|
|
|
4
4
|
const has = Object.prototype.hasOwnProperty;
|
|
5
5
|
const is_array = Array.isArray;
|
package/src/resource.ts
CHANGED
package/src/resources/call.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
5
|
+
import * as Core from '../core';
|
|
6
6
|
|
|
7
7
|
export class Call extends APIResource {
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
5
|
+
import * as Core from '../core';
|
|
6
6
|
|
|
7
7
|
export class Evaluation extends APIResource {
|
|
8
8
|
/**
|
package/src/resources/health.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as Core from
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
5
|
|
|
6
6
|
export class Health extends APIResource {
|
|
7
7
|
/**
|
package/src/resources/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ export {
|
|
|
11
11
|
type CallCreateParams,
|
|
12
12
|
type CallListParams,
|
|
13
13
|
type CallListMetricsParams,
|
|
14
|
-
} from
|
|
14
|
+
} from './call';
|
|
15
15
|
export {
|
|
16
16
|
Evaluation,
|
|
17
17
|
type EvaluationCreateJobResponse,
|
|
@@ -22,16 +22,16 @@ export {
|
|
|
22
22
|
type EvaluationCreateJobParams,
|
|
23
23
|
type EvaluationListEvaluatorsParams,
|
|
24
24
|
type EvaluationListJobRunsParams,
|
|
25
|
-
} from
|
|
26
|
-
export { Health, type HealthGetResponse } from
|
|
25
|
+
} from './evaluation';
|
|
26
|
+
export { Health, type HealthGetResponse } from './health';
|
|
27
27
|
export {
|
|
28
28
|
Integrations,
|
|
29
29
|
type IntegrationCreateRetellCallResponse,
|
|
30
30
|
type IntegrationCreateVapiCallResponse,
|
|
31
31
|
type IntegrationCreateRetellCallParams,
|
|
32
32
|
type IntegrationCreateVapiCallParams,
|
|
33
|
-
} from
|
|
34
|
-
export { Metric, type MetricListDefinitionsResponse } from
|
|
33
|
+
} from './integrations';
|
|
34
|
+
export { Metric, type MetricListDefinitionsResponse } from './metric';
|
|
35
35
|
export {
|
|
36
36
|
Persona,
|
|
37
37
|
type PersonaCreateResponse,
|
|
@@ -41,7 +41,7 @@ export {
|
|
|
41
41
|
type PersonaCreateParams,
|
|
42
42
|
type PersonaUpdateParams,
|
|
43
43
|
type PersonaListParams,
|
|
44
|
-
} from
|
|
44
|
+
} from './persona';
|
|
45
45
|
export {
|
|
46
46
|
Simulation,
|
|
47
47
|
type SimulationGetRunPlanJobResponse,
|
|
@@ -53,4 +53,4 @@ export {
|
|
|
53
53
|
type SimulationListRunPlanJobsParams,
|
|
54
54
|
type SimulationListScenariosParams,
|
|
55
55
|
type SimulationLookupSimulationJobParams,
|
|
56
|
-
} from
|
|
56
|
+
} from './simulation';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as Core from
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
5
|
|
|
6
6
|
export class Integrations extends APIResource {
|
|
7
7
|
/**
|
package/src/resources/metric.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import * as Core from
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
5
|
|
|
6
6
|
export class Metric extends APIResource {
|
|
7
7
|
/**
|
package/src/resources/persona.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
5
|
+
import * as Core from '../core';
|
|
6
6
|
|
|
7
7
|
export class Persona extends APIResource {
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from
|
|
4
|
-
import { isRequestOptions } from
|
|
5
|
-
import * as Core from
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import { isRequestOptions } from '../core';
|
|
5
|
+
import * as Core from '../core';
|
|
6
6
|
|
|
7
7
|
export class Simulation extends APIResource {
|
|
8
8
|
/**
|
package/src/resources.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './resources/index';
|
package/src/shims/node.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
|
-
import * as types from
|
|
3
|
-
import { setShims } from
|
|
4
|
-
import { getRuntime } from
|
|
2
|
+
import * as types from '../_shims/node-types';
|
|
3
|
+
import { setShims } from '../_shims/registry';
|
|
4
|
+
import { getRuntime } from '../_shims/node-runtime';
|
|
5
5
|
setShims(getRuntime());
|
|
6
6
|
|
|
7
7
|
declare module '../_shims/manual-types' {
|
package/src/shims/web.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
|
-
import * as types from
|
|
3
|
-
import { setShims } from
|
|
4
|
-
import { getRuntime } from
|
|
2
|
+
import * as types from '../_shims/web-types';
|
|
3
|
+
import { setShims } from '../_shims/registry';
|
|
4
|
+
import { getRuntime } from '../_shims/web-runtime';
|
|
5
5
|
setShims(getRuntime({ manuallyImported: true }));
|
|
6
6
|
|
|
7
7
|
declare module '../_shims/manual-types' {
|
package/src/uploads.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type RequestOptions } from
|
|
1
|
+
import { type RequestOptions } from './core';
|
|
2
2
|
import {
|
|
3
3
|
FormData,
|
|
4
4
|
File,
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
getMultipartRequestOptions,
|
|
8
8
|
type FsReadStream,
|
|
9
9
|
isFsReadStream,
|
|
10
|
-
} from
|
|
11
|
-
import { MultipartBody } from
|
|
12
|
-
export { fileFromPath } from
|
|
10
|
+
} from './_shims/index';
|
|
11
|
+
import { MultipartBody } from './_shims/MultipartBody';
|
|
12
|
+
export { fileFromPath } from './_shims/index';
|
|
13
13
|
|
|
14
14
|
type BlobLikePart = string | ArrayBuffer | ArrayBufferView | BlobLike | Uint8Array | DataView;
|
|
15
15
|
export type BlobPart = string | ArrayBuffer | ArrayBufferView | Blob | Uint8Array | DataView;
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.20.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "2.
|
|
1
|
+
export declare const VERSION = "2.20.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '2.
|
|
1
|
+
export const VERSION = '2.20.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|