@valtown/sdk 0.38.2 → 1.0.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 (226) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +0 -30
  3. package/core.d.ts +1 -1
  4. package/core.d.ts.map +1 -1
  5. package/core.js +5 -5
  6. package/core.js.map +1 -1
  7. package/core.mjs +5 -5
  8. package/core.mjs.map +1 -1
  9. package/index.d.mts +5 -12
  10. package/index.d.ts +5 -12
  11. package/index.d.ts.map +1 -1
  12. package/index.js +2 -9
  13. package/index.js.map +1 -1
  14. package/index.mjs +3 -10
  15. package/index.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/alias/username/index.d.ts +1 -2
  18. package/resources/alias/username/index.d.ts.map +1 -1
  19. package/resources/alias/username/index.js +1 -3
  20. package/resources/alias/username/index.js.map +1 -1
  21. package/resources/alias/username/index.mjs +0 -1
  22. package/resources/alias/username/index.mjs.map +1 -1
  23. package/resources/alias/username/username.d.ts +2 -6
  24. package/resources/alias/username/username.d.ts.map +1 -1
  25. package/resources/alias/username/username.js +0 -4
  26. package/resources/alias/username/username.js.map +1 -1
  27. package/resources/alias/username/username.mjs +0 -4
  28. package/resources/alias/username/username.mjs.map +1 -1
  29. package/resources/alias/username/val-name.d.ts +2 -87
  30. package/resources/alias/username/val-name.d.ts.map +1 -1
  31. package/resources/alias/username/val-name.js +1 -1
  32. package/resources/alias/username/val-name.js.map +1 -1
  33. package/resources/alias/username/val-name.mjs +1 -1
  34. package/resources/alias/username/val-name.mjs.map +1 -1
  35. package/resources/index.d.ts +2 -3
  36. package/resources/index.d.ts.map +1 -1
  37. package/resources/index.js +2 -5
  38. package/resources/index.js.map +1 -1
  39. package/resources/index.mjs +2 -3
  40. package/resources/index.mjs.map +1 -1
  41. package/resources/me/index.d.ts +1 -4
  42. package/resources/me/index.d.ts.map +1 -1
  43. package/resources/me/index.js +3 -12
  44. package/resources/me/index.js.map +1 -1
  45. package/resources/me/index.mjs +1 -4
  46. package/resources/me/index.mjs.map +1 -1
  47. package/resources/me/me.d.ts +4 -16
  48. package/resources/me/me.d.ts.map +1 -1
  49. package/resources/me/me.js +4 -19
  50. package/resources/me/me.js.map +1 -1
  51. package/resources/me/me.mjs +4 -19
  52. package/resources/me/me.mjs.map +1 -1
  53. package/resources/{users → me}/vals.d.ts +4 -4
  54. package/resources/me/vals.d.ts.map +1 -0
  55. package/resources/me/vals.js +17 -0
  56. package/resources/me/vals.js.map +1 -0
  57. package/resources/me/vals.mjs +13 -0
  58. package/resources/me/vals.mjs.map +1 -0
  59. package/resources/search/index.d.ts +1 -1
  60. package/resources/search/index.d.ts.map +1 -1
  61. package/resources/search/index.js +2 -1
  62. package/resources/search/index.js.map +1 -1
  63. package/resources/search/index.mjs +1 -1
  64. package/resources/search/index.mjs.map +1 -1
  65. package/resources/search/search.d.ts +2 -2
  66. package/resources/search/search.d.ts.map +1 -1
  67. package/resources/search/search.js +1 -0
  68. package/resources/search/search.js.map +1 -1
  69. package/resources/search/search.mjs +2 -1
  70. package/resources/search/search.mjs.map +1 -1
  71. package/resources/search/vals.d.ts +78 -6
  72. package/resources/search/vals.d.ts.map +1 -1
  73. package/resources/search/vals.js +7 -4
  74. package/resources/search/vals.js.map +1 -1
  75. package/resources/search/vals.mjs +5 -3
  76. package/resources/search/vals.mjs.map +1 -1
  77. package/resources/shared.d.ts +36 -157
  78. package/resources/shared.d.ts.map +1 -1
  79. package/resources/shared.js +3 -3
  80. package/resources/shared.js.map +1 -1
  81. package/resources/shared.mjs +1 -1
  82. package/resources/shared.mjs.map +1 -1
  83. package/resources/users.d.ts +12 -1
  84. package/resources/users.d.ts.map +1 -1
  85. package/resources/users.js +14 -15
  86. package/resources/users.js.map +1 -1
  87. package/resources/users.mjs +12 -1
  88. package/resources/users.mjs.map +1 -1
  89. package/resources/{projects → vals}/branches.d.ts +8 -8
  90. package/resources/vals/branches.d.ts.map +1 -0
  91. package/resources/{projects → vals}/branches.js +12 -12
  92. package/resources/vals/branches.js.map +1 -0
  93. package/resources/vals/branches.mjs +39 -0
  94. package/resources/vals/branches.mjs.map +1 -0
  95. package/resources/{projects → vals}/files.d.ts +26 -37
  96. package/resources/vals/files.d.ts.map +1 -0
  97. package/resources/{projects → vals}/files.js +18 -26
  98. package/resources/vals/files.js.map +1 -0
  99. package/resources/{projects → vals}/files.mjs +18 -26
  100. package/resources/vals/files.mjs.map +1 -0
  101. package/resources/vals/index.d.ts +3 -2
  102. package/resources/vals/index.d.ts.map +1 -1
  103. package/resources/vals/index.js +7 -4
  104. package/resources/vals/index.js.map +1 -1
  105. package/resources/vals/index.mjs +3 -2
  106. package/resources/vals/index.mjs.map +1 -1
  107. package/resources/vals/vals.d.ts +22 -114
  108. package/resources/vals/vals.d.ts.map +1 -1
  109. package/resources/vals/vals.js +20 -40
  110. package/resources/vals/vals.js.map +1 -1
  111. package/resources/vals/vals.mjs +19 -39
  112. package/resources/vals/vals.mjs.map +1 -1
  113. package/src/core.ts +4 -4
  114. package/src/index.ts +5 -47
  115. package/src/resources/alias/username/index.ts +1 -2
  116. package/src/resources/alias/username/username.ts +2 -8
  117. package/src/resources/alias/username/val-name.ts +3 -115
  118. package/src/resources/index.ts +2 -19
  119. package/src/resources/me/index.ts +1 -19
  120. package/src/resources/me/me.ts +5 -56
  121. package/src/resources/{users → me}/vals.ts +5 -9
  122. package/src/resources/search/index.ts +1 -1
  123. package/src/resources/search/search.ts +8 -2
  124. package/src/resources/search/vals.ts +103 -8
  125. package/src/resources/shared.ts +47 -197
  126. package/src/resources/users.ts +15 -1
  127. package/src/resources/{projects → vals}/branches.ts +12 -12
  128. package/src/resources/{projects → vals}/files.ts +33 -55
  129. package/src/resources/vals/index.ts +20 -15
  130. package/src/resources/vals/vals.ts +65 -181
  131. package/src/version.ts +1 -1
  132. package/version.d.ts +1 -1
  133. package/version.d.ts.map +1 -1
  134. package/version.js +1 -1
  135. package/version.js.map +1 -1
  136. package/version.mjs +1 -1
  137. package/version.mjs.map +1 -1
  138. package/resources/alias/username/project-name.d.ts +0 -51
  139. package/resources/alias/username/project-name.d.ts.map +0 -1
  140. package/resources/alias/username/project-name.js +0 -15
  141. package/resources/alias/username/project-name.js.map +0 -1
  142. package/resources/alias/username/project-name.mjs +0 -11
  143. package/resources/alias/username/project-name.mjs.map +0 -1
  144. package/resources/me/comments.d.ts +0 -74
  145. package/resources/me/comments.d.ts.map +0 -1
  146. package/resources/me/comments.js +0 -23
  147. package/resources/me/comments.js.map +0 -1
  148. package/resources/me/comments.mjs +0 -18
  149. package/resources/me/comments.mjs.map +0 -1
  150. package/resources/me/likes.d.ts +0 -18
  151. package/resources/me/likes.d.ts.map +0 -1
  152. package/resources/me/likes.js +0 -17
  153. package/resources/me/likes.js.map +0 -1
  154. package/resources/me/likes.mjs +0 -13
  155. package/resources/me/likes.mjs.map +0 -1
  156. package/resources/me/projects.d.ts +0 -56
  157. package/resources/me/projects.d.ts.map +0 -1
  158. package/resources/me/projects.js +0 -23
  159. package/resources/me/projects.js.map +0 -1
  160. package/resources/me/projects.mjs +0 -18
  161. package/resources/me/projects.mjs.map +0 -1
  162. package/resources/me/references.d.ts +0 -84
  163. package/resources/me/references.d.ts.map +0 -1
  164. package/resources/me/references.js +0 -23
  165. package/resources/me/references.js.map +0 -1
  166. package/resources/me/references.mjs +0 -18
  167. package/resources/me/references.mjs.map +0 -1
  168. package/resources/projects/branches.d.ts.map +0 -1
  169. package/resources/projects/branches.js.map +0 -1
  170. package/resources/projects/branches.mjs +0 -39
  171. package/resources/projects/branches.mjs.map +0 -1
  172. package/resources/projects/files.d.ts.map +0 -1
  173. package/resources/projects/files.js.map +0 -1
  174. package/resources/projects/files.mjs.map +0 -1
  175. package/resources/projects/index.d.ts +0 -4
  176. package/resources/projects/index.d.ts.map +0 -1
  177. package/resources/projects/index.js +0 -14
  178. package/resources/projects/index.js.map +0 -1
  179. package/resources/projects/index.mjs +0 -5
  180. package/resources/projects/index.mjs.map +0 -1
  181. package/resources/projects/projects.d.ts +0 -162
  182. package/resources/projects/projects.d.ts.map +0 -1
  183. package/resources/projects/projects.js +0 -80
  184. package/resources/projects/projects.js.map +0 -1
  185. package/resources/projects/projects.mjs +0 -52
  186. package/resources/projects/projects.mjs.map +0 -1
  187. package/resources/projects.d.ts +0 -2
  188. package/resources/projects.d.ts.map +0 -1
  189. package/resources/projects.js +0 -19
  190. package/resources/projects.js.map +0 -1
  191. package/resources/projects.mjs +0 -3
  192. package/resources/projects.mjs.map +0 -1
  193. package/resources/users/index.d.ts +0 -3
  194. package/resources/users/index.d.ts.map +0 -1
  195. package/resources/users/index.js +0 -9
  196. package/resources/users/index.js.map +0 -1
  197. package/resources/users/index.mjs +0 -4
  198. package/resources/users/index.mjs.map +0 -1
  199. package/resources/users/users.d.ts +0 -19
  200. package/resources/users/users.d.ts.map +0 -1
  201. package/resources/users/users.js +0 -48
  202. package/resources/users/users.js.map +0 -1
  203. package/resources/users/users.mjs +0 -21
  204. package/resources/users/users.mjs.map +0 -1
  205. package/resources/users/vals.d.ts.map +0 -1
  206. package/resources/users/vals.js +0 -17
  207. package/resources/users/vals.js.map +0 -1
  208. package/resources/users/vals.mjs +0 -13
  209. package/resources/users/vals.mjs.map +0 -1
  210. package/resources/vals/versions.d.ts +0 -75
  211. package/resources/vals/versions.d.ts.map +0 -1
  212. package/resources/vals/versions.js +0 -44
  213. package/resources/vals/versions.js.map +0 -1
  214. package/resources/vals/versions.mjs +0 -39
  215. package/resources/vals/versions.mjs.map +0 -1
  216. package/src/resources/alias/username/project-name.ts +0 -72
  217. package/src/resources/me/comments.ts +0 -108
  218. package/src/resources/me/likes.ts +0 -27
  219. package/src/resources/me/projects.ts +0 -85
  220. package/src/resources/me/references.ts +0 -114
  221. package/src/resources/projects/index.ts +0 -32
  222. package/src/resources/projects/projects.ts +0 -275
  223. package/src/resources/projects.ts +0 -3
  224. package/src/resources/users/index.ts +0 -4
  225. package/src/resources/users/users.ts +0 -27
  226. package/src/resources/vals/versions.ts +0 -126
