@smithery/api 0.56.1 → 0.57.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 +177 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/connections/connections.d.mts +0 -19
- package/resources/connections/connections.d.mts.map +1 -1
- package/resources/connections/connections.d.ts +0 -19
- package/resources/connections/connections.d.ts.map +1 -1
- package/resources/connections/connections.js.map +1 -1
- package/resources/connections/connections.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/namespaces/namespaces.d.mts +4 -3
- package/resources/namespaces/namespaces.d.mts.map +1 -1
- package/resources/namespaces/namespaces.d.ts +4 -3
- package/resources/namespaces/namespaces.d.ts.map +1 -1
- package/resources/namespaces/namespaces.js +4 -3
- package/resources/namespaces/namespaces.js.map +1 -1
- package/resources/namespaces/namespaces.mjs +4 -3
- package/resources/namespaces/namespaces.mjs.map +1 -1
- package/resources/organizations/api-keys.d.mts +43 -0
- package/resources/organizations/api-keys.d.mts.map +1 -0
- package/resources/organizations/api-keys.d.ts +43 -0
- package/resources/organizations/api-keys.d.ts.map +1 -0
- package/resources/organizations/api-keys.js +30 -0
- package/resources/organizations/api-keys.js.map +1 -0
- package/resources/organizations/api-keys.mjs +26 -0
- package/resources/organizations/api-keys.mjs.map +1 -0
- package/resources/organizations/index.d.mts +3 -0
- package/resources/organizations/index.d.mts.map +1 -0
- package/resources/organizations/index.d.ts +3 -0
- package/resources/organizations/index.d.ts.map +1 -0
- package/resources/organizations/index.js +9 -0
- package/resources/organizations/index.js.map +1 -0
- package/resources/organizations/index.mjs +4 -0
- package/resources/organizations/index.mjs.map +1 -0
- package/resources/organizations/organizations.d.mts +10 -0
- package/resources/organizations/organizations.d.mts.map +1 -0
- package/resources/organizations/organizations.d.ts +10 -0
- package/resources/organizations/organizations.d.ts.map +1 -0
- package/resources/organizations/organizations.js +17 -0
- package/resources/organizations/organizations.js.map +1 -0
- package/resources/organizations/organizations.mjs +12 -0
- package/resources/organizations/organizations.mjs.map +1 -0
- package/resources/organizations.d.mts +2 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +2 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +6 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +3 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/servers/domains.d.mts +13 -122
- package/resources/servers/domains.d.mts.map +1 -1
- package/resources/servers/domains.d.ts +13 -122
- package/resources/servers/domains.d.ts.map +1 -1
- package/resources/servers/domains.js +6 -32
- package/resources/servers/domains.js.map +1 -1
- package/resources/servers/domains.mjs +6 -32
- package/resources/servers/domains.mjs.map +1 -1
- package/resources/servers/index.d.mts +1 -1
- package/resources/servers/index.d.mts.map +1 -1
- package/resources/servers/index.d.ts +1 -1
- package/resources/servers/index.d.ts.map +1 -1
- package/resources/servers/index.js.map +1 -1
- package/resources/servers/index.mjs.map +1 -1
- package/resources/servers/releases.d.mts +0 -12
- package/resources/servers/releases.d.mts.map +1 -1
- package/resources/servers/releases.d.ts +0 -12
- package/resources/servers/releases.d.ts.map +1 -1
- package/resources/servers/servers.d.mts +2 -14
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +2 -14
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs +1 -1
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/skills/skills.d.mts +2 -2
- package/resources/skills/skills.d.ts +2 -2
- package/resources/tokens.d.mts +17 -0
- package/resources/tokens.d.mts.map +1 -1
- package/resources/tokens.d.ts +17 -0
- package/resources/tokens.d.ts.map +1 -1
- package/resources/tokens.js +5 -0
- package/resources/tokens.js.map +1 -1
- package/resources/tokens.mjs +5 -0
- package/resources/tokens.mjs.map +1 -1
- package/src/client.ts +5 -0
- package/src/resources/connections/connections.ts +0 -22
- package/src/resources/index.ts +1 -0
- package/src/resources/namespaces/namespaces.ts +4 -3
- package/src/resources/organizations/api-keys.ts +78 -0
- package/src/resources/organizations/index.ts +11 -0
- package/src/resources/organizations/organizations.ts +29 -0
- package/src/resources/organizations.ts +3 -0
- package/src/resources/servers/domains.ts +12 -182
- package/src/resources/servers/index.ts +0 -4
- package/src/resources/servers/releases.ts +0 -14
- package/src/resources/servers/servers.ts +1 -28
- package/src/resources/skills/skills.ts +2 -2
- package/src/resources/tokens.ts +19 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,78 @@
|
|
|
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 APIKeys extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Creates an API key owned by the organization. Requires admin role.
|
|
11
|
+
*/
|
|
12
|
+
create(
|
|
13
|
+
orgID: string,
|
|
14
|
+
body: APIKeyCreateParams,
|
|
15
|
+
options?: RequestOptions,
|
|
16
|
+
): APIPromise<APIKeyCreateResponse> {
|
|
17
|
+
return this._client.post(path`/organizations/${orgID}/api-keys`, { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Returns all API keys belonging to the organization. Requires admin role. Key
|
|
22
|
+
* values are not included in the response.
|
|
23
|
+
*/
|
|
24
|
+
list(orgID: string, options?: RequestOptions): APIPromise<APIKeyListResponse> {
|
|
25
|
+
return this._client.get(path`/organizations/${orgID}/api-keys`, options);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Deletes an API key belonging to the organization. Requires admin role.
|
|
30
|
+
*/
|
|
31
|
+
delete(
|
|
32
|
+
keyID: string,
|
|
33
|
+
params: APIKeyDeleteParams,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<APIKeyDeleteResponse> {
|
|
36
|
+
const { orgId } = params;
|
|
37
|
+
return this._client.delete(path`/organizations/${orgId}/api-keys/${keyID}`, options);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface APIKeyCreateResponse {
|
|
42
|
+
id: string;
|
|
43
|
+
|
|
44
|
+
createdAt: string;
|
|
45
|
+
|
|
46
|
+
key: string;
|
|
47
|
+
|
|
48
|
+
name: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface APIKeyListResponse {
|
|
52
|
+
apiKeys: Array<unknown>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface APIKeyDeleteResponse {
|
|
56
|
+
success: boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface APIKeyCreateParams {
|
|
60
|
+
/**
|
|
61
|
+
* Name for the team API key
|
|
62
|
+
*/
|
|
63
|
+
name: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface APIKeyDeleteParams {
|
|
67
|
+
orgId: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export declare namespace APIKeys {
|
|
71
|
+
export {
|
|
72
|
+
type APIKeyCreateResponse as APIKeyCreateResponse,
|
|
73
|
+
type APIKeyListResponse as APIKeyListResponse,
|
|
74
|
+
type APIKeyDeleteResponse as APIKeyDeleteResponse,
|
|
75
|
+
type APIKeyCreateParams as APIKeyCreateParams,
|
|
76
|
+
type APIKeyDeleteParams as APIKeyDeleteParams,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
APIKeys,
|
|
5
|
+
type APIKeyCreateResponse,
|
|
6
|
+
type APIKeyListResponse,
|
|
7
|
+
type APIKeyDeleteResponse,
|
|
8
|
+
type APIKeyCreateParams,
|
|
9
|
+
type APIKeyDeleteParams,
|
|
10
|
+
} from './api-keys';
|
|
11
|
+
export { Organizations } from './organizations';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as APIKeysAPI from './api-keys';
|
|
5
|
+
import {
|
|
6
|
+
APIKeyCreateParams,
|
|
7
|
+
APIKeyCreateResponse,
|
|
8
|
+
APIKeyDeleteParams,
|
|
9
|
+
APIKeyDeleteResponse,
|
|
10
|
+
APIKeyListResponse,
|
|
11
|
+
APIKeys,
|
|
12
|
+
} from './api-keys';
|
|
13
|
+
|
|
14
|
+
export class Organizations extends APIResource {
|
|
15
|
+
apiKeys: APIKeysAPI.APIKeys = new APIKeysAPI.APIKeys(this._client);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
Organizations.APIKeys = APIKeys;
|
|
19
|
+
|
|
20
|
+
export declare namespace Organizations {
|
|
21
|
+
export {
|
|
22
|
+
APIKeys as APIKeys,
|
|
23
|
+
type APIKeyCreateResponse as APIKeyCreateResponse,
|
|
24
|
+
type APIKeyListResponse as APIKeyListResponse,
|
|
25
|
+
type APIKeyDeleteResponse as APIKeyDeleteResponse,
|
|
26
|
+
type APIKeyCreateParams as APIKeyCreateParams,
|
|
27
|
+
type APIKeyDeleteParams as APIKeyDeleteParams,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
@@ -7,32 +7,16 @@ import { path } from '../../internal/utils/path';
|
|
|
7
7
|
|
|
8
8
|
export class Domains extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
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.
|
|
10
|
+
* Update the managed run.tools slug for a server.
|
|
30
11
|
*
|
|
31
12
|
* @example
|
|
32
13
|
* ```ts
|
|
33
14
|
* const domain = await client.servers.domains.update(
|
|
34
15
|
* 'domainId',
|
|
35
|
-
* {
|
|
16
|
+
* {
|
|
17
|
+
* qualifiedName: 'qualifiedName',
|
|
18
|
+
* subdomain: 'subdomain',
|
|
19
|
+
* },
|
|
36
20
|
* );
|
|
37
21
|
* ```
|
|
38
22
|
*/
|
|
@@ -46,7 +30,7 @@ export class Domains extends APIResource {
|
|
|
46
30
|
}
|
|
47
31
|
|
|
48
32
|
/**
|
|
49
|
-
* List
|
|
33
|
+
* List the domains for a server.
|
|
50
34
|
*
|
|
51
35
|
* @example
|
|
52
36
|
* ```ts
|
|
@@ -58,106 +42,20 @@ export class Domains extends APIResource {
|
|
|
58
42
|
list(qualifiedName: string, options?: RequestOptions): APIPromise<DomainListResponse> {
|
|
59
43
|
return this._client.get(path`/servers/${qualifiedName}/domains`, options);
|
|
60
44
|
}
|
|
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
45
|
}
|
|
122
46
|
|
|
123
47
|
export interface DomainUpdateResponse {
|
|
124
|
-
id:
|
|
125
|
-
|
|
126
|
-
allowUnauthenticated: boolean;
|
|
127
|
-
|
|
128
|
-
cnameTarget: string | null;
|
|
48
|
+
id: 'managed';
|
|
129
49
|
|
|
130
50
|
createdAt: string;
|
|
131
51
|
|
|
132
52
|
hostname: string;
|
|
133
53
|
|
|
134
|
-
|
|
54
|
+
subdomain: string;
|
|
135
55
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
subdomain: string | null;
|
|
139
|
-
|
|
140
|
-
type: 'managed' | 'custom';
|
|
56
|
+
type: 'managed';
|
|
141
57
|
|
|
142
58
|
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
59
|
}
|
|
162
60
|
|
|
163
61
|
export interface DomainListResponse {
|
|
@@ -166,63 +64,17 @@ export interface DomainListResponse {
|
|
|
166
64
|
|
|
167
65
|
export namespace DomainListResponse {
|
|
168
66
|
export interface Domain {
|
|
169
|
-
id:
|
|
170
|
-
|
|
171
|
-
allowUnauthenticated: boolean;
|
|
172
|
-
|
|
173
|
-
cnameTarget: string | null;
|
|
67
|
+
id: 'managed';
|
|
174
68
|
|
|
175
69
|
createdAt: string;
|
|
176
70
|
|
|
177
71
|
hostname: string;
|
|
178
72
|
|
|
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
73
|
subdomain: string;
|
|
218
74
|
|
|
219
75
|
type: 'managed';
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export interface Variant1 {
|
|
223
|
-
hostname: string;
|
|
224
76
|
|
|
225
|
-
|
|
77
|
+
updatedAt: string;
|
|
226
78
|
}
|
|
227
79
|
}
|
|
228
80
|
|
|
@@ -236,35 +88,13 @@ export interface DomainUpdateParams {
|
|
|
236
88
|
/**
|
|
237
89
|
* Body param
|
|
238
90
|
*/
|
|
239
|
-
|
|
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;
|
|
91
|
+
subdomain: string;
|
|
258
92
|
}
|
|
259
93
|
|
|
260
94
|
export declare namespace Domains {
|
|
261
95
|
export {
|
|
262
|
-
type DomainCreateResponse as DomainCreateResponse,
|
|
263
96
|
type DomainUpdateResponse as DomainUpdateResponse,
|
|
264
97
|
type DomainListResponse as DomainListResponse,
|
|
265
|
-
type DomainDeleteResponse as DomainDeleteResponse,
|
|
266
|
-
type DomainCreateParams as DomainCreateParams,
|
|
267
98
|
type DomainUpdateParams as DomainUpdateParams,
|
|
268
|
-
type DomainDeleteParams as DomainDeleteParams,
|
|
269
99
|
};
|
|
270
100
|
}
|
|
@@ -2,13 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
Domains,
|
|
5
|
-
type DomainCreateResponse,
|
|
6
5
|
type DomainUpdateResponse,
|
|
7
6
|
type DomainListResponse,
|
|
8
|
-
type DomainDeleteResponse,
|
|
9
|
-
type DomainCreateParams,
|
|
10
7
|
type DomainUpdateParams,
|
|
11
|
-
type DomainDeleteParams,
|
|
12
8
|
} from './domains';
|
|
13
9
|
export { Icon, type IconDeleteResponse, type IconUploadResponse } from './icon';
|
|
14
10
|
export { Logs, type LogListResponse, type LogListParams } from './logs';
|
|
@@ -178,8 +178,6 @@ export namespace HostedDeployPayload {
|
|
|
178
178
|
export interface ServerCard {
|
|
179
179
|
serverInfo: ServerCard.ServerInfo;
|
|
180
180
|
|
|
181
|
-
eventTopics?: Array<ServerCard.EventTopic>;
|
|
182
|
-
|
|
183
181
|
prompts?: Array<ServerCard.Prompt>;
|
|
184
182
|
|
|
185
183
|
resources?: Array<ServerCard.Resource>;
|
|
@@ -216,18 +214,6 @@ export namespace ServerCard {
|
|
|
216
214
|
}
|
|
217
215
|
}
|
|
218
216
|
|
|
219
|
-
export interface EventTopic {
|
|
220
|
-
name: string;
|
|
221
|
-
|
|
222
|
-
topic: string;
|
|
223
|
-
|
|
224
|
-
description?: string;
|
|
225
|
-
|
|
226
|
-
eventSchema?: { [key: string]: unknown };
|
|
227
|
-
|
|
228
|
-
inputSchema?: { [key: string]: unknown };
|
|
229
|
-
}
|
|
230
|
-
|
|
231
217
|
export interface Prompt {
|
|
232
218
|
name: string;
|
|
233
219
|
|
|
@@ -2,16 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as DomainsAPI from './domains';
|
|
5
|
-
import {
|
|
6
|
-
DomainCreateParams,
|
|
7
|
-
DomainCreateResponse,
|
|
8
|
-
DomainDeleteParams,
|
|
9
|
-
DomainDeleteResponse,
|
|
10
|
-
DomainListResponse,
|
|
11
|
-
DomainUpdateParams,
|
|
12
|
-
DomainUpdateResponse,
|
|
13
|
-
Domains,
|
|
14
|
-
} from './domains';
|
|
5
|
+
import { DomainListResponse, DomainUpdateParams, DomainUpdateResponse, Domains } from './domains';
|
|
15
6
|
import * as IconAPI from './icon';
|
|
16
7
|
import { Icon, IconDeleteResponse, IconUploadResponse } from './icon';
|
|
17
8
|
import * as LogsAPI from './logs';
|
|
@@ -332,8 +323,6 @@ export interface ServerGetResponse {
|
|
|
332
323
|
|
|
333
324
|
displayName: string;
|
|
334
325
|
|
|
335
|
-
eventTopics: Array<ServerGetResponse.EventTopic> | null;
|
|
336
|
-
|
|
337
326
|
iconUrl: string | null;
|
|
338
327
|
|
|
339
328
|
prompts: Array<ServerGetResponse.Prompt> | null;
|
|
@@ -370,18 +359,6 @@ export namespace ServerGetResponse {
|
|
|
370
359
|
type: 'http';
|
|
371
360
|
}
|
|
372
361
|
|
|
373
|
-
export interface EventTopic {
|
|
374
|
-
name: string;
|
|
375
|
-
|
|
376
|
-
topic: string;
|
|
377
|
-
|
|
378
|
-
description?: string;
|
|
379
|
-
|
|
380
|
-
eventSchema?: { [key: string]: unknown };
|
|
381
|
-
|
|
382
|
-
inputSchema?: { [key: string]: unknown };
|
|
383
|
-
}
|
|
384
|
-
|
|
385
362
|
export interface Prompt {
|
|
386
363
|
name: string;
|
|
387
364
|
|
|
@@ -595,12 +572,8 @@ export declare namespace Servers {
|
|
|
595
572
|
|
|
596
573
|
export {
|
|
597
574
|
Domains as Domains,
|
|
598
|
-
type DomainCreateResponse as DomainCreateResponse,
|
|
599
575
|
type DomainUpdateResponse as DomainUpdateResponse,
|
|
600
576
|
type DomainListResponse as DomainListResponse,
|
|
601
|
-
type DomainDeleteResponse as DomainDeleteResponse,
|
|
602
|
-
type DomainCreateParams as DomainCreateParams,
|
|
603
577
|
type DomainUpdateParams as DomainUpdateParams,
|
|
604
|
-
type DomainDeleteParams as DomainDeleteParams,
|
|
605
578
|
};
|
|
606
579
|
}
|
|
@@ -268,7 +268,7 @@ export interface SkillGetResponse {
|
|
|
268
268
|
namespace: string;
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
|
-
*
|
|
271
|
+
* Organization ID of the skill owner (from namespace)
|
|
272
272
|
*/
|
|
273
273
|
owner: string | null;
|
|
274
274
|
|
|
@@ -390,7 +390,7 @@ export interface SkillListParams extends SkillsPageParams {
|
|
|
390
390
|
namespace?: string;
|
|
391
391
|
|
|
392
392
|
/**
|
|
393
|
-
* Filter by the skill owner's
|
|
393
|
+
* Filter by the skill owner's organization ID.
|
|
394
394
|
*/
|
|
395
395
|
ownerId?: string;
|
|
396
396
|
|
package/src/resources/tokens.ts
CHANGED
|
@@ -8,6 +8,11 @@ export class Tokens extends APIResource {
|
|
|
8
8
|
/**
|
|
9
9
|
* Create a service token for machine-to-machine authentication. Accepts API key or
|
|
10
10
|
* bearer token. Optionally apply restrictions.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const createTokenResponse = await client.tokens.create();
|
|
15
|
+
* ```
|
|
11
16
|
*/
|
|
12
17
|
create(
|
|
13
18
|
body: TokenCreateParams | null | undefined = {},
|
|
@@ -67,6 +72,13 @@ export interface Constraint {
|
|
|
67
72
|
}
|
|
68
73
|
|
|
69
74
|
export interface CreateTokenRequest {
|
|
75
|
+
/**
|
|
76
|
+
* Optional organization ID to scope the token to. When provided, the token is
|
|
77
|
+
* minted with org context. The authenticated user must be an admin or owner of the
|
|
78
|
+
* organization.
|
|
79
|
+
*/
|
|
80
|
+
organizationId?: string;
|
|
81
|
+
|
|
70
82
|
/**
|
|
71
83
|
* Constraint objects to restrict the token. Each constraint may include a `ttl`
|
|
72
84
|
* field (max 24 hours). Default TTL is 1 hour. Maximum is 24 hours.
|
|
@@ -87,6 +99,13 @@ export interface CreateTokenResponse {
|
|
|
87
99
|
}
|
|
88
100
|
|
|
89
101
|
export interface TokenCreateParams {
|
|
102
|
+
/**
|
|
103
|
+
* Optional organization ID to scope the token to. When provided, the token is
|
|
104
|
+
* minted with org context. The authenticated user must be an admin or owner of the
|
|
105
|
+
* organization.
|
|
106
|
+
*/
|
|
107
|
+
organizationId?: string;
|
|
108
|
+
|
|
90
109
|
/**
|
|
91
110
|
* Constraint objects to restrict the token. Each constraint may include a `ttl`
|
|
92
111
|
* field (max 24 hours). Default TTL is 1 hour. Maximum is 24 hours.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.57.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.57.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.57.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.57.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|