dub 0.0.0 → 0.1.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 (222) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/LICENSE +201 -0
  3. package/README.md +241 -0
  4. package/_shims/MultipartBody.d.ts +9 -0
  5. package/_shims/MultipartBody.d.ts.map +1 -0
  6. package/_shims/MultipartBody.js +16 -0
  7. package/_shims/MultipartBody.js.map +1 -0
  8. package/_shims/MultipartBody.mjs +12 -0
  9. package/_shims/MultipartBody.mjs.map +1 -0
  10. package/_shims/README.md +46 -0
  11. package/_shims/auto/runtime-bun.d.ts +5 -0
  12. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  13. package/_shims/auto/runtime-bun.js +21 -0
  14. package/_shims/auto/runtime-bun.js.map +1 -0
  15. package/_shims/auto/runtime-bun.mjs +2 -0
  16. package/_shims/auto/runtime-bun.mjs.map +1 -0
  17. package/_shims/auto/runtime-node.d.ts +5 -0
  18. package/_shims/auto/runtime-node.d.ts.map +1 -0
  19. package/_shims/auto/runtime-node.js +21 -0
  20. package/_shims/auto/runtime-node.js.map +1 -0
  21. package/_shims/auto/runtime-node.mjs +2 -0
  22. package/_shims/auto/runtime-node.mjs.map +1 -0
  23. package/_shims/auto/runtime.d.ts +5 -0
  24. package/_shims/auto/runtime.d.ts.map +1 -0
  25. package/_shims/auto/runtime.js +21 -0
  26. package/_shims/auto/runtime.js.map +1 -0
  27. package/_shims/auto/runtime.mjs +2 -0
  28. package/_shims/auto/runtime.mjs.map +1 -0
  29. package/_shims/auto/types-node.d.ts +5 -0
  30. package/_shims/auto/types-node.d.ts.map +1 -0
  31. package/_shims/auto/types-node.js +21 -0
  32. package/_shims/auto/types-node.js.map +1 -0
  33. package/_shims/auto/types-node.mjs +2 -0
  34. package/_shims/auto/types-node.mjs.map +1 -0
  35. package/_shims/auto/types.d.ts +101 -0
  36. package/_shims/auto/types.js +3 -0
  37. package/_shims/auto/types.mjs +3 -0
  38. package/_shims/bun-runtime.d.ts +6 -0
  39. package/_shims/bun-runtime.d.ts.map +1 -0
  40. package/_shims/bun-runtime.js +14 -0
  41. package/_shims/bun-runtime.js.map +1 -0
  42. package/_shims/bun-runtime.mjs +10 -0
  43. package/_shims/bun-runtime.mjs.map +1 -0
  44. package/_shims/index.d.ts +81 -0
  45. package/_shims/index.js +13 -0
  46. package/_shims/index.mjs +7 -0
  47. package/_shims/manual-types.d.ts +12 -0
  48. package/_shims/manual-types.js +3 -0
  49. package/_shims/manual-types.mjs +3 -0
  50. package/_shims/node-runtime.d.ts +3 -0
  51. package/_shims/node-runtime.d.ts.map +1 -0
  52. package/_shims/node-runtime.js +90 -0
  53. package/_shims/node-runtime.js.map +1 -0
  54. package/_shims/node-runtime.mjs +56 -0
  55. package/_shims/node-runtime.mjs.map +1 -0
  56. package/_shims/node-types.d.ts +42 -0
  57. package/_shims/node-types.js +3 -0
  58. package/_shims/node-types.mjs +3 -0
  59. package/_shims/registry.d.ts +37 -0
  60. package/_shims/registry.d.ts.map +1 -0
  61. package/_shims/registry.js +41 -0
  62. package/_shims/registry.js.map +1 -0
  63. package/_shims/registry.mjs +37 -0
  64. package/_shims/registry.mjs.map +1 -0
  65. package/_shims/web-runtime.d.ts +5 -0
  66. package/_shims/web-runtime.d.ts.map +1 -0
  67. package/_shims/web-runtime.js +78 -0
  68. package/_shims/web-runtime.js.map +1 -0
  69. package/_shims/web-runtime.mjs +71 -0
  70. package/_shims/web-runtime.mjs.map +1 -0
  71. package/_shims/web-types.d.ts +83 -0
  72. package/_shims/web-types.js +3 -0
  73. package/_shims/web-types.mjs +3 -0
  74. package/core.d.ts +230 -0
  75. package/core.d.ts.map +1 -0
  76. package/core.js +848 -0
  77. package/core.js.map +1 -0
  78. package/core.mjs +818 -0
  79. package/core.mjs.map +1 -0
  80. package/error.d.ts +53 -0
  81. package/error.d.ts.map +1 -0
  82. package/error.js +143 -0
  83. package/error.js.map +1 -0
  84. package/error.mjs +127 -0
  85. package/error.mjs.map +1 -0
  86. package/index.d.mts +118 -0
  87. package/index.d.ts +118 -0
  88. package/index.d.ts.map +1 -0
  89. package/index.js +109 -0
  90. package/index.js.map +1 -0
  91. package/index.mjs +81 -0
  92. package/index.mjs.map +1 -0
  93. package/package.json +100 -7
  94. package/resource.d.ts +6 -0
  95. package/resource.d.ts.map +1 -0
  96. package/resource.js +11 -0
  97. package/resource.js.map +1 -0
  98. package/resource.mjs +7 -0
  99. package/resource.mjs.map +1 -0
  100. package/resources/index.d.ts +4 -0
  101. package/resources/index.d.ts.map +1 -0
  102. package/resources/index.js +24 -0
  103. package/resources/index.js.map +1 -0
  104. package/resources/index.mjs +5 -0
  105. package/resources/index.mjs.map +1 -0
  106. package/resources/links/bulk.d.ts +101 -0
  107. package/resources/links/bulk.d.ts.map +1 -0
  108. package/resources/links/bulk.js +18 -0
  109. package/resources/links/bulk.js.map +1 -0
  110. package/resources/links/bulk.mjs +14 -0
  111. package/resources/links/bulk.mjs.map +1 -0
  112. package/resources/links/index.d.ts +4 -0
  113. package/resources/links/index.d.ts.map +1 -0
  114. package/resources/links/index.js +11 -0
  115. package/resources/links/index.js.map +1 -0
  116. package/resources/links/index.mjs +5 -0
  117. package/resources/links/index.mjs.map +1 -0
  118. package/resources/links/info.d.ts +30 -0
  119. package/resources/links/info.d.ts.map +1 -0
  120. package/resources/links/info.js +17 -0
  121. package/resources/links/info.js.map +1 -0
  122. package/resources/links/info.mjs +13 -0
  123. package/resources/links/info.mjs.map +1 -0
  124. package/resources/links/links.d.ts +253 -0
  125. package/resources/links/links.d.ts.map +1 -0
  126. package/resources/links/links.js +71 -0
  127. package/resources/links/links.js.map +1 -0
  128. package/resources/links/links.mjs +44 -0
  129. package/resources/links/links.mjs.map +1 -0
  130. package/resources/projects/index.d.ts +3 -0
  131. package/resources/projects/index.d.ts.map +1 -0
  132. package/resources/projects/index.js +9 -0
  133. package/resources/projects/index.js.map +1 -0
  134. package/resources/projects/index.mjs +4 -0
  135. package/resources/projects/index.mjs.map +1 -0
  136. package/resources/projects/projects.d.ts +98 -0
  137. package/resources/projects/projects.d.ts.map +1 -0
  138. package/resources/projects/projects.js +52 -0
  139. package/resources/projects/projects.js.map +1 -0
  140. package/resources/projects/projects.mjs +25 -0
  141. package/resources/projects/projects.mjs.map +1 -0
  142. package/resources/projects/tags.d.ts +40 -0
  143. package/resources/projects/tags.d.ts.map +1 -0
  144. package/resources/projects/tags.js +23 -0
  145. package/resources/projects/tags.js.map +1 -0
  146. package/resources/projects/tags.mjs +19 -0
  147. package/resources/projects/tags.mjs.map +1 -0
  148. package/resources/shared.d.ts +125 -0
  149. package/resources/shared.d.ts.map +1 -0
  150. package/resources/shared.js +4 -0
  151. package/resources/shared.js.map +1 -0
  152. package/resources/shared.mjs +3 -0
  153. package/resources/shared.mjs.map +1 -0
  154. package/shims/node.d.ts +29 -0
  155. package/shims/node.d.ts.map +1 -0
  156. package/shims/node.js +31 -0
  157. package/shims/node.js.map +1 -0
  158. package/shims/node.mjs +5 -0
  159. package/shims/node.mjs.map +1 -0
  160. package/shims/web.d.ts +26 -0
  161. package/shims/web.d.ts.map +1 -0
  162. package/shims/web.js +31 -0
  163. package/shims/web.js.map +1 -0
  164. package/shims/web.mjs +5 -0
  165. package/shims/web.mjs.map +1 -0
  166. package/src/_shims/MultipartBody.ts +9 -0
  167. package/src/_shims/README.md +46 -0
  168. package/src/_shims/auto/runtime-bun.ts +4 -0
  169. package/src/_shims/auto/runtime-node.ts +4 -0
  170. package/src/_shims/auto/runtime.ts +4 -0
  171. package/src/_shims/auto/types-node.ts +4 -0
  172. package/src/_shims/auto/types.d.ts +101 -0
  173. package/src/_shims/auto/types.js +3 -0
  174. package/src/_shims/auto/types.mjs +3 -0
  175. package/src/_shims/bun-runtime.ts +14 -0
  176. package/src/_shims/index.d.ts +81 -0
  177. package/src/_shims/index.js +13 -0
  178. package/src/_shims/index.mjs +7 -0
  179. package/src/_shims/manual-types.d.ts +12 -0
  180. package/src/_shims/manual-types.js +3 -0
  181. package/src/_shims/manual-types.mjs +3 -0
  182. package/src/_shims/node-runtime.ts +83 -0
  183. package/src/_shims/node-types.d.ts +42 -0
  184. package/src/_shims/node-types.js +3 -0
  185. package/src/_shims/node-types.mjs +3 -0
  186. package/src/_shims/registry.ts +63 -0
  187. package/src/_shims/web-runtime.ts +103 -0
  188. package/src/_shims/web-types.d.ts +83 -0
  189. package/src/_shims/web-types.js +3 -0
  190. package/src/_shims/web-types.mjs +3 -0
  191. package/src/core.ts +1122 -0
  192. package/src/error.ts +146 -0
  193. package/src/index.ts +195 -0
  194. package/src/lib/.keep +4 -0
  195. package/src/resource.ts +11 -0
  196. package/src/resources/index.ts +12 -0
  197. package/src/resources/links/bulk.ts +126 -0
  198. package/src/resources/links/index.ts +12 -0
  199. package/src/resources/links/info.ts +38 -0
  200. package/src/resources/links/links.ts +325 -0
  201. package/src/resources/projects/index.ts +4 -0
  202. package/src/resources/projects/projects.ts +122 -0
  203. package/src/resources/projects/tags.ts +53 -0
  204. package/src/resources/shared.ts +154 -0
  205. package/src/shims/node.ts +50 -0
  206. package/src/shims/web.ts +50 -0
  207. package/src/tsconfig.json +11 -0
  208. package/src/uploads.ts +245 -0
  209. package/src/version.ts +1 -0
  210. package/uploads.d.ts +75 -0
  211. package/uploads.d.ts.map +1 -0
  212. package/uploads.js +163 -0
  213. package/uploads.js.map +1 -0
  214. package/uploads.mjs +150 -0
  215. package/uploads.mjs.map +1 -0
  216. package/version.d.ts +2 -0
  217. package/version.d.ts.map +1 -0
  218. package/version.js +5 -0
  219. package/version.js.map +1 -0
  220. package/version.mjs +2 -0
  221. package/version.mjs.map +1 -0
  222. package/main.js +0 -8
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.js","sourceRoot":"","sources":["../../src/resources/links/info.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,2CAA2C;AAI3C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,KAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AAPD,oBAOC;AAqBD,WAAiB,IAAI;AAErB,CAAC,EAFgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAEpB"}
@@ -0,0 +1,13 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+ import { APIResource } from 'dub/resource';
3
+ export class Info extends APIResource {
4
+ /**
5
+ * Retrieve the info for a link from their domain and key.
6
+ */
7
+ retrieve(query, options) {
8
+ return this._client.get('/links/info', { query, ...options });
9
+ }
10
+ }
11
+ (function (Info) {
12
+ })(Info || (Info = {}));
13
+ //# sourceMappingURL=info.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.mjs","sourceRoot":"","sources":["../../src/resources/links/info.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,cAAc;AAI1C,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;OAEG;IACH,QAAQ,CAAC,KAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AAqBD,WAAiB,IAAI;AAErB,CAAC,EAFgB,IAAI,KAAJ,IAAI,QAEpB"}
@@ -0,0 +1,253 @@
1
+ import * as Core from 'dub/core';
2
+ import { APIResource } from 'dub/resource';
3
+ import * as LinksAPI from 'dub/resources/links/links';
4
+ import * as Shared from 'dub/resources/shared';
5
+ import * as BulkAPI from 'dub/resources/links/bulk';
6
+ import * as InfoAPI from 'dub/resources/links/info';
7
+ export declare class Links extends APIResource {
8
+ info: InfoAPI.Info;
9
+ bulk: BulkAPI.Bulk;
10
+ /**
11
+ * Create a new link for the authenticated project.
12
+ */
13
+ create(params: LinkCreateParams, options?: Core.RequestOptions): Core.APIPromise<Shared.Link>;
14
+ /**
15
+ * Edit a link for the authenticated project.
16
+ */
17
+ update(linkId: string, params: LinkUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Shared.Link>;
18
+ /**
19
+ * Retrieve a list of links for the authenticated project. The list will be
20
+ * paginated and the provided query parameters allow filtering the returned links.
21
+ */
22
+ list(query: LinkListParams, options?: Core.RequestOptions): Core.APIPromise<LinkListResponse>;
23
+ /**
24
+ * Delete a link for the authenticated project.
25
+ */
26
+ delete(linkId: string, params: LinkDeleteParams, options?: Core.RequestOptions): Core.APIPromise<Shared.Link>;
27
+ }
28
+ export type LinkListResponse = Array<Shared.Link>;
29
+ export interface LinkCreateParams {
30
+ /**
31
+ * Query param: The slug for the project to create links for. E.g. for
32
+ * app.dub.co/acme, the projectSlug is 'acme'.
33
+ */
34
+ projectSlug: string;
35
+ /**
36
+ * Body param: The domain of the short link.
37
+ */
38
+ domain: string;
39
+ /**
40
+ * Body param: The destination URL of the short link.
41
+ */
42
+ url: string;
43
+ /**
44
+ * Body param: The Android destination URL for the short link for Android device
45
+ * targeting.
46
+ */
47
+ android?: string | null;
48
+ /**
49
+ * Body param: Whether the short link is archived.
50
+ */
51
+ archived?: boolean;
52
+ /**
53
+ * Body param: The comments for the short link.
54
+ */
55
+ comments?: string | null;
56
+ /**
57
+ * Body param: The description of the short link generated via api.dub.co/metatags.
58
+ * Will be used for Custom Social Media Cards if `proxy` is true.
59
+ */
60
+ description?: string | null;
61
+ /**
62
+ * Body param: The date and time when the short link will expire in ISO-8601
63
+ * format. Must be in the future.
64
+ */
65
+ expiresAt?: string | null;
66
+ /**
67
+ * Body param: Geo targeting information for the short link in JSON format
68
+ * {[COUNTRY]: "https://example.com" }. Learn more: https://dub.sh/geo
69
+ */
70
+ geo?: Record<string, string> | null;
71
+ /**
72
+ * Body param: The image of the short link generated via api.dub.co/metatags. Will
73
+ * be used for Custom Social Media Cards if `proxy` is true.
74
+ */
75
+ image?: string | null;
76
+ /**
77
+ * Body param: The iOS destination URL for the short link for iOS device targeting.
78
+ */
79
+ ios?: string | null;
80
+ /**
81
+ * Body param: The short link slug. If not provided, a random 7-character slug will
82
+ * be generated.
83
+ */
84
+ key?: string;
85
+ /**
86
+ * Body param: The password required to access the destination URL of the short
87
+ * link.
88
+ */
89
+ password?: string | null;
90
+ /**
91
+ * Body param: Whether the short link uses Custom Social Media Cards feature.
92
+ */
93
+ proxy?: boolean;
94
+ /**
95
+ * Body param: Whether the short link's stats are publicly accessible.
96
+ */
97
+ publicStats?: boolean;
98
+ /**
99
+ * Body param: Whether the short link uses link cloaking.
100
+ */
101
+ rewrite?: boolean;
102
+ /**
103
+ * Body param: The unique id of the tag assigned to the short link.
104
+ */
105
+ tagId?: string | null;
106
+ /**
107
+ * Body param: The title of the short link generated via api.dub.co/metatags. Will
108
+ * be used for Custom Social Media Cards if `proxy` is true.
109
+ */
110
+ title?: string | null;
111
+ }
112
+ export interface LinkUpdateParams {
113
+ /**
114
+ * Query param: The slug for the project that the link belongs to. E.g. for
115
+ * app.dub.co/acme, the projectSlug is 'acme'.
116
+ */
117
+ projectSlug: string;
118
+ /**
119
+ * Body param: The Android destination URL for the short link for Android device
120
+ * targeting.
121
+ */
122
+ android?: string | null;
123
+ /**
124
+ * Body param: Whether the short link is archived.
125
+ */
126
+ archived?: boolean;
127
+ /**
128
+ * Body param: The comments for the short link.
129
+ */
130
+ comments?: string | null;
131
+ /**
132
+ * Body param: The description of the short link generated via api.dub.co/metatags.
133
+ * Will be used for Custom Social Media Cards if `proxy` is true.
134
+ */
135
+ description?: string | null;
136
+ /**
137
+ * Body param: The domain of the short link.
138
+ */
139
+ domain?: string;
140
+ /**
141
+ * Body param: The date and time when the short link will expire in ISO-8601
142
+ * format. Must be in the future.
143
+ */
144
+ expiresAt?: string | null;
145
+ /**
146
+ * Body param: Geo targeting information for the short link in JSON format
147
+ * {[COUNTRY]: "https://example.com" }. Learn more: https://dub.sh/geo
148
+ */
149
+ geo?: Record<string, string> | null;
150
+ /**
151
+ * Body param: The image of the short link generated via api.dub.co/metatags. Will
152
+ * be used for Custom Social Media Cards if `proxy` is true.
153
+ */
154
+ image?: string | null;
155
+ /**
156
+ * Body param: The iOS destination URL for the short link for iOS device targeting.
157
+ */
158
+ ios?: string | null;
159
+ /**
160
+ * Body param: The short link slug. If not provided, a random 7-character slug will
161
+ * be generated.
162
+ */
163
+ key?: string;
164
+ /**
165
+ * Body param: The password required to access the destination URL of the short
166
+ * link.
167
+ */
168
+ password?: string | null;
169
+ /**
170
+ * Body param: Whether the short link uses Custom Social Media Cards feature.
171
+ */
172
+ proxy?: boolean;
173
+ /**
174
+ * Body param: Whether the short link's stats are publicly accessible.
175
+ */
176
+ publicStats?: boolean;
177
+ /**
178
+ * Body param: Whether the short link uses link cloaking.
179
+ */
180
+ rewrite?: boolean;
181
+ /**
182
+ * Body param: The unique id of the tag assigned to the short link.
183
+ */
184
+ tagId?: string | null;
185
+ /**
186
+ * Body param: The title of the short link generated via api.dub.co/metatags. Will
187
+ * be used for Custom Social Media Cards if `proxy` is true.
188
+ */
189
+ title?: string | null;
190
+ /**
191
+ * Body param: The destination URL of the short link.
192
+ */
193
+ url?: string;
194
+ }
195
+ export interface LinkListParams {
196
+ /**
197
+ * The slug for the project to retrieve links for. E.g. for app.dub.co/acme, the
198
+ * projectSlug is 'acme'.
199
+ */
200
+ projectSlug: string;
201
+ /**
202
+ * The domain to filter the links by. E.g. 'ac.me'. If not provided, all links for
203
+ * the project will be returned.
204
+ */
205
+ domain?: string;
206
+ /**
207
+ * The page number for pagination (each page contains 100 links).
208
+ */
209
+ page?: number;
210
+ /**
211
+ * The search term to filter the links by. The search term will be matched against
212
+ * the short link slug and the destination url.
213
+ */
214
+ search?: string;
215
+ /**
216
+ * Whether to include archived links in the response. Defaults to false if not
217
+ * provided.
218
+ */
219
+ showArchived?: true | false;
220
+ /**
221
+ * The field to sort the links by. The default is 'createdAt', and sort order is
222
+ * always descending.
223
+ */
224
+ sort?: 'createdAt' | 'clicks' | 'lastClicked';
225
+ /**
226
+ * The tag ID to filter the links by.
227
+ */
228
+ tagId?: string;
229
+ /**
230
+ * The user ID to filter the links by.
231
+ */
232
+ userId?: string;
233
+ }
234
+ export interface LinkDeleteParams {
235
+ /**
236
+ * The slug for the project that the link belongs to. E.g. for app.dub.co/acme, the
237
+ * projectSlug is 'acme'.
238
+ */
239
+ projectSlug: string;
240
+ }
241
+ export declare namespace Links {
242
+ export import LinkListResponse = LinksAPI.LinkListResponse;
243
+ export import LinkCreateParams = LinksAPI.LinkCreateParams;
244
+ export import LinkUpdateParams = LinksAPI.LinkUpdateParams;
245
+ export import LinkListParams = LinksAPI.LinkListParams;
246
+ export import LinkDeleteParams = LinksAPI.LinkDeleteParams;
247
+ export import Info = InfoAPI.Info;
248
+ export import InfoRetrieveParams = InfoAPI.InfoRetrieveParams;
249
+ export import Bulk = BulkAPI.Bulk;
250
+ export import BulkCreateResponse = BulkAPI.BulkCreateResponse;
251
+ export import BulkCreateParams = BulkAPI.BulkCreateParams;
252
+ }
253
+ //# sourceMappingURL=links.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/resources/links/links.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,QAAQ,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AAEpD,qBAAa,KAAM,SAAQ,WAAW;IACpC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,OAAO,CA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AAC;IAClC,MAAM,QAAQ,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAC9D,MAAM,QAAQ,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAClC,MAAM,QAAQ,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAC9D,MAAM,QAAQ,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAC3D"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.Links = void 0;
28
+ const resource_1 = require("dub/resource");
29
+ const BulkAPI = __importStar(require("dub/resources/links/bulk"));
30
+ const InfoAPI = __importStar(require("dub/resources/links/info"));
31
+ class Links extends resource_1.APIResource {
32
+ constructor() {
33
+ super(...arguments);
34
+ this.info = new InfoAPI.Info(this._client);
35
+ this.bulk = new BulkAPI.Bulk(this._client);
36
+ }
37
+ /**
38
+ * Create a new link for the authenticated project.
39
+ */
40
+ create(params, options) {
41
+ const { projectSlug, ...body } = params;
42
+ return this._client.post('/links', { query: { projectSlug }, body, ...options });
43
+ }
44
+ /**
45
+ * Edit a link for the authenticated project.
46
+ */
47
+ update(linkId, params, options) {
48
+ const { projectSlug, ...body } = params;
49
+ return this._client.put(`/links/${linkId}`, { query: { projectSlug }, body, ...options });
50
+ }
51
+ /**
52
+ * Retrieve a list of links for the authenticated project. The list will be
53
+ * paginated and the provided query parameters allow filtering the returned links.
54
+ */
55
+ list(query, options) {
56
+ return this._client.get('/links', { query, ...options });
57
+ }
58
+ /**
59
+ * Delete a link for the authenticated project.
60
+ */
61
+ delete(linkId, params, options) {
62
+ const { projectSlug } = params;
63
+ return this._client.delete(`/links/${linkId}`, { query: { projectSlug }, ...options });
64
+ }
65
+ }
66
+ exports.Links = Links;
67
+ (function (Links) {
68
+ Links.Info = InfoAPI.Info;
69
+ Links.Bulk = BulkAPI.Bulk;
70
+ })(Links = exports.Links || (exports.Links = {}));
71
+ //# sourceMappingURL=links.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"links.js","sourceRoot":"","sources":["../../src/resources/links/links.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,2CAA2C;AAG3C,kEAAoD;AACpD,kEAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAyCtD,CAAC;IAvCC;;OAEG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA6B;QAC5D,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,MAAc,EACd,MAAwB,EACxB,OAA6B;QAE7B,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,KAAqB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,MAAc,EACd,MAAwB,EACxB,OAA6B;QAE7B,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AA3CD,sBA2CC;AAqQD,WAAiB,KAAK;IAMN,UAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAEpB,UAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAGpC,CAAC,EAXgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAWrB"}
@@ -0,0 +1,44 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+ import { APIResource } from 'dub/resource';
3
+ import * as BulkAPI from 'dub/resources/links/bulk';
4
+ import * as InfoAPI from 'dub/resources/links/info';
5
+ export class Links extends APIResource {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.info = new InfoAPI.Info(this._client);
9
+ this.bulk = new BulkAPI.Bulk(this._client);
10
+ }
11
+ /**
12
+ * Create a new link for the authenticated project.
13
+ */
14
+ create(params, options) {
15
+ const { projectSlug, ...body } = params;
16
+ return this._client.post('/links', { query: { projectSlug }, body, ...options });
17
+ }
18
+ /**
19
+ * Edit a link for the authenticated project.
20
+ */
21
+ update(linkId, params, options) {
22
+ const { projectSlug, ...body } = params;
23
+ return this._client.put(`/links/${linkId}`, { query: { projectSlug }, body, ...options });
24
+ }
25
+ /**
26
+ * Retrieve a list of links for the authenticated project. The list will be
27
+ * paginated and the provided query parameters allow filtering the returned links.
28
+ */
29
+ list(query, options) {
30
+ return this._client.get('/links', { query, ...options });
31
+ }
32
+ /**
33
+ * Delete a link for the authenticated project.
34
+ */
35
+ delete(linkId, params, options) {
36
+ const { projectSlug } = params;
37
+ return this._client.delete(`/links/${linkId}`, { query: { projectSlug }, ...options });
38
+ }
39
+ }
40
+ (function (Links) {
41
+ Links.Info = InfoAPI.Info;
42
+ Links.Bulk = BulkAPI.Bulk;
43
+ })(Links || (Links = {}));
44
+ //# sourceMappingURL=links.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"links.mjs","sourceRoot":"","sources":["../../src/resources/links/links.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,cAAc;OAGnC,KAAK,OAAO,MAAM,0BAA0B;OAC5C,KAAK,OAAO,MAAM,0BAA0B;AAEnD,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAyCtD,CAAC;IAvCC;;OAEG;IACH,MAAM,CAAC,MAAwB,EAAE,OAA6B;QAC5D,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,MAAc,EACd,MAAwB,EACxB,OAA6B;QAE7B,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACxC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,KAAqB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,MAAc,EACd,MAAwB,EACxB,OAA6B;QAE7B,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,WAAW,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AAqQD,WAAiB,KAAK;IAMN,UAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAEpB,UAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAGpC,CAAC,EAXgB,KAAK,KAAL,KAAK,QAWrB"}
@@ -0,0 +1,3 @@
1
+ export { Project, ProjectDetails, ProjectListResponse, Projects } from "./projects.js";
2
+ export { Tag, TagListResponse, TagCreateParams, Tags } from "./tags.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACpF,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Tags = exports.Projects = void 0;
5
+ var projects_1 = require("./projects.js");
6
+ Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return projects_1.Projects; } });
7
+ var tags_1 = require("./tags.js");
8
+ Object.defineProperty(exports, "Tags", { enumerable: true, get: function () { return tags_1.Tags; } });
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAErD,0CAAoF;AAA7B,oGAAA,QAAQ,OAAA;AAC/D,kCAAqE;AAArB,4FAAA,IAAI,OAAA"}
@@ -0,0 +1,4 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+ export { Projects } from "./projects.mjs";
3
+ export { Tags } from "./tags.mjs";
4
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAE9C,EAAgD,QAAQ,EAAE;OAC1D,EAAyC,IAAI,EAAE"}
@@ -0,0 +1,98 @@
1
+ import * as Core from 'dub/core';
2
+ import { APIResource } from 'dub/resource';
3
+ import * as ProjectsAPI from 'dub/resources/projects/projects';
4
+ import * as TagsAPI from 'dub/resources/projects/tags';
5
+ export declare class Projects extends APIResource {
6
+ tags: TagsAPI.Tags;
7
+ /**
8
+ * Retrieve a project for the authenticated user.
9
+ */
10
+ retrieve(projectSlug: string, options?: Core.RequestOptions): Core.APIPromise<ProjectDetails>;
11
+ /**
12
+ * Retrieve a list of projects for the authenticated user.
13
+ */
14
+ list(options?: Core.RequestOptions): Core.APIPromise<ProjectListResponse>;
15
+ }
16
+ export interface Project {
17
+ /**
18
+ * The unique ID of the project.
19
+ */
20
+ id?: string;
21
+ /**
22
+ * The date and time when the billing cycle starts for the project.
23
+ */
24
+ billingCycleStart?: number | null;
25
+ /**
26
+ * The date and time when the project was created.
27
+ */
28
+ createdAt?: string;
29
+ /**
30
+ * The logo of the project.
31
+ */
32
+ logo?: string | null;
33
+ /**
34
+ * The name of the project.
35
+ */
36
+ name?: string;
37
+ /**
38
+ * The plan of the project.
39
+ */
40
+ plan?: string;
41
+ /**
42
+ * The slug of the project.
43
+ */
44
+ slug?: string;
45
+ /**
46
+ * The Stripe ID of the project.
47
+ */
48
+ stripeId?: string | null;
49
+ /**
50
+ * The usage of the project.
51
+ */
52
+ usage?: number;
53
+ /**
54
+ * The usage limit of the project.
55
+ */
56
+ usageLimit?: number;
57
+ }
58
+ export interface ProjectDetails extends Project {
59
+ /**
60
+ * The domains of the project.
61
+ */
62
+ domains?: Array<ProjectDetails.Domain>;
63
+ /**
64
+ * The role of the authenticated user in the project.
65
+ */
66
+ users?: Array<ProjectDetails.User>;
67
+ }
68
+ export declare namespace ProjectDetails {
69
+ /**
70
+ * The domains of the project.
71
+ */
72
+ interface Domain {
73
+ /**
74
+ * The domain of the project.
75
+ */
76
+ slug?: string;
77
+ }
78
+ /**
79
+ * The role of the authenticated user in the project.
80
+ */
81
+ interface User {
82
+ /**
83
+ * The role of the authenticated user in the project.
84
+ */
85
+ role?: string;
86
+ }
87
+ }
88
+ export type ProjectListResponse = Array<Project>;
89
+ export declare namespace Projects {
90
+ export import Project = ProjectsAPI.Project;
91
+ export import ProjectDetails = ProjectsAPI.ProjectDetails;
92
+ export import ProjectListResponse = ProjectsAPI.ProjectListResponse;
93
+ export import Tags = TagsAPI.Tags;
94
+ export import Tag = TagsAPI.Tag;
95
+ export import TagListResponse = TagsAPI.TagListResponse;
96
+ export import TagCreateParams = TagsAPI.TagCreateParams;
97
+ }
98
+ //# sourceMappingURL=projects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,WAAW,MAAM,iCAAiC,CAAC;AAC/D,OAAO,KAAK,OAAO,MAAM,6BAA6B,CAAC;AAEvD,qBAAa,QAAS,SAAQ,WAAW;IACvC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC;IAI7F;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;CAG1E;AAED,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,cAAe,SAAQ,OAAO;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAEvC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;CACpC;AAED,yBAAiB,cAAc,CAAC;IAC9B;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAED;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;AAEjD,yBAAiB,QAAQ,CAAC;IACxB,MAAM,QAAQ,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;IAC5C,MAAM,QAAQ,cAAc,GAAG,WAAW,CAAC,cAAc,CAAC;IAC1D,MAAM,QAAQ,mBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC;IACpE,MAAM,QAAQ,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAClC,MAAM,QAAQ,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAChC,MAAM,QAAQ,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IACxD,MAAM,QAAQ,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;CACzD"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.Projects = void 0;
28
+ const resource_1 = require("dub/resource");
29
+ const TagsAPI = __importStar(require("dub/resources/projects/tags"));
30
+ class Projects extends resource_1.APIResource {
31
+ constructor() {
32
+ super(...arguments);
33
+ this.tags = new TagsAPI.Tags(this._client);
34
+ }
35
+ /**
36
+ * Retrieve a project for the authenticated user.
37
+ */
38
+ retrieve(projectSlug, options) {
39
+ return this._client.get(`/projects/${projectSlug}`, options);
40
+ }
41
+ /**
42
+ * Retrieve a list of projects for the authenticated user.
43
+ */
44
+ list(options) {
45
+ return this._client.get('/projects', options);
46
+ }
47
+ }
48
+ exports.Projects = Projects;
49
+ (function (Projects) {
50
+ Projects.Tags = TagsAPI.Tags;
51
+ })(Projects = exports.Projects || (exports.Projects = {}));
52
+ //# sourceMappingURL=projects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.js","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;AAGrD,2CAA2C;AAE3C,qEAAuD;AAEvD,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAetD,CAAC;IAbC;;OAEG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AAhBD,4BAgBC;AA0FD,WAAiB,QAAQ;IAIT,aAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAIpC,CAAC,EARgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAQxB"}
@@ -0,0 +1,25 @@
1
+ // File generated from our OpenAPI spec by Stainless.
2
+ import { APIResource } from 'dub/resource';
3
+ import * as TagsAPI from 'dub/resources/projects/tags';
4
+ export class Projects extends APIResource {
5
+ constructor() {
6
+ super(...arguments);
7
+ this.tags = new TagsAPI.Tags(this._client);
8
+ }
9
+ /**
10
+ * Retrieve a project for the authenticated user.
11
+ */
12
+ retrieve(projectSlug, options) {
13
+ return this._client.get(`/projects/${projectSlug}`, options);
14
+ }
15
+ /**
16
+ * Retrieve a list of projects for the authenticated user.
17
+ */
18
+ list(options) {
19
+ return this._client.get('/projects', options);
20
+ }
21
+ }
22
+ (function (Projects) {
23
+ Projects.Tags = TagsAPI.Tags;
24
+ })(Projects || (Projects = {}));
25
+ //# sourceMappingURL=projects.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"projects.mjs","sourceRoot":"","sources":["../../src/resources/projects/projects.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,cAAc;OAEnC,KAAK,OAAO,MAAM,6BAA6B;AAEtD,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAetD,CAAC;IAbC;;OAEG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAA6B;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAA6B;QAChC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AA0FD,WAAiB,QAAQ;IAIT,aAAI,GAAG,OAAO,CAAC,IAAI,CAAC;AAIpC,CAAC,EARgB,QAAQ,KAAR,QAAQ,QAQxB"}