@supermodeltools/sdk 0.6.2 → 0.6.4

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 (110) hide show
  1. package/README.md +278 -26
  2. package/dist/apis/DefaultApi.d.ts +1 -1
  3. package/dist/apis/DefaultApi.js +1 -1
  4. package/dist/async.d.ts +3 -3
  5. package/dist/async.js +1 -1
  6. package/dist/esm/apis/DefaultApi.d.ts +1 -1
  7. package/dist/esm/apis/DefaultApi.js +1 -1
  8. package/dist/esm/async.d.ts +3 -3
  9. package/dist/esm/async.js +1 -1
  10. package/dist/esm/models/ClassificationStats.d.ts +1 -1
  11. package/dist/esm/models/ClassificationStats.js +1 -1
  12. package/dist/esm/models/CodeGraphEnvelope.d.ts +1 -1
  13. package/dist/esm/models/CodeGraphEnvelope.js +1 -1
  14. package/dist/esm/models/CodeGraphEnvelopeAsync.d.ts +1 -1
  15. package/dist/esm/models/CodeGraphEnvelopeAsync.js +1 -1
  16. package/dist/esm/models/CodeGraphEnvelopeGraph.d.ts +1 -1
  17. package/dist/esm/models/CodeGraphEnvelopeGraph.js +1 -1
  18. package/dist/esm/models/CodeGraphNode.d.ts +1 -1
  19. package/dist/esm/models/CodeGraphNode.js +1 -1
  20. package/dist/esm/models/CodeGraphRelationship.d.ts +1 -1
  21. package/dist/esm/models/CodeGraphRelationship.js +1 -1
  22. package/dist/esm/models/CodeGraphStats.d.ts +1 -1
  23. package/dist/esm/models/CodeGraphStats.js +1 -1
  24. package/dist/esm/models/DomainClassAssignment.d.ts +1 -1
  25. package/dist/esm/models/DomainClassAssignment.js +1 -1
  26. package/dist/esm/models/DomainClassificationResponse.d.ts +1 -1
  27. package/dist/esm/models/DomainClassificationResponse.js +1 -1
  28. package/dist/esm/models/DomainClassificationResponseAsync.d.ts +1 -1
  29. package/dist/esm/models/DomainClassificationResponseAsync.js +1 -1
  30. package/dist/esm/models/DomainFileAssignment.d.ts +1 -1
  31. package/dist/esm/models/DomainFileAssignment.js +1 -1
  32. package/dist/esm/models/DomainFunctionAssignment.d.ts +1 -1
  33. package/dist/esm/models/DomainFunctionAssignment.js +1 -1
  34. package/dist/esm/models/DomainRelationship.d.ts +1 -1
  35. package/dist/esm/models/DomainRelationship.js +1 -1
  36. package/dist/esm/models/DomainSummary.d.ts +1 -1
  37. package/dist/esm/models/DomainSummary.js +1 -1
  38. package/dist/esm/models/ErrorDetailsInner.d.ts +1 -1
  39. package/dist/esm/models/ErrorDetailsInner.js +1 -1
  40. package/dist/esm/models/FunctionDescription.d.ts +1 -1
  41. package/dist/esm/models/FunctionDescription.js +1 -1
  42. package/dist/esm/models/JobStatus.d.ts +1 -1
  43. package/dist/esm/models/JobStatus.js +1 -1
  44. package/dist/esm/models/ModelError.d.ts +1 -1
  45. package/dist/esm/models/ModelError.js +1 -1
  46. package/dist/esm/models/SubdomainSummary.d.ts +1 -1
  47. package/dist/esm/models/SubdomainSummary.js +1 -1
  48. package/dist/esm/models/SupermodelArtifact.d.ts +1 -1
  49. package/dist/esm/models/SupermodelArtifact.js +1 -1
  50. package/dist/esm/models/SupermodelIR.d.ts +1 -1
  51. package/dist/esm/models/SupermodelIR.js +1 -1
  52. package/dist/esm/models/SupermodelIRAsync.d.ts +1 -1
  53. package/dist/esm/models/SupermodelIRAsync.js +1 -1
  54. package/dist/esm/models/SupermodelIRGraph.d.ts +1 -1
  55. package/dist/esm/models/SupermodelIRGraph.js +1 -1
  56. package/dist/esm/models/UnassignedFunction.d.ts +1 -1
  57. package/dist/esm/models/UnassignedFunction.js +1 -1
  58. package/dist/esm/runtime.d.ts +1 -1
  59. package/dist/esm/runtime.js +1 -1
  60. package/dist/models/ClassificationStats.d.ts +1 -1
  61. package/dist/models/ClassificationStats.js +1 -1
  62. package/dist/models/CodeGraphEnvelope.d.ts +1 -1
  63. package/dist/models/CodeGraphEnvelope.js +1 -1
  64. package/dist/models/CodeGraphEnvelopeAsync.d.ts +1 -1
  65. package/dist/models/CodeGraphEnvelopeAsync.js +1 -1
  66. package/dist/models/CodeGraphEnvelopeGraph.d.ts +1 -1
  67. package/dist/models/CodeGraphEnvelopeGraph.js +1 -1
  68. package/dist/models/CodeGraphNode.d.ts +1 -1
  69. package/dist/models/CodeGraphNode.js +1 -1
  70. package/dist/models/CodeGraphRelationship.d.ts +1 -1
  71. package/dist/models/CodeGraphRelationship.js +1 -1
  72. package/dist/models/CodeGraphStats.d.ts +1 -1
  73. package/dist/models/CodeGraphStats.js +1 -1
  74. package/dist/models/DomainClassAssignment.d.ts +1 -1
  75. package/dist/models/DomainClassAssignment.js +1 -1
  76. package/dist/models/DomainClassificationResponse.d.ts +1 -1
  77. package/dist/models/DomainClassificationResponse.js +1 -1
  78. package/dist/models/DomainClassificationResponseAsync.d.ts +1 -1
  79. package/dist/models/DomainClassificationResponseAsync.js +1 -1
  80. package/dist/models/DomainFileAssignment.d.ts +1 -1
  81. package/dist/models/DomainFileAssignment.js +1 -1
  82. package/dist/models/DomainFunctionAssignment.d.ts +1 -1
  83. package/dist/models/DomainFunctionAssignment.js +1 -1
  84. package/dist/models/DomainRelationship.d.ts +1 -1
  85. package/dist/models/DomainRelationship.js +1 -1
  86. package/dist/models/DomainSummary.d.ts +1 -1
  87. package/dist/models/DomainSummary.js +1 -1
  88. package/dist/models/ErrorDetailsInner.d.ts +1 -1
  89. package/dist/models/ErrorDetailsInner.js +1 -1
  90. package/dist/models/FunctionDescription.d.ts +1 -1
  91. package/dist/models/FunctionDescription.js +1 -1
  92. package/dist/models/JobStatus.d.ts +1 -1
  93. package/dist/models/JobStatus.js +1 -1
  94. package/dist/models/ModelError.d.ts +1 -1
  95. package/dist/models/ModelError.js +1 -1
  96. package/dist/models/SubdomainSummary.d.ts +1 -1
  97. package/dist/models/SubdomainSummary.js +1 -1
  98. package/dist/models/SupermodelArtifact.d.ts +1 -1
  99. package/dist/models/SupermodelArtifact.js +1 -1
  100. package/dist/models/SupermodelIR.d.ts +1 -1
  101. package/dist/models/SupermodelIR.js +1 -1
  102. package/dist/models/SupermodelIRAsync.d.ts +1 -1
  103. package/dist/models/SupermodelIRAsync.js +1 -1
  104. package/dist/models/SupermodelIRGraph.d.ts +1 -1
  105. package/dist/models/SupermodelIRGraph.js +1 -1
  106. package/dist/models/UnassignedFunction.d.ts +1 -1
  107. package/dist/models/UnassignedFunction.js +1 -1
  108. package/dist/runtime.d.ts +1 -1
  109. package/dist/runtime.js +1 -1
  110. package/package.json +1 -1
