@playdrop/playdrop-cli 0.7.15 → 0.7.17

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 (70) hide show
  1. package/config/client-meta.json +1 -1
  2. package/node_modules/@playdrop/ai-client/dist/index.js +461 -444
  3. package/node_modules/@playdrop/ai-client/package.json +1 -1
  4. package/node_modules/@playdrop/api-client/dist/client.js +903 -882
  5. package/node_modules/@playdrop/api-client/dist/core/errors.js +69 -45
  6. package/node_modules/@playdrop/api-client/dist/core/request.js +188 -159
  7. package/node_modules/@playdrop/api-client/dist/domains/admin.js +516 -491
  8. package/node_modules/@playdrop/api-client/dist/domains/ai.js +40 -14
  9. package/node_modules/@playdrop/api-client/dist/domains/apps.js +480 -462
  10. package/node_modules/@playdrop/api-client/dist/domains/asset-packs.js +439 -419
  11. package/node_modules/@playdrop/api-client/dist/domains/assets.js +696 -676
  12. package/node_modules/@playdrop/api-client/dist/domains/auth.js +346 -320
  13. package/node_modules/@playdrop/api-client/dist/domains/comments.js +124 -98
  14. package/node_modules/@playdrop/api-client/dist/domains/free-credits.js +91 -65
  15. package/node_modules/@playdrop/api-client/dist/domains/me.js +71 -45
  16. package/node_modules/@playdrop/api-client/dist/domains/payments.js +407 -386
  17. package/node_modules/@playdrop/api-client/dist/domains/player-meta.js +144 -118
  18. package/node_modules/@playdrop/api-client/dist/domains/search.js +117 -104
  19. package/node_modules/@playdrop/api-client/dist/domains/tags.js +188 -162
  20. package/node_modules/@playdrop/api-client/dist/index.js +993 -552
  21. package/node_modules/@playdrop/api-client/package.json +1 -1
  22. package/node_modules/@playdrop/boxel-three/dist/src/animations.js +84 -62
  23. package/node_modules/@playdrop/boxel-three/dist/src/builders.js +341 -308
  24. package/node_modules/@playdrop/boxel-three/dist/src/context.js +55 -29
  25. package/node_modules/@playdrop/boxel-three/dist/src/exporters/glb.js +856 -858
  26. package/node_modules/@playdrop/boxel-three/dist/src/exporters/image.js +267 -261
  27. package/node_modules/@playdrop/boxel-three/dist/src/index.js +64 -15
  28. package/node_modules/@playdrop/boxel-three/dist/src/instantiate.js +89 -63
  29. package/node_modules/@playdrop/boxel-three/dist/src/nodes.js +81 -56
  30. package/node_modules/@playdrop/boxel-three/dist/src/overlays.js +112 -86
  31. package/node_modules/@playdrop/boxel-three/dist/src/primitives.js +45 -17
  32. package/node_modules/@playdrop/boxel-three/dist/src/scene.js +160 -136
  33. package/node_modules/@playdrop/boxel-three/dist/src/skinned-mesh.js +582 -584
  34. package/node_modules/@playdrop/boxel-three/dist/src/texture-atlas.js +123 -97
  35. package/node_modules/@playdrop/boxel-three/dist/src/textures.js +207 -182
  36. package/node_modules/@playdrop/boxel-three/dist/src/types.js +15 -1
  37. package/node_modules/@playdrop/boxel-three/dist/src/voxels/faces.js +451 -425
  38. package/node_modules/@playdrop/boxel-three/dist/src/voxels/mesher.js +109 -84
  39. package/node_modules/@playdrop/boxel-three/dist/test/export-image.playwright.test.js +127 -106
  40. package/node_modules/@playdrop/boxel-three/dist/test/fixtures/render-worker.js +73 -51
  41. package/node_modules/@playdrop/boxel-three/dist/test/glb-skinned.test.js +97 -79
  42. package/node_modules/@playdrop/boxel-three/dist/test/index.test.js +29 -7
  43. package/node_modules/@playdrop/boxel-three/dist/test/instantiate.test.js +80 -60
  44. package/node_modules/@playdrop/boxel-three/dist/test/overlays.test.js +41 -19
  45. package/node_modules/@playdrop/boxel-three/dist/test/scene-filter.test.js +72 -50
  46. package/node_modules/@playdrop/boxel-three/dist/test/scene-smoke.test.js +84 -62
  47. package/node_modules/@playdrop/boxel-three/dist/test/skinned-mesh.test.js +69 -47
  48. package/node_modules/@playdrop/boxel-three/dist/test/textured-overlay.test.js +129 -109
  49. package/node_modules/@playdrop/boxel-three/dist/test/voxels.test.js +40 -18
  50. package/node_modules/@playdrop/boxel-three/package.json +1 -1
  51. package/node_modules/@playdrop/config/client-meta.json +1 -1
  52. package/node_modules/@playdrop/types/dist/api.js +289 -203
  53. package/node_modules/@playdrop/types/dist/app-capability-filters.js +112 -62
  54. package/node_modules/@playdrop/types/dist/app.js +91 -45
  55. package/node_modules/@playdrop/types/dist/asset-pack.js +37 -5
  56. package/node_modules/@playdrop/types/dist/asset-spec.js +170 -90
  57. package/node_modules/@playdrop/types/dist/asset.js +186 -108
  58. package/node_modules/@playdrop/types/dist/content-license.js +49 -15
  59. package/node_modules/@playdrop/types/dist/creator-public-image.js +60 -32
  60. package/node_modules/@playdrop/types/dist/ecs.js +102 -82
  61. package/node_modules/@playdrop/types/dist/engine-builtins.js +603 -573
  62. package/node_modules/@playdrop/types/dist/entity.js +63 -53
  63. package/node_modules/@playdrop/types/dist/graph.js +116 -80
  64. package/node_modules/@playdrop/types/dist/index.js +47 -20
  65. package/node_modules/@playdrop/types/dist/owned-assets.js +55 -33
  66. package/node_modules/@playdrop/types/dist/player-meta.js +151 -100
  67. package/node_modules/@playdrop/types/dist/realtime.js +27 -7
  68. package/node_modules/@playdrop/types/dist/version.js +182 -124
  69. package/node_modules/@playdrop/types/package.json +1 -1
  70. package/package.json +1 -1
