@smithery/api 0.46.0 → 0.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +5 -10
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/servers/deployments.d.mts +61 -309
- package/resources/servers/deployments.d.mts.map +1 -1
- package/resources/servers/deployments.d.ts +61 -309
- package/resources/servers/deployments.d.ts.map +1 -1
- package/resources/servers/deployments.js +25 -112
- package/resources/servers/deployments.js.map +1 -1
- package/resources/servers/deployments.mjs +25 -112
- package/resources/servers/deployments.mjs.map +1 -1
- package/resources/servers/domains.d.mts +176 -0
- package/resources/servers/domains.d.mts.map +1 -0
- package/resources/servers/domains.d.ts +176 -0
- package/resources/servers/domains.d.ts.map +1 -0
- package/resources/servers/domains.js +67 -0
- package/resources/servers/domains.js.map +1 -0
- package/resources/servers/domains.mjs +63 -0
- package/resources/servers/domains.mjs.map +1 -0
- package/resources/servers/index.d.mts +6 -5
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +6 -5
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/index.js +3 -1
- package/resources/servers/index.js.map +1 -1
- package/resources/servers/index.mjs +2 -1
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/logs.d.mts +5 -79
- package/resources/servers/logs.d.mts.map +1 -1
- package/resources/servers/logs.d.ts +5 -79
- package/resources/servers/logs.d.ts.map +1 -1
- package/resources/servers/logs.js +5 -21
- package/resources/servers/logs.js.map +1 -1
- package/resources/servers/logs.mjs +5 -21
- package/resources/servers/logs.mjs.map +1 -1
- package/resources/servers/repo.d.mts +13 -103
- package/resources/servers/repo.d.mts.map +1 -1
- package/resources/servers/repo.d.ts +13 -103
- package/resources/servers/repo.d.ts.map +1 -1
- package/resources/servers/repo.js +15 -61
- package/resources/servers/repo.js.map +1 -1
- package/resources/servers/repo.mjs +15 -61
- package/resources/servers/repo.mjs.map +1 -1
- package/resources/servers/secrets.d.mts +14 -85
- package/resources/servers/secrets.d.mts.map +1 -1
- package/resources/servers/secrets.d.ts +14 -85
- package/resources/servers/secrets.d.ts.map +1 -1
- package/resources/servers/secrets.js +13 -63
- package/resources/servers/secrets.js.map +1 -1
- package/resources/servers/secrets.mjs +13 -63
- package/resources/servers/secrets.mjs.map +1 -1
- package/resources/servers/servers.d.mts +30 -182
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +30 -182
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js +26 -79
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +28 -81
- package/resources/servers/servers.mjs.map +1 -1
- package/src/client.ts +0 -16
- package/src/resources/index.ts +0 -8
- package/src/resources/servers/deployments.ts +69 -425
- package/src/resources/servers/domains.ts +270 -0
- package/src/resources/servers/index.ts +10 -36
- package/src/resources/servers/logs.ts +9 -118
- package/src/resources/servers/repo.ts +15 -150
- package/src/resources/servers/secrets.ts +17 -126
- package/src/resources/servers/servers.ts +51 -319
- 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,270 @@
|
|
|
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
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Domains extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Add a managed run.tools or custom domain.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const domain = await client.servers.domains.create(
|
|
15
|
+
* 'qualifiedName',
|
|
16
|
+
* { subdomain: 'subdomain', type: 'managed' },
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(
|
|
21
|
+
qualifiedName: string,
|
|
22
|
+
body: DomainCreateParams,
|
|
23
|
+
options?: RequestOptions,
|
|
24
|
+
): APIPromise<DomainCreateResponse> {
|
|
25
|
+
return this._client.post(path`/servers/${qualifiedName}/domains`, { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Update domain settings such as subdomain slug or authentication requirements.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const domain = await client.servers.domains.update(
|
|
34
|
+
* 'domainId',
|
|
35
|
+
* { qualifiedName: 'qualifiedName' },
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
update(
|
|
40
|
+
domainID: string,
|
|
41
|
+
params: DomainUpdateParams,
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<DomainUpdateResponse> {
|
|
44
|
+
const { qualifiedName, ...body } = params;
|
|
45
|
+
return this._client.patch(path`/servers/${qualifiedName}/domains/${domainID}`, { body, ...options });
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* List all domains, including managed run.tools and custom domains.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const domains = await client.servers.domains.list(
|
|
54
|
+
* 'qualifiedName',
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
list(qualifiedName: string, options?: RequestOptions): APIPromise<DomainListResponse> {
|
|
59
|
+
return this._client.get(path`/servers/${qualifiedName}/domains`, options);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Remove a domain and clean up associated DNS records.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const domain = await client.servers.domains.delete(
|
|
68
|
+
* 'domainId',
|
|
69
|
+
* { qualifiedName: 'qualifiedName' },
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
delete(
|
|
74
|
+
domainID: string,
|
|
75
|
+
params: DomainDeleteParams,
|
|
76
|
+
options?: RequestOptions,
|
|
77
|
+
): APIPromise<DomainDeleteResponse> {
|
|
78
|
+
const { qualifiedName } = params;
|
|
79
|
+
return this._client.delete(path`/servers/${qualifiedName}/domains/${domainID}`, options);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface DomainCreateResponse {
|
|
84
|
+
id: string;
|
|
85
|
+
|
|
86
|
+
allowUnauthenticated: boolean;
|
|
87
|
+
|
|
88
|
+
cnameTarget: string | null;
|
|
89
|
+
|
|
90
|
+
createdAt: string;
|
|
91
|
+
|
|
92
|
+
hostname: string;
|
|
93
|
+
|
|
94
|
+
requiresConfig: boolean;
|
|
95
|
+
|
|
96
|
+
status: 'pending_validation' | 'pending' | 'active' | 'failed' | null;
|
|
97
|
+
|
|
98
|
+
subdomain: string | null;
|
|
99
|
+
|
|
100
|
+
type: 'managed' | 'custom';
|
|
101
|
+
|
|
102
|
+
updatedAt: string;
|
|
103
|
+
|
|
104
|
+
validation: DomainCreateResponse.Validation | null;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export namespace DomainCreateResponse {
|
|
108
|
+
export interface Validation {
|
|
109
|
+
records: Array<Validation.Record>;
|
|
110
|
+
|
|
111
|
+
type: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export namespace Validation {
|
|
115
|
+
export interface Record {
|
|
116
|
+
name: string;
|
|
117
|
+
|
|
118
|
+
value: string;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface DomainUpdateResponse {
|
|
124
|
+
id: string;
|
|
125
|
+
|
|
126
|
+
allowUnauthenticated: boolean;
|
|
127
|
+
|
|
128
|
+
cnameTarget: string | null;
|
|
129
|
+
|
|
130
|
+
createdAt: string;
|
|
131
|
+
|
|
132
|
+
hostname: string;
|
|
133
|
+
|
|
134
|
+
requiresConfig: boolean;
|
|
135
|
+
|
|
136
|
+
status: 'pending_validation' | 'pending' | 'active' | 'failed' | null;
|
|
137
|
+
|
|
138
|
+
subdomain: string | null;
|
|
139
|
+
|
|
140
|
+
type: 'managed' | 'custom';
|
|
141
|
+
|
|
142
|
+
updatedAt: string;
|
|
143
|
+
|
|
144
|
+
validation: DomainUpdateResponse.Validation | null;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export namespace DomainUpdateResponse {
|
|
148
|
+
export interface Validation {
|
|
149
|
+
records: Array<Validation.Record>;
|
|
150
|
+
|
|
151
|
+
type: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export namespace Validation {
|
|
155
|
+
export interface Record {
|
|
156
|
+
name: string;
|
|
157
|
+
|
|
158
|
+
value: string;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export interface DomainListResponse {
|
|
164
|
+
domains: Array<DomainListResponse.Domain>;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export namespace DomainListResponse {
|
|
168
|
+
export interface Domain {
|
|
169
|
+
id: string;
|
|
170
|
+
|
|
171
|
+
allowUnauthenticated: boolean;
|
|
172
|
+
|
|
173
|
+
cnameTarget: string | null;
|
|
174
|
+
|
|
175
|
+
createdAt: string;
|
|
176
|
+
|
|
177
|
+
hostname: string;
|
|
178
|
+
|
|
179
|
+
requiresConfig: boolean;
|
|
180
|
+
|
|
181
|
+
status: 'pending_validation' | 'pending' | 'active' | 'failed' | null;
|
|
182
|
+
|
|
183
|
+
subdomain: string | null;
|
|
184
|
+
|
|
185
|
+
type: 'managed' | 'custom';
|
|
186
|
+
|
|
187
|
+
updatedAt: string;
|
|
188
|
+
|
|
189
|
+
validation: Domain.Validation | null;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export namespace Domain {
|
|
193
|
+
export interface Validation {
|
|
194
|
+
records: Array<Validation.Record>;
|
|
195
|
+
|
|
196
|
+
type: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export namespace Validation {
|
|
200
|
+
export interface Record {
|
|
201
|
+
name: string;
|
|
202
|
+
|
|
203
|
+
value: string;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface DomainDeleteResponse {
|
|
210
|
+
success: boolean;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export type DomainCreateParams = DomainCreateParams.Variant0 | DomainCreateParams.Variant1;
|
|
214
|
+
|
|
215
|
+
export declare namespace DomainCreateParams {
|
|
216
|
+
export interface Variant0 {
|
|
217
|
+
subdomain: string;
|
|
218
|
+
|
|
219
|
+
type: 'managed';
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface Variant1 {
|
|
223
|
+
hostname: string;
|
|
224
|
+
|
|
225
|
+
type: 'custom';
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export interface DomainUpdateParams {
|
|
230
|
+
/**
|
|
231
|
+
* Path param: The server's qualified name (e.g. 'namespace/server' or 'namespace'
|
|
232
|
+
* for namespace-only servers). Use %2F to encode the slash.
|
|
233
|
+
*/
|
|
234
|
+
qualifiedName: string;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Body param
|
|
238
|
+
*/
|
|
239
|
+
allowUnauthenticated?: boolean;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Body param
|
|
243
|
+
*/
|
|
244
|
+
requiresConfig?: boolean;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Body param
|
|
248
|
+
*/
|
|
249
|
+
subdomain?: string;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export interface DomainDeleteParams {
|
|
253
|
+
/**
|
|
254
|
+
* The server's qualified name (e.g. 'namespace/server' or 'namespace' for
|
|
255
|
+
* namespace-only servers). Use %2F to encode the slash.
|
|
256
|
+
*/
|
|
257
|
+
qualifiedName: string;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export declare namespace Domains {
|
|
261
|
+
export {
|
|
262
|
+
type DomainCreateResponse as DomainCreateResponse,
|
|
263
|
+
type DomainUpdateResponse as DomainUpdateResponse,
|
|
264
|
+
type DomainListResponse as DomainListResponse,
|
|
265
|
+
type DomainDeleteResponse as DomainDeleteResponse,
|
|
266
|
+
type DomainCreateParams as DomainCreateParams,
|
|
267
|
+
type DomainUpdateParams as DomainUpdateParams,
|
|
268
|
+
type DomainDeleteParams as DomainDeleteParams,
|
|
269
|
+
};
|
|
270
|
+
}
|
|
@@ -9,57 +9,39 @@ export {
|
|
|
9
9
|
type StdioDeployPayload,
|
|
10
10
|
type DeploymentListResponse,
|
|
11
11
|
type DeploymentDeployResponse,
|
|
12
|
-
type DeploymentDeployByNamespaceResponse,
|
|
13
12
|
type DeploymentGetResponse,
|
|
14
|
-
type DeploymentGetByNamespaceResponse,
|
|
15
|
-
type DeploymentListByNamespaceResponse,
|
|
16
13
|
type DeploymentResumeResponse,
|
|
17
|
-
type DeploymentResumeByNamespaceResponse,
|
|
18
14
|
type DeploymentStreamResponse,
|
|
19
|
-
type DeploymentStreamByNamespaceResponse,
|
|
20
|
-
type DeploymentListParams,
|
|
21
15
|
type DeploymentDeployParams,
|
|
22
|
-
type DeploymentDeployByNamespaceParams,
|
|
23
16
|
type DeploymentGetParams,
|
|
24
|
-
type DeploymentGetByNamespaceParams,
|
|
25
17
|
type DeploymentResumeParams,
|
|
26
|
-
type DeploymentResumeByNamespaceParams,
|
|
27
18
|
type DeploymentStreamParams,
|
|
28
|
-
type DeploymentStreamByNamespaceParams,
|
|
29
19
|
} from './deployments';
|
|
30
20
|
export {
|
|
31
|
-
|
|
32
|
-
type
|
|
33
|
-
type
|
|
34
|
-
type
|
|
35
|
-
type
|
|
36
|
-
|
|
21
|
+
Domains,
|
|
22
|
+
type DomainCreateResponse,
|
|
23
|
+
type DomainUpdateResponse,
|
|
24
|
+
type DomainListResponse,
|
|
25
|
+
type DomainDeleteResponse,
|
|
26
|
+
type DomainCreateParams,
|
|
27
|
+
type DomainUpdateParams,
|
|
28
|
+
type DomainDeleteParams,
|
|
29
|
+
} from './domains';
|
|
30
|
+
export { Logs, type LogListResponse, type LogListParams } from './logs';
|
|
37
31
|
export {
|
|
38
32
|
Repo,
|
|
39
33
|
type RepoDeleteResponse,
|
|
40
|
-
type RepoDeleteByNamespaceResponse,
|
|
41
34
|
type RepoGetResponse,
|
|
42
|
-
type RepoGetByNamespaceResponse,
|
|
43
35
|
type RepoSetResponse,
|
|
44
|
-
type RepoSetByNamespaceResponse,
|
|
45
|
-
type RepoDeleteParams,
|
|
46
|
-
type RepoGetParams,
|
|
47
36
|
type RepoSetParams,
|
|
48
|
-
type RepoSetByNamespaceParams,
|
|
49
37
|
} from './repo';
|
|
50
38
|
export {
|
|
51
39
|
Secrets,
|
|
52
40
|
type SecretListResponse,
|
|
53
41
|
type SecretDeleteResponse,
|
|
54
|
-
type SecretDeleteByNamespaceResponse,
|
|
55
|
-
type SecretListByNamespaceResponse,
|
|
56
42
|
type SecretSetResponse,
|
|
57
|
-
type SecretSetByNamespaceResponse,
|
|
58
|
-
type SecretListParams,
|
|
59
43
|
type SecretDeleteParams,
|
|
60
|
-
type SecretDeleteByNamespaceParams,
|
|
61
44
|
type SecretSetParams,
|
|
62
|
-
type SecretSetByNamespaceParams,
|
|
63
45
|
} from './secrets';
|
|
64
46
|
export {
|
|
65
47
|
Servers,
|
|
@@ -70,17 +52,9 @@ export {
|
|
|
70
52
|
type ServerUpdateResponse,
|
|
71
53
|
type ServerListResponse,
|
|
72
54
|
type ServerDeleteResponse,
|
|
73
|
-
type ServerCreateByNamespaceResponse,
|
|
74
55
|
type ServerGetResponse,
|
|
75
|
-
type ServerGetByNamespaceResponse,
|
|
76
|
-
type ServerUpdateByNamespaceResponse,
|
|
77
56
|
type ServerCreateParams,
|
|
78
57
|
type ServerUpdateParams,
|
|
79
58
|
type ServerListParams,
|
|
80
|
-
type ServerDeleteParams,
|
|
81
|
-
type ServerCreateByNamespaceParams,
|
|
82
|
-
type ServerDownloadParams,
|
|
83
|
-
type ServerGetParams,
|
|
84
|
-
type ServerUpdateByNamespaceParams,
|
|
85
59
|
type ServerListResponsesSmitheryPage,
|
|
86
60
|
} from './servers';
|
|
@@ -7,38 +7,21 @@ import { path } from '../../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
export class Logs extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Fetch recent runtime logs
|
|
11
|
-
* invocation (requires ownership).
|
|
10
|
+
* Fetch recent runtime logs grouped by invocation.
|
|
12
11
|
*
|
|
13
12
|
* @example
|
|
14
13
|
* ```ts
|
|
15
|
-
* const logs = await client.servers.logs.list(
|
|
16
|
-
*
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
list(server: string, params: LogListParams, options?: RequestOptions): APIPromise<LogListResponse> {
|
|
21
|
-
const { namespace, ...query } = params;
|
|
22
|
-
return this._client.get(path`/servers/${namespace}/${server}/logs`, { query, ...options });
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Fetch recent runtime logs for the server's deployed Worker, grouped by
|
|
27
|
-
* invocation (requires ownership).
|
|
28
|
-
*
|
|
29
|
-
* @example
|
|
30
|
-
* ```ts
|
|
31
|
-
* const response = await client.servers.logs.listByNamespace(
|
|
32
|
-
* 'namespace',
|
|
14
|
+
* const logs = await client.servers.logs.list(
|
|
15
|
+
* 'qualifiedName',
|
|
33
16
|
* );
|
|
34
17
|
* ```
|
|
35
18
|
*/
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
query:
|
|
19
|
+
list(
|
|
20
|
+
qualifiedName: string,
|
|
21
|
+
query: LogListParams | null | undefined = {},
|
|
39
22
|
options?: RequestOptions,
|
|
40
|
-
): APIPromise<
|
|
41
|
-
return this._client.get(path`/servers/${
|
|
23
|
+
): APIPromise<LogListResponse> {
|
|
24
|
+
return this._client.get(path`/servers/${qualifiedName}/logs`, { query, ...options });
|
|
42
25
|
}
|
|
43
26
|
}
|
|
44
27
|
|
|
@@ -107,94 +90,7 @@ export namespace LogListResponse {
|
|
|
107
90
|
}
|
|
108
91
|
}
|
|
109
92
|
|
|
110
|
-
export interface LogListByNamespaceResponse {
|
|
111
|
-
invocations: Array<LogListByNamespaceResponse.Invocation>;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Total invocations matching query
|
|
115
|
-
*/
|
|
116
|
-
total: number;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export namespace LogListByNamespaceResponse {
|
|
120
|
-
export interface Invocation {
|
|
121
|
-
id: string;
|
|
122
|
-
|
|
123
|
-
duration: Invocation.Duration;
|
|
124
|
-
|
|
125
|
-
exceptions: Array<Invocation.Exception>;
|
|
126
|
-
|
|
127
|
-
logs: Array<Invocation.Log>;
|
|
128
|
-
|
|
129
|
-
request: Invocation.Request;
|
|
130
|
-
|
|
131
|
-
response: Invocation.Response;
|
|
132
|
-
|
|
133
|
-
timestamp: string;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export namespace Invocation {
|
|
137
|
-
export interface Duration {
|
|
138
|
-
cpuMs: number;
|
|
139
|
-
|
|
140
|
-
wallMs: number;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface Exception {
|
|
144
|
-
message: string;
|
|
145
|
-
|
|
146
|
-
name: string;
|
|
147
|
-
|
|
148
|
-
timestamp: string;
|
|
149
|
-
|
|
150
|
-
stack?: string;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export interface Log {
|
|
154
|
-
level: string;
|
|
155
|
-
|
|
156
|
-
message: string;
|
|
157
|
-
|
|
158
|
-
timestamp: string;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
export interface Request {
|
|
162
|
-
method: string;
|
|
163
|
-
|
|
164
|
-
url: string;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export interface Response {
|
|
168
|
-
outcome: string;
|
|
169
|
-
|
|
170
|
-
status: number;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
93
|
export interface LogListParams {
|
|
176
|
-
/**
|
|
177
|
-
* Path param
|
|
178
|
-
*/
|
|
179
|
-
namespace: string;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Query param: Start of time range (ISO 8601).
|
|
183
|
-
*/
|
|
184
|
-
from?: string;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Query param: Max invocations to return. Defaults to 50.
|
|
188
|
-
*/
|
|
189
|
-
limit?: number;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Query param: End of time range (ISO 8601).
|
|
193
|
-
*/
|
|
194
|
-
to?: string;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export interface LogListByNamespaceParams {
|
|
198
94
|
/**
|
|
199
95
|
* Start of time range (ISO 8601).
|
|
200
96
|
*/
|
|
@@ -212,10 +108,5 @@ export interface LogListByNamespaceParams {
|
|
|
212
108
|
}
|
|
213
109
|
|
|
214
110
|
export declare namespace Logs {
|
|
215
|
-
export {
|
|
216
|
-
type LogListResponse as LogListResponse,
|
|
217
|
-
type LogListByNamespaceResponse as LogListByNamespaceResponse,
|
|
218
|
-
type LogListParams as LogListParams,
|
|
219
|
-
type LogListByNamespaceParams as LogListByNamespaceParams,
|
|
220
|
-
};
|
|
111
|
+
export { type LogListResponse as LogListResponse, type LogListParams as LogListParams };
|
|
221
112
|
}
|