@smithery/api 0.56.0 → 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.
Files changed (136) hide show
  1. package/CHANGELOG.md +189 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/connections/connections.d.mts +0 -19
  12. package/resources/connections/connections.d.mts.map +1 -1
  13. package/resources/connections/connections.d.ts +0 -19
  14. package/resources/connections/connections.d.ts.map +1 -1
  15. package/resources/connections/connections.js.map +1 -1
  16. package/resources/connections/connections.mjs.map +1 -1
  17. package/resources/index.d.mts +1 -0
  18. package/resources/index.d.mts.map +1 -1
  19. package/resources/index.d.ts +1 -0
  20. package/resources/index.d.ts.map +1 -1
  21. package/resources/index.js +3 -1
  22. package/resources/index.js.map +1 -1
  23. package/resources/index.mjs +1 -0
  24. package/resources/index.mjs.map +1 -1
  25. package/resources/namespaces/namespaces.d.mts +4 -3
  26. package/resources/namespaces/namespaces.d.mts.map +1 -1
  27. package/resources/namespaces/namespaces.d.ts +4 -3
  28. package/resources/namespaces/namespaces.d.ts.map +1 -1
  29. package/resources/namespaces/namespaces.js +4 -3
  30. package/resources/namespaces/namespaces.js.map +1 -1
  31. package/resources/namespaces/namespaces.mjs +4 -3
  32. package/resources/namespaces/namespaces.mjs.map +1 -1
  33. package/resources/organizations/api-keys.d.mts +43 -0
  34. package/resources/organizations/api-keys.d.mts.map +1 -0
  35. package/resources/organizations/api-keys.d.ts +43 -0
  36. package/resources/organizations/api-keys.d.ts.map +1 -0
  37. package/resources/organizations/api-keys.js +30 -0
  38. package/resources/organizations/api-keys.js.map +1 -0
  39. package/resources/organizations/api-keys.mjs +26 -0
  40. package/resources/organizations/api-keys.mjs.map +1 -0
  41. package/resources/organizations/index.d.mts +3 -0
  42. package/resources/organizations/index.d.mts.map +1 -0
  43. package/resources/organizations/index.d.ts +3 -0
  44. package/resources/organizations/index.d.ts.map +1 -0
  45. package/resources/organizations/index.js +9 -0
  46. package/resources/organizations/index.js.map +1 -0
  47. package/resources/organizations/index.mjs +4 -0
  48. package/resources/organizations/index.mjs.map +1 -0
  49. package/resources/organizations/organizations.d.mts +10 -0
  50. package/resources/organizations/organizations.d.mts.map +1 -0
  51. package/resources/organizations/organizations.d.ts +10 -0
  52. package/resources/organizations/organizations.d.ts.map +1 -0
  53. package/resources/organizations/organizations.js +17 -0
  54. package/resources/organizations/organizations.js.map +1 -0
  55. package/resources/organizations/organizations.mjs +12 -0
  56. package/resources/organizations/organizations.mjs.map +1 -0
  57. package/resources/organizations.d.mts +2 -0
  58. package/resources/organizations.d.mts.map +1 -0
  59. package/resources/organizations.d.ts +2 -0
  60. package/resources/organizations.d.ts.map +1 -0
  61. package/resources/organizations.js +6 -0
  62. package/resources/organizations.js.map +1 -0
  63. package/resources/organizations.mjs +3 -0
  64. package/resources/organizations.mjs.map +1 -0
  65. package/resources/servers/domains.d.mts +13 -122
  66. package/resources/servers/domains.d.mts.map +1 -1
  67. package/resources/servers/domains.d.ts +13 -122
  68. package/resources/servers/domains.d.ts.map +1 -1
  69. package/resources/servers/domains.js +6 -32
  70. package/resources/servers/domains.js.map +1 -1
  71. package/resources/servers/domains.mjs +6 -32
  72. package/resources/servers/domains.mjs.map +1 -1
  73. package/resources/servers/index.d.mts +2 -2
  74. package/resources/servers/index.d.mts.map +1 -1
  75. package/resources/servers/index.d.ts +2 -2
  76. package/resources/servers/index.d.ts.map +1 -1
  77. package/resources/servers/index.js.map +1 -1
  78. package/resources/servers/index.mjs.map +1 -1
  79. package/resources/servers/releases.d.mts +2 -30
  80. package/resources/servers/releases.d.mts.map +1 -1
  81. package/resources/servers/releases.d.ts +2 -30
  82. package/resources/servers/releases.d.ts.map +1 -1
  83. package/resources/servers/servers.d.mts +4 -16
  84. package/resources/servers/servers.d.mts.map +1 -1
  85. package/resources/servers/servers.d.ts +4 -16
  86. package/resources/servers/servers.d.ts.map +1 -1
  87. package/resources/servers/servers.js.map +1 -1
  88. package/resources/servers/servers.mjs +1 -1
  89. package/resources/servers/servers.mjs.map +1 -1
  90. package/resources/skills/reviews.d.mts +17 -5
  91. package/resources/skills/reviews.d.mts.map +1 -1
  92. package/resources/skills/reviews.d.ts +17 -5
  93. package/resources/skills/reviews.d.ts.map +1 -1
  94. package/resources/skills/reviews.js +17 -5
  95. package/resources/skills/reviews.js.map +1 -1
  96. package/resources/skills/reviews.mjs +17 -5
  97. package/resources/skills/reviews.mjs.map +1 -1
  98. package/resources/skills/skills.d.mts +2 -2
  99. package/resources/skills/skills.d.ts +2 -2
  100. package/resources/skills/votes.d.mts +11 -3
  101. package/resources/skills/votes.d.mts.map +1 -1
  102. package/resources/skills/votes.d.ts +11 -3
  103. package/resources/skills/votes.d.ts.map +1 -1
  104. package/resources/skills/votes.js +11 -3
  105. package/resources/skills/votes.js.map +1 -1
  106. package/resources/skills/votes.mjs +11 -3
  107. package/resources/skills/votes.mjs.map +1 -1
  108. package/resources/tokens.d.mts +17 -0
  109. package/resources/tokens.d.mts.map +1 -1
  110. package/resources/tokens.d.ts +17 -0
  111. package/resources/tokens.d.ts.map +1 -1
  112. package/resources/tokens.js +5 -0
  113. package/resources/tokens.js.map +1 -1
  114. package/resources/tokens.mjs +5 -0
  115. package/resources/tokens.mjs.map +1 -1
  116. package/src/client.ts +5 -0
  117. package/src/resources/connections/connections.ts +0 -22
  118. package/src/resources/index.ts +1 -0
  119. package/src/resources/namespaces/namespaces.ts +4 -3
  120. package/src/resources/organizations/api-keys.ts +78 -0
  121. package/src/resources/organizations/index.ts +11 -0
  122. package/src/resources/organizations/organizations.ts +29 -0
  123. package/src/resources/organizations.ts +3 -0
  124. package/src/resources/servers/domains.ts +12 -182
  125. package/src/resources/servers/index.ts +0 -5
  126. package/src/resources/servers/releases.ts +1 -42
  127. package/src/resources/servers/servers.ts +1 -30
  128. package/src/resources/skills/reviews.ts +17 -5
  129. package/src/resources/skills/skills.ts +2 -2
  130. package/src/resources/skills/votes.ts +11 -3
  131. package/src/resources/tokens.ts +19 -0
  132. package/src/version.ts +1 -1
  133. package/version.d.mts +1 -1
  134. package/version.d.ts +1 -1
  135. package/version.js +1 -1
  136. package/version.mjs +1 -1
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './organizations/index';
@@ -7,32 +7,16 @@ import { path } from '../../internal/utils/path';
7
7
 