@@ -1,75 +0,0 @@
1
- import { APIResource } from "../../resource.js";
2
- import * as Core from "../../core.js";
3
- import * as Shared from "../shared.js";
4
- import { PageCursorURL, type PageCursorURLParams } from "../../pagination.js";
5
- export declare class Versions extends APIResource {
6
- /**
7
- * Create a new version of a val
8
- */
9
- create(valId: string, body: VersionCreateParams, options?: Core.RequestOptions): Core.APIPromise<Shared.ExtendedVal>;
10
- /**
11
- * Get a specific version of a val
12
- */
13
- retrieve(valId: string, version: number, query: VersionRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Shared.ExtendedVal>;
14
- /**
15
- * List versions of a val
16
- */
17
- list(valId: string, query: VersionListParams, options?: Core.RequestOptions): Core.PagePromise<VersionListResponsesPageCursorURL, VersionListResponse>;
18
- /**
19
- * Delete a specific version of a val
20
- */
21
- delete(valId: string, version: number, options?: Core.RequestOptions): Core.APIPromise<void>;
22
- }
23
- export declare class VersionListResponsesPageCursorURL extends PageCursorURL<VersionListResponse> {
24
- }
25
- export interface VersionListResponse {
26
- createdAt: string;
27
- /**
28
- * Id of a val
29
- */
30
- val_id: string;
31
- /**
32
- * Version of the val
33
- */
34
- version: number;
35
- }
36
- export interface VersionCreateParams {
37
- /**
38
- * Val source code as TypeScript
39
- */
40
- code: string;
41
- /**
42
- * This val’s name
43
- */
44
- name?: string;
45
- /**
46
- * This resource's privacy setting. Unlisted resources do not appear on profile
47
- * pages or elsewhere, but you can link to them.
48
- */
49
- privacy?: 'public' | 'unlisted' | 'private';
50
- /**
51
- * Readme contents, as Markdown
52
- */
53
- readme?: string;
54
- /**
55
- * The type of the val you want to create. Note that this does not include interval
56
- * vals, because they cannot be created through the API yet.
57
- */
58
- type?: 'httpnext' | 'http' | 'script' | 'email';
59
- }
60
- export interface VersionRetrieveParams {
61
- /**
62
- * Maximum items to return in each paginated response
63
- */
64
- limit: number;
65
- /**
66
- * Number of items to skip in order to deliver paginated results
67
- */
68
- offset: number;
69
- }
70
- export interface VersionListParams extends PageCursorURLParams {
71
- }
72
- export declare namespace Versions {
73
- export { type VersionListResponse as VersionListResponse, VersionListResponsesPageCursorURL as VersionListResponsesPageCursorURL, type VersionCreateParams as VersionCreateParams, type VersionRetrieveParams as VersionRetrieveParams, type VersionListParams as VersionListParams, };
74
- }
75
- //# sourceMappingURL=versions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../src/resources/vals/versions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,MAAM,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE3E,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;IAItC;;OAEG;IACH,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC;IAItC;;OAEG;IACH,IAAI,CACF,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,WAAW,CAAC,iCAAiC,EAAE,mBAAmB,CAAC;IAO3E;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAM7F;AAED,qBAAa,iCAAkC,SAAQ,aAAa,CAAC,mBAAmB,CAAC;CAAG;AAE5F,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IAE5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CACjD;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAkB,SAAQ,mBAAmB;CAAG;AAIjE,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,iCAAiC,IAAI,iCAAiC,EACtE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1,44 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.VersionListResponsesPageCursorURL = exports.Versions = void 0;
5
- const resource_1 = require("../../resource.js");
6
- const pagination_1 = require("../../pagination.js");
7
- class Versions extends resource_1.APIResource {
8
- /**
9
- * Create a new version of a val
10
- */
11
- create(valId, body, options) {
12
- return this._client.post(`/v1/vals/${valId}/versions`, { body, ...options });
13
- }
14
- /**
15
- * Get a specific version of a val
16
- */
17
- retrieve(valId, version, query, options) {
18
- return this._client.get(`/v1/vals/${valId}/versions/${version}`, { query, ...options });
19
- }
20
- /**
21
- * List versions of a val
22
- */
23
- list(valId, query, options) {
24
- return this._client.getAPIList(`/v1/vals/${valId}/versions`, VersionListResponsesPageCursorURL, {
25
- query,
26
- ...options,
27
- });
28
- }
29
- /**
30
- * Delete a specific version of a val
31
- */
32
- delete(valId, version, options) {
33
- return this._client.delete(`/v1/vals/${valId}/versions/${version}`, {
34
- ...options,
35
- headers: { Accept: '*/*', ...options?.headers },
36
- });
37
- }
38
- }
39
- exports.Versions = Versions;
40
- class VersionListResponsesPageCursorURL extends pagination_1.PageCursorURL {
41
- }
42
- exports.VersionListResponsesPageCursorURL = VersionListResponsesPageCursorURL;
43
- Versions.VersionListResponsesPageCursorURL = VersionListResponsesPageCursorURL;
44
- //# sourceMappingURL=versions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../src/resources/vals/versions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,oDAA2E;AAE3E,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,MAAM,CACJ,KAAa,EACb,IAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,KAAK,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,KAAa,EACb,OAAe,EACf,KAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,aAAa,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAa,EACb,KAAwB,EACxB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,KAAK,WAAW,EAAE,iCAAiC,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAa,EAAE,OAAe,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,KAAK,aAAa,OAAO,EAAE,EAAE;YAClE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AA/CD,4BA+CC;AAED,MAAa,iCAAkC,SAAQ,0BAAkC;CAAG;AAA5F,8EAA4F;AA2D5F,QAAQ,CAAC,iCAAiC,GAAG,iCAAiC,CAAC"}
@@ -1,39 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../resource.mjs";
3
- import { PageCursorURL } from "../../pagination.mjs";
4
- export class Versions extends APIResource {
5
- /**
6
- * Create a new version of a val
7
- */
8
- create(valId, body, options) {
9
- return this._client.post(`/v1/vals/${valId}/versions`, { body, ...options });
10
- }
11
- /**
12
- * Get a specific version of a val
13
- */
14
- retrieve(valId, version, query, options) {
15
- return this._client.get(`/v1/vals/${valId}/versions/${version}`, { query, ...options });
16
- }
17
- /**
18
- * List versions of a val
19
- */
20
- list(valId, query, options) {
21
- return this._client.getAPIList(`/v1/vals/${valId}/versions`, VersionListResponsesPageCursorURL, {
22
- query,
23
- ...options,
24
- });
25
- }
26
- /**
27
- * Delete a specific version of a val
28
- */
29
- delete(valId, version, options) {
30
- return this._client.delete(`/v1/vals/${valId}/versions/${version}`, {
31
- ...options,
32
- headers: { Accept: '*/*', ...options?.headers },
33
- });
34
- }
35
- }
36
- export class VersionListResponsesPageCursorURL extends PageCursorURL {
37
- }
38
- Versions.VersionListResponsesPageCursorURL = VersionListResponsesPageCursorURL;
39
- //# sourceMappingURL=versions.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"versions.mjs","sourceRoot":"","sources":["../../src/resources/vals/versions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,aAAa,EAA4B;AAElD,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CACJ,KAAa,EACb,IAAyB,EACzB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,KAAK,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;IAED;;OAEG;IACH,QAAQ,CACN,KAAa,EACb,OAAe,EACf,KAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,aAAa,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAa,EACb,KAAwB,EACxB,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,KAAK,WAAW,EAAE,iCAAiC,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAa,EAAE,OAAe,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,YAAY,KAAK,aAAa,OAAO,EAAE,EAAE;YAClE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,iCAAkC,SAAQ,aAAkC;CAAG;AA2D5F,QAAQ,CAAC,iCAAiC,GAAG,iCAAiC,CAAC"}
@@ -1,72 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../resource';
4
- import * as Core from '../../../core';
5
-
6
- export class ProjectName extends APIResource {
7
- /**
8
- * Get a project
9
- */
10
- retrieve(
11
- username: string,
12
- projectName: string,
13
- options?: Core.RequestOptions,
14
- ): Core.APIPromise<ProjectNameRetrieveResponse> {
15
- return this._client.get(`/v1/alias/projects/${username}/${projectName}`, options);
16
- }
17
- }
18
-
19
- /**
20
- * A Project
21
- */
22
- export interface ProjectNameRetrieveResponse {
23
- /**
24
- * The id of the project
25
- */
26
- id: string;
27
-
28
- author: ProjectNameRetrieveResponse.Author;
29
-
30
- createdAt: string;
31
-
32
- description: string | null;
33
-
34
- /**
35
- * The URL of this project's image
36
- */
37
- imageUrl: string | null;
38
-
39
- links: ProjectNameRetrieveResponse.Links;
40
-
41
- name: string;
42
-
43
- /**
44
- * This resource's privacy setting. Unlisted resources do not appear on profile
45
- * pages or elsewhere, but you can link to them.
46
- */
47
- privacy: 'public' | 'unlisted' | 'private';
48
- }
49
-
50
- export namespace ProjectNameRetrieveResponse {
51
- export interface Author {
52
- id: string;
53
-
54
- username: string | null;
55
- }
56
-
57
- export interface Links {
58
- /**
59
- * The URL of this resource on Val Town
60
- */
61
- html: string;
62
-
63
- /**
64
- * The URL of this resource on this API
65
- */
66
- self: string;
67
- }
68
- }
69
-
70
- export declare namespace ProjectName {
71
- export { type ProjectNameRetrieveResponse as ProjectNameRetrieveResponse };
72
- }
@@ -1,108 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../resource';
4
- import * as Core from '../../core';
5
- import { PageCursorURL, type PageCursorURLParams } from '../../pagination';
6
-
7
- export class Comments extends APIResource {
8
- /**
9
- * Get comments related to current user, either given or received
10
- */
11
- list(
12
- query: CommentListParams,
13
- options?: Core.RequestOptions,
14
- ): Core.PagePromise<CommentListResponsesPageCursorURL, CommentListResponse> {
15
- return this._client.getAPIList('/v1/me/comments', CommentListResponsesPageCursorURL, {
16
- query,
17
- ...options,
18
- });
19
- }
20
- }
21
-
22
- export class CommentListResponsesPageCursorURL extends PageCursorURL<CommentListResponse> {}
23
-
24
- export interface CommentListResponse {
25
- /**
26
- * The comment’s id
27
- */
28
- id: string;
29
-
30
- author: CommentListResponse.Author;
31
-
32
- /**
33
- * Text of the given comment, in Markdown
34
- */
35
- comment: string;
36
-
37
- createdAt: string;
38
-
39
- val: CommentListResponse.Val;
40
- }
41
-
42
- export namespace CommentListResponse {
43
- export interface Author {
44
- id: string;
45
-
46
- username: string | null;
47
- }
48
-
49
- export interface Val {
50
- id: string;
51
-
52
- /**
53
- * The user who created this val
54
- */
55
- author: Val.Author | null;
56
-
57
- /**
58
- * Name of the val that is being commented on
59
- */
60
- name: string;
61
-
62
- /**
63
- * This resource's privacy setting. Unlisted resources do not appear on profile
64
- * pages or elsewhere, but you can link to them.
65
- */
66
- privacy: 'public' | 'unlisted' | 'private';
67
-
68
- version: number;
69
- }
70
-
71
- export namespace Val {
72
- /**
73
- * The user who created this val
74
- */
75
- export interface Author {
76
- id: string;
77
-
78
- username: string | null;
79
- }
80
- }
81
- }
82
-
83
- export interface CommentListParams extends PageCursorURLParams {
84
- /**
85
- * Whether to get comments you have received, given, or both
86
- */
87
- relationship: 'any' | 'received' | 'given';
88
-
89
- /**
90
- * Include items created after this date
91
- */
92
- since?: string;
93
-
94
- /**
95
- * Include items created before this date
96
- */
97
- until?: string;
98
- }
99
-
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
- };
108
- }
@@ -1,27 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../resource';
4
- import * as Core from '../../core';
5
- import * as Shared from '../shared';
6
- import { BasicValsPageCursorURL } from '../shared';
7
- import { type PageCursorURLParams } from '../../pagination';
8
-
9
- export class Likes extends APIResource {
10
- /**
11
- * Get vals liked by the current user
12
- */
13
- list(
14
- query: LikeListParams,
15
- options?: Core.RequestOptions,
16
- ): Core.PagePromise<BasicValsPageCursorURL, Shared.BasicVal> {
17
- return this._client.getAPIList('/v1/me/likes', BasicValsPageCursorURL, { query, ...options });
18
- }
19
- }
20
-
21
- export interface LikeListParams extends PageCursorURLParams {}
22
-
23
- export declare namespace Likes {
24
- export { type LikeListParams as LikeListParams };
25
- }
26
-
27
- export { BasicValsPageCursorURL };
@@ -1,85 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../resource';
4
- import * as Core from '../../core';
5
- import { PageCursorURL, type PageCursorURLParams } from '../../pagination';
6
-
7
- export class Projects extends APIResource {
8
- /**
9
- * [BETA] List all of a user's projects for authenticated users
10
- */
11
- list(
12
- query: ProjectListParams,
13
- options?: Core.RequestOptions,
14
- ): Core.PagePromise<ProjectListResponsesPageCursorURL, ProjectListResponse> {
15
- return this._client.getAPIList('/v1/me/projects', ProjectListResponsesPageCursorURL, {
16
- query,
17
- ...options,
18
- });
19
- }
20
- }
21
-
22
- export class ProjectListResponsesPageCursorURL extends PageCursorURL<ProjectListResponse> {}
23
-
24
- /**
25
- * A Project
26
- */
27
- export interface ProjectListResponse {
28
- /**
29
- * The id of the project
30
- */
31
- id: string;
32
-
33
- author: ProjectListResponse.Author;
34
-
35
- createdAt: string;
36
-
37
- description: string | null;
38
-
39
- /**
40
- * The URL of this project's image
41
- */
42
- imageUrl: string | null;
43
-
44
- links: ProjectListResponse.Links;
45
-
46
- name: string;
47
-
48
- /**
49
- * This resource's privacy setting. Unlisted resources do not appear on profile
50
- * pages or elsewhere, but you can link to them.
51
- */
52
- privacy: 'public' | 'unlisted' | 'private';
53
- }
54
-
55
- export namespace ProjectListResponse {
56
- export interface Author {
57
- id: string;
58
-
59
- username: string | null;
60
- }
61
-
62
- export interface Links {
63
- /**
64
- * The URL of this resource on Val Town
65
- */
66
- html: string;
67
-
68
- /**
69
- * The URL of this resource on this API
70
- */
71
- self: string;
72
- }
73
- }
74
-
75
- export interface ProjectListParams extends PageCursorURLParams {}
76
-
77
- Projects.ProjectListResponsesPageCursorURL = ProjectListResponsesPageCursorURL;
78
-
79
- export declare namespace Projects {
80
- export {
81
- type ProjectListResponse as ProjectListResponse,
82
- ProjectListResponsesPageCursorURL as ProjectListResponsesPageCursorURL,
83
- type ProjectListParams as ProjectListParams,
84
- };
85
- }
@@ -1,114 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../resource';
4
- import * as Core from '../../core';
5
- import { PageCursorURL, type PageCursorURLParams } from '../../pagination';
6
-
7
- export class References extends APIResource {
8
- /**
9
- * Get vals that depend on any of the user's vals
10
- */
11
- list(
12
- query: ReferenceListParams,
13
- options?: Core.RequestOptions,
14
- ): Core.PagePromise<ReferenceListResponsesPageCursorURL, ReferenceListResponse> {
15
- return this._client.getAPIList('/v1/me/references', ReferenceListResponsesPageCursorURL, {
16
- query,
17
- ...options,
18
- });
19
- }
20
- }
21
-
22
- export class ReferenceListResponsesPageCursorURL extends PageCursorURL<ReferenceListResponse> {}
23
-
24
- /**
25
- * A description of a dependency from one val (reference) to another (dependsOn)
26
- * that was introduced at a particular time.
27
- */
28
- export interface ReferenceListResponse {
29
- /**
30
- * A val in a dependency relationship
31
- */
32
- dependsOn: ReferenceListResponse.DependsOn;
33
-
34
- /**
35
- * A val in a dependency relationship
36
- */
37
- reference: ReferenceListResponse.Reference;
38
-
39
- referencedAt: string;
40
- }
41
-
42
- export namespace ReferenceListResponse {
43
- /**
44
- * A val in a dependency relationship
45
- */
46
- export interface DependsOn {
47
- /**
48
- * The id of this val
49
- */
50
- id: string;
51
-
52
- /**
53
- * The ID of the person who authored this val
54
- */
55
- author_id: string | null;
56
-
57
- /**
58
- * The name of this val
59
- */
60
- name: string;
61
-
62
- /**
63
- * The username of the person who authored this val
64
- */
65
- username: string | null;
66
- }
67
-
68
- /**
69
- * A val in a dependency relationship
70
- */
71
- export interface Reference {
72
- /**
73
- * The id of this val
74
- */
75
- id: string;
76
-
77
- /**
78
- * The ID of the person who authored this val
79
- */
80
- author_id: string | null;
81
-
82
- /**
83
- * The name of this val
84
- */
85
- name: string;
86
-
87
- /**
88
- * The username of the person who authored this val
89
- */
90
- username: string | null;
91
- }
92
- }
93
-
94
- export interface ReferenceListParams extends PageCursorURLParams {
95
- /**
96
- * Include items created after this date
97
- */
98
- since?: string;
99
-
100
- /**
101
- * Include items created before this date
102
- */
103
- until?: string;
104
- }
105
-
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
- };
114
- }
@@ -1,32 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- export {
4
- BranchListResponsesPageCursorURL,
5
- Branches,
6
- type BranchCreateResponse,
7
- type BranchRetrieveResponse,
8
- type BranchListResponse,
9
- type BranchCreateParams,
10
- type BranchListParams,
11
- } from './branches';
12
- export {
13
- FileRetrieveResponsesPageCursorURL,
14
- Files,
15
- type FileCreateResponse,
16
- type FileRetrieveResponse,
17
- type FileUpdateResponse,
18
- type FileCreateParams,
19
- type FileRetrieveParams,
20
- type FileUpdateParams,
21
- type FileDeleteParams,
22
- type FileGetContentParams,
23
- } from './files';
24
- export {
25
- ProjectListResponsesPageCursorURL,
26
- Projects,
27
- type ProjectCreateResponse,
28
- type ProjectRetrieveResponse,
29
- type ProjectListResponse,
30
- type ProjectCreateParams,
31
- type ProjectListParams,
32
- } from './projects';