@limrun/api 0.41.0 → 0.42.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 (95) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/client.d.mts +4 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/exec-client.d.mts +34 -1
  11. package/exec-client.d.mts.map +1 -1
  12. package/exec-client.d.ts +34 -1
  13. package/exec-client.d.ts.map +1 -1
  14. package/exec-client.js +18 -4
  15. package/exec-client.js.map +1 -1
  16. package/exec-client.mjs +18 -4
  17. package/exec-client.mjs.map +1 -1
  18. package/folder-sync-ignore.d.mts +8 -0
  19. package/folder-sync-ignore.d.mts.map +1 -1
  20. package/folder-sync-ignore.d.ts +8 -0
  21. package/folder-sync-ignore.d.ts.map +1 -1
  22. package/folder-sync-ignore.js +12 -4
  23. package/folder-sync-ignore.js.map +1 -1
  24. package/folder-sync-ignore.mjs +12 -4
  25. package/folder-sync-ignore.mjs.map +1 -1
  26. package/index.d.mts +2 -1
  27. package/index.d.mts.map +1 -1
  28. package/index.d.ts +2 -1
  29. package/index.d.ts.map +1 -1
  30. package/index.js.map +1 -1
  31. package/index.mjs.map +1 -1
  32. package/ios-client.d.mts +49 -5
  33. package/ios-client.d.mts.map +1 -1
  34. package/ios-client.d.ts +49 -5
  35. package/ios-client.d.ts.map +1 -1
  36. package/ios-client.js +40 -3
  37. package/ios-client.js.map +1 -1
  38. package/ios-client.mjs +40 -3
  39. package/ios-client.mjs.map +1 -1
  40. package/package.json +1 -1
  41. package/resources/daemon-client-shared.d.mts +37 -0
  42. package/resources/daemon-client-shared.d.mts.map +1 -0
  43. package/resources/daemon-client-shared.d.ts +37 -0
  44. package/resources/daemon-client-shared.d.ts.map +1 -0
  45. package/resources/daemon-client-shared.js +51 -0
  46. package/resources/daemon-client-shared.js.map +1 -0
  47. package/resources/daemon-client-shared.mjs +45 -0
  48. package/resources/daemon-client-shared.mjs.map +1 -0
  49. package/resources/gradle-instances-helpers.d.mts +54 -0
  50. package/resources/gradle-instances-helpers.d.mts.map +1 -0
  51. package/resources/gradle-instances-helpers.d.ts +54 -0
  52. package/resources/gradle-instances-helpers.d.ts.map +1 -0
  53. package/resources/gradle-instances-helpers.js +98 -0
  54. package/resources/gradle-instances-helpers.js.map +1 -0
  55. package/resources/gradle-instances-helpers.mjs +94 -0
  56. package/resources/gradle-instances-helpers.mjs.map +1 -0
  57. package/resources/gradle-instances.d.mts +149 -0
  58. package/resources/gradle-instances.d.mts.map +1 -0
  59. package/resources/gradle-instances.d.ts +149 -0
  60. package/resources/gradle-instances.d.ts.map +1 -0
  61. package/resources/gradle-instances.js +41 -0
  62. package/resources/gradle-instances.js.map +1 -0
  63. package/resources/gradle-instances.mjs +37 -0
  64. package/resources/gradle-instances.mjs.map +1 -0
  65. package/resources/index.d.mts +2 -0
  66. package/resources/index.d.mts.map +1 -1
  67. package/resources/index.d.ts +2 -0
  68. package/resources/index.d.ts.map +1 -1
  69. package/resources/index.js +3 -1
  70. package/resources/index.js.map +1 -1
  71. package/resources/index.mjs +1 -0
  72. package/resources/index.mjs.map +1 -1
  73. package/resources/xcode-instances-helpers.d.mts +2 -11
  74. package/resources/xcode-instances-helpers.d.mts.map +1 -1
  75. package/resources/xcode-instances-helpers.d.ts +2 -11
  76. package/resources/xcode-instances-helpers.d.ts.map +1 -1
  77. package/resources/xcode-instances-helpers.js +5 -41
  78. package/resources/xcode-instances-helpers.js.map +1 -1
  79. package/resources/xcode-instances-helpers.mjs +3 -38
  80. package/resources/xcode-instances-helpers.mjs.map +1 -1
  81. package/src/client.ts +27 -0
  82. package/src/exec-client.ts +55 -5
  83. package/src/folder-sync-ignore.ts +22 -6
  84. package/src/index.ts +10 -0
  85. package/src/ios-client.ts +99 -8
  86. package/src/resources/daemon-client-shared.ts +71 -0
  87. package/src/resources/gradle-instances-helpers.ts +155 -0
  88. package/src/resources/gradle-instances.ts +206 -0
  89. package/src/resources/index.ts +13 -0
  90. package/src/resources/xcode-instances-helpers.ts +13 -59
  91. package/src/version.ts +1 -1
  92. package/version.d.mts +1 -1
  93. package/version.d.ts +1 -1
  94. package/version.js +1 -1
  95. package/version.mjs +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradle-instances-helpers.js","sourceRoot":"","sources":["../src/resources/gradle-instances-helpers.ts"],"names":[],"mappings":";;;AAAA,4DAAsG;AACtG,mDAKwB;AACxB,mDAAsF;AACtF,iEAAuD;AACvD,oEAMgC;AA2ChC,qEAAqE;AACrE,wEAAwE;AACxE,uEAAuE;AACvE,2EAA2E;AAC3E,2EAA2E;AAC3E,SAAS,mBAAmB,CAAC,YAAoB;IAC/C,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;IACtF,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACpC,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,kBAAkB,EAAE,CAAC;QACzD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,OAAO,CAAC,CAAC;AAC1G,CAAC;AAED,MAAa,eAAgB,SAAQ,kCAAwB;IAC3D,KAAK,CAAC,YAAY,CAAC,MAAgC;QACjD,IAAI,MAAc,CAAC;QACnB,IAAI,KAAa,CAAC;QAClB,IAAI,UAAU,IAAI,MAAM,EAAE,CAAC;YACzB,IAAI,CAAC,MAAM,CAAC,QAAQ,CA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E,CAAC;wBAC5E,OAAO,OAAO,CAAC;oBACjB,CAAC,CACF,CAAC;oBACF,OAAO,IAAA,kBAAI,EAAC,cAAc,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;gBACtD,CAAC;gBAED,IAAI,OAAO,EAAE,MAAM,IAAI,iBAAiB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;oBAC3D,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC;gBAC3D,CAAC;gBAED,OAAO,IAAA,kBAAI,EAAC,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;YAC/C,CAAC;SACF,CAAC;IACJ,CAAC;CACF;AAlFD,0CAkFC"}
