@valtown/sdk 0.23.0 → 0.25.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 (188) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/LICENSE +1 -1
  3. package/README.md +29 -1
  4. package/_shims/node-types.d.ts +1 -1
  5. package/core.d.ts +10 -8
  6. package/core.d.ts.map +1 -1
  7. package/core.js +41 -20
  8. package/core.js.map +1 -1
  9. package/core.mjs +38 -18
  10. package/core.mjs.map +1 -1
  11. package/error.d.ts +18 -24
  12. package/error.d.ts.map +1 -1
  13. package/error.js +1 -31
  14. package/error.js.map +1 -1
  15. package/error.mjs +1 -31
  16. package/error.mjs.map +1 -1
  17. package/index.d.mts +28 -33
  18. package/index.d.ts +28 -33
  19. package/index.d.ts.map +1 -1
  20. package/index.js +36 -17
  21. package/index.js.map +1 -1
  22. package/index.mjs +20 -16
  23. package/index.mjs.map +1 -1
  24. package/package.json +2 -2
  25. package/resources/alias/alias.d.ts +2 -1
  26. package/resources/alias/alias.d.ts.map +1 -1
  27. package/resources/alias/alias.js +2 -3
  28. package/resources/alias/alias.js.map +1 -1
  29. package/resources/alias/alias.mjs +2 -3
  30. package/resources/alias/alias.mjs.map +1 -1
  31. package/resources/alias/username/index.d.ts +1 -1
  32. package/resources/alias/username/index.d.ts.map +1 -1
  33. package/resources/alias/username/index.js.map +1 -1
  34. package/resources/alias/username/index.mjs.map +1 -1
  35. package/resources/alias/username/username.d.ts +2 -2
  36. package/resources/alias/username/username.d.ts.map +1 -1
  37. package/resources/alias/username/username.js +2 -3
  38. package/resources/alias/username/username.js.map +1 -1
  39. package/resources/alias/username/username.mjs +2 -3
  40. package/resources/alias/username/username.mjs.map +1 -1
  41. package/resources/alias/username/val-name.d.ts +2 -2
  42. package/resources/alias/username/val-name.d.ts.map +1 -1
  43. package/resources/alias/username/val-name.js +0 -2
  44. package/resources/alias/username/val-name.js.map +1 -1
  45. package/resources/alias/username/val-name.mjs +0 -2
  46. package/resources/alias/username/val-name.mjs.map +1 -1
  47. package/resources/blobs.d.ts +1 -4
  48. package/resources/blobs.d.ts.map +1 -1
  49. package/resources/blobs.js +0 -2
  50. package/resources/blobs.js.map +1 -1
  51. package/resources/blobs.mjs +0 -2
  52. package/resources/blobs.mjs.map +1 -1
  53. package/resources/emails.d.ts +1 -3
  54. package/resources/emails.d.ts.map +1 -1
  55. package/resources/emails.js +0 -2
  56. package/resources/emails.js.map +1 -1
  57. package/resources/emails.mjs +0 -2
  58. package/resources/emails.mjs.map +1 -1
  59. package/resources/index.d.ts +4 -4
  60. package/resources/index.d.ts.map +1 -1
  61. package/resources/index.js.map +1 -1
  62. package/resources/index.mjs.map +1 -1
  63. package/resources/me/comments.d.ts +1 -4
  64. package/resources/me/comments.d.ts.map +1 -1
  65. package/resources/me/comments.js +1 -27
  66. package/resources/me/comments.js.map +1 -1
  67. package/resources/me/comments.mjs +1 -4
  68. package/resources/me/comments.mjs.map +1 -1
  69. package/resources/me/index.d.ts +4 -4
  70. package/resources/me/index.d.ts.map +1 -1
  71. package/resources/me/index.js.map +1 -1
  72. package/resources/me/index.mjs.map +1 -1
  73. package/resources/me/likes.d.ts +1 -2
  74. package/resources/me/likes.d.ts.map +1 -1
  75. package/resources/me/likes.js +0 -2
  76. package/resources/me/likes.js.map +1 -1
  77. package/resources/me/likes.mjs +0 -2
  78. package/resources/me/likes.mjs.map +1 -1
  79. package/resources/me/me.d.ts +8 -12
  80. package/resources/me/me.d.ts.map +1 -1
  81. package/resources/me/me.js +10 -8
  82. package/resources/me/me.js.map +1 -1
  83. package/resources/me/me.mjs +10 -8
  84. package/resources/me/me.mjs.map +1 -1
  85. package/resources/me/profile.d.ts +1 -2
  86. package/resources/me/profile.d.ts.map +1 -1
  87. package/resources/me/profile.js +0 -2
  88. package/resources/me/profile.js.map +1 -1
  89. package/resources/me/profile.mjs +0 -2
  90. package/resources/me/profile.mjs.map +1 -1
  91. package/resources/me/references.d.ts +1 -4
  92. package/resources/me/references.d.ts.map +1 -1
  93. package/resources/me/references.js +1 -27
  94. package/resources/me/references.js.map +1 -1
  95. package/resources/me/references.mjs +1 -4
  96. package/resources/me/references.mjs.map +1 -1
  97. package/resources/search/index.d.ts +1 -1
  98. package/resources/search/index.d.ts.map +1 -1
  99. package/resources/search/index.js.map +1 -1
  100. package/resources/search/index.mjs.map +1 -1
  101. package/resources/search/search.d.ts +2 -2
  102. package/resources/search/search.d.ts.map +1 -1
  103. package/resources/search/search.js +2 -3
  104. package/resources/search/search.js.map +1 -1
  105. package/resources/search/search.mjs +2 -3
  106. package/resources/search/search.mjs.map +1 -1
  107. package/resources/search/vals.d.ts +1 -2
  108. package/resources/search/vals.d.ts.map +1 -1
  109. package/resources/search/vals.js +0 -2
  110. package/resources/search/vals.js.map +1 -1
  111. package/resources/search/vals.mjs +0 -2
  112. package/resources/search/vals.mjs.map +1 -1
  113. package/resources/shared.d.ts +1 -0
  114. package/resources/shared.d.ts.map +1 -1
  115. package/resources/shared.js.map +1 -1
  116. package/resources/shared.mjs.map +1 -1
  117. package/resources/sqlite.d.ts +1 -4
  118. package/resources/sqlite.d.ts.map +1 -1
  119. package/resources/sqlite.js +0 -2
  120. package/resources/sqlite.js.map +1 -1
  121. package/resources/sqlite.mjs +0 -2
  122. package/resources/sqlite.mjs.map +1 -1
  123. package/resources/users/index.d.ts +1 -1
  124. package/resources/users/index.d.ts.map +1 -1
  125. package/resources/users/index.js.map +1 -1
  126. package/resources/users/index.mjs.map +1 -1
  127. package/resources/users/users.d.ts +2 -2
  128. package/resources/users/users.d.ts.map +1 -1
  129. package/resources/users/users.js +2 -3
  130. package/resources/users/users.js.map +1 -1
  131. package/resources/users/users.mjs +2 -3
  132. package/resources/users/users.mjs.map +1 -1
  133. package/resources/users/vals.d.ts +1 -2
  134. package/resources/users/vals.d.ts.map +1 -1
  135. package/resources/users/vals.js +0 -2
  136. package/resources/users/vals.js.map +1 -1
  137. package/resources/users/vals.mjs +0 -2
  138. package/resources/users/vals.mjs.map +1 -1
  139. package/resources/vals/index.d.ts +2 -2
  140. package/resources/vals/index.d.ts.map +1 -1
  141. package/resources/vals/index.js.map +1 -1
  142. package/resources/vals/index.mjs.map +1 -1
  143. package/resources/vals/vals.d.ts +5 -13
  144. package/resources/vals/vals.d.ts.map +1 -1
  145. package/resources/vals/vals.js +3 -4
  146. package/resources/vals/vals.js.map +1 -1
  147. package/resources/vals/vals.mjs +3 -4
  148. package/resources/vals/vals.mjs.map +1 -1
  149. package/resources/vals/versions.d.ts +2 -7
  150. package/resources/vals/versions.d.ts.map +1 -1
  151. package/resources/vals/versions.js +1 -27
  152. package/resources/vals/versions.js.map +1 -1
  153. package/resources/vals/versions.mjs +1 -4
  154. package/resources/vals/versions.mjs.map +1 -1
  155. package/shims/node.d.ts +1 -0
  156. package/shims/node.d.ts.map +1 -1
  157. package/src/_shims/node-types.d.ts +1 -1
  158. package/src/core.ts +57 -27
  159. package/src/error.ts +25 -41
  160. package/src/index.ts +80 -49
  161. package/src/resources/alias/alias.ts +5 -2
  162. package/src/resources/alias/username/index.ts +1 -1
  163. package/src/resources/alias/username/username.ts +5 -3
  164. package/src/resources/alias/username/val-name.ts +4 -3
  165. package/src/resources/blobs.ts +6 -5
  166. package/src/resources/emails.ts +2 -4
  167. package/src/resources/index.ts +7 -7
  168. package/src/resources/me/comments.ts +8 -5
  169. package/src/resources/me/index.ts +6 -6
  170. package/src/resources/me/likes.ts +2 -3
  171. package/src/resources/me/me.ts +39 -13
  172. package/src/resources/me/profile.ts +2 -3
  173. package/src/resources/me/references.ts +8 -5
  174. package/src/resources/search/index.ts +1 -1
  175. package/src/resources/search/search.ts +5 -3
  176. package/src/resources/search/vals.ts +2 -3
  177. package/src/resources/shared.ts +2 -0
  178. package/src/resources/sqlite.ts +6 -5
  179. package/src/resources/users/index.ts +1 -1
  180. package/src/resources/users/users.ts +5 -3
  181. package/src/resources/users/vals.ts +2 -3
  182. package/src/resources/vals/index.ts +8 -8
  183. package/src/resources/vals/vals.ts +29 -14
  184. package/src/resources/vals/versions.ts +11 -8
  185. package/src/version.ts +1 -1
  186. package/version.d.ts +1 -1
  187. package/version.js +1 -1
  188. package/version.mjs +1 -1
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
- import * as CommentsAPI from './comments';
6
5
  import { PageCursorURL, type PageCursorURLParams } from '../../pagination';