@@ -1,99 +1,125 @@
1
- export function buildCommentsApiClientMethods(input) {
2
- const { request, handleApiError, normalizeSavedItemKindInput, normalizeCreatorItemSlug, normalizePositiveIntegerInput, } = input;
3
- return {
4
- async fetchContentComments(kind, creatorUsername, itemName) {
5
- const normalizedKind = normalizeSavedItemKindInput(kind);
6
- const creator = normalizeCreatorItemSlug(creatorUsername, 'creator');
7
- const name = normalizeCreatorItemSlug(itemName, 'name');
8
- const response = await request({
9
- method: 'GET',
10
- path: `/comments/${encodeURIComponent(normalizedKind)}/${encodeURIComponent(creator)}/${encodeURIComponent(name)}`,
11
- });
12
- if (response.status !== 200) {
13
- handleApiError(response, 'fetch_content_comments');
14
- }
15
- return response.body;
16
- },
17
- async createContentComment(kind, creatorUsername, itemName, requestBody) {
18
- const normalizedKind = normalizeSavedItemKindInput(kind);
19
- const creator = normalizeCreatorItemSlug(creatorUsername, 'creator');
20
- const name = normalizeCreatorItemSlug(itemName, 'name');
21
- const response = await request({
22
- method: 'POST',
23
- path: `/me/comments/${encodeURIComponent(normalizedKind)}/${encodeURIComponent(creator)}/${encodeURIComponent(name)}`,
24
- body: requestBody,
25
- });
26
- if (response.status !== 200) {
27
- handleApiError(response, 'create_content_comment');
28
- }
29
- return response.body;
30
- },
31
- async likeContentComment(commentId) {
32
- const normalizedCommentId = normalizePositiveIntegerInput(commentId, 'invalid_comment_id');
33
- const response = await request({
34
- method: 'PUT',
35
- path: `/me/comments/${encodeURIComponent(String(normalizedCommentId))}/likes`,
36
- });
37
- if (response.status !== 200) {
38
- handleApiError(response, 'like_content_comment');
39
- }
40
- return response.body;
41
- },
42
- async unlikeContentComment(commentId) {
43
- const normalizedCommentId = normalizePositiveIntegerInput(commentId, 'invalid_comment_id');
44
- const response = await request({
45
- method: 'DELETE',
46
- path: `/me/comments/${encodeURIComponent(String(normalizedCommentId))}/likes`,
47
- });
48
- if (response.status !== 200) {
49
- handleApiError(response, 'unlike_content_comment');
50
- }
51
- return response.body;
52
- },
53
- async dislikeContentComment(commentId) {
54
- const normalizedCommentId = normalizePositiveIntegerInput(commentId, 'invalid_comment_id');
55
- const response = await request({
56
- method: 'PUT',
57
- path: `/me/comments/${encodeURIComponent(String(normalizedCommentId))}/dislikes`,
58
- });
59
- if (response.status !== 200) {
60
- handleApiError(response, 'dislike_content_comment');
61
- }
62
- return response.body;
63
- },
64
- async undislikeContentComment(commentId) {
65
- const normalizedCommentId = normalizePositiveIntegerInput(commentId, 'invalid_comment_id');
66
- const response = await request({
67
- method: 'DELETE',
68
- path: `/me/comments/${encodeURIComponent(String(normalizedCommentId))}/dislikes`,
69
- });
70
- if (response.status !== 200) {
71
- handleApiError(response, 'undislike_content_comment');
72
- }
73
- return response.body;
74
- },
75
- async reportComment(commentId, requestBody) {
76
- const normalizedCommentId = normalizePositiveIntegerInput(commentId, 'invalid_comment_id');
77
- const response = await request({
78
- method: 'POST',
79
- path: `/me/reports/comments/${encodeURIComponent(String(normalizedCommentId))}`,
80
- body: requestBody,
81
- });
82
- if (response.status !== 200) {
83
- handleApiError(response, 'report_comment');
84
- }
85
- return response.body;
86
- },
87
- async deleteContentComment(commentId) {
88
- const normalizedCommentId = normalizePositiveIntegerInput(commentId, 'invalid_comment_id');
89
- const response = await request({
90
- method: 'DELETE',
91
- path: `/me/comments/${encodeURIComponent(String(normalizedCommentId))}`,
92
- });
93
- if (response.status !== 200) {
94
- handleApiError(response, 'delete_content_comment');
95
- }
96
- return response.body;
97
- },
98
- };
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var comments_exports = {};
19
+ __export(comments_exports, {
20
+ buildCommentsApiClientMethods: () => buildCommentsApiClientMethods
21
+ });
22
+ module.exports = __toCommonJS(comments_exports);
23
+ function buildCommentsApiClientMethods(input) {
24
+ const { request, handleApiError, normalizeSavedItemKindInput, normalizeCreatorItemSlug, normalizePositiveIntegerInput } = input;
25
+ return {
26
+ async fetchContentComments(kind, creatorUsername, itemName) {
27
+ const normalizedKind = normalizeSavedItemKindInput(kind);
28
+ const creator = normalizeCreatorItemSlug(creatorUsername, "creator");
29
+ const name = normalizeCreatorItemSlug(itemName, "name");
30
+ const response = await request({
31
+ method: "GET",
32
+ path: `/comments/${encodeURIComponent(normalizedKind)}/${encodeURIComponent(creator)}/${encodeURIComponent(name)}`
33
+ });
34
+ if (response.status !== 200) {
35
+ handleApiError(response, "fetch_content_comments");
36
+ }
37
+ return response.body;
38
+ },
39
+ async createContentComment(kind, creatorUsername, itemName, requestBody) {
40
+ const normalizedKind = normalizeSavedItemKindInput(kind);
41
+ const creator = normalizeCreatorItemSlug(creatorUsername, "creator");
42
+ const name = normalizeCreatorItemSlug(itemName, "name");
43
+ const response = await request({
44
+ method: "POST",
45
+ path: `/me/comments/${encodeURIComponent(normalizedKind)}/${encodeURIComponent(creator)}/${encodeURIComponent(name)}`,
46
+ body: requestBody
47
+ });
48
+ if (response.status !== 200) {
49
+ handleApiError(response, "create_content_comment");
50
+ }
51
+ return response.body;
52
+ },
53
+ async likeContentComment(commentId) {
54
+ const normalizedCommentId = normalizePositiveIntegerInput(commentId, "invalid_comment_id");
55
+ const response = await request({
56
+ method: "PUT",
57
+ path: `/me/comments/${encodeURIComponent(String(normalizedCommentId))}/likes`
58
+ });
59
+ if (response.status !== 200) {
60
+ handleApiError(response, "like_content_comment");
61
+ }
62
+ return response.body;
63
+ },
64
+ async unlikeContentComment(commentId) {
65
+ const normalizedCommentId = normalizePositiveIntegerInput(commentId, "invalid_comment_id");
66
+ const response = await request({
67
+ method: "DELETE",
68
+ path: `/me/comments/${encodeURIComponent(String(normalizedCommentId))}/likes`
69
+ });
70
+ if (response.status !== 200) {
71
+ handleApiError(response, "unlike_content_comment");
72
+ }
73
+ return response.body;
74
+ },
75
+ async dislikeContentComment(commentId) {
76
+ const normalizedCommentId = normalizePositiveIntegerInput(commentId, "invalid_comment_id");
77
+ const response = await request({
78
+ method: "PUT",
79
+ path: `/me/comments/${encodeURIComponent(String(normalizedCommentId))}/dislikes`
80
+ });
81
+ if (response.status !== 200) {
82
+ handleApiError(response, "dislike_content_comment");
83
+ }
84
+ return response.body;
85
+ },
86
+ async undislikeContentComment(commentId) {
87
+ const normalizedCommentId = normalizePositiveIntegerInput(commentId, "invalid_comment_id");
88
+ const response = await request({
89
+ method: "DELETE",
90
+ path: `/me/comments/${encodeURIComponent(String(normalizedCommentId))}/dislikes`
91
+ });
92
+ if (response.status !== 200) {
93
+ handleApiError(response, "undislike_content_comment");
94
+ }
95
+ return response.body;
96
+ },
97
+ async reportComment(commentId, requestBody) {
98
+ const normalizedCommentId = normalizePositiveIntegerInput(commentId, "invalid_comment_id");
99
+ const response = await request({
100
+ method: "POST",
101
+ path: `/me/reports/comments/${encodeURIComponent(String(normalizedCommentId))}`,
102
+ body: requestBody
103
+ });
104
+ if (response.status !== 200) {
105
+ handleApiError(response, "report_comment");
106
+ }
107
+ return response.body;
108
+ },
109
+ async deleteContentComment(commentId) {
110
+ const normalizedCommentId = normalizePositiveIntegerInput(commentId, "invalid_comment_id");
111
+ const response = await request({
112
+ method: "DELETE",
113
+ path: `/me/comments/${encodeURIComponent(String(normalizedCommentId))}`
114
+ });
115
+ if (response.status !== 200) {
116
+ handleApiError(response, "delete_content_comment");
117
+ }
118
+ return response.body;
119
+ }
120
+ };
99
121
  }
122
+ // Annotate the CommonJS export names for ESM import in node:
123
+ 0 && (module.exports = {
124
+ buildCommentsApiClientMethods
125
+ });
@@ -1,66 +1,92 @@
1
- export function buildFreeCreditsApiClientMethods(input) {
2
- const { request, handleApiError } = input;
3
- return {
4
- async fetchPublicFreeCredits() {
5
- const response = await request({
6
- method: 'GET',
7
- path: '/free-credits/public',
8
- });
9
- if (response.status !== 200) {
10
- handleApiError(response, 'fetch_public_free_credits');
11
- }
12
- return response.body;
13
- },
14
- async fetchFreeCredits() {
15
- const response = await request({
16
- method: 'GET',
17
- path: '/free-credits',
18
- });
19
- if (response.status !== 200) {
20
- handleApiError(response, 'fetch_free_credits');
21
- }
22
- return response.body;
23
- },
24
- async claimFreeCreditReward(rewardId) {
25
- const response = await request({
26
- method: 'POST',
27
- path: `/free-credits/rewards/${encodeURIComponent(String(rewardId))}/claim`,
28
- });
29
- if (response.status !== 200) {
30
- handleApiError(response, 'claim_free_credit_reward');
31
- }
32
- return response.body;
33
- },
34
- async fetchInvitePreview(inviteCode) {
35
- const response = await request({
36
- method: 'GET',
37
- path: `/invite/${encodeURIComponent(inviteCode)}/preview`,
38
- });
39
- if (response.status !== 200) {
40
- handleApiError(response, 'fetch_invite_preview');
41
- }
42
- return response.body;
43
- },
44
- async fetchMyInviteCode() {
45
- const response = await request({
46
- method: 'GET',
47
- path: '/me/invite-code',
48
- });
49
- if (response.status !== 200) {
50
- handleApiError(response, 'fetch_my_invite_code');
51
- }
52
- return response.body;
53
- },
54
- async submitMyInviteCode(inviteCode) {
55
- const response = await request({
56
- method: 'POST',
57
- path: '/me/invite-code',
58
- body: { inviteCode },
59
- });
60
- if (response.status !== 200) {
61
- handleApiError(response, 'submit_my_invite_code');
62
- }
63
- return response.body;
64
- },
65
- };
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var free_credits_exports = {};
19
+ __export(free_credits_exports, {
20
+ buildFreeCreditsApiClientMethods: () => buildFreeCreditsApiClientMethods
21
+ });
22
+ module.exports = __toCommonJS(free_credits_exports);
23
+ function buildFreeCreditsApiClientMethods(input) {
24
+ const { request, handleApiError } = input;
25
+ return {
26
+ async fetchPublicFreeCredits() {
27
+ const response = await request({
28
+ method: "GET",
29
+ path: "/free-credits/public"
30
+ });
31
+ if (response.status !== 200) {
32
+ handleApiError(response, "fetch_public_free_credits");
33
+ }
34
+ return response.body;
35
+ },
36
+ async fetchFreeCredits() {
37
+ const response = await request({
38
+ method: "GET",
39
+ path: "/free-credits"
40
+ });
41
+ if (response.status !== 200) {
42
+ handleApiError(response, "fetch_free_credits");
43
+ }
44
+ return response.body;
45
+ },
46
+ async claimFreeCreditReward(rewardId) {
47
+ const response = await request({
48
+ method: "POST",
49
+ path: `/free-credits/rewards/${encodeURIComponent(String(rewardId))}/claim`
50
+ });
51
+ if (response.status !== 200) {
52
+ handleApiError(response, "claim_free_credit_reward");
53
+ }
54
+ return response.body;
55
+ },
56
+ async fetchInvitePreview(inviteCode) {
57
+ const response = await request({
58
+ method: "GET",
59
+ path: `/invite/${encodeURIComponent(inviteCode)}/preview`
60
+ });
61
+ if (response.status !== 200) {
62
+ handleApiError(response, "fetch_invite_preview");
63
+ }
64
+ return response.body;
65
+ },
66
+ async fetchMyInviteCode() {
67
+ const response = await request({
68
+ method: "GET",
69
+ path: "/me/invite-code"
70
+ });
71
+ if (response.status !== 200) {
72
+ handleApiError(response, "fetch_my_invite_code");
73
+ }
74
+ return response.body;
75
+ },
76
+ async submitMyInviteCode(inviteCode) {
77
+ const response = await request({
78
+ method: "POST",
79
+ path: "/me/invite-code",
80
+ body: { inviteCode }
81
+ });
82
+ if (response.status !== 200) {
83
+ handleApiError(response, "submit_my_invite_code");
84
+ }
85
+ return response.body;
86
+ }
87
+ };
66
88
  }
89
+ // Annotate the CommonJS export names for ESM import in node:
90
+ 0 && (module.exports = {
91
+ buildFreeCreditsApiClientMethods
92
+ });
@@ -1,46 +1,72 @@
1
- export function buildMeApiClientMethods(input) {
2
- const { request, handleApiError } = input;
3
- return {
4
- async fetchMyApps(options = {}) {
5
- const params = new URLSearchParams();
6
- if (typeof options.limit === 'number' && Number.isFinite(options.limit)) {
7
- params.set('limit', String(options.limit));
8
- }
9
- if (typeof options.offset === 'number' && Number.isFinite(options.offset)) {
10
- params.set('offset', String(options.offset));
11
- }
12
- if (typeof options.type === 'string' && options.type.trim().length > 0) {
13
- params.set('type', options.type.trim());
14
- }
15
- const query = params.toString();
16
- const response = await request({
17
- method: 'GET',
18
- path: '/me/apps' + (query ? `?${query}` : ''),
19
- });
20
- if (response.status !== 200) {
21
- handleApiError(response, 'fetch_my_apps');
22
- }
23
- return response.body;
24
- },
25
- async fetchBootstrap() {
26
- const response = await request({
27
- method: 'GET',
28
- path: '/me/bootstrap',
29
- });
30
- if (response.status !== 200) {
31
- handleApiError(response, 'fetch_bootstrap');
32
- }
33
- return response.body;
34
- },
35
- async fetchTemplateScaffold(namespace, slug) {
36
- const response = await request({
37
- method: 'GET',
38
- path: `/me/templates/${encodeURIComponent(namespace)}/${encodeURIComponent(slug)}`,
39
- });
40
- if (response.status !== 200) {
41
- handleApiError(response, 'fetch_template_scaffold');
42
- }
43
- return response.body;
44
- },
45
- };
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var me_exports = {};
19
+ __export(me_exports, {
20
+ buildMeApiClientMethods: () => buildMeApiClientMethods
21
+ });
22
+ module.exports = __toCommonJS(me_exports);
23
+ function buildMeApiClientMethods(input) {
24
+ const { request, handleApiError } = input;
25
+ return {
26
+ async fetchMyApps(options = {}) {
27
+ const params = new URLSearchParams();
28
+ if (typeof options.limit === "number" && Number.isFinite(options.limit)) {
29
+ params.set("limit", String(options.limit));
30
+ }
31
+ if (typeof options.offset === "number" && Number.isFinite(options.offset)) {
32
+ params.set("offset", String(options.offset));
33
+ }
34
+ if (typeof options.type === "string" && options.type.trim().length > 0) {
35
+ params.set("type", options.type.trim());
36
+ }
37
+ const query = params.toString();
38
+ const response = await request({
39
+ method: "GET",
40
+ path: "/me/apps" + (query ? `?${query}` : "")
41
+ });
42
+ if (response.status !== 200) {
43
+ handleApiError(response, "fetch_my_apps");
44
+ }
45
+ return response.body;
46
+ },
47
+ async fetchBootstrap() {
48
+ const response = await request({
49
+ method: "GET",
50
+ path: "/me/bootstrap"
51
+ });
52
+ if (response.status !== 200) {
53
+ handleApiError(response, "fetch_bootstrap");
54
+ }
55
+ return response.body;
56
+ },
57
+ async fetchTemplateScaffold(namespace, slug) {
58
+ const response = await request({
59
+ method: "GET",
60
+ path: `/me/templates/${encodeURIComponent(namespace)}/${encodeURIComponent(slug)}`
61
+ });
62
+ if (response.status !== 200) {
63
+ handleApiError(response, "fetch_template_scaffold");
64
+ }
65
+ return response.body;
66
+ }
67
+ };
46
68
  }
69
+ // Annotate the CommonJS export names for ESM import in node:
70
+ 0 && (module.exports = {
71
+ buildMeApiClientMethods
72
+ });