@roarkanalytics/sdk 9.3.0 → 9.5.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 +24 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-connection.d.mts +3 -1
- package/resources/agent-connection.d.mts.map +1 -1
- package/resources/agent-connection.d.ts +3 -1
- package/resources/agent-connection.d.ts.map +1 -1
- package/resources/agent-connection.js +3 -1
- package/resources/agent-connection.js.map +1 -1
- package/resources/agent-connection.mjs +3 -1
- package/resources/agent-connection.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/simulation-phone-number.d.mts +45 -0
- package/resources/simulation-phone-number.d.mts.map +1 -0
- package/resources/simulation-phone-number.d.ts +45 -0
- package/resources/simulation-phone-number.d.ts.map +1 -0
- package/resources/simulation-phone-number.js +24 -0
- package/resources/simulation-phone-number.js.map +1 -0
- package/resources/simulation-phone-number.mjs +20 -0
- package/resources/simulation-phone-number.mjs.map +1 -0
- package/src/client.ts +11 -0
- package/src/resources/agent-connection.ts +3 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/simulation-phone-number.ts +54 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAs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,yBAAqB;AACtB,OAAO,EAAE,mBAAmB,EAAwC,oCAAgC;AACpG,OAAO,EACL,qBAAqB,GAStB,qCAAiC;AAClC,OAAO,EACL,eAAe,GAUhB,+BAA2B;AAC5B,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,EAAE,qBAAqB,EAA0C,uCAAmC;AAC3G,OAAO,EACL,iBAAiB,GAQlB,iCAA6B;AAC9B,OAAO,EACL,kBAAkB,GAQnB,mCAA+B;AAChC,OAAO,EACL,iBAAiB,GASlB,kCAA8B;AAC/B,OAAO,EACL,oBAAoB,GAarB,sCAAkC;AACnC,OAAO,EAAE,kBAAkB,EAAuC,kCAA8B;AAChG,OAAO,EACL,qBAAqB,GAQtB,sCAAkC;AACnC,OAAO,EACL,IAAI,GASL,mBAAe;AAChB,OAAO,EAAE,KAAK,EAA8C,oBAAgB;AAC5E,OAAO,EACL,OAAO,GAOR,sBAAkB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAUN,oBAAgB;AACjB,OAAO,EACL,WAAW,GAUZ,2BAAuB;AACxB,OAAO,EACL,eAAe,GAiBhB,+BAA2B;AAC5B,OAAO,EACL,iBAAiB,GAGlB,iCAA6B;AAC9B,OAAO,EACL,UAAU,GASX,0BAAsB;AACvB,OAAO,EACL,aAAa,GAQd,6BAAyB;AAC1B,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EACL,YAAY,GAOb,4BAAwB;AACzB,OAAO,EACL,SAAS,GAIV,wBAAoB;AACrB,OAAO,EACL,cAAc,GAaf,8BAA0B;AAC3B,OAAO,EACL,SAAS,GAYV,wBAAoB;AACrB,OAAO,EACL,kBAAkB,GAwBnB,kCAA8B;AAC/B,OAAO,EACL,IAAI,GAmBL,mBAAe;AAChB,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EAAE,YAAY,EAA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AgB;AAC5E,OAAO,EACL,OAAO,GAOR,sBAAkB"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class SimulationPhoneNumber extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns every number Roark may place simulation calls to your agent from,
|
|
7
|
+
* ordered by number. Use it to allowlist simulation traffic or to tell it apart
|
|
8
|
+
* from real callers. The shared pool changes as Roark adds and retires numbers, so
|
|
9
|
+
* fetch the list again before you update an allowlist.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const simulationPhoneNumbers =
|
|
14
|
+
* await client.simulationPhoneNumber.list();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
list(options?: RequestOptions): APIPromise<SimulationPhoneNumberListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface SimulationPhoneNumberListResponse {
|
|
20
|
+
data: Array<SimulationPhoneNumberListResponse.Data>;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace SimulationPhoneNumberListResponse {
|
|
23
|
+
/**
|
|
24
|
+
* A number Roark may place simulation calls from
|
|
25
|
+
*/
|
|
26
|
+
interface Data {
|
|
27
|
+
/**
|
|
28
|
+
* The number in E.164 format
|
|
29
|
+
*/
|
|
30
|
+
e164: string;
|
|
31
|
+
/**
|
|
32
|
+
* ISO 3166-2 code of the region the number is from, when known
|
|
33
|
+
*/
|
|
34
|
+
localityCode: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* True when the number is reserved for this project: only personas that pin it
|
|
37
|
+
* call from it. False for the shared pool, which any simulation call may use.
|
|
38
|
+
*/
|
|
39
|
+
reservedForProject: boolean;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export declare namespace SimulationPhoneNumber {
|
|
43
|
+
export { type SimulationPhoneNumberListResponse as SimulationPhoneNumberListResponse };
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=simulation-phone-number.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulation-phone-number.d.mts","sourceRoot":"","sources":["../src/resources/simulation-phone-number.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iCAAiC,CAAC;CAG9E;AAED,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,KAAK,CAAC,iCAAiC,CAAC,IAAI,CAAC,CAAC;CACrD;AAED,yBAAiB,iCAAiC,CAAC;IACjD;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;;WAGG;QACH,kBAAkB,EAAE,OAAO,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EAAE,KAAK,iCAAiC,IAAI,iCAAiC,EAAE,CAAC;CACxF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class SimulationPhoneNumber extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns every number Roark may place simulation calls to your agent from,
|
|
7
|
+
* ordered by number. Use it to allowlist simulation traffic or to tell it apart
|
|
8
|
+
* from real callers. The shared pool changes as Roark adds and retires numbers, so
|
|
9
|
+
* fetch the list again before you update an allowlist.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const simulationPhoneNumbers =
|
|
14
|
+
* await client.simulationPhoneNumber.list();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
list(options?: RequestOptions): APIPromise<SimulationPhoneNumberListResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface SimulationPhoneNumberListResponse {
|
|
20
|
+
data: Array<SimulationPhoneNumberListResponse.Data>;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace SimulationPhoneNumberListResponse {
|
|
23
|
+
/**
|
|
24
|
+
* A number Roark may place simulation calls from
|
|
25
|
+
*/
|
|
26
|
+
interface Data {
|
|
27
|
+
/**
|
|
28
|
+
* The number in E.164 format
|
|
29
|
+
*/
|
|
30
|
+
e164: string;
|
|
31
|
+
/**
|
|
32
|
+
* ISO 3166-2 code of the region the number is from, when known
|
|
33
|
+
*/
|
|
34
|
+
localityCode: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* True when the number is reserved for this project: only personas that pin it
|
|
37
|
+
* call from it. False for the shared pool, which any simulation call may use.
|
|
38
|
+
*/
|
|
39
|
+
reservedForProject: boolean;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export declare namespace SimulationPhoneNumber {
|
|
43
|
+
export { type SimulationPhoneNumberListResponse as SimulationPhoneNumberListResponse };
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=simulation-phone-number.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulation-phone-number.d.ts","sourceRoot":"","sources":["../src/resources/simulation-phone-number.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iCAAiC,CAAC;CAG9E;AAED,MAAM,WAAW,iCAAiC;IAChD,IAAI,EAAE,KAAK,CAAC,iCAAiC,CAAC,IAAI,CAAC,CAAC;CACrD;AAED,yBAAiB,iCAAiC,CAAC;IACjD;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;;WAGG;QACH,kBAAkB,EAAE,OAAO,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,qBAAqB,CAAC;IAC7C,OAAO,EAAE,KAAK,iCAAiC,IAAI,iCAAiC,EAAE,CAAC;CACxF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SimulationPhoneNumber = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class SimulationPhoneNumber extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Returns every number Roark may place simulation calls to your agent from,
|
|
9
|
+
* ordered by number. Use it to allowlist simulation traffic or to tell it apart
|
|
10
|
+
* from real callers. The shared pool changes as Roark adds and retires numbers, so
|
|
11
|
+
* fetch the list again before you update an allowlist.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const simulationPhoneNumbers =
|
|
16
|
+
* await client.simulationPhoneNumber.list();
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(options) {
|
|
20
|
+
return this._client.get('/v1/simulation/phone-number', options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.SimulationPhoneNumber = SimulationPhoneNumber;
|
|
24
|
+
//# sourceMappingURL=simulation-phone-number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulation-phone-number.js","sourceRoot":"","sources":["../src/resources/simulation-phone-number.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF;AAhBD,sDAgBC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class SimulationPhoneNumber extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Returns every number Roark may place simulation calls to your agent from,
|
|
6
|
+
* ordered by number. Use it to allowlist simulation traffic or to tell it apart
|
|
7
|
+
* from real callers. The shared pool changes as Roark adds and retires numbers, so
|
|
8
|
+
* fetch the list again before you update an allowlist.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const simulationPhoneNumbers =
|
|
13
|
+
* await client.simulationPhoneNumber.list();
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
list(options) {
|
|
17
|
+
return this._client.get('/v1/simulation/phone-number', options);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=simulation-phone-number.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulation-phone-number.mjs","sourceRoot":"","sources":["../src/resources/simulation-phone-number.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -440,6 +440,10 @@ import {
|
|
|
440
440
|
SimulationPersonaUpdateParams,
|
|
441
441
|
SimulationPersonaUpdateResponse,
|
|
442
442
|
} from './resources/simulation-persona';
|
|
443
|
+
import {
|
|
444
|
+
SimulationPhoneNumber,
|
|
445
|
+
SimulationPhoneNumberListResponse,
|
|
446
|
+
} from './resources/simulation-phone-number';
|
|
443
447
|
import {
|
|
444
448
|
SimulationRunGroup,
|
|
445
449
|
SimulationRunGroupCreateParams,
|
|
@@ -1274,6 +1278,7 @@ export class Roark {
|
|
|
1274
1278
|
simulationJob: API.SimulationJob = new API.SimulationJob(this);
|
|
1275
1279
|
simulationJobToolMock: API.SimulationJobToolMock = new API.SimulationJobToolMock(this);
|
|
1276
1280
|
simulationAudioClip: API.SimulationAudioClip = new API.SimulationAudioClip(this);
|
|
1281
|
+
simulationPhoneNumber: API.SimulationPhoneNumber = new API.SimulationPhoneNumber(this);
|
|
1277
1282
|
simulationToolFixture: API.SimulationToolFixture = new API.SimulationToolFixture(this);
|
|
1278
1283
|
simulationGroup: API.SimulationGroup = new API.SimulationGroup(this);
|
|
1279
1284
|
simulationRunGroup: API.SimulationRunGroup = new API.SimulationRunGroup(this);
|
|
@@ -1322,6 +1327,7 @@ Roark.Simulation = Simulation;
|
|
|
1322
1327
|
Roark.SimulationJob = SimulationJob;
|
|
1323
1328
|
Roark.SimulationJobToolMock = SimulationJobToolMock;
|
|
1324
1329
|
Roark.SimulationAudioClip = SimulationAudioClip;
|
|
1330
|
+
Roark.SimulationPhoneNumber = SimulationPhoneNumber;
|
|
1325
1331
|
Roark.SimulationToolFixture = SimulationToolFixture;
|
|
1326
1332
|
Roark.SimulationGroup = SimulationGroup;
|
|
1327
1333
|
Roark.SimulationRunGroup = SimulationRunGroup;
|
|
@@ -1521,6 +1527,11 @@ export declare namespace Roark {
|
|
|
1521
1527
|
type SimulationAudioClipListResponse as SimulationAudioClipListResponse,
|
|
1522
1528
|
};
|
|
1523
1529
|
|
|
1530
|
+
export {
|
|
1531
|
+
SimulationPhoneNumber as SimulationPhoneNumber,
|
|
1532
|
+
type SimulationPhoneNumberListResponse as SimulationPhoneNumberListResponse,
|
|
1533
|
+
};
|
|
1534
|
+
|
|
1524
1535
|
export {
|
|
1525
1536
|
SimulationToolFixture as SimulationToolFixture,
|
|
1526
1537
|
type SimulationToolFixtureCreateResponse as SimulationToolFixtureCreateResponse,
|
|
@@ -142,7 +142,9 @@ export class AgentConnection extends APIResource {
|
|
|
142
142
|
/**
|
|
143
143
|
* Lists the agents a Retell, Vapi, ElevenLabs or Bland API key can see, without
|
|
144
144
|
* storing anything. Use it to check a key and to pick `agentIds` before
|
|
145
|
-
* connecting.
|
|
145
|
+
* connecting. Any failure returns 400: `invalid_credentials` when the platform
|
|
146
|
+
* refuses the key, `too_many_requests` when it rate limits the request, and
|
|
147
|
+
* `dependency_failure` when it returns an error.
|
|
146
148
|
*
|
|
147
149
|
* @example
|
|
148
150
|
* ```ts
|
package/src/resources/index.ts
CHANGED
|
@@ -420,6 +420,7 @@ export {
|
|
|
420
420
|
type SimulationPersonaUpdateParams,
|
|
421
421
|
type SimulationPersonaListParams,
|
|
422
422
|
} from './simulation-persona';
|
|
423
|
+
export { SimulationPhoneNumber, type SimulationPhoneNumberListResponse } from './simulation-phone-number';
|
|
423
424
|
export {
|
|
424
425
|
SimulationRunGroup,
|
|
425
426
|
type SimulationRunGroupCreateResponse,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class SimulationPhoneNumber extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns every number Roark may place simulation calls to your agent from,
|
|
10
|
+
* ordered by number. Use it to allowlist simulation traffic or to tell it apart
|
|
11
|
+
* from real callers. The shared pool changes as Roark adds and retires numbers, so
|
|
12
|
+
* fetch the list again before you update an allowlist.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const simulationPhoneNumbers =
|
|
17
|
+
* await client.simulationPhoneNumber.list();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
list(options?: RequestOptions): APIPromise<SimulationPhoneNumberListResponse> {
|
|
21
|
+
return this._client.get('/v1/simulation/phone-number', options);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface SimulationPhoneNumberListResponse {
|
|
26
|
+
data: Array<SimulationPhoneNumberListResponse.Data>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export namespace SimulationPhoneNumberListResponse {
|
|
30
|
+
/**
|
|
31
|
+
* A number Roark may place simulation calls from
|
|
32
|
+
*/
|
|
33
|
+
export interface Data {
|
|
34
|
+
/**
|
|
35
|
+
* The number in E.164 format
|
|
36
|
+
*/
|
|
37
|
+
e164: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* ISO 3166-2 code of the region the number is from, when known
|
|
41
|
+
*/
|
|
42
|
+
localityCode: string | null;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* True when the number is reserved for this project: only personas that pin it
|
|
46
|
+
* call from it. False for the shared pool, which any simulation call may use.
|
|
47
|
+
*/
|
|
48
|
+
reservedForProject: boolean;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export declare namespace SimulationPhoneNumber {
|
|
53
|
+
export { type SimulationPhoneNumberListResponse as SimulationPhoneNumberListResponse };
|
|
54
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '9.
|
|
1
|
+
export const VERSION = '9.5.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "9.
|
|
1
|
+
export declare const VERSION = "9.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "9.
|
|
1
|
+
export declare const VERSION = "9.5.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '9.
|
|
1
|
+
export const VERSION = '9.5.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|