@@ -0,0 +1,94 @@
1
+ import { GradleInstances as GeneratedGradleInstances } from "./gradle-instances.mjs";
2
+ import { exec, } from "../exec-client.mjs";
3
+ import { syncFolder as syncFolderImpl } from "../folder-sync.mjs";
4
+ import { createIgnoreFn } from "../folder-sync-ignore.mjs";
5
+ import { createDaemonLogger, deriveBasisCache, mintAssetUploadUrls, } from "./daemon-client-shared.mjs";
6
+ // Machine-local or regenerable files that must never reach the build
7
+ // sandbox: local.properties points at the developer's own SDK and would
8
+ // shadow the image's. Only ROOT-level cache/output dirs are defaulted;
9
+ // nested module build/ dirs are the project .gitignore's job (dropping any
10
+ // 'build' segment would silently exclude legitimate packages named build).
11
+ function gradleDefaultIgnore(relativePath) {
12
+ const trimmed = relativePath.endsWith('/') ? relativePath.slice(0, -1) : relativePath;
13
+ const segments = trimmed.split('/');
14
+ if (segments[segments.length - 1] === 'local.properties') {
15
+ return true;
16
+ }
17
+ return segments.length === 1 && (trimmed === '.gradle' || trimmed === '.kotlin' || trimmed === 'build');
18
+ }
19
+ export class GradleInstances extends GeneratedGradleInstances {
20
+ async createClient(params) {
21
+ let apiUrl;
22
+ let token;
23
+ if ('instance' in params) {
24
+ if (!params.instance.status.apiUrl) {
25
+ throw new Error('Instance not ready: apiUrl is not available');
26
+ }
27
+ apiUrl = params.instance.status.apiUrl;
28
+ token = params.instance.status.token;
29
+ }
30
+ else {
31
+ apiUrl = params.apiUrl;
32
+ token = params.token;
33
+ }
34
+ const log = createDaemonLogger('[GradleInstance]', params.logLevel ?? 'info');
35
+ const client = this._client;
36
+ return {
37
+ async sync(localCodePath, opts) {
38
+ const { cacheKey, basisCacheDir } = deriveBasisCache(localCodePath, opts?.basisCacheDir);
39
+ const userIgnore = opts?.ignore;
40
+ const codeSyncOpts = {
41
+ apiUrl,
42
+ token,
43
+ udid: cacheKey,
44
+ install: false,
45
+ ignoreFn: await createIgnoreFn(localCodePath, {
46
+ basisCacheDir,
47
+ log,
48
+ xcodeDefaults: false,
49
+ // Honor nested module .gitignore files (app/.gitignore's /build,
50
+ // etc.); gradleDefaultIgnore only covers root-level build/.gradle/
51
+ // .kotlin, so without this a locally-built project would sync its
52
+ // nested build/ artifact trees.
53
+ nestedGitignore: true,
54
+ additional: userIgnore ? (p) => gradleDefaultIgnore(p) || userIgnore(p) : gradleDefaultIgnore,
55
+ ...(opts?.include ? { include: opts.include } : {}),
56
+ }),
57
+ basisCacheDir,
58
+ // Gradle builds are one-shot; no dev-loop watch like xcode.
59
+ watch: false,
60
+ launchMode: 'ForegroundIfRunning',
61
+ log,
62
+ syncSymlinks: true,
63
+ };
64
+ const result = await syncFolderImpl(localCodePath, codeSyncOpts);
65
+ const out = {};
66
+ if (result.bytesSent !== undefined) {
67
+ out.bytesSent = result.bytesSent;
68
+ }
69
+ return out;
70
+ },
71
+ gradlebuild(options) {
72
+ const request = {
73
+ command: 'gradlebuild',
74
+ ...(options?.tasks?.length && { tasks: options.tasks }),
75
+ ...(options?.projectPath && { projectPath: options.projectPath }),
76
+ ...(options?.reactNative && { reactNative: options.reactNative }),
77
+ };
78
+ if (options?.upload && 'assetName' in options.upload) {
79
+ const requestPromise = mintAssetUploadUrls(client.assets, options.upload.assetName).then((asset) => {
80
+ request.signedUploadUrl = asset.signedUploadUrl;
81
+ request.additionalMetadata = { signedDownloadUrl: asset.signedDownloadUrl };
82
+ return request;
83
+ });
84
+ return exec(requestPromise, { apiUrl, token, log });
85
+ }
86
+ if (options?.upload && 'signedUploadUrl' in options.upload) {
87
+ request.signedUploadUrl = options.upload.signedUploadUrl;
88
+ }
89
+ return exec(request, { apiUrl, token, log });
90
+ },
91
+ };
92
+ }
93
+ }
94
+ //# sourceMappingURL=gradle-instances-helpers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradle-instances-helpers.mjs","sourceRoot":"","sources":["../src/resources/gradle-instances-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,wBAAwB,EAAuB,+BAA2B;AACtG,OAAO,EACL,IAAI,GAIL,2BAAuB;AACxB,OAAO,EAAE,UAAU,IAAI,cAAc,EAA0B,2BAAuB;AACtF,OAAO,EAAE,cAAc,EAAE,kCAA8B;AACvD,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,mBAAmB,GAGpB,mCAA+B;AA2ChC,qEAAqE;AACrE,wEAAwE;AACxE,uEAAuE;AACvE,2EAA2E;AAC3E,2EAA2E;AAC3E,SAAS,mBAAmB,CAAC,YAAoB;IAC/C,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;IACtF,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACpC,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,kBAAkB,EAAE,CAAC;QACzD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,SAAS,IA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MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CACtF,CAAC,KAAK,EAAE,EAAE;wBACR,OAAO,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;wBAChD,OAAO,CAAC,kBAAkB,GAAG,EAAE,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,EAAE,CAAC;wBAC5E,OAAO,OAAO,CAAC;oBACjB,CAAC,CACF,CAAC;oBACF,OAAO,IAAI,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;gBACtD,CAAC;gBAED,IAAI,OAAO,EAAE,MAAM,IAAI,iBAAiB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;oBAC3D,OAAO,CAAC,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC;gBAC3D,CAAC;gBAED,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;YAC/C,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,149 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { Items, type ItemsParams, PagePromise } from "../core/pagination.mjs";
4
+ import { RequestOptions } from "../internal/request-options.mjs";
5
+ export declare class GradleInstances extends APIResource {
6
+ /**
7
+ * Create a gradle instance
8
+ */
9
+ create(params: GradleInstanceCreateParams, options?: RequestOptions): APIPromise<GradleInstance>;
10
+ /**
11
+ * List gradle instances
12
+ */
13
+ list(query?: GradleInstanceListParams | null | undefined, options?: RequestOptions): PagePromise<GradleInstancesItems, GradleInstance>;
14
+ /**
15
+ * Delete gradle instance with given name
16
+ */
17
+ delete(id: string, options?: RequestOptions): APIPromise<void>;
18
+ /**
19
+ * Get gradle instance with given ID
20
+ */
21
+ get(id: string, options?: RequestOptions): APIPromise<GradleInstance>;
22
+ }
23
+ export type GradleInstancesItems = Items<GradleInstance>;
24
+ export interface GradleInstance {
25
+ metadata: GradleInstance.Metadata;
26
+ spec: GradleInstance.Spec;
27
+ status: GradleInstance.Status;
28
+ }
29
+ export declare namespace GradleInstance {
30
+ interface Metadata {
31
+ id: string;
32
+ createdAt: string;
33
+ organizationId: string;
34
+ displayName?: string;
35
+ labels?: {
36
+ [key: string]: string;
37
+ };
38
+ terminatedAt?: string;
39
+ }
40
+ interface Spec {
41
+ inactivityTimeout: string;
42
+ region: string;
43
+ hardTimeout?: string;
44
+ }
45
+ interface Status {
46
+ token: string;
47
+ state: 'unknown' | 'creating' | 'assigned' | 'ready' | 'terminated';
48
+ apiUrl?: string;
49
+ errorMessage?: string;
50
+ /**
51
+ * Machine-readable reason the instance was terminated. Always present once state
52
+ * is "terminated", never present before that. New values may be added over time,
53
+ * so treat any unrecognized value as "Unknown". Known values:
54
+ *
55
+ * - "UserRequested": terminated by a delete request to the API.
56
+ * - "InactivityTimeout": the timeout given in spec.inactivityTimeout elapsed.
57
+ * - "HardTimeout": the timeout given in spec.hardTimeout elapsed.
58
+ * - "Unknown": terminated for a cause the platform did not attribute, including
59
+ * instances that failed to get ready during creation. See errorMessage for
60
+ * details when available.
61
+ */
62
+ terminationReason?: string;
63
+ }
64
+ }
65
+ export interface GradleInstanceCreateParams {
66
+ /**
67
+ * Query param: If there is another instance with given labels and region, return
68
+ * that one instead of creating a new instance.
69
+ */
70
+ reuseIfExists?: boolean;
71
+ /**
72
+ * Query param: Return after the instance is ready to connect.
73
+ */
74
+ wait?: boolean;
75
+ /**
76
+ * Body param
77
+ */
78
+ metadata?: GradleInstanceCreateParams.Metadata;
79
+ /**
80
+ * Body param
81
+ */
82
+ spec?: GradleInstanceCreateParams.Spec;
83
+ }
84
+ export declare namespace GradleInstanceCreateParams {
85
+ interface Metadata {
86
+ displayName?: string;
87
+ labels?: {
88
+ [key: string]: string;
89
+ };
90
+ }
91
+ interface Spec {
92
+ clues?: Array<Spec.Clue>;
93
+ /**
94
+ * After how many minutes should the instance be terminated. Example values 1m,
95
+ * 10m, 3h. Default is "0" which means no hard timeout.
96
+ */
97
+ hardTimeout?: string;
98
+ /**
99
+ * After how many minutes of inactivity should the instance be terminated. Example
100
+ * values 1m, 10m, 3h. Default is 5m.
101
+ */
102
+ inactivityTimeout?: string;
103
+ /**
104
+ * Where the instance will be created. If not given, the region is decided based on
105
+ * scheduling clues (client IP) and availability.
106
+ *
107
+ * A region is a preference, not a hard pin: the request always overflows to every
108
+ * other available region, ordered by proximity, when the preferred ones are full.
109
+ *
110
+ * Accepted values:
111
+ *
112
+ * - A specific region name (e.g. "us-west1"). It is tried first, then the
113
+ * remaining regions in order of proximity to it. Scheduling clues (client IP)
114
+ * are ignored when a region is given.
115
+ * - A region group name (e.g. "us", "eu"). Its member regions are tried first in
116
+ * their listed order, then the remaining regions by proximity to the first
117
+ * member.
118
+ * - A pipe-separated, ordered list of regions (e.g. "us-east1|us-west1"). Those
119
+ * are tried first in the given order, then the remaining regions by proximity to
120
+ * the first.
121
+ */
122
+ region?: string;
123
+ }
124
+ namespace Spec {
125
+ interface Clue {
126
+ kind: 'ClientIP';
127
+ clientIp?: string;
128
+ }
129
+ }
130
+ }
131
+ export interface GradleInstanceListParams extends ItemsParams {
132
+ /**
133
+ * Labels filter to apply to instances to return. Expects a comma-separated list of
134
+ * key=value pairs (e.g., env=prod,region=us-west).
135
+ */
136
+ labelSelector?: string;
137
+ /**
138
+ * State filter to apply to gradle instances to return. Each comma-separated state
139
+ * will be used as part of an OR clause, e.g. "assigned,ready" will return all
140
+ * instances that are either assigned or ready.
141
+ *
142
+ * Valid states: creating, assigned, ready, terminated, unknown
143
+ */
144
+ state?: string;
145
+ }
146
+ export declare namespace GradleInstances {
147
+ export { type GradleInstance as GradleInstance, type GradleInstancesItems as GradleInstancesItems, type GradleInstanceCreateParams as GradleInstanceCreateParams, type GradleInstanceListParams as GradleInstanceListParams, };
148
+ }
149
+ //# sourceMappingURL=gradle-instances.d.mts.map
@@ -0,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YACnB,IAAI,EAAE,UAAU,CAAC;YAEjB,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,WAAW,wBAAyB,SAAQ,WAAW;IAC3D;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -0,0 +1,149 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { Items, type ItemsParams, PagePromise } from "../core/pagination.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ export declare class GradleInstances extends APIResource {
6
+ /**
7
+ * Create a gradle instance
8
+ */
9
+ create(params: GradleInstanceCreateParams, options?: RequestOptions): APIPromise<GradleInstance>;
10
+ /**
11
+ * List gradle instances
12
+ */
13
+ list(query?: GradleInstanceListParams | null | undefined, options?: RequestOptions): PagePromise<GradleInstancesItems, GradleInstance>;
14
+ /**
15
+ * Delete gradle instance with given name
16
+ */
17
+ delete(id: string, options?: RequestOptions): APIPromise<void>;
18
+ /**
19
+ * Get gradle instance with given ID
20
+ */
21
+ get(id: string, options?: RequestOptions): APIPromise<GradleInstance>;
22
+ }
23
+ export type GradleInstancesItems = Items<GradleInstance>;
24
+ export interface GradleInstance {
25
+ metadata: GradleInstance.Metadata;
26
+ spec: GradleInstance.Spec;
27
+ status: GradleInstance.Status;
28
+ }
29
+ export declare namespace GradleInstance {
30
+ interface Metadata {
31
+ id: string;
32
+ createdAt: string;
33
+ organizationId: string;
34
+ displayName?: string;
35
+ labels?: {
36
+ [key: string]: string;
37
+ };
38
+ terminatedAt?: string;
39
+ }
40
+ interface Spec {
41
+ inactivityTimeout: string;
42
+ region: string;
43
+ hardTimeout?: string;
44
+ }
45
+ interface Status {
46
+ token: string;
47
+ state: 'unknown' | 'creating' | 'assigned' | 'ready' | 'terminated';
48
+ apiUrl?: string;
49
+ errorMessage?: string;
50
+ /**
51
+ * Machine-readable reason the instance was terminated. Always present once state
52
+ * is "terminated", never present before that. New values may be added over time,
53
+ * so treat any unrecognized value as "Unknown". Known values:
54
+ *
55
+ * - "UserRequested": terminated by a delete request to the API.
56
+ * - "InactivityTimeout": the timeout given in spec.inactivityTimeout elapsed.
57
+ * - "HardTimeout": the timeout given in spec.hardTimeout elapsed.
58
+ * - "Unknown": terminated for a cause the platform did not attribute, including
59
+ * instances that failed to get ready during creation. See errorMessage for
60
+ * details when available.
61
+ */
62
+ terminationReason?: string;
63
+ }
64
+ }
65
+ export interface GradleInstanceCreateParams {
66
+ /**
67
+ * Query param: If there is another instance with given labels and region, return
68
+ * that one instead of creating a new instance.
69
+ */
70
+ reuseIfExists?: boolean;
71
+ /**
72
+ * Query param: Return after the instance is ready to connect.
73
+ */
74
+ wait?: boolean;
75
+ /**
76
+ * Body param
77
+ */
78
+ metadata?: GradleInstanceCreateParams.Metadata;
79
+ /**
80
+ * Body param
81
+ */
82
+ spec?: GradleInstanceCreateParams.Spec;
83
+ }
84
+ export declare namespace GradleInstanceCreateParams {
85
+ interface Metadata {
86
+ displayName?: string;
87
+ labels?: {
88
+ [key: string]: string;
89
+ };
90
+ }
91
+ interface Spec {
92
+ clues?: Array<Spec.Clue>;
93
+ /**
94
+ * After how many minutes should the instance be terminated. Example values 1m,
95
+ * 10m, 3h. Default is "0" which means no hard timeout.
96
+ */
97
+ hardTimeout?: string;
98
+ /**
99
+ * After how many minutes of inactivity should the instance be terminated. Example
100
+ * values 1m, 10m, 3h. Default is 5m.
101
+ */
102
+ inactivityTimeout?: string;
103
+ /**
104
+ * Where the instance will be created. If not given, the region is decided based on
105
+ * scheduling clues (client IP) and availability.
106
+ *
107
+ * A region is a preference, not a hard pin: the request always overflows to every
108
+ * other available region, ordered by proximity, when the preferred ones are full.
109
+ *
110
+ * Accepted values:
111
+ *
112
+ * - A specific region name (e.g. "us-west1"). It is tried first, then the
113
+ * remaining regions in order of proximity to it. Scheduling clues (client IP)
114
+ * are ignored when a region is given.
115
+ * - A region group name (e.g. "us", "eu"). Its member regions are tried first in
116
+ * their listed order, then the remaining regions by proximity to the first
117
+ * member.
118
+ * - A pipe-separated, ordered list of regions (e.g. "us-east1|us-west1"). Those
119
+ * are tried first in the given order, then the remaining regions by proximity to
120
+ * the first.
121
+ */
122
+ region?: string;
123
+ }
124
+ namespace Spec {
125
+ interface Clue {
126
+ kind: 'ClientIP';
127
+ clientIp?: string;
128
+ }
129
+ }
130
+ }
131
+ export interface GradleInstanceListParams extends ItemsParams {
132
+ /**
133
+ * Labels filter to apply to instances to return. Expects a comma-separated list of
134
+ * key=value pairs (e.g., env=prod,region=us-west).
135
+ */
136
+ labelSelector?: string;
137
+ /**
138
+ * State filter to apply to gradle instances to return. Each comma-separated state
139
+ * will be used as part of an OR clause, e.g. "assigned,ready" will return all
140
+ * instances that are either assigned or ready.
141
+ *
142
+ * Valid states: creating, assigned, ready, terminated, unknown
143
+ */
144
+ state?: string;
145
+ }
146
+ export declare namespace GradleInstances {
147
+ export { type GradleInstance as GradleInstance, type GradleInstancesItems as GradleInstancesItems, type GradleInstanceCreateParams as GradleInstanceCreateParams, type GradleInstanceListParams as GradleInstanceListParams, };
148
+ }
149
+ //# sourceMappingURL=gradle-instances.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradle-instances.d.ts","sourceRoot":"","sources":["../src/resources/gradle-instances.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,KAAK,EAAE,KAAK,WAAW,EAAE,WAAW,EAAE,8BAA2B;AAE1E,OAAO,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OAAO,WAAW,eAAe,CAAC;IACvC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // Hand-written following the Stainless resource pattern; a future generation
3
+ // from the OpenAPI spec reconciles with this file.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.GradleInstances = void 0;
6
+ const resource_1 = require("../core/resource.js");
7
+ const pagination_1 = require("../core/pagination.js");
8
+ const headers_1 = require("../internal/headers.js");
9
+ const path_1 = require("../internal/utils/path.js");
10
+ class GradleInstances extends resource_1.APIResource {
11
+ /**
12
+ * Create a gradle instance
13
+ */
14
+ create(params, options) {
15
+ const { reuseIfExists, wait, ...body } = params;
16
+ return this._client.post('/v1/gradle_instances', { query: { reuseIfExists, wait }, body, ...options });
17
+ }
18
+ /**
19
+ * List gradle instances
20
+ */
21
+ list(query = {}, options) {
22
+ return this._client.getAPIList('/v1/gradle_instances', (pagination_1.Items), { query, ...options });
23
+ }
24
+ /**
25
+ * Delete gradle instance with given name
26
+ */
27
+ delete(id, options) {
28
+ return this._client.delete((0, path_1.path) `/v1/gradle_instances/${id}`, {
29
+ ...options,
30
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
31
+ });
32
+ }
33
+ /**
34
+ * Get gradle instance with given ID
35
+ */
36
+ get(id, options) {
37
+ return this._client.get((0, path_1.path) `/v1/gradle_instances/${id}`, options);
38
+ }
39
+ }
40
+ exports.GradleInstances = GradleInstances;
41
+ //# sourceMappingURL=gradle-instances.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradle-instances.js","sourceRoot":"","sources":["../src/resources/gradle-instances.ts"],"names":[],"mappings":";AAAA,6EAA6E;AAC7E,mDAAmD;;;AAEnD,kDAA+C;AAE/C,sDAA0E;AAC1E,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;OAEG;IACH,MAAM,CAAC,MAAkC,EAAE,OAAwB;QACjE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,kBAAqB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,EAAE,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,EAAU,EAAE,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,wBAAwB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AAnCD,0CAmCC"}
@@ -0,0 +1,37 @@
1
+ // Hand-written following the Stainless resource pattern; a future generation
2
+ // from the OpenAPI spec reconciles with this file.
3
+ import { APIResource } from "../core/resource.mjs";
4
+ import { Items } from "../core/pagination.mjs";
5
+ import { buildHeaders } from "../internal/headers.mjs";
6
+ import { path } from "../internal/utils/path.mjs";
7
+ export class GradleInstances extends APIResource {
8
+ /**
9
+ * Create a gradle instance
10
+ */
11
+ create(params, options) {
12
+ const { reuseIfExists, wait, ...body } = params;
13
+ return this._client.post('/v1/gradle_instances', { query: { reuseIfExists, wait }, body, ...options });
14
+ }
15
+ /**
16
+ * List gradle instances
17
+ */
18
+ list(query = {}, options) {
19
+ return this._client.getAPIList('/v1/gradle_instances', (Items), { query, ...options });
20
+ }
21
+ /**
22
+ * Delete gradle instance with given name
23
+ */
24
+ delete(id, options) {
25
+ return this._client.delete(path `/v1/gradle_instances/${id}`, {
26
+ ...options,
27
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
28
+ });
29
+ }
30
+ /**
31
+ * Get gradle instance with given ID
32
+ */
33
+ get(id, options) {
34
+ return this._client.get(path `/v1/gradle_instances/${id}`, options);
35
+ }
36
+ }
37
+ //# sourceMappingURL=gradle-instances.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gradle-instances.mjs","sourceRoot":"","sources":["../src/resources/gradle-instances.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,mDAAmD;AAEnD,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,KAAK,EAAiC,+BAA2B;AAC1E,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;OAEG;IACH,MAAM,CAAC,MAAkC,EAAE,OAAwB;QACjE,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAA,KAAqB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,EAAE,EAAE,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,EAAU,EAAE,OAAwB;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,wBAAwB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF"}
@@ -3,6 +3,8 @@ export { AndroidInstances, type AndroidInstance, type AndroidInstanceCreateParam
3
3
  export { type Asset, type AssetKind, type AssetPlatform, type AssetListResponse, type AssetGetOrCreateResponse, type AssetListParams, type AssetGetParams, type AssetGetOrCreateParams, } from "./assets.mjs";
4
4
  export { IosInstances, type IosInstance, type IosInstanceCreateParams, type IosInstanceListParams, type IosInstancesItems, } from "./ios-instances.mjs";
5
5
  export { type XcodeInstance, type XcodeInstanceCreateParams, type XcodeInstanceListParams, type XcodeInstancesItems, } from "./xcode-instances.mjs";
6
+ export { type GradleInstance, type GradleInstanceCreateParams, type GradleInstanceListParams, type GradleInstancesItems, } from "./gradle-instances.mjs";
6
7
  export { Assets, AssetGetOrUploadParams, AssetGetOrUploadResponse } from "./assets-helpers.mjs";
7
8
  export { XcodeInstances, RbeUnsupportedError, DEFAULT_RBE_TUNNEL_PORT, type XcodeCreateClientParams, type XcodeClient, type XcodeProjectConfig, type XcodeBuildOptions, type XcodeGenConfig, type ReactNativeBuildConfig, type SimulatorAttachResult, type SimulatorStatus, type SimulatorBuildStatus, type SimulatorAttachment, type SimulatorDeviceInfo, type SimulatorInstallState, type RbeInstallResult, } from "./xcode-instances-helpers.mjs";
9
+ export { GradleInstances, type GradleCreateClientParams, type GradleClient, type GradleSyncOptions, type GradleBuildOptions, } from "./gradle-instances-helpers.mjs";
8
10
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,GACjC,wBAAoB;AACrB,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,GAC3B,gCAA4B;AAC7B,OAAO,EACL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,sBAAsB,GAC5B,qBAAiB;AAClB,OAAO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,GACvB,4BAAwB;AACzB,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB,8BAA0B;AAE3B,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,6BAAyB;AAC5F,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,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AAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB,sCAAkC;AACnC,OAAO,EACL,eAAe,EACf,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,uCAAmC"}
@@ -3,6 +3,8 @@ export { AndroidInstances, type AndroidInstance, type AndroidInstanceCreateParam
3
3
  export { type Asset, type AssetKind, type AssetPlatform, type AssetListResponse, type AssetGetOrCreateResponse, type AssetListParams, type AssetGetParams, type AssetGetOrCreateParams, } from "./assets.js";
4
4
  export { IosInstances, type IosInstance, type IosInstanceCreateParams, type IosInstanceListParams, type IosInstancesItems, } from "./ios-instances.js";
5
5
  export { type XcodeInstance, type XcodeInstanceCreateParams, type XcodeInstanceListParams, type XcodeInstancesItems, } from "./xcode-instances.js";
6
+ export { type GradleInstance, type GradleInstanceCreateParams, type GradleInstanceListParams, type GradleInstancesItems, } from "./gradle-instances.js";
6
7
  export { Assets, AssetGetOrUploadParams, AssetGetOrUploadResponse } from "./assets-helpers.js";
7
8
  export { XcodeInstances, RbeUnsupportedError, DEFAULT_RBE_TUNNEL_PORT, type XcodeCreateClientParams, type XcodeClient, type XcodeProjectConfig, type XcodeBuildOptions, type XcodeGenConfig, type ReactNativeBuildConfig, type SimulatorAttachResult, type SimulatorStatus, type SimulatorBuildStatus, type SimulatorAttachment, type SimulatorDeviceInfo, type SimulatorInstallState, type RbeInstallResult, } from "./xcode-instances-helpers.js";
9
+ export { GradleInstances, type GradleCreateClientParams, type GradleClient, type GradleSyncOptions, type GradleBuildOptions, } from "./gradle-instances-helpers.js";
8
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,GACjC,uBAAoB;AACrB,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,GAC3B,+BAA4B;AAC7B,OAAO,EACL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,sBAAsB,GAC5B,oBAAiB;AAClB,OAAO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,GACvB,2BAAwB;AACzB,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB,6BAA0B;AAE3B,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,4BAAyB;AAC5F,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB,qCAAkC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,GACjC,uBAAoB;AACrB,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,GAC3B,+BAA4B;AAC7B,OAAO,EACL,KAAK,KAAK,EACV,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,sBAAsB,GAC5B,oBAAiB;AAClB,OAAO,EACL,YAAY,EACZ,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,GACvB,2BAAwB;AACzB,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB,6BAA0B;AAC3B,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,GAC1B,8BAA2B;AAE5B,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,4BAAyB;AAC5F,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB,qCAAkC;AACnC,OAAO,EACL,eAAe,EACf,KAAK,wBAAwB,EAC7B,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,GACxB,sCAAmC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.DEFAULT_RBE_TUNNEL_PORT = exports.RbeUnsupportedError = exports.XcodeInstances = exports.Assets = exports.IosInstances = exports.AndroidInstances = exports.Analytics = void 0;
4
+ exports.GradleInstances = exports.DEFAULT_RBE_TUNNEL_PORT = exports.RbeUnsupportedError = exports.XcodeInstances = exports.Assets = exports.IosInstances = exports.AndroidInstances = exports.Analytics = void 0;
5
5
  var analytics_1 = require("./analytics.js");
6
6
  Object.defineProperty(exports, "Analytics", { enumerable: true, get: function () { return analytics_1.Analytics; } });
7
7
  var android_instances_1 = require("./android-instances.js");
@@ -14,4 +14,6 @@ var xcode_instances_helpers_1 = require("./xcode-instances-helpers.js");
14
14
  Object.defineProperty(exports, "XcodeInstances", { enumerable: true, get: function () { return xcode_instances_helpers_1.XcodeInstances; } });
15
15
  Object.defineProperty(exports, "RbeUnsupportedError", { enumerable: true, get: function () { return xcode_instances_helpers_1.RbeUnsupportedError; } });
16
16
  Object.defineProperty(exports, "DEFAULT_RBE_TUNNEL_PORT", { enumerable: true, get: function () { return xcode_instances_helpers_1.DEFAULT_RBE_TUNNEL_PORT; } });
17
+ var gradle_instances_helpers_1 = require("./gradle-instances-helpers.js");
18
+ Object.defineProperty(exports, "GradleInstances", { enumerable: true, get: function () { return gradle_instances_helpers_1.GradleInstances; } });
17
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,4DAM6B;AAL3B,qHAAA,gBAAgB,OAAA;AAgBlB,oDAMyB;AALvB,6GAAA,YAAY,OAAA;AAad,sDAA4F;AAAnF,wGAAA,MAAM,OAAA;AACf,wEAiBmC;AAhBjC,yHAAA,cAAc,OAAA;AACd,8HAAA,mBAAmB,OAAA;AACnB,kIAAA,uBAAuB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAMqB;AALnB,sGAAA,SAAS,OAAA;AAMX,4DAM6B;AAL3B,qHAAA,gBAAgB,OAAA;AAgBlB,oDAMyB;AALvB,6GAAA,YAAY,OAAA;AAmBd,sDAA4F;AAAnF,wGAAA,MAAM,OAAA;AACf,wEAiBmC;AAhBjC,yHAAA,cAAc,OAAA;AACd,8HAAA,mBAAmB,OAAA;AACnB,kIAAA,uBAAuB,OAAA;AAezB,0EAMoC;AALlC,2HAAA,eAAe,OAAA"}
@@ -4,4 +4,5 @@ export { AndroidInstances, } from "./android-instances.mjs";
4
4
  export { IosInstances, } from "./ios-instances.mjs";
5
5
  export { Assets } from "./assets-helpers.mjs";
6
6
  export { XcodeInstances, RbeUnsupportedError, DEFAULT_RBE_TUNNEL_PORT, } from "./xcode-instances-helpers.mjs";
7
+ export { GradleInstances, } from "./gradle-instances-helpers.mjs";
7
8
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAKV,wBAAoB;AACrB,OAAO,EACL,gBAAgB,GAKjB,gCAA4B;AAW7B,OAAO,EACL,YAAY,GAKb,4BAAwB;AAQzB,OAAO,EAAE,MAAM,EAAoD,6BAAyB;AAC5F,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,uBAAuB,GAcxB,sCAAkC"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAKV,wBAAoB;AACrB,OAAO,EACL,gBAAgB,GAKjB,gCAA4B;AAW7B,OAAO,EACL,YAAY,GAKb,4BAAwB;AAczB,OAAO,EAAE,MAAM,EAAoD,6BAAyB;AAC5F,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,uBAAuB,GAcxB,sCAAkC;AACnC,OAAO,EACL,eAAe,GAKhB,uCAAmC"}
@@ -3,10 +3,11 @@ import { type IosInstance } from "./ios-instances.mjs";
3
3
  import { type ExecChildProcess, type TestflightUploadConfig } from "../exec-client.mjs";
4
4
  export type { TestflightUploadConfig } from "../exec-client.mjs";
5
5
  import { type AdditionalFileSyncEntry, type FolderSyncOptions } from "../folder-sync.mjs";
6
+ import { type LogLevel, type SyncResult } from "./daemon-client-shared.mjs";
6
7
  import { LimrunError } from "../core/error.mjs";
7
8
  import { type Tunnel } from "../tunnel.mjs";
8
9
  export type { Tunnel } from "../tunnel.mjs";
9
- export type LogLevel = 'none' | 'error' | 'warn' | 'info' | 'debug';
10
+ export type { LogLevel, SyncResult } from "./daemon-client-shared.mjs";
10
11
  export type SyncOptions = {
11
12
  /**
12
13
  * If true, watch the folder and re-sync on any changes. Defaults to true.
@@ -39,16 +40,6 @@ export type SyncOptions = {
39
40
  /** Called after every successful sync, including watch-triggered re-syncs. */
40
41
  onSyncComplete?: FolderSyncOptions['onSyncComplete'];
41
42
  };
42
- export type SyncResult = {
43
- /**
44
- * Number of bytes transmitted to the server for this sync (full uploads plus
45
- * delta patches, before transport compression). In watch mode, this reflects
46
- * the initial sync only.
47
- */
48
- bytesSent?: number;
49
- /** Present only when watch=true; call to stop watching */
50
- stopWatching?: () => Promise<void>;
51
- };
52
43
  export type XcodeProjectConfig = {
53
44
  workspace?: string;
54
45
  project?: string;