@valtown/sdk 0.29.1 → 0.31.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 (56) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.json +1 -1
  3. package/resources/alias/username/index.d.ts +1 -0
  4. package/resources/alias/username/index.d.ts.map +1 -1
  5. package/resources/alias/username/index.js +3 -1
  6. package/resources/alias/username/index.js.map +1 -1
  7. package/resources/alias/username/index.mjs +1 -0
  8. package/resources/alias/username/index.mjs.map +1 -1
  9. package/resources/alias/username/project-name.d.ts +51 -0
  10. package/resources/alias/username/project-name.d.ts.map +1 -0
  11. package/resources/alias/username/project-name.js +15 -0
  12. package/resources/alias/username/project-name.js.map +1 -0
  13. package/resources/alias/username/project-name.mjs +11 -0
  14. package/resources/alias/username/project-name.mjs.map +1 -0
  15. package/resources/alias/username/username.d.ts +4 -0
  16. package/resources/alias/username/username.d.ts.map +1 -1
  17. package/resources/alias/username/username.js +4 -0
  18. package/resources/alias/username/username.js.map +1 -1
  19. package/resources/alias/username/username.mjs +4 -0
  20. package/resources/alias/username/username.mjs.map +1 -1
  21. package/resources/me/projects.d.ts +11 -4
  22. package/resources/me/projects.d.ts.map +1 -1
  23. package/resources/me/projects.js.map +1 -1
  24. package/resources/me/projects.mjs.map +1 -1
  25. package/resources/projects/branches.d.ts +26 -8
  26. package/resources/projects/branches.d.ts.map +1 -1
  27. package/resources/projects/branches.js.map +1 -1
  28. package/resources/projects/branches.mjs.map +1 -1
  29. package/resources/projects/files.d.ts +121 -3
  30. package/resources/projects/files.d.ts.map +1 -1
  31. package/resources/projects/files.js +25 -0
  32. package/resources/projects/files.js.map +1 -1
  33. package/resources/projects/files.mjs +25 -0
  34. package/resources/projects/files.mjs.map +1 -1
  35. package/resources/projects/index.d.ts +1 -1
  36. package/resources/projects/index.d.ts.map +1 -1
  37. package/resources/projects/index.js.map +1 -1
  38. package/resources/projects/index.mjs +1 -1
  39. package/resources/projects/index.mjs.map +1 -1
  40. package/resources/projects/projects.d.ts +24 -10
  41. package/resources/projects/projects.d.ts.map +1 -1
  42. package/resources/projects/projects.js.map +1 -1
  43. package/resources/projects/projects.mjs +1 -1
  44. package/resources/projects/projects.mjs.map +1 -1
  45. package/src/resources/alias/username/index.ts +1 -0
  46. package/src/resources/alias/username/project-name.ts +72 -0
  47. package/src/resources/alias/username/username.ts +6 -0
  48. package/src/resources/me/projects.ts +14 -5
  49. package/src/resources/projects/branches.ts +32 -10
  50. package/src/resources/projects/files.ts +195 -3
  51. package/src/resources/projects/index.ts +10 -1
  52. package/src/resources/projects/projects.ts +42 -11
  53. package/src/version.ts +1 -1
  54. package/version.d.ts +1 -1
  55. package/version.js +1 -1
  56. package/version.mjs +1 -1
@@ -7,7 +7,16 @@ export {
7
7
  type BranchListResponse,
8
8
  type BranchListParams,
9
9
  } from './branches';
