@onkernel/sdk 0.22.0 → 0.24.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 +37 -0
- package/README.md +15 -19
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +10 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +10 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +17 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +12 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/auth/auth.d.mts +392 -0
- package/resources/agents/auth/auth.d.mts.map +1 -0
- package/resources/agents/auth/auth.d.ts +392 -0
- package/resources/agents/auth/auth.d.ts.map +1 -0
- package/resources/agents/auth/auth.js +97 -0
- package/resources/agents/auth/auth.js.map +1 -0
- package/resources/agents/auth/auth.mjs +92 -0
- package/resources/agents/auth/auth.mjs.map +1 -0
- package/resources/agents/auth/index.d.mts +3 -0
- package/resources/agents/auth/index.d.mts.map +1 -0
- package/resources/agents/auth/index.d.ts +3 -0
- package/resources/agents/auth/index.d.ts.map +1 -0
- package/resources/agents/auth/index.js +9 -0
- package/resources/agents/auth/index.js.map +1 -0
- package/resources/agents/auth/index.mjs +4 -0
- package/resources/agents/auth/index.mjs.map +1 -0
- package/resources/agents/auth/invocations.d.mts +130 -0
- package/resources/agents/auth/invocations.d.mts.map +1 -0
- package/resources/agents/auth/invocations.d.ts +130 -0
- package/resources/agents/auth/invocations.d.ts.map +1 -0
- package/resources/agents/auth/invocations.js +94 -0
- package/resources/agents/auth/invocations.js.map +1 -0
- package/resources/agents/auth/invocations.mjs +90 -0
- package/resources/agents/auth/invocations.mjs.map +1 -0
- package/resources/agents/auth.d.mts +2 -0
- package/resources/agents/auth.d.mts.map +1 -0
- package/resources/agents/auth.d.ts +2 -0
- package/resources/agents/auth.d.ts.map +1 -0
- package/resources/agents/auth.js +6 -0
- package/resources/agents/auth.js.map +1 -0
- package/resources/agents/auth.mjs +3 -0
- package/resources/agents/auth.mjs.map +1 -0
- package/resources/agents/index.d.mts +3 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +3 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +9 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +4 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +6 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/browser-pools.d.mts +81 -115
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +81 -115
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +38 -38
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +38 -38
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js +3 -7
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs +3 -7
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/credentials.d.mts +163 -0
- package/resources/credentials.d.mts.map +1 -0
- package/resources/credentials.d.ts +163 -0
- package/resources/credentials.d.ts.map +1 -0
- package/resources/credentials.js +82 -0
- package/resources/credentials.js.map +1 -0
- package/resources/credentials.mjs +78 -0
- package/resources/credentials.mjs.map +1 -0
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/shared.d.mts +5 -5
- package/resources/shared.d.ts +5 -5
- package/src/client.ts +28 -8
- package/src/resources/agents/agents.ts +43 -0
- package/src/resources/agents/auth/auth.ts +509 -0
- package/src/resources/agents/auth/index.ts +25 -0
- package/src/resources/agents/auth/invocations.ts +174 -0
- package/src/resources/agents/auth.ts +3 -0
- package/src/resources/agents/index.ts +18 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/browser-pools.ts +90 -132
- package/src/resources/browsers/browsers.ts +38 -38
- package/src/resources/credentials.ts +205 -0
- package/src/resources/index.ts +11 -4
- package/src/resources/shared.ts +5 -5
- 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
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { OffsetPagination, type OffsetPaginationParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Credentials extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new credential for storing login information. Values are encrypted at
|
|
8
|
+
* rest.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const credential = await client.credentials.create({
|
|
13
|
+
* domain: 'netflix.com',
|
|
14
|
+
* name: 'my-netflix-login',
|
|
15
|
+
* values: {
|
|
16
|
+
* username: 'user@example.com',
|
|
17
|
+
* password: 'mysecretpassword',
|
|
18
|
+
* },
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body: CredentialCreateParams, options?: RequestOptions): APIPromise<Credential>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve a credential by its ID. Credential values are not returned.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const credential = await client.credentials.retrieve('id');
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<Credential>;
|
|
32
|
+
/**
|
|
33
|
+
* Update a credential's name or values. Values are encrypted at rest.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const credential = await client.credentials.update('id');
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
update(id: string, body: CredentialUpdateParams, options?: RequestOptions): APIPromise<Credential>;
|
|
41
|
+
/**
|
|
42
|
+
* List credentials owned by the caller's organization. Credential values are not
|
|
43
|
+
* returned.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* // Automatically fetches more pages as needed.
|
|
48
|
+
* for await (const credential of client.credentials.list()) {
|
|
49
|
+
* // ...
|
|
50
|
+
* }
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
list(query?: CredentialListParams | null | undefined, options?: RequestOptions): PagePromise<CredentialsOffsetPagination, Credential>;
|
|
54
|
+
/**
|
|
55
|
+
* Delete a credential by its ID.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* await client.credentials.delete('id');
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
63
|
+
}
|
|
64
|
+
export type CredentialsOffsetPagination = OffsetPagination<Credential>;
|
|
65
|
+
/**
|
|
66
|
+
* Request to create a new credential
|
|
67
|
+
*/
|
|
68
|
+
export interface CreateCredentialRequest {
|
|
69
|
+
/**
|
|
70
|
+
* Target domain this credential is for
|
|
71
|
+
*/
|
|
72
|
+
domain: string;
|
|
73
|
+
/**
|
|
74
|
+
* Unique name for the credential within the organization
|
|
75
|
+
*/
|
|
76
|
+
name: string;
|
|
77
|
+
/**
|
|
78
|
+
* Field name to value mapping (e.g., username, password)
|
|
79
|
+
*/
|
|
80
|
+
values: {
|
|
81
|
+
[key: string]: string;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A stored credential for automatic re-authentication
|
|
86
|
+
*/
|
|
87
|
+
export interface Credential {
|
|
88
|
+
/**
|
|
89
|
+
* Unique identifier for the credential
|
|
90
|
+
*/
|
|
91
|
+
id: string;
|
|
92
|
+
/**
|
|
93
|
+
* When the credential was created
|
|
94
|
+
*/
|
|
95
|
+
created_at: string;
|
|
96
|
+
/**
|
|
97
|
+
* Target domain this credential is for
|
|
98
|
+
*/
|
|
99
|
+
domain: string;
|
|
100
|
+
/**
|
|
101
|
+
* Unique name for the credential within the organization
|
|
102
|
+
*/
|
|
103
|
+
name: string;
|
|
104
|
+
/**
|
|
105
|
+
* When the credential was last updated
|
|
106
|
+
*/
|
|
107
|
+
updated_at: string;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Request to update an existing credential
|
|
111
|
+
*/
|
|
112
|
+
export interface UpdateCredentialRequest {
|
|
113
|
+
/**
|
|
114
|
+
* New name for the credential
|
|
115
|
+
*/
|
|
116
|
+
name?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Field name to value mapping (e.g., username, password). Replaces all existing
|
|
119
|
+
* values.
|
|
120
|
+
*/
|
|
121
|
+
values?: {
|
|
122
|
+
[key: string]: string;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
export interface CredentialCreateParams {
|
|
126
|
+
/**
|
|
127
|
+
* Target domain this credential is for
|
|
128
|
+
*/
|
|
129
|
+
domain: string;
|
|
130
|
+
/**
|
|
131
|
+
* Unique name for the credential within the organization
|
|
132
|
+
*/
|
|
133
|
+
name: string;
|
|
134
|
+
/**
|
|
135
|
+
* Field name to value mapping (e.g., username, password)
|
|
136
|
+
*/
|
|
137
|
+
values: {
|
|
138
|
+
[key: string]: string;
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
export interface CredentialUpdateParams {
|
|
142
|
+
/**
|
|
143
|
+
* New name for the credential
|
|
144
|
+
*/
|
|
145
|
+
name?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Field name to value mapping (e.g., username, password). Replaces all existing
|
|
148
|
+
* values.
|
|
149
|
+
*/
|
|
150
|
+
values?: {
|
|
151
|
+
[key: string]: string;
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
export interface CredentialListParams extends OffsetPaginationParams {
|
|
155
|
+
/**
|
|
156
|
+
* Filter by domain
|
|
157
|
+
*/
|
|
158
|
+
domain?: string;
|
|
159
|
+
}
|
|
160
|
+
export declare namespace Credentials {
|
|
161
|
+
export { type CreateCredentialRequest as CreateCredentialRequest, type Credential as Credential, type UpdateCredentialRequest as UpdateCredentialRequest, type CredentialsOffsetPagination as CredentialsOffsetPagination, type CredentialCreateParams as CredentialCreateParams, type CredentialUpdateParams as CredentialUpdateParams, type CredentialListParams as CredentialListParams, };
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/resources/credentials.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,WAAW,EAAE;OAE9D,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItF;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IAItE;;;;;;;OAOG;IACH,MAAM,CAAC,EA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;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACnC;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACpC;AAED,MAAM,WAAW,oBAAqB,SAAQ,sBAAsB;IAClE;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -0,0 +1,82 @@
|
|
|
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.Credentials = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
8
|
+
const path_1 = require("../internal/utils/path.js");
|
|
9
|
+
class Credentials extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new credential for storing login information. Values are encrypted at
|
|
12
|
+
* rest.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const credential = await client.credentials.create({
|
|
17
|
+
* domain: 'netflix.com',
|
|
18
|
+
* name: 'my-netflix-login',
|
|
19
|
+
* values: {
|
|
20
|
+
* username: 'user@example.com',
|
|
21
|
+
* password: 'mysecretpassword',
|
|
22
|
+
* },
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(body, options) {
|
|
27
|
+
return this._client.post('/credentials', { body, ...options });
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve a credential by its ID. Credential values are not returned.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const credential = await client.credentials.retrieve('id');
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
retrieve(id, options) {
|
|
38
|
+
return this._client.get((0, path_1.path) `/credentials/${id}`, options);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Update a credential's name or values. Values are encrypted at rest.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const credential = await client.credentials.update('id');
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
update(id, body, options) {
|
|
49
|
+
return this._client.patch((0, path_1.path) `/credentials/${id}`, { body, ...options });
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* List credentials owned by the caller's organization. Credential values are not
|
|
53
|
+
* returned.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* // Automatically fetches more pages as needed.
|
|
58
|
+
* for await (const credential of client.credentials.list()) {
|
|
59
|
+
* // ...
|
|
60
|
+
* }
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
list(query = {}, options) {
|
|
64
|
+
return this._client.getAPIList('/credentials', (pagination_1.OffsetPagination), { query, ...options });
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Delete a credential by its ID.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* await client.credentials.delete('id');
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
delete(id, options) {
|
|
75
|
+
return this._client.delete((0, path_1.path) `/credentials/${id}`, {
|
|
76
|
+
...options,
|
|
77
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.Credentials = Credentials;
|
|
82
|
+
//# sourceMappingURL=credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/resources/credentials.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAgG;AAChG,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAA4B,EAAE,OAAwB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,IAA4B,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,6BAA4B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,EAAE,EAAE;YACnD,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;CACF;AA9ED,kCA8EC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { OffsetPagination } from "../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
5
|
+
import { path } from "../internal/utils/path.mjs";
|
|
6
|
+
export class Credentials extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Create a new credential for storing login information. Values are encrypted at
|
|
9
|
+
* rest.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const credential = await client.credentials.create({
|
|
14
|
+
* domain: 'netflix.com',
|
|
15
|
+
* name: 'my-netflix-login',
|
|
16
|
+
* values: {
|
|
17
|
+
* username: 'user@example.com',
|
|
18
|
+
* password: 'mysecretpassword',
|
|
19
|
+
* },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(body, options) {
|
|
24
|
+
return this._client.post('/credentials', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve a credential by its ID. Credential values are not returned.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const credential = await client.credentials.retrieve('id');
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
retrieve(id, options) {
|
|
35
|
+
return this._client.get(path `/credentials/${id}`, options);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Update a credential's name or values. Values are encrypted at rest.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const credential = await client.credentials.update('id');
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
update(id, body, options) {
|
|
46
|
+
return this._client.patch(path `/credentials/${id}`, { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* List credentials owned by the caller's organization. Credential values are not
|
|
50
|
+
* returned.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* // Automatically fetches more pages as needed.
|
|
55
|
+
* for await (const credential of client.credentials.list()) {
|
|
56
|
+
* // ...
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
list(query = {}, options) {
|
|
61
|
+
return this._client.getAPIList('/credentials', (OffsetPagination), { query, ...options });
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Delete a credential by its ID.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* await client.credentials.delete('id');
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
delete(id, options) {
|
|
72
|
+
return this._client.delete(path `/credentials/${id}`, {
|
|
73
|
+
...options,
|
|
74
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=credentials.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.mjs","sourceRoot":"","sources":["../src/resources/credentials.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,gBAAgB,EAA4C;OAC9D,EAAE,YAAY,EAAE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2
|
+
export { Agents } from "./agents/agents.mjs";
|
|
2
3
|
export { Apps, type AppListResponse, type AppListParams, type AppListResponsesOffsetPagination, } from "./apps.mjs";
|
|
3
|
-
export { BrowserPools, type BrowserPool, type
|
|
4
|
+
export { BrowserPools, type BrowserPool, type BrowserPoolListResponse, type BrowserPoolAcquireResponse, type BrowserPoolCreateParams, type BrowserPoolUpdateParams, type BrowserPoolDeleteParams, type BrowserPoolAcquireParams, type BrowserPoolReleaseParams, } from "./browser-pools.mjs";
|
|
4
5
|
export { Browsers, type BrowserPersistence, type Profile, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserListParams, type BrowserDeleteParams, type BrowserLoadExtensionsParams, type BrowserListResponsesOffsetPagination, } from "./browsers/browsers.mjs";
|
|
6
|
+
export { Credentials, type CreateCredentialRequest, type Credential, type UpdateCredentialRequest, type CredentialCreateParams, type CredentialUpdateParams, type CredentialListParams, type CredentialsOffsetPagination, } from "./credentials.mjs";
|
|
5
7
|
export { Deployments, type DeploymentStateEvent, type DeploymentCreateResponse, type DeploymentRetrieveResponse, type DeploymentListResponse, type DeploymentFollowResponse, type DeploymentCreateParams, type DeploymentListParams, type DeploymentFollowParams, type DeploymentListResponsesOffsetPagination, } from "./deployments.mjs";
|
|
6
8
|
export { Extensions, type ExtensionListResponse, type ExtensionUploadResponse, type ExtensionDownloadFromChromeStoreParams, type ExtensionUploadParams, } from "./extensions.mjs";
|
|
7
9
|
export { Invocations, type InvocationStateEvent, type InvocationCreateResponse, type InvocationRetrieveResponse, type InvocationUpdateResponse, type InvocationListResponse, type InvocationFollowResponse, type InvocationCreateParams, type InvocationUpdateParams, type InvocationListParams, type InvocationFollowParams, type InvocationListResponsesOffsetPagination, } from "./invocations.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,IAAI,EACJ,KAAK,eAAe,E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B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE;OAChE,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB"}
|
package/resources/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from "./shared.js";
|
|
2
|
+
export { Agents } from "./agents/agents.js";
|
|
2
3
|
export { Apps, type AppListResponse, type AppListParams, type AppListResponsesOffsetPagination, } from "./apps.js";
|
|
3
|
-
export { BrowserPools, type BrowserPool, type
|
|
4
|
+
export { BrowserPools, type BrowserPool, type BrowserPoolListResponse, type BrowserPoolAcquireResponse, type BrowserPoolCreateParams, type BrowserPoolUpdateParams, type BrowserPoolDeleteParams, type BrowserPoolAcquireParams, type BrowserPoolReleaseParams, } from "./browser-pools.js";
|
|
4
5
|
export { Browsers, type BrowserPersistence, type Profile, type BrowserCreateResponse, type BrowserRetrieveResponse, type BrowserListResponse, type BrowserCreateParams, type BrowserListParams, type BrowserDeleteParams, type BrowserLoadExtensionsParams, type BrowserListResponsesOffsetPagination, } from "./browsers/browsers.js";
|
|
6
|
+
export { Credentials, type CreateCredentialRequest, type Credential, type UpdateCredentialRequest, type CredentialCreateParams, type CredentialUpdateParams, type CredentialListParams, type CredentialsOffsetPagination, } from "./credentials.js";
|
|
5
7
|
export { Deployments, type DeploymentStateEvent, type DeploymentCreateResponse, type DeploymentRetrieveResponse, type DeploymentListResponse, type DeploymentFollowResponse, type DeploymentCreateParams, type DeploymentListParams, type DeploymentFollowParams, type DeploymentListResponsesOffsetPagination, } from "./deployments.js";
|
|
6
8
|
export { Extensions, type ExtensionListResponse, type ExtensionUploadResponse, type ExtensionDownloadFromChromeStoreParams, type ExtensionUploadParams, } from "./extensions.js";
|
|
7
9
|
export { Invocations, type InvocationStateEvent, type InvocationCreateResponse, type InvocationRetrieveResponse, type InvocationUpdateResponse, type InvocationListResponse, type InvocationFollowResponse, type InvocationCreateParams, type InvocationUpdateParams, type InvocationListParams, type InvocationFollowParams, type InvocationListResponsesOffsetPagination, } from "./invocations.js";
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";OAGO,EAAE,MAAM,EAAE;OACV,EACL,IAAI,EACJ,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,gCAAgC,GACtC;OACM,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,GAC1C;OACM,EACL,WAAW,EACX,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,GACjC;OACM,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,EACL,UAAU,EACV,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,GAC3B;OACM,EACL,WAAW,EACX,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,EAAE,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,mBAAmB,EAAE;OAChE,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB"}
|
package/resources/index.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Proxies = exports.Profiles = exports.Invocations = exports.Extensions = exports.Deployments = exports.Browsers = exports.BrowserPools = exports.Apps = void 0;
|
|
4
|
+
exports.Proxies = exports.Profiles = exports.Invocations = exports.Extensions = exports.Deployments = exports.Credentials = exports.Browsers = exports.BrowserPools = exports.Apps = exports.Agents = void 0;
|
|
5
5
|
const tslib_1 = require("../internal/tslib.js");
|
|
6
6
|
tslib_1.__exportStar(require("./shared.js"), exports);
|
|
7
|
+
var agents_1 = require("./agents/agents.js");
|
|
8
|
+
Object.defineProperty(exports, "Agents", { enumerable: true, get: function () { return agents_1.Agents; } });
|
|
7
9
|
var apps_1 = require("./apps.js");
|
|
8
10
|
Object.defineProperty(exports, "Apps", { enumerable: true, get: function () { return apps_1.Apps; } });
|
|
9
11
|
var browser_pools_1 = require("./browser-pools.js");
|
|
10
12
|
Object.defineProperty(exports, "BrowserPools", { enumerable: true, get: function () { return browser_pools_1.BrowserPools; } });
|
|
11
13
|
var browsers_1 = require("./browsers/browsers.js");
|
|
12
14
|
Object.defineProperty(exports, "Browsers", { enumerable: true, get: function () { return browsers_1.Browsers; } });
|
|
15
|
+
var credentials_1 = require("./credentials.js");
|
|
16
|
+
Object.defineProperty(exports, "Credentials", { enumerable: true, get: function () { return credentials_1.Credentials; } });
|
|
13
17
|
var deployments_1 = require("./deployments.js");
|
|
14
18
|
Object.defineProperty(exports, "Deployments", { enumerable: true, get: function () { return deployments_1.Deployments; } });
|
|
15
19
|
var extensions_1 = require("./extensions.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,kCAKgB;AAJd,4FAAA,IAAI,OAAA;AAKN,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,sDAAyB;AACzB,6CAAyC;AAAhC,gGAAA,MAAM,OAAA;AACf,kCAKgB;AAJd,4FAAA,IAAI,OAAA;AAKN,oDAUyB;AATvB,6GAAA,YAAY,OAAA;AAUd,mDAY6B;AAX3B,oGAAA,QAAQ,OAAA;AAYV,gDASuB;AARrB,0GAAA,WAAW,OAAA;AASb,gDAWuB;AAVrB,0GAAA,WAAW,OAAA;AAWb,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,gDAauB;AAZrB,0GAAA,WAAW,OAAA;AAab,0CAA0F;AAAjF,oGAAA,QAAQ,OAAA;AACjB,wCAMmB;AALjB,kGAAA,OAAO,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export * from "./shared.mjs";
|
|
3
|
+
export { Agents } from "./agents/agents.mjs";
|
|
3
4
|
export { Apps, } from "./apps.mjs";
|
|
4
5
|
export { BrowserPools, } from "./browser-pools.mjs";
|
|
5
6
|
export { Browsers, } from "./browsers/browsers.mjs";
|
|
7
|
+
export { Credentials, } from "./credentials.mjs";
|
|
6
8
|
export { Deployments, } from "./deployments.mjs";
|
|
7
9
|
export { Extensions, } from "./extensions.mjs";
|
|
8
10
|
export { Invocations, } from "./invocations.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EACL,IAAI,GAIL;OACM,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,EAAE,MAAM,EAAE;OACV,EACL,IAAI,GAIL;OACM,EACL,YAAY,GASb;OACM,EACL,QAAQ,GAWT;OACM,EACL,WAAW,GAQZ;OACM,EACL,WAAW,GAUZ;OACM,EACL,UAAU,GAKX;OACM,EACL,WAAW,GAYZ;OACM,EAAE,QAAQ,EAAsD;OAChE,EACL,OAAO,GAKR"}
|
package/resources/shared.d.mts
CHANGED
|
@@ -45,11 +45,11 @@ export interface BrowserProfile {
|
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
48
|
-
* image defaults apply (
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
48
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
49
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
50
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
51
|
+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
|
|
52
|
+
* automatically determined from the width and height if they match a supported
|
|
53
53
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
54
54
|
* live view browser
|
|
55
55
|
*/
|
package/resources/shared.d.ts
CHANGED
|
@@ -45,11 +45,11 @@ export interface BrowserProfile {
|
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Initial browser window size in pixels with optional refresh rate. If omitted,
|
|
48
|
-
* image defaults apply (
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
48
|
+
* image defaults apply (1920x1080@25). Only specific viewport configurations are
|
|
49
|
+
* supported. The server will reject unsupported combinations. Supported
|
|
50
|
+
* resolutions are: 2560x1440@10, 1920x1080@25, 1920x1200@25, 1440x900@25,
|
|
51
|
+
* 1024x768@60, 1200x800@60 If refresh_rate is not provided, it will be
|
|
52
|
+
* automatically determined from the width and height if they match a supported
|
|
53
53
|
* configuration exactly. Note: Higher resolutions may affect the responsiveness of
|
|
54
54
|
* live view browser
|
|
55
55
|
*/
|
package/src/client.ts
CHANGED
|
@@ -22,18 +22,24 @@ import { AppListParams, AppListResponse, AppListResponsesOffsetPagination, Apps
|
|
|
22
22
|
import {
|
|
23
23
|
BrowserPool,
|
|
24
24
|
BrowserPoolAcquireParams,
|
|
25
|
-
BrowserPoolAcquireRequest,
|
|
26
25
|
BrowserPoolAcquireResponse,
|
|
27
26
|
BrowserPoolCreateParams,
|
|
28
27
|
BrowserPoolDeleteParams,
|
|
29
28
|
BrowserPoolListResponse,
|
|
30
29
|
BrowserPoolReleaseParams,
|
|
31
|
-
BrowserPoolReleaseRequest,
|
|
32
|
-
BrowserPoolRequest,
|
|
33
30
|
BrowserPoolUpdateParams,
|
|
34
|
-
BrowserPoolUpdateRequest,
|
|
35
31
|
BrowserPools,
|
|
36
32
|
} from './resources/browser-pools';
|
|
33
|
+
import {
|
|
34
|
+
CreateCredentialRequest,
|
|
35
|
+
Credential,
|
|
36
|
+
CredentialCreateParams,
|
|
37
|
+
CredentialListParams,
|
|
38
|
+
CredentialUpdateParams,
|
|
39
|
+
Credentials,
|
|
40
|
+
CredentialsOffsetPagination,
|
|
41
|
+
UpdateCredentialRequest,
|
|
42
|
+
} from './resources/credentials';
|
|
37
43
|
import {
|
|
38
44
|
DeploymentCreateParams,
|
|
39
45
|
DeploymentCreateResponse,
|
|
@@ -76,6 +82,7 @@ import {
|
|
|
76
82
|
ProxyListResponse,
|
|
77
83
|
ProxyRetrieveResponse,
|
|
78
84
|
} from './resources/proxies';
|
|
85
|
+
import { Agents } from './resources/agents/agents';
|
|
79
86
|
import {
|
|
80
87
|
BrowserCreateParams,
|
|
81
88
|
BrowserCreateResponse,
|
|
@@ -859,6 +866,8 @@ export class Kernel {
|
|
|
859
866
|
proxies: API.Proxies = new API.Proxies(this);
|
|
860
867
|
extensions: API.Extensions = new API.Extensions(this);
|
|
861
868
|
browserPools: API.BrowserPools = new API.BrowserPools(this);
|
|
869
|
+
agents: API.Agents = new API.Agents(this);
|
|
870
|
+
credentials: API.Credentials = new API.Credentials(this);
|
|
862
871
|
}
|
|
863
872
|
|
|
864
873
|
Kernel.Deployments = Deployments;
|
|
@@ -869,6 +878,8 @@ Kernel.Profiles = Profiles;
|
|
|
869
878
|
Kernel.Proxies = Proxies;
|
|
870
879
|
Kernel.Extensions = Extensions;
|
|
871
880
|
Kernel.BrowserPools = BrowserPools;
|
|
881
|
+
Kernel.Agents = Agents;
|
|
882
|
+
Kernel.Credentials = Credentials;
|
|
872
883
|
|
|
873
884
|
export declare namespace Kernel {
|
|
874
885
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -953,10 +964,6 @@ export declare namespace Kernel {
|
|
|
953
964
|
export {
|
|
954
965
|
BrowserPools as BrowserPools,
|
|
955
966
|
type BrowserPool as BrowserPool,
|
|
956
|
-
type BrowserPoolAcquireRequest as BrowserPoolAcquireRequest,
|
|
957
|
-
type BrowserPoolReleaseRequest as BrowserPoolReleaseRequest,
|
|
958
|
-
type BrowserPoolRequest as BrowserPoolRequest,
|
|
959
|
-
type BrowserPoolUpdateRequest as BrowserPoolUpdateRequest,
|
|
960
967
|
type BrowserPoolListResponse as BrowserPoolListResponse,
|
|
961
968
|
type BrowserPoolAcquireResponse as BrowserPoolAcquireResponse,
|
|
962
969
|
type BrowserPoolCreateParams as BrowserPoolCreateParams,
|
|
@@ -966,6 +973,19 @@ export declare namespace Kernel {
|
|
|
966
973
|
type BrowserPoolReleaseParams as BrowserPoolReleaseParams,
|
|
967
974
|
};
|
|
968
975
|
|
|
976
|
+
export { Agents as Agents };
|
|
977
|
+
|
|
978
|
+
export {
|
|
979
|
+
Credentials as Credentials,
|
|
980
|
+
type CreateCredentialRequest as CreateCredentialRequest,
|
|
981
|
+
type Credential as Credential,
|
|
982
|
+
type UpdateCredentialRequest as UpdateCredentialRequest,
|
|
983
|
+
type CredentialsOffsetPagination as CredentialsOffsetPagination,
|
|
984
|
+
type CredentialCreateParams as CredentialCreateParams,
|
|
985
|
+
type CredentialUpdateParams as CredentialUpdateParams,
|
|
986
|
+
type CredentialListParams as CredentialListParams,
|
|
987
|
+
};
|
|
988
|
+
|
|
969
989
|
export type AppAction = API.AppAction;
|
|
970
990
|
export type BrowserExtension = API.BrowserExtension;
|
|
971
991
|
export type BrowserProfile = API.BrowserProfile;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as AuthAPI from './auth/auth';
|
|
5
|
+
import {
|
|
6
|
+
AgentAuthDiscoverResponse,
|
|
7
|
+
AgentAuthInvocationResponse,
|
|
8
|
+
AgentAuthSubmitResponse,
|
|
9
|
+
Auth,
|
|
10
|
+
AuthAgent,
|
|
11
|
+
AuthAgentCreateRequest,
|
|
12
|
+
AuthAgentInvocationCreateRequest,
|
|
13
|
+
AuthAgentInvocationCreateResponse,
|
|
14
|
+
AuthAgentsOffsetPagination,
|
|
15
|
+
AuthCreateParams,
|
|
16
|
+
AuthListParams,
|
|
17
|
+
DiscoveredField,
|
|
18
|
+
ReauthResponse,
|
|
19
|
+
} from './auth/auth';
|
|
20
|
+
|
|
21
|
+
export class Agents extends APIResource {
|
|
22
|
+
auth: AuthAPI.Auth = new AuthAPI.Auth(this._client);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
Agents.Auth = Auth;
|
|
26
|
+
|
|
27
|
+
export declare namespace Agents {
|
|
28
|
+
export {
|
|
29
|
+
Auth as Auth,
|
|
30
|
+
type AgentAuthDiscoverResponse as AgentAuthDiscoverResponse,
|
|
31
|
+
type AgentAuthInvocationResponse as AgentAuthInvocationResponse,
|
|
32
|
+
type AgentAuthSubmitResponse as AgentAuthSubmitResponse,
|
|
33
|
+
type AuthAgent as AuthAgent,
|
|
34
|
+
type AuthAgentCreateRequest as AuthAgentCreateRequest,
|
|
35
|
+
type AuthAgentInvocationCreateRequest as AuthAgentInvocationCreateRequest,
|
|
36
|
+
type AuthAgentInvocationCreateResponse as AuthAgentInvocationCreateResponse,
|
|
37
|
+
type DiscoveredField as DiscoveredField,
|
|
38
|
+
type ReauthResponse as ReauthResponse,
|
|
39
|
+
type AuthAgentsOffsetPagination as AuthAgentsOffsetPagination,
|
|
40
|
+
type AuthCreateParams as AuthCreateParams,
|
|
41
|
+
type AuthListParams as AuthListParams,
|
|
42
|
+
};
|
|
43
|
+
}
|