8
8
  export class Domains extends APIResource {
9
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.
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
- * { qualifiedName: 'qualifiedName' },
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 all domains, including managed run.tools and custom domains.
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: string;
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
- requiresConfig: boolean;
54
+ subdomain: string;
135
55
 
136
- status: 'pending_validation' | 'pending' | 'active' | 'failed' | null;
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: string;
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
- type: 'custom';
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
- 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;
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';
@@ -18,7 +14,6 @@ export {
18
14
  type ExternalDeployPayload,
19
15
  type HostedDeployPayload,
20
16
  type ServerCard,
21
- type StdioDeployPayload,
22
17
  type ReleaseListResponse,
23
18
  type ReleaseDeployResponse,
24
19
  type ReleaseGetResponse,
@@ -127,11 +127,7 @@ export class Releases extends APIResource {
127
127
 
128
128
  export type ReleaseListResponsesReleasesPage = ReleasesPage<ReleaseListResponse>;
129
129
 
130
- export type DeployPayload =
131
- | HostedDeployPayload
132
- | ExternalDeployPayload
133
- | StdioDeployPayload
134
- | DeployPayload.RepoDeployPayload;
130
+ export type DeployPayload = HostedDeployPayload | ExternalDeployPayload | DeployPayload.RepoDeployPayload;
135
131
 
136
132
  export namespace DeployPayload {
137
133
  export interface RepoDeployPayload {
@@ -182,8 +178,6 @@ export namespace HostedDeployPayload {
182
178
  export interface ServerCard {
183
179
  serverInfo: ServerCard.ServerInfo;
184
180
 
185
- eventTopics?: Array<ServerCard.EventTopic>;
186
-
187
181
  prompts?: Array<ServerCard.Prompt>;
188
182
 
189
183
  resources?: Array<ServerCard.Resource>;
@@ -220,18 +214,6 @@ export namespace ServerCard {
220
214
  }
221
215
  }
222
216
 
223
- export interface EventTopic {
224
- name: string;
225
-
226
- topic: string;
227
-
228
- description?: string;
229
-
230
- eventSchema?: { [key: string]: unknown };
231
-
232
- inputSchema?: { [key: string]: unknown };
233
- }
234
-
235
217
  export interface Prompt {
236
218
  name: string;
237
219
 
@@ -373,28 +355,6 @@ export namespace ServerCard {
373
355
  }
374
356
  }
375
357
 
376
- export interface StdioDeployPayload {
377
- hasAuthAdapter: boolean;
378
-
379
- runtime: 'node';
380
-
381
- type: 'stdio';
382
-
383
- configSchema?: { [key: string]: unknown };
384
-
385
- serverCard?: ServerCard;
386
-
387
- source?: StdioDeployPayload.Source;
388
- }
389
-
390
- export namespace StdioDeployPayload {
391
- export interface Source {
392
- branch?: string;
393
-
394
- commit?: string;
395
- }
396
- }
397
-
398
358
  export interface ReleaseListResponse {
399
359
  id: string;
400
360
 
@@ -628,7 +588,6 @@ export declare namespace Releases {
628
588
  type ExternalDeployPayload as ExternalDeployPayload,
629
589
  type HostedDeployPayload as HostedDeployPayload,
630
590
  type ServerCard as ServerCard,
631
- type StdioDeployPayload as StdioDeployPayload,
632
591
  type ReleaseListResponse as ReleaseListResponse,
633
592
  type ReleaseDeployResponse as ReleaseDeployResponse,
634
593
  type ReleaseGetResponse as ReleaseGetResponse,
@@ -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';
@@ -34,7 +25,6 @@ import {
34
25
  ReleaseStreamResponse,
35
26
  Releases,
36
27
  ServerCard,
37
- StdioDeployPayload,
38
28
  } from './releases';
39
29
  import * as RepoAPI from './repo';
40
30
  import {
@@ -333,8 +323,6 @@ export interface ServerGetResponse {
333
323
 
334
324
  displayName: string;
335
325
 
336
- eventTopics: Array<ServerGetResponse.EventTopic> | null;
337
-
338
326
  iconUrl: string | null;
339
327
 
340
328
  prompts: Array<ServerGetResponse.Prompt> | null;
@@ -371,18 +359,6 @@ export namespace ServerGetResponse {
371
359
  type: 'http';
372
360
  }
373
361
 
374
- export interface EventTopic {
375
- name: string;
376
-
377
- topic: string;
378
-
379
- description?: string;
380
-
381
- eventSchema?: { [key: string]: unknown };
382
-
383
- inputSchema?: { [key: string]: unknown };
384
- }
385
-
386
362
  export interface Prompt {
387
363
  name: string;
388
364
 
@@ -554,7 +530,6 @@ export declare namespace Servers {
554
530
  type ExternalDeployPayload as ExternalDeployPayload,
555
531
  type HostedDeployPayload as HostedDeployPayload,
556
532
  type ServerCard as ServerCard,
557
- type StdioDeployPayload as StdioDeployPayload,
558
533
  type ReleaseListResponse as ReleaseListResponse,
559
534
  type ReleaseDeployResponse as ReleaseDeployResponse,
560
535
  type ReleaseGetResponse as ReleaseGetResponse,
@@ -597,12 +572,8 @@ export declare namespace Servers {
597
572
 
598
573
  export {
599
574
  Domains as Domains,
600
- type DomainCreateResponse as DomainCreateResponse,
601
575
  type DomainUpdateResponse as DomainUpdateResponse,
602
576
  type DomainListResponse as DomainListResponse,
603
- type DomainDeleteResponse as DomainDeleteResponse,
604
- type DomainCreateParams as DomainCreateParams,
605
577
  type DomainUpdateParams as DomainUpdateParams,
606
- type DomainDeleteParams as DomainDeleteParams,
607
578
  };
608
579
  }
@@ -12,7 +12,10 @@ import { path } from '../../internal/utils/path';
12
12
  */
13
13
  export class Reviews extends APIResource {
14
14
  /**
15
- * Submit a review for a skill. Updates existing review if one already exists.
15
+ * Deprecated (SMI-1505). Submit a review for a skill. Updates existing review if
16
+ * one already exists.
17
+ *
18
+ * @deprecated
16
19
  */
17
20
  create(
18
21
  slug: string,
@@ -24,7 +27,9 @@ export class Reviews extends APIResource {
24
27
  }
25
28
 
26
29
  /**
27
- * Get paginated list of reviews with vote counts
30
+ * Deprecated (SMI-1505). Get paginated list of reviews with vote counts.
31
+ *
32
+ * @deprecated
28
33
  */
29
34
  list(
30
35
  slug: string,
@@ -39,7 +44,9 @@ export class Reviews extends APIResource {
39
44
  }
40
45
 
41
46
  /**
42
- * Delete your review
47
+ * [Deprecated] Delete your review
48
+ *
49
+ * @deprecated
43
50
  */
44
51
  delete(slug: string, params: ReviewDeleteParams, options?: RequestOptions): APIPromise<void> {
45
52
  const { namespace } = params;
@@ -50,7 +57,9 @@ export class Reviews extends APIResource {
50
57
  }
51
58
 
52
59
  /**
53
- * Remove vote from a review
60
+ * [Deprecated] Remove vote from a review
61
+ *
62
+ * @deprecated
54
63
  */
55
64
  unvote(reviewID: string, params: ReviewUnvoteParams, options?: RequestOptions): APIPromise<void> {
56
65
  const { namespace, slug } = params;
@@ -61,7 +70,10 @@ export class Reviews extends APIResource {
61
70
  }
62
71
 
63
72
  /**
64
- * Upvote or downvote a review. Updates existing vote if one exists.
73
+ * Deprecated (SMI-1505). Upvote or downvote a review. Updates existing vote if one
74
+ * exists.
75
+ *
76
+ * @deprecated
65
77
  */
66
78
  vote(reviewID: string, params: ReviewVoteParams, options?: RequestOptions): APIPromise<ReviewVoteResponse> {
67
79
  const { namespace, slug, ...body } = params;
@@ -268,7 +268,7 @@ export interface SkillGetResponse {
268
268
  namespace: string;
269
269
 
270
270
  /**
271
- * User ID of the skill owner (from namespace)
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 user ID.
393
+ * Filter by the skill owner's organization ID.
394
394
  */
395
395
  ownerId?: string;
396
396
 
@@ -11,7 +11,10 @@ import { path } from '../../internal/utils/path';
11
11
  */
12
12
  export class Votes extends APIResource {
13
13
  /**
14
- * Upvote or downvote a skill. Updates existing vote if one exists.
14
+ * Deprecated (SMI-1505). Upvote or downvote a skill. Updates existing vote if one
15
+ * exists.
16
+ *
17
+ * @deprecated
15
18
  */
16
19
  create(slug: string, params: VoteCreateParams, options?: RequestOptions): APIPromise<SkillVoteResponse> {
17
20
  const { namespace, ...body } = params;
@@ -19,7 +22,9 @@ export class Votes extends APIResource {
19
22
  }
20
23
 
21
24
  /**
22
- * Remove vote from a skill
25
+ * [Deprecated] Remove vote from a skill
26
+ *
27
+ * @deprecated
23
28
  */
24
29
  delete(slug: string, params: VoteDeleteParams, options?: RequestOptions): APIPromise<void> {
25
30
  const { namespace } = params;
@@ -30,7 +35,10 @@ export class Votes extends APIResource {
30
35
  }
31
36
 
32
37
  /**
33
- * Get upvote/downvote counts and current user's vote (if authenticated)
38
+ * Deprecated (SMI-1505). Get upvote/downvote counts and current user's vote (if
39
+ * authenticated).
40
+ *
41
+ * @deprecated
34
42
  */
35
43
  get(slug: string, params: VoteGetParams, options?: RequestOptions): APIPromise<SkillVoteCounts> {
36
44
  const { namespace } = params;
@@ -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.56.0'; // x-release-please-version
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.56.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.56.0";
1
+ export declare const VERSION = "0.57.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.56.0'; // x-release-please-version
4
+ exports.VERSION = '0.57.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.56.0'; // x-release-please-version
1
+ export const VERSION = '0.57.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map