7
6
 
8
7
  export class Comments extends APIResource {
@@ -98,8 +97,12 @@ export interface CommentListParams extends PageCursorURLParams {
98
97
  until?: string;
99
98
  }
100
99
 
101
- export namespace Comments {
102
- export import CommentListResponse = CommentsAPI.CommentListResponse;
103
- export import CommentListResponsesPageCursorURL = CommentsAPI.CommentListResponsesPageCursorURL;
104
- export import CommentListParams = CommentsAPI.CommentListParams;
100
+ Comments.CommentListResponsesPageCursorURL = CommentListResponsesPageCursorURL;
101
+
102
+ export declare namespace Comments {
103
+ export {
104
+ type CommentListResponse as CommentListResponse,
105
+ CommentListResponsesPageCursorURL as CommentListResponsesPageCursorURL,
106
+ type CommentListParams as CommentListParams,
107
+ };
105
108
  }
@@ -1,17 +1,17 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export {
4
- CommentListResponse,
5
- CommentListParams,
6
4
  CommentListResponsesPageCursorURL,
7
5
  Comments,
6
+ type CommentListResponse,
7
+ type CommentListParams,
8
8
  } from './comments';
9
- export { LikeListParams, Likes } from './likes';
9
+ export { Likes, type LikeListParams } from './likes';
10
10
  export { Me } from './me';
11
- export { ProfileRetrieveResponse, Profile } from './profile';
11
+ export { Profile, type ProfileRetrieveResponse } from './profile';
12
12
  export {
13
- ReferenceListResponse,
14
- ReferenceListParams,
15
13
  ReferenceListResponsesPageCursorURL,
16
14
  References,
15
+ type ReferenceListResponse,
16
+ type ReferenceListParams,
17
17
  } from './references';
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
- import * as LikesAPI from './likes';
6
5
  import * as Shared from '../shared';
7
6
  import { BasicValsPageCursorURL } from '../shared';
8
7
  import { type PageCursorURLParams } from '../../pagination';
@@ -21,8 +20,8 @@ export class Likes extends APIResource {
21
20
 
22
21
  export interface LikeListParams extends PageCursorURLParams {}
23
22
 
24
- export namespace Likes {
25
- export import LikeListParams = LikesAPI.LikeListParams;
23
+ export declare namespace Likes {
24
+ export { type LikeListParams as LikeListParams };
26
25
  }
27
26
 
28
27
  export { BasicValsPageCursorURL };
@@ -2,9 +2,23 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as CommentsAPI from './comments';
5
+ import {
6
+ CommentListParams,
7
+ CommentListResponse,
8
+ CommentListResponsesPageCursorURL,
9
+ Comments,
10
+ } from './comments';
5
11
  import * as LikesAPI from './likes';
12
+ import { LikeListParams, Likes } from './likes';
6
13
  import * as ProfileAPI from './profile';
14
+ import { Profile, ProfileRetrieveResponse } from './profile';
7
15
  import * as ReferencesAPI from './references';
16
+ import {
17
+ ReferenceListParams,
18
+ ReferenceListResponse,
19
+ ReferenceListResponsesPageCursorURL,
20
+ References,
21
+ } from './references';
8
22
 
9
23
  /**
10
24
  * Methods to get information about your own profile and resources
@@ -16,17 +30,29 @@ export class Me extends APIResource {
16
30
  references: ReferencesAPI.References = new ReferencesAPI.References(this._client);
17
31
  }
18
32
 
19
- export namespace Me {
20
- export import Profile = ProfileAPI.Profile;
21
- export import ProfileRetrieveResponse = ProfileAPI.ProfileRetrieveResponse;
22
- export import Likes = LikesAPI.Likes;
23
- export import LikeListParams = LikesAPI.LikeListParams;
24
- export import Comments = CommentsAPI.Comments;
25
- export import CommentListResponse = CommentsAPI.CommentListResponse;
26
- export import CommentListResponsesPageCursorURL = CommentsAPI.CommentListResponsesPageCursorURL;
27
- export import CommentListParams = CommentsAPI.CommentListParams;
28
- export import References = ReferencesAPI.References;
29
- export import ReferenceListResponse = ReferencesAPI.ReferenceListResponse;
30
- export import ReferenceListResponsesPageCursorURL = ReferencesAPI.ReferenceListResponsesPageCursorURL;
31
- export import ReferenceListParams = ReferencesAPI.ReferenceListParams;
33
+ Me.Profile = Profile;
34
+ Me.Likes = Likes;
35
+ Me.Comments = Comments;
36
+ Me.CommentListResponsesPageCursorURL = CommentListResponsesPageCursorURL;
37
+ Me.References = References;
38
+ Me.ReferenceListResponsesPageCursorURL = ReferenceListResponsesPageCursorURL;
39
+
40
+ export declare namespace Me {
41
+ export { Profile as Profile, type ProfileRetrieveResponse as ProfileRetrieveResponse };
42
+
43
+ export { Likes as Likes, type LikeListParams as LikeListParams };
44
+
45
+ export {
46
+ Comments as Comments,
47
+ type CommentListResponse as CommentListResponse,
48
+ CommentListResponsesPageCursorURL as CommentListResponsesPageCursorURL,
49
+ type CommentListParams as CommentListParams,
50
+ };
51
+
52
+ export {
53
+ References as References,
54
+ type ReferenceListResponse as ReferenceListResponse,
55
+ ReferenceListResponsesPageCursorURL as ReferenceListResponsesPageCursorURL,
56
+ type ReferenceListParams as ReferenceListParams,
57
+ };
32
58
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
- import * as ProfileAPI from './profile';
6
5
 
7
6
  export class Profile extends APIResource {
8
7
  /**
@@ -64,6 +63,6 @@ export namespace ProfileRetrieveResponse {
64
63
  }
65
64
  }
66
65
 
67
- export namespace Profile {
68
- export import ProfileRetrieveResponse = ProfileAPI.ProfileRetrieveResponse;
66
+ export declare namespace Profile {
67
+ export { type ProfileRetrieveResponse as ProfileRetrieveResponse };
69
68
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
- import * as ReferencesAPI from './references';
6
5
  import { PageCursorURL, type PageCursorURLParams } from '../../pagination';
7
6
 
8
7
  export class References extends APIResource {
@@ -104,8 +103,12 @@ export interface ReferenceListParams extends PageCursorURLParams {
104
103
  until?: string;
105
104
  }
106
105
 
107
- export namespace References {
108
- export import ReferenceListResponse = ReferencesAPI.ReferenceListResponse;
109
- export import ReferenceListResponsesPageCursorURL = ReferencesAPI.ReferenceListResponsesPageCursorURL;
110
- export import ReferenceListParams = ReferencesAPI.ReferenceListParams;
106
+ References.ReferenceListResponsesPageCursorURL = ReferenceListResponsesPageCursorURL;
107
+
108
+ export declare namespace References {
109
+ export {
110
+ type ReferenceListResponse as ReferenceListResponse,
111
+ ReferenceListResponsesPageCursorURL as ReferenceListResponsesPageCursorURL,
112
+ type ReferenceListParams as ReferenceListParams,
113
+ };
111
114
  }
@@ -1,4 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export { Search } from './search';
4
- export { ValListParams, Vals } from './vals';
4
+ export { Vals, type ValListParams } from './vals';
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as ValsAPI from './vals';
5
+ import { ValListParams, Vals } from './vals';
5
6
 
6
7
  /**
7
8
  * Search endpoint for vals
@@ -10,7 +11,8 @@ export class Search extends APIResource {
10
11
  vals: ValsAPI.Vals = new ValsAPI.Vals(this._client);
11
12
  }
12
13
 
13
- export namespace Search {
14
- export import Vals = ValsAPI.Vals;
15
- export import ValListParams = ValsAPI.ValListParams;
14
+ Search.Vals = Vals;
15
+
16
+ export declare namespace Search {
17
+ export { Vals as Vals, type ValListParams as ValListParams };
16
18
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
- import * as ValsAPI from './vals';
6
5
  import * as Shared from '../shared';
7
6
  import { BasicValsPageCursorURL } from '../shared';
8
7
  import { type PageCursorURLParams } from '../../pagination';
@@ -26,8 +25,8 @@ export interface ValListParams extends PageCursorURLParams {
26
25
  query: string;
27
26
  }
28
27
 
29
- export namespace Vals {
30
- export import ValListParams = ValsAPI.ValListParams;
28
+ export declare namespace Vals {
29
+ export { type ValListParams as ValListParams };
31
30
  }
32
31
 
33
32
  export { BasicValsPageCursorURL };
@@ -157,6 +157,8 @@ export interface ExtendedVal {
157
157
  * The version of this val, starting at zero
158
158
  */
159
159
  version: number;
160
+
161
+ versionCreatedAt?: string;
160
162
  }
161
163
 
162
164
  export namespace ExtendedVal {
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../resource';
4
4
  import * as Core from '../core';
5
- import * as SqliteAPI from './sqlite';
6
5
  import * as Shared from './shared';
7
6
 
8
7
  /**
@@ -78,8 +77,10 @@ export namespace SqliteExecuteParams {
78
77
  }
79
78
  }
80
79
 
81
- export namespace Sqlite {
82
- export import SqliteBatchResponse = SqliteAPI.SqliteBatchResponse;
83
- export import SqliteBatchParams = SqliteAPI.SqliteBatchParams;
84
- export import SqliteExecuteParams = SqliteAPI.SqliteExecuteParams;
80
+ export declare namespace Sqlite {
81
+ export {
82
+ type SqliteBatchResponse as SqliteBatchResponse,
83
+ type SqliteBatchParams as SqliteBatchParams,
84
+ type SqliteExecuteParams as SqliteExecuteParams,
85
+ };
85
86
  }
@@ -1,4 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export { Users } from './users';
4
- export { ValListParams, Vals } from './vals';
4
+ export { Vals, type ValListParams } from './vals';
@@ -4,6 +4,7 @@ import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
5
  import * as Shared from '../shared';
6
6
  import * as ValsAPI from './vals';
7
+ import { ValListParams, Vals } from './vals';
7
8
 
8
9
  /**
9
10
  * Access public user information and list other people’s vals
@@ -19,7 +20,8 @@ export class Users extends APIResource {
19
20
  }
20
21
  }
21
22
 
22
- export namespace Users {
23
- export import Vals = ValsAPI.Vals;
24
- export import ValListParams = ValsAPI.ValListParams;
23
+ Users.Vals = Vals;
24
+
25
+ export declare namespace Users {
26
+ export { Vals as Vals, type ValListParams as ValListParams };
25
27
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
- import * as ValsAPI from './vals';
6
5
  import * as Shared from '../shared';
7
6
  import { BasicValsPageCursorURL } from '../shared';
8
7
  import { type PageCursorURLParams } from '../../pagination';
@@ -22,8 +21,8 @@ export class Vals extends APIResource {
22
21
 
23
22
  export interface ValListParams extends PageCursorURLParams {}
24
23
 
25
- export namespace Vals {
26
- export import ValListParams = ValsAPI.ValListParams;
24
+ export declare namespace Vals {
25
+ export { type ValListParams as ValListParams };
27
26
  }
28
27
 
29
28
  export { BasicValsPageCursorURL };
@@ -1,17 +1,17 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export {
4
- ValCancelEvaluationResponse,
5
- ValCreateParams,
6
- ValUpdateParams,
7
- ValCreateOrUpdateParams,
8
4
  Vals,
5
+ type ValCancelEvaluationResponse,
6
+ type ValCreateParams,
7
+ type ValUpdateParams,
8
+ type ValCreateOrUpdateParams,
9
9
  } from './vals';
10
10
  export {
11
- VersionListResponse,
12
- VersionCreateParams,
13
- VersionRetrieveParams,
14
- VersionListParams,
15
11
  VersionListResponsesPageCursorURL,
16
12
  Versions,
13
+ type VersionListResponse,
14
+ type VersionCreateParams,
15
+ type VersionRetrieveParams,
16
+ type VersionListParams,
17
17
  } from './versions';
@@ -3,9 +3,16 @@
3
3
  import { APIResource } from '../../resource';
4
4
  import { isRequestOptions } from '../../core';
5
5
  import * as Core from '../../core';
6
- import * as ValsAPI from './vals';
7
6
  import * as Shared from '../shared';
8
7
  import * as VersionsAPI from './versions';
8
+ import {
9
+ VersionCreateParams,
10
+ VersionListParams,
11
+ VersionListResponse,
12
+ VersionListResponsesPageCursorURL,
13
+ VersionRetrieveParams,
14
+ Versions,
15
+ } from './versions';
9
16
 
10
17
  /**
11
18
  * Vals are runnable JavaScript, TypeScript, and JSX modules
@@ -117,7 +124,7 @@ export interface ValCreateParams {
117
124
  * The type of the val you want to create. Note that this does not include interval
118
125
  * vals, because they cannot be created through the API yet.
119
126
  */
120
- type?: 'http' | 'httpnext' | 'script' | 'email';
127
+ type?: 'httpnext' | 'http' | 'script' | 'email';
121
128
  }
122
129
 
123
130
  export interface ValUpdateParams {
@@ -141,7 +148,7 @@ export interface ValUpdateParams {
141
148
  * The type of the val you want to update. Note that this does not include interval
142
149
  * vals, because they cannot be created through the API yet.
143
150
  */
144
- type?: 'http' | 'httpnext' | 'script' | 'email';
151
+ type?: 'httpnext' | 'http' | 'script' | 'email';
145
152
  }
146
153
 
147
154
  export interface ValCreateOrUpdateParams {
@@ -156,15 +163,23 @@ export interface ValCreateOrUpdateParams {
156
163
  name: string;
157
164
  }
158
165
 
159
- export namespace Vals {
160
- export import ValCancelEvaluationResponse = ValsAPI.ValCancelEvaluationResponse;
161
- export import ValCreateParams = ValsAPI.ValCreateParams;
162
- export import ValUpdateParams = ValsAPI.ValUpdateParams;
163
- export import ValCreateOrUpdateParams = ValsAPI.ValCreateOrUpdateParams;
164
- export import Versions = VersionsAPI.Versions;
165
- export import VersionListResponse = VersionsAPI.VersionListResponse;
166
- export import VersionListResponsesPageCursorURL = VersionsAPI.VersionListResponsesPageCursorURL;
167
- export import VersionCreateParams = VersionsAPI.VersionCreateParams;
168
- export import VersionRetrieveParams = VersionsAPI.VersionRetrieveParams;
169
- export import VersionListParams = VersionsAPI.VersionListParams;
166
+ Vals.Versions = Versions;
167
+ Vals.VersionListResponsesPageCursorURL = VersionListResponsesPageCursorURL;
168
+
169
+ export declare namespace Vals {
170
+ export {
171
+ type ValCancelEvaluationResponse as ValCancelEvaluationResponse,
172
+ type ValCreateParams as ValCreateParams,
173
+ type ValUpdateParams as ValUpdateParams,
174
+ type ValCreateOrUpdateParams as ValCreateOrUpdateParams,
175
+ };
176
+
177
+ export {
178
+ Versions as Versions,
179
+ type VersionListResponse as VersionListResponse,
180
+ VersionListResponsesPageCursorURL as VersionListResponsesPageCursorURL,
181
+ type VersionCreateParams as VersionCreateParams,
182
+ type VersionRetrieveParams as VersionRetrieveParams,
183
+ type VersionListParams as VersionListParams,
184
+ };
170
185
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  import { APIResource } from '../../resource';
4
4
  import * as Core from '../../core';
5
- import * as VersionsAPI from './versions';
6
5
  import * as Shared from '../shared';
7
6
  import { PageCursorURL, type PageCursorURLParams } from '../../pagination';
8
7
 
@@ -97,7 +96,7 @@ export interface VersionCreateParams {
97
96
  * The type of the val you want to create. Note that this does not include interval
98
97
  * vals, because they cannot be created through the API yet.
99
98
  */
100
- type?: 'http' | 'httpnext' | 'script' | 'email';
99
+ type?: 'httpnext' | 'http' | 'script' | 'email';
101
100
  }
102
101
 
103
102
  export interface VersionRetrieveParams {
@@ -114,10 +113,14 @@ export interface VersionRetrieveParams {
114
113
 
115
114
  export interface VersionListParams extends PageCursorURLParams {}
116
115
 
117
- export namespace Versions {
118
- export import VersionListResponse = VersionsAPI.VersionListResponse;
119
- export import VersionListResponsesPageCursorURL = VersionsAPI.VersionListResponsesPageCursorURL;
120
- export import VersionCreateParams = VersionsAPI.VersionCreateParams;
121
- export import VersionRetrieveParams = VersionsAPI.VersionRetrieveParams;
122
- export import VersionListParams = VersionsAPI.VersionListParams;
116
+ Versions.VersionListResponsesPageCursorURL = VersionListResponsesPageCursorURL;
117
+
118
+ export declare namespace Versions {
119
+ export {
120
+ type VersionListResponse as VersionListResponse,
121
+ VersionListResponsesPageCursorURL as VersionListResponsesPageCursorURL,
122
+ type VersionCreateParams as VersionCreateParams,
123
+ type VersionRetrieveParams as VersionRetrieveParams,
124
+ type VersionListParams as VersionListParams,
125
+ };
123
126
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.23.0'; // x-release-please-version
1
+ export const VERSION = '0.25.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.23.0";
1
+ export declare const VERSION = "0.25.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.23.0'; // x-release-please-version
4
+ exports.VERSION = '0.25.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.23.0'; // x-release-please-version
1
+ export const VERSION = '0.25.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map