@onkernel/sdk 0.98.0 → 0.100.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 +15 -0
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- 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/browser-pools.d.mts +9 -0
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +9 -0
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +49 -1
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +49 -1
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/config-registry/config-registry.d.mts +14 -11
- package/resources/config-registry/config-registry.d.mts.map +1 -1
- package/resources/config-registry/config-registry.d.ts +14 -11
- package/resources/config-registry/config-registry.d.ts.map +1 -1
- package/resources/config-registry/config-registry.js +2 -2
- package/resources/config-registry/config-registry.js.map +1 -1
- package/resources/config-registry/config-registry.mjs +2 -2
- package/resources/config-registry/config-registry.mjs.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- 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/invocations.d.mts +9 -0
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +9 -0
- package/resources/invocations.d.ts.map +1 -1
- package/resources/telemetry/destinations.d.mts +23 -0
- package/resources/telemetry/destinations.d.mts.map +1 -1
- package/resources/telemetry/destinations.d.ts +23 -0
- package/resources/telemetry/destinations.d.ts.map +1 -1
- package/resources/vaults/index.d.mts +3 -0
- package/resources/vaults/index.d.mts.map +1 -0
- package/resources/vaults/index.d.ts +3 -0
- package/resources/vaults/index.d.ts.map +1 -0
- package/resources/vaults/index.js +9 -0
- package/resources/vaults/index.js.map +1 -0
- package/resources/vaults/index.mjs +4 -0
- package/resources/vaults/index.mjs.map +1 -0
- package/resources/vaults/items.d.mts +529 -0
- package/resources/vaults/items.d.mts.map +1 -0
- package/resources/vaults/items.d.ts +529 -0
- package/resources/vaults/items.d.ts.map +1 -0
- package/resources/vaults/items.js +70 -0
- package/resources/vaults/items.js.map +1 -0
- package/resources/vaults/items.mjs +66 -0
- package/resources/vaults/items.mjs.map +1 -0
- package/resources/vaults/vaults.d.mts +48 -0
- package/resources/vaults/vaults.d.mts.map +1 -0
- package/resources/vaults/vaults.d.ts +48 -0
- package/resources/vaults/vaults.d.ts.map +1 -0
- package/resources/vaults/vaults.js +47 -0
- package/resources/vaults/vaults.js.map +1 -0
- package/resources/vaults/vaults.mjs +42 -0
- package/resources/vaults/vaults.mjs.map +1 -0
- package/resources/vaults.d.mts +2 -0
- package/resources/vaults.d.mts.map +1 -0
- package/resources/vaults.d.ts +2 -0
- package/resources/vaults.d.ts.map +1 -0
- package/resources/vaults.js +6 -0
- package/resources/vaults.js.map +1 -0
- package/resources/vaults.mjs +3 -0
- package/resources/vaults.mjs.map +1 -0
- package/src/client.ts +19 -0
- package/src/resources/browser-pools.ts +11 -0
- package/src/resources/browsers/browsers.ts +60 -0
- package/src/resources/browsers/index.ts +1 -0
- package/src/resources/config-registry/config-registry.ts +14 -11
- package/src/resources/index.ts +8 -0
- package/src/resources/invocations.ts +11 -0
- package/src/resources/telemetry/destinations.ts +27 -0
- package/src/resources/vaults/index.ts +30 -0
- package/src/resources/vaults/items.ts +774 -0
- package/src/resources/vaults/vaults.ts +125 -0
- package/src/resources/vaults.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"items.mjs","sourceRoot":"","sources":["../../src/resources/vaults/items.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;OAMG;IACH,QAAQ,CAAC,GAAW,EAAE,MAA0B,EAAE,OAAwB;QACxE,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,UAAU,UAAU,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,GAAW,EAAE,MAAwB,EAAE,OAAwB;QACpE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,WAAW,UAAU,UAAU,GAAG,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,QAAgB,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,QAAQ,QAA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C,CAAC;IAC1F,CAAC;CACF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as ItemsAPI from "./items.mjs";
|
|
3
|
+
import { AgentcardCheckoutAuthorization, CardVaultItemSpec, CardVaultItemState, ItemDeleteParams, ItemEventsParams, ItemEventsResponse, ItemListResponse, ItemPerformOperationParams, ItemRetrieveParams, ItemUpdateParams, ItemUpsertParams, Items, VaultCardAliases, VaultItem, VaultItemAction, VaultItemEvent, VaultPaymentMethod, WalletVaultItemSpec, WalletVaultItemState } from "./items.mjs";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
7
|
+
export declare class Vaults extends APIResource {
|
|
8
|
+
items: ItemsAPI.Items;
|
|
9
|
+
/**
|
|
10
|
+
* Get a vault
|
|
11
|
+
*/
|
|
12
|
+
retrieve(idOrName: string, options?: RequestOptions): APIPromise<Vault>;
|
|
13
|
+
/**
|
|
14
|
+
* List vaults in the current project
|
|
15
|
+
*/
|
|
16
|
+
list(query?: VaultListParams | null | undefined, options?: RequestOptions): PagePromise<VaultsOffsetPagination, Vault>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete a vault and invalidate its items
|
|
19
|
+
*/
|
|
20
|
+
delete(idOrName: string, options?: RequestOptions): APIPromise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Create or retrieve a vault by immutable name
|
|
23
|
+
*/
|
|
24
|
+
upsert(body: VaultUpsertParams, options?: RequestOptions): APIPromise<Vault>;
|
|
25
|
+
}
|
|
26
|
+
export type VaultsOffsetPagination = OffsetPagination<Vault>;
|
|
27
|
+
export interface Vault {
|
|
28
|
+
id: string;
|
|
29
|
+
created_at: string;
|
|
30
|
+
/**
|
|
31
|
+
* Immutable name assigned when the vault is created.
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
updated_at: string;
|
|
35
|
+
}
|
|
36
|
+
export interface VaultListParams extends OffsetPaginationParams {
|
|
37
|
+
}
|
|
38
|
+
export interface VaultUpsertParams {
|
|
39
|
+
/**
|
|
40
|
+
* Immutable name used to create or retrieve the vault.
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace Vaults {
|
|
45
|
+
export { type Vault as Vault, type VaultsOffsetPagination as VaultsOffsetPagination, type VaultListParams as VaultListParams, type VaultUpsertParams as VaultUpsertParams, };
|
|
46
|
+
export { Items as Items, type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization, type CardVaultItemSpec as CardVaultItemSpec, type CardVaultItemState as CardVaultItemState, type VaultCardAliases as VaultCardAliases, type VaultItem as VaultItem, type VaultItemAction as VaultItemAction, type VaultItemEvent as VaultItemEvent, type VaultPaymentMethod as VaultPaymentMethod, type WalletVaultItemSpec as WalletVaultItemSpec, type WalletVaultItemState as WalletVaultItemState, type ItemListResponse as ItemListResponse, type ItemEventsResponse as ItemEventsResponse, type ItemRetrieveParams as ItemRetrieveParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, type ItemEventsParams as ItemEventsParams, type ItemPerformOperationParams as ItemPerformOperationParams, type ItemUpsertParams as ItemUpsertParams, };
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=vaults.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaults.d.mts","sourceRoot":"","sources":["../../src/resources/vaults/vaults.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EACL,8BAA8B,EAC9B,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,0BAA0B,EAC1B,kBAAkB,EAClB,g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,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as ItemsAPI from "./items.js";
|
|
3
|
+
import { AgentcardCheckoutAuthorization, CardVaultItemSpec, CardVaultItemState, ItemDeleteParams, ItemEventsParams, ItemEventsResponse, ItemListResponse, ItemPerformOperationParams, ItemRetrieveParams, ItemUpdateParams, ItemUpsertParams, Items, VaultCardAliases, VaultItem, VaultItemAction, VaultItemEvent, VaultPaymentMethod, WalletVaultItemSpec, WalletVaultItemState } from "./items.js";
|
|
4
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
5
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
6
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
7
|
+
export declare class Vaults extends APIResource {
|
|
8
|
+
items: ItemsAPI.Items;
|
|
9
|
+
/**
|
|
10
|
+
* Get a vault
|
|
11
|
+
*/
|
|
12
|
+
retrieve(idOrName: string, options?: RequestOptions): APIPromise<Vault>;
|
|
13
|
+
/**
|
|
14
|
+
* List vaults in the current project
|
|
15
|
+
*/
|
|
16
|
+
list(query?: VaultListParams | null | undefined, options?: RequestOptions): PagePromise<VaultsOffsetPagination, Vault>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete a vault and invalidate its items
|
|
19
|
+
*/
|
|
20
|
+
delete(idOrName: string, options?: RequestOptions): APIPromise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Create or retrieve a vault by immutable name
|
|
23
|
+
*/
|
|
24
|
+
upsert(body: VaultUpsertParams, options?: RequestOptions): APIPromise<Vault>;
|
|
25
|
+
}
|
|
26
|
+
export type VaultsOffsetPagination = OffsetPagination<Vault>;
|
|
27
|
+
export interface Vault {
|
|
28
|
+
id: string;
|
|
29
|
+
created_at: string;
|
|
30
|
+
/**
|
|
31
|
+
* Immutable name assigned when the vault is created.
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
updated_at: string;
|
|
35
|
+
}
|
|
36
|
+
export interface VaultListParams extends OffsetPaginationParams {
|
|
37
|
+
}
|
|
38
|
+
export interface VaultUpsertParams {
|
|
39
|
+
/**
|
|
40
|
+
* Immutable name used to create or retrieve the vault.
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
}
|
|
44
|
+
export declare namespace Vaults {
|
|
45
|
+
export { type Vault as Vault, type VaultsOffsetPagination as VaultsOffsetPagination, type VaultListParams as VaultListParams, type VaultUpsertParams as VaultUpsertParams, };
|
|
46
|
+
export { Items as Items, type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization, type CardVaultItemSpec as CardVaultItemSpec, type CardVaultItemState as CardVaultItemState, type VaultCardAliases as VaultCardAliases, type VaultItem as VaultItem, type VaultItemAction as VaultItemAction, type VaultItemEvent as VaultItemEvent, type VaultPaymentMethod as VaultPaymentMethod, type WalletVaultItemSpec as WalletVaultItemSpec, type WalletVaultItemState as WalletVaultItemState, type ItemListResponse as ItemListResponse, type ItemEventsResponse as ItemEventsResponse, type ItemRetrieveParams as ItemRetrieveParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, type ItemEventsParams as ItemEventsParams, type ItemPerformOperationParams as ItemPerformOperationParams, type ItemUpsertParams as ItemUpsertParams, };
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=vaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaults.d.ts","sourceRoot":"","sources":["../../src/resources/vaults/vaults.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EACL,8BAA8B,EAC9B,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,EACL,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACrB,mBAAgB;AACjB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE,iCAA8B;AAEnG,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,MAAO,SAAQ,WAAW;IACrC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO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cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.Vaults = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const ItemsAPI = tslib_1.__importStar(require("./items.js"));
|
|
8
|
+
const items_1 = require("./items.js");
|
|
9
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
10
|
+
const headers_1 = require("../../internal/headers.js");
|
|
11
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
12
|
+
class Vaults extends resource_1.APIResource {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.items = new ItemsAPI.Items(this._client);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Get a vault
|
|
19
|
+
*/
|
|
20
|
+
retrieve(idOrName, options) {
|
|
21
|
+
return this._client.get((0, path_1.path) `/vaults/${idOrName}`, options);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* List vaults in the current project
|
|
25
|
+
*/
|
|
26
|
+
list(query = {}, options) {
|
|
27
|
+
return this._client.getAPIList('/vaults', (pagination_1.OffsetPagination), { query, ...options });
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Delete a vault and invalidate its items
|
|
31
|
+
*/
|
|
32
|
+
delete(idOrName, options) {
|
|
33
|
+
return this._client.delete((0, path_1.path) `/vaults/${idOrName}`, {
|
|
34
|
+
...options,
|
|
35
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Create or retrieve a vault by immutable name
|
|
40
|
+
*/
|
|
41
|
+
upsert(body, options) {
|
|
42
|
+
return this._client.post('/vaults', { body, ...options });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.Vaults = Vaults;
|
|
46
|
+
Vaults.Items = items_1.Items;
|
|
47
|
+
//# sourceMappingURL=vaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaults.js","sourceRoot":"","sources":["../../src/resources/vaults/vaults.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAoBiB;AAEjB,yDAAmG;AACnG,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmC3D,CAAC;IAjCC;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,6BAAuB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,QAAQ,EAAE,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF;AApCD,wBAoCC;AA0BD,MAAM,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as ItemsAPI from "./items.mjs";
|
|
4
|
+
import { Items, } from "./items.mjs";
|
|
5
|
+
import { OffsetPagination } from "../../core/pagination.mjs";
|
|
6
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
7
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
8
|
+
export class Vaults extends APIResource {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.items = new ItemsAPI.Items(this._client);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Get a vault
|
|
15
|
+
*/
|
|
16
|
+
retrieve(idOrName, options) {
|
|
17
|
+
return this._client.get(path `/vaults/${idOrName}`, options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* List vaults in the current project
|
|
21
|
+
*/
|
|
22
|
+
list(query = {}, options) {
|
|
23
|
+
return this._client.getAPIList('/vaults', (OffsetPagination), { query, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Delete a vault and invalidate its items
|
|
27
|
+
*/
|
|
28
|
+
delete(idOrName, options) {
|
|
29
|
+
return this._client.delete(path `/vaults/${idOrName}`, {
|
|
30
|
+
...options,
|
|
31
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Create or retrieve a vault by immutable name
|
|
36
|
+
*/
|
|
37
|
+
upsert(body, options) {
|
|
38
|
+
return this._client.post('/vaults', { body, ...options });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
Vaults.Items = Items;
|
|
42
|
+
//# sourceMappingURL=vaults.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaults.mjs","sourceRoot":"","sources":["../../src/resources/vaults/vaults.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAYL,KAAK,GAQN,oBAAgB;AAEjB,OAAO,EAAE,gBAAgB,EAA4C,kCAA8B;AACnG,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAmC3D,CAAC;IAjCC;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,gBAAuB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,QAAQ,EAAE,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF;AA0BD,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaults.d.mts","sourceRoot":"","sources":["../src/resources/vaults.ts"],"names":[],"mappings":"AAEA,mCAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaults.d.ts","sourceRoot":"","sources":["../src/resources/vaults.ts"],"names":[],"mappings":"AAEA,kCAA+B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./vaults/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=vaults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaults.js","sourceRoot":"","sources":["../src/resources/vaults.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vaults.mjs","sourceRoot":"","sources":["../src/resources/vaults.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,mCAA+B"}
|
package/src/client.ts
CHANGED
|
@@ -168,6 +168,7 @@ import {
|
|
|
168
168
|
Browsers,
|
|
169
169
|
Profile,
|
|
170
170
|
Tags,
|
|
171
|
+
VaultReference,
|
|
171
172
|
} from './resources/browsers/browsers';
|
|
172
173
|
import {
|
|
173
174
|
Analysis,
|
|
@@ -202,6 +203,13 @@ import {
|
|
|
202
203
|
UpdateProjectRequest,
|
|
203
204
|
} from './resources/projects/projects';
|
|
204
205
|
import { Telemetry } from './resources/telemetry/telemetry';
|
|
206
|
+
import {
|
|
207
|
+
Vault,
|
|
208
|
+
VaultListParams,
|
|
209
|
+
VaultUpsertParams,
|
|
210
|
+
Vaults,
|
|
211
|
+
VaultsOffsetPagination,
|
|
212
|
+
} from './resources/vaults/vaults';
|
|
205
213
|
import { type Fetch } from './internal/builtin-types';
|
|
206
214
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
207
215
|
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
@@ -1059,6 +1067,7 @@ export class Kernel {
|
|
|
1059
1067
|
* Create and manage browser pools for acquiring and releasing browsers.
|
|
1060
1068
|
*/
|
|
1061
1069
|
browserPools: API.BrowserPools = new API.BrowserPools(this);
|
|
1070
|
+
vaults: API.Vaults = new API.Vaults(this);
|
|
1062
1071
|
/**
|
|
1063
1072
|
* Create and manage credentials for authentication.
|
|
1064
1073
|
*/
|
|
@@ -1096,6 +1105,7 @@ Kernel.Telemetry = Telemetry;
|
|
|
1096
1105
|
Kernel.Proxies = Proxies;
|
|
1097
1106
|
Kernel.Extensions = Extensions;
|
|
1098
1107
|
Kernel.BrowserPools = BrowserPools;
|
|
1108
|
+
Kernel.Vaults = Vaults;
|
|
1099
1109
|
Kernel.Credentials = Credentials;
|
|
1100
1110
|
Kernel.Projects = Projects;
|
|
1101
1111
|
Kernel.Organization = Organization;
|
|
@@ -1188,6 +1198,7 @@ export declare namespace Kernel {
|
|
|
1188
1198
|
type BrowserUsage as BrowserUsage,
|
|
1189
1199
|
type Profile as Profile,
|
|
1190
1200
|
type Tags as Tags,
|
|
1201
|
+
type VaultReference as VaultReference,
|
|
1191
1202
|
type BrowserCreateResponse as BrowserCreateResponse,
|
|
1192
1203
|
type BrowserRetrieveResponse as BrowserRetrieveResponse,
|
|
1193
1204
|
type BrowserUpdateResponse as BrowserUpdateResponse,
|
|
@@ -1252,6 +1263,14 @@ export declare namespace Kernel {
|
|
|
1252
1263
|
type BrowserPoolReleaseParams as BrowserPoolReleaseParams,
|
|
1253
1264
|
};
|
|
1254
1265
|
|
|
1266
|
+
export {
|
|
1267
|
+
Vaults as Vaults,
|
|
1268
|
+
type Vault as Vault,
|
|
1269
|
+
type VaultsOffsetPagination as VaultsOffsetPagination,
|
|
1270
|
+
type VaultListParams as VaultListParams,
|
|
1271
|
+
type VaultUpsertParams as VaultUpsertParams,
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1255
1274
|
export {
|
|
1256
1275
|
Credentials as Credentials,
|
|
1257
1276
|
type CreateCredentialRequest as CreateCredentialRequest,
|
|
@@ -501,6 +501,17 @@ export interface BrowserPoolAcquireResponse {
|
|
|
501
501
|
*/
|
|
502
502
|
usage?: BrowsersAPI.BrowserUsage;
|
|
503
503
|
|
|
504
|
+
/**
|
|
505
|
+
* Whether final usage billing is still pending or complete. Only present for
|
|
506
|
+
* deleted sessions.
|
|
507
|
+
*/
|
|
508
|
+
usage_status?: 'pending' | 'ready';
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Vaults linked when the browser session was created.
|
|
512
|
+
*/
|
|
513
|
+
vaults?: Array<BrowsersAPI.VaultReference>;
|
|
514
|
+
|
|
504
515
|
/**
|
|
505
516
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
506
517
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -479,6 +479,15 @@ export interface Profile {
|
|
|
479
479
|
*/
|
|
480
480
|
export type Tags = { [key: string]: string };
|
|
481
481
|
|
|
482
|
+
/**
|
|
483
|
+
* Reference to a project-scoped vault. Provide exactly one of id or name.
|
|
484
|
+
*/
|
|
485
|
+
export interface VaultReference {
|
|
486
|
+
id?: string;
|
|
487
|
+
|
|
488
|
+
name?: string;
|
|
489
|
+
}
|
|
490
|
+
|
|
482
491
|
export interface BrowserCreateResponse {
|
|
483
492
|
/**
|
|
484
493
|
* Websocket URL for Chrome DevTools Protocol connections to the browser session
|
|
@@ -622,6 +631,17 @@ export interface BrowserCreateResponse {
|
|
|
622
631
|
*/
|
|
623
632
|
usage?: BrowserUsage;
|
|
624
633
|
|
|
634
|
+
/**
|
|
635
|
+
* Whether final usage billing is still pending or complete. Only present for
|
|
636
|
+
* deleted sessions.
|
|
637
|
+
*/
|
|
638
|
+
usage_status?: 'pending' | 'ready';
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* Vaults linked when the browser session was created.
|
|
642
|
+
*/
|
|
643
|
+
vaults?: Array<VaultReference>;
|
|
644
|
+
|
|
625
645
|
/**
|
|
626
646
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
627
647
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -782,6 +802,17 @@ export interface BrowserRetrieveResponse {
|
|
|
782
802
|
*/
|
|
783
803
|
usage?: BrowserUsage;
|
|
784
804
|
|
|
805
|
+
/**
|
|
806
|
+
* Whether final usage billing is still pending or complete. Only present for
|
|
807
|
+
* deleted sessions.
|
|
808
|
+
*/
|
|
809
|
+
usage_status?: 'pending' | 'ready';
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Vaults linked when the browser session was created.
|
|
813
|
+
*/
|
|
814
|
+
vaults?: Array<VaultReference>;
|
|
815
|
+
|
|
785
816
|
/**
|
|
786
817
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
787
818
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -942,6 +973,17 @@ export interface BrowserUpdateResponse {
|
|
|
942
973
|
*/
|
|
943
974
|
usage?: BrowserUsage;
|
|
944
975
|
|
|
976
|
+
/**
|
|
977
|
+
* Whether final usage billing is still pending or complete. Only present for
|
|
978
|
+
* deleted sessions.
|
|
979
|
+
*/
|
|
980
|
+
usage_status?: 'pending' | 'ready';
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* Vaults linked when the browser session was created.
|
|
984
|
+
*/
|
|
985
|
+
vaults?: Array<VaultReference>;
|
|
986
|
+
|
|
945
987
|
/**
|
|
946
988
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
947
989
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -1102,6 +1144,17 @@ export interface BrowserListResponse {
|
|
|
1102
1144
|
*/
|
|
1103
1145
|
usage?: BrowserUsage;
|
|
1104
1146
|
|
|
1147
|
+
/**
|
|
1148
|
+
* Whether final usage billing is still pending or complete. Only present for
|
|
1149
|
+
* deleted sessions.
|
|
1150
|
+
*/
|
|
1151
|
+
usage_status?: 'pending' | 'ready';
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Vaults linked when the browser session was created.
|
|
1155
|
+
*/
|
|
1156
|
+
vaults?: Array<VaultReference>;
|
|
1157
|
+
|
|
1105
1158
|
/**
|
|
1106
1159
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
1107
1160
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -1270,6 +1323,12 @@ export interface BrowserCreateParams {
|
|
|
1270
1323
|
*/
|
|
1271
1324
|
timeout_seconds?: number;
|
|
1272
1325
|
|
|
1326
|
+
/**
|
|
1327
|
+
* Project-scoped vaults to link to the browser session. Links are immutable after
|
|
1328
|
+
* creation.
|
|
1329
|
+
*/
|
|
1330
|
+
vaults?: Array<VaultReference>;
|
|
1331
|
+
|
|
1273
1332
|
/**
|
|
1274
1333
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
1275
1334
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -1657,6 +1716,7 @@ export declare namespace Browsers {
|
|
|
1657
1716
|
type BrowserUsage as BrowserUsage,
|
|
1658
1717
|
type Profile as Profile,
|
|
1659
1718
|
type Tags as Tags,
|
|
1719
|
+
type VaultReference as VaultReference,
|
|
1660
1720
|
type BrowserCreateResponse as BrowserCreateResponse,
|
|
1661
1721
|
type BrowserRetrieveResponse as BrowserRetrieveResponse,
|
|
1662
1722
|
type BrowserUpdateResponse as BrowserUpdateResponse,
|
|
@@ -15,8 +15,8 @@ export class ConfigRegistry extends APIResource {
|
|
|
15
15
|
analyses: AnalysesAPI.Analyses = new AnalysesAPI.Analyses(this._client);
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Lists unique
|
|
19
|
-
*
|
|
18
|
+
* Lists unique exact targets previously analyzed by the selected project with the
|
|
19
|
+
* recommendation produced by each target's latest analysis.
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```ts
|
|
@@ -431,22 +431,24 @@ export type RecommendationResult = Recommendation | NoRecommendation;
|
|
|
431
431
|
|
|
432
432
|
export interface RecommendationSummary {
|
|
433
433
|
/**
|
|
434
|
-
* ID of the most recently requested analysis for this
|
|
434
|
+
* ID of the most recently requested analysis for this exact target.
|
|
435
435
|
*/
|
|
436
436
|
analysis_id: string;
|
|
437
437
|
|
|
438
438
|
/**
|
|
439
|
-
* Lifecycle status of the most recently requested analysis for this
|
|
439
|
+
* Lifecycle status of the most recently requested analysis for this exact target.
|
|
440
440
|
*/
|
|
441
441
|
analysis_status: 'running' | 'completed' | 'failed' | 'canceled';
|
|
442
442
|
|
|
443
443
|
/**
|
|
444
|
-
* Most recent time the selected project requested an analysis for this
|
|
444
|
+
* Most recent time the selected project requested an analysis for this exact
|
|
445
|
+
* target.
|
|
445
446
|
*/
|
|
446
447
|
last_requested_at: string;
|
|
447
448
|
|
|
448
449
|
/**
|
|
449
|
-
*
|
|
450
|
+
* Recommendation produced by the latest analysis. Null when that analysis did not
|
|
451
|
+
* produce one.
|
|
450
452
|
*/
|
|
451
453
|
recommendation: Recommendation | null;
|
|
452
454
|
|
|
@@ -456,13 +458,14 @@ export interface RecommendationSummary {
|
|
|
456
458
|
recommended_config_label: string | null;
|
|
457
459
|
|
|
458
460
|
/**
|
|
459
|
-
* Success rate for the recommended configuration. Null when
|
|
460
|
-
*
|
|
461
|
+
* Success rate for the recommended configuration. Null when the latest analysis
|
|
462
|
+
* did not produce one.
|
|
461
463
|
*/
|
|
462
464
|
success_rate: number | null;
|
|
463
465
|
|
|
464
466
|
/**
|
|
465
|
-
*
|
|
467
|
+
* Normalized exact target previously analyzed by the selected project, including
|
|
468
|
+
* scheme, host, port, and path.
|
|
466
469
|
*/
|
|
467
470
|
target: string;
|
|
468
471
|
}
|
|
@@ -500,8 +503,8 @@ export interface Target {
|
|
|
500
503
|
|
|
501
504
|
export interface ConfigRegistryListParams extends OffsetPaginationParams {
|
|
502
505
|
/**
|
|
503
|
-
* Case-insensitive
|
|
504
|
-
*
|
|
506
|
+
* Case-insensitive substring search over normalized targets, including domain,
|
|
507
|
+
* subdomain, and path.
|
|
505
508
|
*/
|
|
506
509
|
search?: string;
|
|
507
510
|
|
package/src/resources/index.ts
CHANGED
|
@@ -50,6 +50,7 @@ export {
|
|
|
50
50
|
type BrowserUsage,
|
|
51
51
|
type Profile,
|
|
52
52
|
type Tags,
|
|
53
|
+
type VaultReference,
|
|
53
54
|
type BrowserCreateResponse,
|
|
54
55
|
type BrowserRetrieveResponse,
|
|
55
56
|
type BrowserUpdateResponse,
|
|
@@ -179,3 +180,10 @@ export {
|
|
|
179
180
|
type ProxyListResponsesOffsetPagination,
|
|
180
181
|
} from './proxies';
|
|
181
182
|
export { Telemetry } from './telemetry/telemetry';
|
|
183
|
+
export {
|
|
184
|
+
Vaults,
|
|
185
|
+
type Vault,
|
|
186
|
+
type VaultListParams,
|
|
187
|
+
type VaultUpsertParams,
|
|
188
|
+
type VaultsOffsetPagination,
|
|
189
|
+
} from './vaults/vaults';
|
|
@@ -561,6 +561,17 @@ export namespace InvocationListBrowsersResponse {
|
|
|
561
561
|
*/
|
|
562
562
|
usage?: BrowsersAPI.BrowserUsage;
|
|
563
563
|
|
|
564
|
+
/**
|
|
565
|
+
* Whether final usage billing is still pending or complete. Only present for
|
|
566
|
+
* deleted sessions.
|
|
567
|
+
*/
|
|
568
|
+
usage_status?: 'pending' | 'ready';
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Vaults linked when the browser session was created.
|
|
572
|
+
*/
|
|
573
|
+
vaults?: Array<BrowsersAPI.VaultReference>;
|
|
574
|
+
|
|
564
575
|
/**
|
|
565
576
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
566
577
|
* image defaults apply (1920x1080@25). For GPU images, the default is
|
|
@@ -92,6 +92,13 @@ export type OtlpDestinationsOffsetPagination = OffsetPagination<OtlpDestination>
|
|
|
92
92
|
export interface OtlpDestination {
|
|
93
93
|
id: string;
|
|
94
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Failed deliveries since the last success, as observed by the relay process that
|
|
97
|
+
* wrote the latest outcome. Zero means the most recently recorded outcome
|
|
98
|
+
* succeeded.
|
|
99
|
+
*/
|
|
100
|
+
consecutive_failures: number;
|
|
101
|
+
|
|
95
102
|
created_at: string;
|
|
96
103
|
|
|
97
104
|
/**
|
|
@@ -116,6 +123,26 @@ export interface OtlpDestination {
|
|
|
116
123
|
updated_at: string;
|
|
117
124
|
|
|
118
125
|
description?: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Sanitized class of the delivery failure recorded at `last_error_at`. It is
|
|
129
|
+
* retained after a later success, so its presence does not mean the destination is
|
|
130
|
+
* currently failing. Response bodies, endpoint URLs, credentials, and raw
|
|
131
|
+
* transport errors are never returned.
|
|
132
|
+
*/
|
|
133
|
+
last_error?: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Timestamp of the most recent failed delivery. It is retained after a later
|
|
137
|
+
* success, so it can predate `last_export_at`. Read `consecutive_failures` to tell
|
|
138
|
+
* whether the destination is currently failing.
|
|
139
|
+
*/
|
|
140
|
+
last_error_at?: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Timestamp of the most recent successful delivery. Moves only on success.
|
|
144
|
+
*/
|
|
145
|
+
last_export_at?: string;
|
|
119
146
|
}
|
|
120
147
|
|
|
121
148
|
export interface DestinationCreateParams {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Items,
|
|
5
|
+
type AgentcardCheckoutAuthorization,
|
|
6
|
+
type CardVaultItemSpec,
|
|
7
|
+
type CardVaultItemState,
|
|
8
|
+
type VaultCardAliases,
|
|
9
|
+
type VaultItem,
|
|
10
|
+
type VaultItemAction,
|
|
11
|
+
type VaultItemEvent,
|
|
12
|
+
type VaultPaymentMethod,
|
|
13
|
+
type WalletVaultItemSpec,
|
|
14
|
+
type WalletVaultItemState,
|
|
15
|
+
type ItemListResponse,
|
|
16
|
+
type ItemEventsResponse,
|
|
17
|
+
type ItemRetrieveParams,
|
|
18
|
+
type ItemUpdateParams,
|
|
19
|
+
type ItemDeleteParams,
|
|
20
|
+
type ItemEventsParams,
|
|
21
|
+
type ItemPerformOperationParams,
|
|
22
|
+
type ItemUpsertParams,
|
|
23
|
+
} from './items';
|
|
24
|
+
export {
|
|
25
|
+
Vaults,
|
|
26
|
+
type Vault,
|
|
27
|
+
type VaultListParams,
|
|
28
|
+
type VaultUpsertParams,
|
|
29
|
+
type VaultsOffsetPagination,
|
|
30
|
+
} from './vaults';
|