10
- export { FileListResponsesPageCursorURL, Files, type FileListResponse, type FileListParams } from './files';
10
+ export {
11
+ FileListResponsesPageCursorURL,
12
+ Files,
13
+ type FileRetrieveResponse,
14
+ type FileListResponse,
15
+ type FileContentResponse,
16
+ type FileRetrieveParams,
17
+ type FileListParams,
18
+ type FileContentParams,
19
+ } from './files';
11
20
  export {
12
21
  ProjectListResponsesPageCursorURL,
13
22
  Projects,
@@ -11,7 +11,16 @@ import {
11
11
  Branches,
12
12
  } from './branches';
13
13
  import * as FilesAPI from './files';
14
- import { FileListParams, FileListResponse, FileListResponsesPageCursorURL, Files } from './files';
14
+ import {
15
+ FileContentParams,
16
+ FileContentResponse,
17
+ FileListParams,
18
+ FileListResponse,
19
+ FileListResponsesPageCursorURL,
20
+ FileRetrieveParams,
21
+ FileRetrieveResponse,
22
+ Files,
23
+ } from './files';
15
24
  import { PageCursorURL, type PageCursorURLParams } from '../../pagination';
16
25
 
17
26
  /**
@@ -61,6 +70,8 @@ export interface ProjectRetrieveResponse {
61
70
  */
62
71
  imageUrl: string | null;
63
72
 
73
+ links: ProjectRetrieveResponse.Links;
74
+
64
75
  name: string;
65
76
 
66
77
  /**
@@ -68,11 +79,6 @@ export interface ProjectRetrieveResponse {
68
79
  * pages or elsewhere, but you can link to them.
69
80
  */
70
81
  privacy: 'public' | 'unlisted' | 'private';
71
-
72
- /**
73
- * The URL of this resource on the Val Town website
74
- */
75
- valTownUrl: string;
76
82
  }
77
83
 
78
84
  export namespace ProjectRetrieveResponse {
@@ -81,6 +87,18 @@ export namespace ProjectRetrieveResponse {
81
87
 
82
88
  username: string | null;
83
89
  }
90
+
91
+ export interface Links {
92
+ /**
93
+ * The URL of this resource on Val Town
94
+ */
95
+ html: string;
96
+
97
+ /**
98
+ * The URL of this resource on this API
99
+ */
100
+ self: string;
101
+ }
84
102
  }
85
103
 
86
104
  /**
@@ -103,6 +121,8 @@ export interface ProjectListResponse {
103
121
  */
104
122
  imageUrl: string | null;
105
123
 
124
+ links: ProjectListResponse.Links;
125
+
106
126
  name: string;
107
127
 
108
128
  /**
@@ -110,11 +130,6 @@ export interface ProjectListResponse {
110
130
  * pages or elsewhere, but you can link to them.
111
131
  */
112
132
  privacy: 'public' | 'unlisted' | 'private';
113
-
114
- /**
115
- * The URL of this resource on the Val Town website
116
- */
117
- valTownUrl: string;
118
133
  }
119
134
 
120
135
  export namespace ProjectListResponse {
@@ -123,6 +138,18 @@ export namespace ProjectListResponse {
123
138
 
124
139
  username: string | null;
125
140
  }
141
+
142
+ export interface Links {
143
+ /**
144
+ * The URL of this resource on Val Town
145
+ */
146
+ html: string;
147
+
148
+ /**
149
+ * The URL of this resource on this API
150
+ */
151
+ self: string;
152
+ }
126
153
  }
127
154
 
128
155
  export interface ProjectListParams extends PageCursorURLParams {}
@@ -151,8 +178,12 @@ export declare namespace Projects {
151
178
 
152
179
  export {
153
180
  Files as Files,
181
+ type FileRetrieveResponse as FileRetrieveResponse,
154
182
  type FileListResponse as FileListResponse,
183
+ type FileContentResponse as FileContentResponse,
155
184
  FileListResponsesPageCursorURL as FileListResponsesPageCursorURL,
185
+ type FileRetrieveParams as FileRetrieveParams,
156
186
  type FileListParams as FileListParams,
187
+ type FileContentParams as FileContentParams,
157
188
  };
158
189
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.29.1'; // x-release-please-version
1
+ export const VERSION = '0.31.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.29.1";
1
+ export declare const VERSION = "0.31.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.29.1'; // x-release-please-version
4
+ exports.VERSION = '0.31.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.29.1'; // x-release-please-version
1
+ export const VERSION = '0.31.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map