package/README.md CHANGED
@@ -1,12 +1,10 @@
1
1
  # Supermodel TypeScript SDK
2
2
 
3
- [![npm](https://img.shields.io/npm/v/@supermodeltools/sdk)](https://www.npmjs.com/package/@supermodeltools/sdk)
4
- [![TypeScript](https://img.shields.io/badge/TypeScript-5.0-blue)](https://www.typescriptlang.org/)
5
- [![CI](https://github.com/supermodeltools/typescript-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/supermodeltools/typescript-sdk/actions/workflows/ci.yml)
3
+ Official TypeScript/JavaScript SDK for the [Supermodel API](https://supermodeltools.com).
6
4
 
7
- TypeScript client for the [Supermodel API](https://docs.supermodeltools.com) - code graph generation and static analysis.
5
+ Generate code graphs, dependency analysis, and domain models from your source code repositories.
8
6
 
9
- ## Install
7
+ ## Installation
10
8
 
11
9
  ```bash
12
10
  npm install @supermodeltools/sdk
@@ -14,43 +12,297 @@ npm install @supermodeltools/sdk
14
12
 
15
13
  ## Quick Start
16
14
 
17
- Get your API key from the [Supermodel Dashboard](https://dashboard.supermodeltools.com) and set it as `SUPERMODEL_API_KEY`.
15
+ ### Basic Usage (Auto-Polling)
16
+
17
+ The SDK provides a high-level `SupermodelClient` that automatically handles async job polling:
18
18
 
19
19
  ```typescript
20
- import { Configuration, DefaultApi } from '@supermodeltools/sdk';
20
+ import { SupermodelClient, DefaultApi, Configuration } from '@supermodeltools/sdk';
21
21
  import { readFile } from 'node:fs/promises';
22
22
 
23
- const config = new Configuration({
23
+ // Configure the API client
24
+ const api = new DefaultApi(new Configuration({
24
25
  basePath: 'https://api.supermodeltools.com',
25
- apiKey: process.env.SUPERMODEL_API_KEY,
26
+ apiKey: () => process.env.SUPERMODEL_API_KEY || ''
27
+ }));
28
+
29
+ // Create the async client wrapper
30
+ const client = new SupermodelClient(api);
31
+
32
+ // Generate a code graph (polling handled automatically)
33
+ const zipBuffer = await readFile('./my-repo.zip');
34
+ const zipBlob = new Blob([zipBuffer]);
35
+
36
+ const result = await client.generateSupermodelGraph(zipBlob);
37
+ console.log(`Generated graph with ${result.graph.nodes.length} nodes`);
38
+ ```
39
+
40
+ ### Advanced Configuration
41
+
42
+ Configure polling behavior for long-running operations:
43
+
44
+ ```typescript
45
+ const client = new SupermodelClient(api, {
46
+ // Maximum time to wait for job completion
47
+ timeoutMs: 900000, // 15 minutes (default)
48
+
49
+ // Polling interval when server doesn't specify
50
+ defaultRetryIntervalMs: 10000, // 10 seconds (default)
51
+
52
+ // Maximum number of polling attempts
53
+ maxPollingAttempts: 90, // (default)
54
+
55
+ // Progress callback
56
+ onPollingProgress: (progress) => {
57
+ console.log(`Job ${progress.jobId}: ${progress.status} ` +
58
+ `(${progress.attempt}/${progress.maxAttempts})`);
59
+ },
60
+
61
+ // Cancellation support
62
+ signal: abortController.signal,
63
+ });
64
+ ```
65
+
66
+ ### Per-Request Configuration
67
+
68
+ Override client defaults for specific requests:
69
+
70
+ ```typescript
71
+ // Use a custom idempotency key
72
+ const result = await client.generateDependencyGraph(zipBlob, {
73
+ idempotencyKey: 'my-repo:dependency:abc123',
74
+ });
75
+
76
+ // Add custom headers (e.g., for different auth)
77
+ const result = await client.generateCallGraph(zipBlob, {
78
+ initOverrides: {
79
+ headers: { 'Authorization': 'Bearer custom-token' }
80
+ }
81
+ });
82
+
83
+ // Cancel a specific request
84
+ const controller = new AbortController();
85
+ const promise = client.generateParseGraph(zipBlob, {
86
+ signal: controller.signal
87
+ });
88
+
89
+ // Later: controller.abort();
90
+ ```
91
+
92
+ ## Available Methods
93
+
94
+ ### SupermodelClient (Async Wrapper)
95
+
96
+ All methods automatically handle polling until job completion:
97
+
98
+ - `generateSupermodelGraph(file, options?)` - Full Supermodel IR with all analysis
99
+ - `generateDependencyGraph(file, options?)` - Module/package dependencies
100
+ - `generateCallGraph(file, options?)` - Function-level call relationships
101
+ - `generateDomainGraph(file, options?)` - High-level domain model
102
+ - `generateParseGraph(file, options?)` - AST-level parse tree
103
+
104
+ ### Raw API (Manual Polling)
105
+
106
+ Access the underlying API for manual control:
107
+
108
+ ```typescript
109
+ const rawApi = client.rawApi;
110
+
111
+ // Make initial request
112
+ let response = await rawApi.generateDependencyGraph({
113
+ idempotencyKey: 'my-key',
114
+ file: zipBlob
115
+ });
116
+
117
+ // Poll manually
118
+ while (response.status === 'pending' || response.status === 'processing') {
119
+ await sleep(response.retryAfter * 1000);
120
+ response = await rawApi.generateDependencyGraph({
121
+ idempotencyKey: 'my-key',
122
+ file: zipBlob
123
+ });
124
+ }
125
+
126
+ if (response.status === 'completed') {
127
+ console.log(response.result);
128
+ }
129
+ ```
130
+
131
+ ## Configuration Options
132
+
133
+ ### AsyncClientOptions
134
+
135
+ | Option | Type | Default | Description |
136
+ |--------|------|---------|-------------|
137
+ | `timeoutMs` | `number` | `900000` (15 min) | Maximum time to wait for job completion |
138
+ | `defaultRetryIntervalMs` | `number` | `10000` (10 sec) | Polling interval when server doesn't specify |
139
+ | `maxPollingAttempts` | `number` | `90` | Maximum number of polling attempts |
140
+ | `onPollingProgress` | `function` | `undefined` | Callback for polling progress updates |
141
+ | `generateIdempotencyKey` | `function` | `crypto.randomUUID()` | Custom idempotency key generator |
142
+ | `signal` | `AbortSignal` | `undefined` | AbortSignal for cancelling operations |
143
+
144
+ ### GraphRequestOptions
145
+
146
+ | Option | Type | Default | Description |
147
+ |--------|------|---------|-------------|
148
+ | `idempotencyKey` | `string` | auto-generated | Idempotency key for request deduplication |
149
+ | `initOverrides` | `RequestInit` | `undefined` | Custom fetch options (headers, etc.) |
150
+ | `signal` | `AbortSignal` | `undefined` | Request-specific abort signal |
151
+
152
+ ## Error Handling
153
+
154
+ ```typescript
155
+ import { JobFailedError, PollingTimeoutError } from '@supermodeltools/sdk';
156
+
157
+ try {
158
+ const result = await client.generateDependencyGraph(zipBlob);
159
+ } catch (error) {
160
+ if (error instanceof JobFailedError) {
161
+ console.error(`Job ${error.jobId} failed: ${error.errorMessage}`);
162
+ } else if (error instanceof PollingTimeoutError) {
163
+ console.error(`Job ${error.jobId} timed out after ${error.timeoutMs}ms`);
164
+ } else if (error.name === 'AbortError') {
165
+ console.log('Operation cancelled');
166
+ } else {
167
+ throw error;
168
+ }
169
+ }
170
+ ```
171
+
172
+ ## Idempotency
173
+
174
+ The API uses idempotency keys to prevent duplicate processing. The same key will always return the same result:
175
+
176
+ ```typescript
177
+ // Generate a stable key from your repo state
178
+ import crypto from 'crypto';
179
+ import { execSync } from 'child_process';
180
+
181
+ const gitHash = execSync('git rev-parse --short HEAD').toString().trim();
182
+ const idempotencyKey = `my-project:supermodel:${gitHash}`;
183
+
184
+ // This will generate once, then return cached result on subsequent calls
185
+ const result = await client.generateSupermodelGraph(zipBlob, {
186
+ idempotencyKey
26
187
  });
188
+ ```
189
+
190
+ ## Preparing Repository Archives
191
+
192
+ ### For Git Repositories (Recommended)
193
+
194
+ ```bash
195
+ cd /path/to/your/repo
196
+ git archive -o /tmp/repo.zip HEAD
197
+ ```
198
+
199
+ This automatically respects `.gitignore` and creates clean, reproducible archives.
200
+
201
+ ### For Any Directory
202
+
203
+ ```bash
204
+ cd /path/to/your/repo
205
+ zip -r /tmp/repo.zip . \
206
+ -x "node_modules/*" \
207
+ -x ".git/*" \
208
+ -x "dist/*" \
209
+ -x "*.pyc" \
210
+ -x "__pycache__/*"
211
+ ```
212
+
213
+ ### What to Include
214
+
215
+ - ✅ Source code files (`.py`, `.js`, `.ts`, `.java`, etc.)
216
+ - ✅ Configuration files (`package.json`, `pyproject.toml`, etc.)
217
+ - ✅ Type definitions (`.d.ts`, `.pyi`)
218
+ - ❌ Dependencies (`node_modules/`, `venv/`, `target/`)
219
+ - ❌ Build outputs (`dist/`, `build/`, `.next/`)
220
+ - ❌ Large binaries, images, datasets
221
+
222
+ ### Size Limits
27
223
 
28
- const api = new DefaultApi(config);
224
+ Archives should be under 50MB. If larger:
225
+ - Ensure dependencies are excluded
226
+ - Consider analyzing a subdirectory
227
+ - Check for accidentally committed binaries
29
228
 
30
- // Create a ZIP of your repo: git archive -o /tmp/repo.zip HEAD
31
- const file = new Blob([await readFile('/tmp/repo.zip')], { type: 'application/zip' });
229
+ ## TypeScript Support
32
230
 
33
- const result = await api.generateSupermodelGraph({
34
- idempotencyKey: 'my-repo:supermodel:abc123',
35
- file,
231
+ Full TypeScript definitions are included. Types are automatically resolved via `package.json`.
232
+
233
+ ```typescript
234
+ import type {
235
+ SupermodelIR,
236
+ CodeGraphEnvelope,
237
+ DomainClassificationResponse,
238
+ } from '@supermodeltools/sdk';
239
+
240
+ // Types are available for all request/response models
241
+ ```
242
+
243
+ ## Environment Support
244
+
245
+ - ✅ Node.js (18+)
246
+ - ✅ Modern browsers (with Blob support)
247
+ - ✅ Webpack, Vite, Rollup
248
+ - ✅ ES6 modules and CommonJS
249
+
250
+ ## Authentication
251
+
252
+ Get your API key from the [Supermodel Dashboard](https://dashboard.supermodeltools.com).
253
+
254
+ ```typescript
255
+ const api = new DefaultApi(new Configuration({
256
+ basePath: 'https://api.supermodeltools.com',
257
+ apiKey: () => process.env.SUPERMODEL_API_KEY || ''
258
+ }));
259
+ ```
260
+
261
+ ## Rate Limiting
262
+
263
+ The API includes rate limiting headers in responses:
264
+
265
+ ```typescript
266
+ const response = await rawApi.generateDependencyGraphRaw({
267
+ idempotencyKey: 'key',
268
+ file: blob
36
269
  });
37
270
 
38
- console.log(result.graph.nodes.length, 'nodes');
271
+ console.log(response.raw.headers.get('RateLimit-Limit'));
272
+ console.log(response.raw.headers.get('RateLimit-Remaining'));
273
+ console.log(response.raw.headers.get('RateLimit-Reset'));
39
274
  ```
40
275
 
41
- ## Methods
276
+ ## Examples
277
+
278
+ ### Integration with mcpbr
42
279
 
43
- | Method | Description |
44
- |--------|-------------|
45
- | `generateDependencyGraph` | File-level dependency graph |
46
- | `generateCallGraph` | Function-level call graph |
47
- | `generateDomainGraph` | Domain model classification |
48
- | `generateParseGraph` | AST parse tree relationships |
49
- | `generateSupermodelGraph` | Full Supermodel IR bundle |
280
+ ```typescript
281
+ import { SupermodelClient, DefaultApi, Configuration } from '@supermodeltools/sdk';
50
282
 
51
- All methods require `idempotencyKey` (string) and `file` (Blob) parameters.
283
+ const api = new DefaultApi(new Configuration({
284
+ basePath: process.env.SUPERMODEL_BASE_URL || 'https://api.supermodeltools.com',
285
+ apiKey: () => process.env.SUPERMODEL_API_KEY || ''
286
+ }));
287
+
288
+ // Configure for long-running benchmark operations
289
+ const client = new SupermodelClient(api, {
290
+ timeoutMs: 900000, // 15 minutes
291
+ maxPollingAttempts: 90, // 90 attempts
292
+ onPollingProgress: (progress) => {
293
+ console.log(`[${progress.jobId}] ${progress.status} - ` +
294
+ `attempt ${progress.attempt}/${progress.maxAttempts}`);
295
+ }
296
+ });
297
+ ```
52
298
 
53
299
  ## Links
54
300
 
55
301
  - [API Documentation](https://docs.supermodeltools.com)
56
- - [OpenAPI Spec](https://www.npmjs.com/package/@supermodeltools/openapi-spec)
302
+ - [GitHub Repository](https://github.com/supermodeltools/supermodel-public-api)
303
+ - [Dashboard](https://dashboard.supermodeltools.com)
304
+ - [Terms of Service](https://supermodeltools.com/legal/api-terms)
305
+
306
+ ## License
307
+
308
+ This SDK is licensed under the MIT License. See the main repository for details.
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Supermodel
6
6
  * Code Graphing & Analysis API
7
7
  *
8
- * The version of the OpenAPI document: 0.6.2
8
+ * The version of the OpenAPI document: 0.6.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/async.d.ts CHANGED
@@ -29,17 +29,17 @@ import type { CodeGraphEnvelope, DomainClassificationResponse, SupermodelIR } fr
29
29
  export interface AsyncClientOptions {
30
30
  /**
31
31
  * Maximum time to wait for a job to complete (in milliseconds).
32
- * Default: 300000 (5 minutes)
32
+ * Default: 900000 (15 minutes)
33
33
  */
34
34
  timeoutMs?: number;
35
35
  /**
36
36
  * Default retry interval when server doesn't specify (in milliseconds).
37
- * Default: 5000 (5 seconds)
37
+ * Default: 10000 (10 seconds)
38
38
  */
39
39
  defaultRetryIntervalMs?: number;
40
40
  /**
41
41
  * Maximum number of polling attempts.
42
- * Default: 60
42
+ * Default: 90
43
43
  */
44
44
  maxPollingAttempts?: number;
45
45
  /**
package/dist/async.js CHANGED
@@ -105,7 +105,7 @@ function sleepWithAbort(ms, signal) {
105
105
  */
106
106
  function pollUntilComplete(apiCall, options) {
107
107
  return __awaiter(this, void 0, void 0, function* () {
108
- const { timeoutMs = 300000, defaultRetryIntervalMs = 5000, maxPollingAttempts = 60, onPollingProgress, signal, } = options;
108
+ const { timeoutMs = 900000, defaultRetryIntervalMs = 10000, maxPollingAttempts = 90, onPollingProgress, signal, } = options;
109
109
  const startTime = Date.now();
110
110
  let attempt = 0;
111
111
  let jobId = '';
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Supermodel
5
5
  * Code Graphing & Analysis API
6
6
  *
7
- * The version of the OpenAPI document: 0.6.2
7
+ * The version of the OpenAPI document: 0.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -29,17 +29,17 @@ import type { CodeGraphEnvelope, DomainClassificationResponse, SupermodelIR } fr
29
29
  export interface AsyncClientOptions {
30
30
  /**
31
31
  * Maximum time to wait for a job to complete (in milliseconds).
32
- * Default: 300000 (5 minutes)
32
+ * Default: 900000 (15 minutes)
33
33
  */
34
34
  timeoutMs?: number;
35
35
  /**
36
36
  * Default retry interval when server doesn't specify (in milliseconds).
37
- * Default: 5000 (5 seconds)
37
+ * Default: 10000 (10 seconds)
38
38
  */
39
39
  defaultRetryIntervalMs?: number;
40
40
  /**
41
41
  * Maximum number of polling attempts.
42
- * Default: 60
42
+ * Default: 90
43
43
  */
44
44
  maxPollingAttempts?: number;
45
45
  /**
package/dist/esm/async.js CHANGED
@@ -100,7 +100,7 @@ function sleepWithAbort(ms, signal) {
100
100
  */
101
101
  function pollUntilComplete(apiCall, options) {
102
102
  return __awaiter(this, void 0, void 0, function* () {
103
- const { timeoutMs = 300000, defaultRetryIntervalMs = 5000, maxPollingAttempts = 60, onPollingProgress, signal, } = options;
103
+ const { timeoutMs = 900000, defaultRetryIntervalMs = 10000, maxPollingAttempts = 90, onPollingProgress, signal, } = options;
104
104
  const startTime = Date.now();
105
105
  let attempt = 0;
106
106
  let jobId = '';
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Supermodel
5
5
  * Code Graphing & Analysis API
6
6
  *
7
- * The version of the OpenAPI document: 0.6.2
7
+ * The version of the OpenAPI document: 0.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Supermodel
5
5
  * Code Graphing & Analysis API
6
6
  *
7
- * The version of the OpenAPI document: 0.6.2
7
+ * The version of the OpenAPI document: 0.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Supermodel
5
5
  * Code Graphing & Analysis API
6
6
  *
7
- * The version of the OpenAPI document: 0.6.2
7
+ * The version of the OpenAPI document: 0.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Supermodel
5
5
  * Code Graphing & Analysis API
6
6
  *
7
- * The version of the OpenAPI document: 0.6.2
7
+ * The version of the OpenAPI document: 0.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Supermodel
5
5
  * Code Graphing & Analysis API
6
6
  *
7
- * The version of the OpenAPI document: 0.6.2
7
+ * The version of the OpenAPI document: 0.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Supermodel
5
5
  * Code Graphing & Analysis API
6
6
  *
7
- * The version of the OpenAPI document: 0.6.2
7
+ * The version of the OpenAPI document: 0.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Supermodel
5
5
  * Code Graphing & Analysis API
6
6
  *
7
- * The version of the OpenAPI document: 0.6.2
7
+ * The version of the OpenAPI document: 0.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Supermodel
5
5
  * Code Graphing & Analysis API
6
6
  *
7
- * The version of the OpenAPI document: 0.6.2
7
+ * The version of the OpenAPI document: 0.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Supermodel
5
5
  * Code Graphing & Analysis API
6
6
  *
7
- * The version of the OpenAPI document: 0.6.2
7
+ * The version of the OpenAPI document: 0.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Supermodel
5
5
  * Code Graphing & Analysis API
6
6
  *
7
- * The version of the OpenAPI document: 0.6.2
7
+ * The version of the OpenAPI document: 0.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Supermodel
3
3
  * Code Graphing & Analysis API
4
4
  *
5
- * The version of the OpenAPI document: 0.6.2
5
+ * The version of the OpenAPI document: 0.6.4
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Supermodel
5
5
  * Code Graphing & Analysis API
6
6
  *
7
- * The version of the OpenAPI document: 0.6.2
7
+ * The version of the OpenAPI document: 0.6.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).