@smithery/api 0.18.0 → 0.21.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 (52) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/package.json +1 -1
  3. package/resources/beta/connect/connect.d.mts +2 -6
  4. package/resources/beta/connect/connect.d.mts.map +1 -1
  5. package/resources/beta/connect/connect.d.ts +2 -6
  6. package/resources/beta/connect/connect.d.ts.map +1 -1
  7. package/resources/beta/connect/connect.js +0 -4
  8. package/resources/beta/connect/connect.js.map +1 -1
  9. package/resources/beta/connect/connect.mjs +0 -4
  10. package/resources/beta/connect/connect.mjs.map +1 -1
  11. package/resources/beta/connect/connections.d.mts +63 -34
  12. package/resources/beta/connect/connections.d.mts.map +1 -1
  13. package/resources/beta/connect/connections.d.ts +63 -34
  14. package/resources/beta/connect/connections.d.ts.map +1 -1
  15. package/resources/beta/connect/connections.js +35 -23
  16. package/resources/beta/connect/connections.js.map +1 -1
  17. package/resources/beta/connect/connections.mjs +35 -23
  18. package/resources/beta/connect/connections.mjs.map +1 -1
  19. package/resources/beta/connect/index.d.mts +1 -2
  20. package/resources/beta/connect/index.d.mts.map +1 -1
  21. package/resources/beta/connect/index.d.ts +1 -2
  22. package/resources/beta/connect/index.d.ts.map +1 -1
  23. package/resources/beta/connect/index.js +1 -3
  24. package/resources/beta/connect/index.js.map +1 -1
  25. package/resources/beta/connect/index.mjs +0 -1
  26. package/resources/beta/connect/index.mjs.map +1 -1
  27. package/resources/beta/connect/rpc.d.mts +2 -2
  28. package/resources/beta/connect/rpc.d.mts.map +1 -1
  29. package/resources/beta/connect/rpc.d.ts +2 -2
  30. package/resources/beta/connect/rpc.d.ts.map +1 -1
  31. package/resources/beta/connect/rpc.js +3 -6
  32. package/resources/beta/connect/rpc.js.map +1 -1
  33. package/resources/beta/connect/rpc.mjs +3 -6
  34. package/resources/beta/connect/rpc.mjs.map +1 -1
  35. package/src/resources/beta/connect/connect.ts +2 -11
  36. package/src/resources/beta/connect/connections.ts +78 -48
  37. package/src/resources/beta/connect/index.ts +1 -6
  38. package/src/resources/beta/connect/rpc.ts +4 -7
  39. package/src/version.ts +1 -1
  40. package/version.d.mts +1 -1
  41. package/version.d.ts +1 -1
  42. package/version.js +1 -1
  43. package/version.mjs +1 -1
  44. package/resources/beta/connect/namespaces.d.mts +0 -76
  45. package/resources/beta/connect/namespaces.d.mts.map +0 -1
  46. package/resources/beta/connect/namespaces.d.ts +0 -76
  47. package/resources/beta/connect/namespaces.d.ts.map +0 -1
  48. package/resources/beta/connect/namespaces.js +0 -61
  49. package/resources/beta/connect/namespaces.js.map +0 -1
  50. package/resources/beta/connect/namespaces.mjs +0 -57
  51. package/resources/beta/connect/namespaces.mjs.map +0 -1
  52. package/src/resources/beta/connect/namespaces.ts +0 -101
@@ -1,101 +0,0 @@
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 Namespaces extends APIResource {
9
- /**
10
- * Create a new Connect namespace. Name must be URL-friendly (lowercase
11
- * alphanumeric + hyphens, 3-64 chars). Requires a valid Smithery API key.
12
- *
13
- * @example
14
- * ```ts
15
- * const namespace =
16
- * await client.beta.connect.namespaces.create('name');
17
- * ```
18
- */
19
- create(name: string, options?: RequestOptions): APIPromise<Namespace> {
20
- return this._client.put(path`/connect/namespaces/${name}`, options);
21
- }
22
-
23
- /**
24
- * Get details for a namespace. Requires API key and namespace ownership.
25
- *
26
- * @example
27
- * ```ts
28
- * const namespace =
29
- * await client.beta.connect.namespaces.retrieve('name');
30
- * ```
31
- */
32
- retrieve(name: string, options?: RequestOptions): APIPromise<Namespace> {
33
- return this._client.get(path`/connect/namespaces/${name}`, options);
34
- }
35
-
36
- /**
37
- * List all namespaces owned by the authenticated user. Requires service token with
38
- * namespaces:read permission.
39
- *
40
- * @example
41
- * ```ts
42
- * const namespaces =
43
- * await client.beta.connect.namespaces.list();
44
- * ```
45
- */
46
- list(options?: RequestOptions): APIPromise<NamespaceListResponse> {
47
- return this._client.get('/connect/namespaces', options);
48
- }
49
-
50
- /**
51
- * Delete a namespace and all its connections. Requires API key and namespace
52
- * ownership.
53
- *
54
- * @example
55
- * ```ts
56
- * const namespace =
57
- * await client.beta.connect.namespaces.delete('name');
58
- * ```
59
- */
60
- delete(name: string, options?: RequestOptions): APIPromise<NamespaceDeleteResponse> {
61
- return this._client.delete(path`/connect/namespaces/${name}`, options);
62
- }
63
- }
64
-
65
- export interface Namespace {
66
- /**
67
- * ISO 8601 timestamp
68
- */
69
- createdAt: string;
70
-
71
- /**
72
- * Namespace name (also the unique ID)
73
- */
74
- name: string;
75
-
76
- /**
77
- * ISO 8601 timestamp
78
- */
79
- updatedAt?: string;
80
- }
81
-
82
- export interface NamespaceListResponse {
83
- namespaces: Array<Namespace>;
84
-
85
- /**
86
- * Cursor for next page, null if no more results
87
- */
88
- nextCursor: string | null;
89
- }
90
-
91
- export interface NamespaceDeleteResponse {
92
- success: true;
93
- }
94
-
95
- export declare namespace Namespaces {
96
- export {
97
- type Namespace as Namespace,
98
- type NamespaceListResponse as NamespaceListResponse,
99
- type NamespaceDeleteResponse as NamespaceDeleteResponse,
100
- };
101
- }