@robosystems/client 0.2.25 → 0.2.27

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 (93) hide show
  1. package/README.md +7 -6
  2. package/bin/{create-feature → create-feature.sh} +11 -1
  3. package/client/client.gen.js +118 -34
  4. package/client/client.gen.ts +125 -38
  5. package/client/index.d.ts +2 -1
  6. package/client/index.js +3 -1
  7. package/client/index.ts +1 -1
  8. package/client/types.gen.d.ts +11 -16
  9. package/client/types.gen.js +0 -1
  10. package/client/types.gen.ts +44 -64
  11. package/client/utils.gen.d.ts +8 -20
  12. package/client/utils.gen.js +44 -112
  13. package/client/utils.gen.ts +57 -181
  14. package/client.gen.d.ts +3 -3
  15. package/client.gen.js +1 -3
  16. package/client.gen.ts +4 -6
  17. package/core/auth.gen.ts +1 -2
  18. package/core/bodySerializer.gen.d.ts +12 -4
  19. package/core/bodySerializer.gen.js +1 -1
  20. package/core/bodySerializer.gen.ts +17 -25
  21. package/core/params.gen.d.ts +10 -0
  22. package/core/params.gen.js +17 -5
  23. package/core/params.gen.ts +37 -21
  24. package/core/pathSerializer.gen.js +3 -11
  25. package/core/pathSerializer.gen.ts +4 -14
  26. package/core/queryKeySerializer.gen.d.ts +18 -0
  27. package/core/queryKeySerializer.gen.js +98 -0
  28. package/core/queryKeySerializer.gen.ts +117 -0
  29. package/core/serverSentEvents.gen.d.ts +71 -0
  30. package/core/serverSentEvents.gen.js +137 -0
  31. package/core/serverSentEvents.gen.ts +243 -0
  32. package/core/types.gen.d.ts +12 -12
  33. package/core/types.gen.js +0 -1
  34. package/core/types.gen.ts +21 -38
  35. package/core/utils.gen.d.ts +19 -0
  36. package/core/utils.gen.js +93 -0
  37. package/core/utils.gen.ts +140 -0
  38. package/extensions/QueryClient.js +23 -2
  39. package/extensions/QueryClient.test.ts +2 -1
  40. package/extensions/QueryClient.ts +27 -2
  41. package/index.ts +3 -2
  42. package/package.json +9 -7
  43. package/sdk/client/client.gen.js +118 -34
  44. package/sdk/client/client.gen.ts +125 -38
  45. package/sdk/client/index.d.ts +2 -1
  46. package/sdk/client/index.js +3 -1
  47. package/sdk/client/index.ts +1 -1
  48. package/sdk/client/types.gen.d.ts +11 -16
  49. package/sdk/client/types.gen.js +0 -1
  50. package/sdk/client/types.gen.ts +44 -64
  51. package/sdk/client/utils.gen.d.ts +8 -20
  52. package/sdk/client/utils.gen.js +44 -112
  53. package/sdk/client/utils.gen.ts +57 -181
  54. package/sdk/client.gen.d.ts +3 -3
  55. package/sdk/client.gen.js +1 -3
  56. package/sdk/client.gen.ts +4 -6
  57. package/sdk/core/auth.gen.ts +1 -2
  58. package/sdk/core/bodySerializer.gen.d.ts +12 -4
  59. package/sdk/core/bodySerializer.gen.js +1 -1
  60. package/sdk/core/bodySerializer.gen.ts +17 -25
  61. package/sdk/core/params.gen.d.ts +10 -0
  62. package/sdk/core/params.gen.js +17 -5
  63. package/sdk/core/params.gen.ts +37 -21
  64. package/sdk/core/pathSerializer.gen.js +3 -11
  65. package/sdk/core/pathSerializer.gen.ts +4 -14
  66. package/sdk/core/queryKeySerializer.gen.d.ts +18 -0
  67. package/sdk/core/queryKeySerializer.gen.js +98 -0
  68. package/sdk/core/queryKeySerializer.gen.ts +117 -0
  69. package/sdk/core/serverSentEvents.gen.d.ts +71 -0
  70. package/sdk/core/serverSentEvents.gen.js +137 -0
  71. package/sdk/core/serverSentEvents.gen.ts +243 -0
  72. package/sdk/core/types.gen.d.ts +12 -12
  73. package/sdk/core/types.gen.js +0 -1
  74. package/sdk/core/types.gen.ts +21 -38
  75. package/sdk/core/utils.gen.d.ts +19 -0
  76. package/sdk/core/utils.gen.js +93 -0
  77. package/sdk/core/utils.gen.ts +140 -0
  78. package/sdk/index.d.ts +2 -2
  79. package/sdk/index.js +114 -17
  80. package/sdk/index.ts +3 -2
  81. package/sdk/sdk.gen.d.ts +112 -3
  82. package/sdk/sdk.gen.js +778 -1736
  83. package/sdk/sdk.gen.ts +782 -1740
  84. package/sdk/types.gen.d.ts +851 -5
  85. package/sdk/types.gen.ts +852 -6
  86. package/sdk-extensions/QueryClient.js +23 -2
  87. package/sdk-extensions/QueryClient.test.ts +2 -1
  88. package/sdk-extensions/QueryClient.ts +27 -2
  89. package/sdk.gen.d.ts +112 -3
  90. package/sdk.gen.js +778 -1736
  91. package/sdk.gen.ts +782 -1740
  92. package/types.gen.d.ts +851 -5
  93. package/types.gen.ts +852 -6
package/sdk/sdk.gen.js CHANGED
@@ -7,642 +7,419 @@ exports.getCheckoutStatus = exports.createCheckoutSession = exports.getOrgUpcomi
7
7
  const client_gen_1 = require("./client.gen");
8
8
  /**
9
9
  * Register New User
10
+ *
10
11
  * Register a new user account with email and password.
11
12
  *
12
13
  * **Organization Creation**: RoboSystems is an org-centric platform. When you register, a personal organization is automatically created for you. All resources (graphs, subscriptions, billing) belong to organizations, not individual users. You can later upgrade your personal org to a team or enterprise organization.
13
14
  *
14
15
  * **Security Controls**: CAPTCHA and email verification are disabled in development for API testing, but required in production.
15
16
  */
16
- const registerUser = (options) => {
17
- return (options.client ?? client_gen_1.client).post({
18
- url: '/v1/auth/register',
19
- ...options,
20
- headers: {
21
- 'Content-Type': 'application/json',
22
- ...options.headers
23
- }
24
- });
25
- };
17
+ const registerUser = (options) => (options.client ?? client_gen_1.client).post({
18
+ url: '/v1/auth/register',
19
+ ...options,
20
+ headers: {
21
+ 'Content-Type': 'application/json',
22
+ ...options.headers
23
+ }
24
+ });
26
25
  exports.registerUser = registerUser;
27
26
  /**
28
27
  * User Login
28
+ *
29
29
  * Authenticate user with email and password.
30
30
  */
31
- const loginUser = (options) => {
32
- return (options.client ?? client_gen_1.client).post({
33
- url: '/v1/auth/login',
34
- ...options,
35
- headers: {
36
- 'Content-Type': 'application/json',
37
- ...options.headers
38
- }
39
- });
40
- };
31
+ const loginUser = (options) => (options.client ?? client_gen_1.client).post({
32
+ url: '/v1/auth/login',
33
+ ...options,
34
+ headers: {
35
+ 'Content-Type': 'application/json',
36
+ ...options.headers
37
+ }
38
+ });
41
39
  exports.loginUser = loginUser;
42
40
  /**
43
41
  * User Logout
42
+ *
44
43
  * Logout user and invalidate session.
45
44
  */
46
- const logoutUser = (options) => {
47
- return (options?.client ?? client_gen_1.client).post({
48
- url: '/v1/auth/logout',
49
- ...options
50
- });
51
- };
45
+ const logoutUser = (options) => (options?.client ?? client_gen_1.client).post({ url: '/v1/auth/logout', ...options });
52
46
  exports.logoutUser = logoutUser;
53
47
  /**
54
48
  * Get Current User
49
+ *
55
50
  * Get the currently authenticated user.
56
51
  */
57
- const getCurrentAuthUser = (options) => {
58
- return (options?.client ?? client_gen_1.client).get({
59
- url: '/v1/auth/me',
60
- ...options
61
- });
62
- };
52
+ const getCurrentAuthUser = (options) => (options?.client ?? client_gen_1.client).get({ url: '/v1/auth/me', ...options });
63
53
  exports.getCurrentAuthUser = getCurrentAuthUser;
64
54
  /**
65
55
  * Refresh Session
56
+ *
66
57
  * Refresh authentication session with a new JWT token.
67
58
  */
68
- const refreshAuthSession = (options) => {
69
- return (options?.client ?? client_gen_1.client).post({
70
- url: '/v1/auth/refresh',
71
- ...options
72
- });
73
- };
59
+ const refreshAuthSession = (options) => (options?.client ?? client_gen_1.client).post({ url: '/v1/auth/refresh', ...options });
74
60
  exports.refreshAuthSession = refreshAuthSession;
75
61
  /**
76
62
  * Resend Email Verification
63
+ *
77
64
  * Resend verification email to the authenticated user. Rate limited to 3 per hour.
78
65
  */
79
- const resendVerificationEmail = (options) => {
80
- return (options?.client ?? client_gen_1.client).post({
81
- url: '/v1/auth/email/resend',
82
- ...options
83
- });
84
- };
66
+ const resendVerificationEmail = (options) => (options?.client ?? client_gen_1.client).post({ url: '/v1/auth/email/resend', ...options });
85
67
  exports.resendVerificationEmail = resendVerificationEmail;
86
68
  /**
87
69
  * Verify Email
70
+ *
88
71
  * Verify email address with token from email link. Returns JWT for auto-login.
89
72
  */
90
- const verifyEmail = (options) => {
91
- return (options.client ?? client_gen_1.client).post({
92
- url: '/v1/auth/email/verify',
93
- ...options,
94
- headers: {
95
- 'Content-Type': 'application/json',
96
- ...options.headers
97
- }
98
- });
99
- };
73
+ const verifyEmail = (options) => (options.client ?? client_gen_1.client).post({
74
+ url: '/v1/auth/email/verify',
75
+ ...options,
76
+ headers: {
77
+ 'Content-Type': 'application/json',
78
+ ...options.headers
79
+ }
80
+ });
100
81
  exports.verifyEmail = verifyEmail;
101
82
  /**
102
83
  * Get Password Policy
84
+ *
103
85
  * Get current password policy requirements for frontend validation
104
86
  */
105
- const getPasswordPolicy = (options) => {
106
- return (options?.client ?? client_gen_1.client).get({
107
- url: '/v1/auth/password/policy',
108
- ...options
109
- });
110
- };
87
+ const getPasswordPolicy = (options) => (options?.client ?? client_gen_1.client).get({ url: '/v1/auth/password/policy', ...options });
111
88
  exports.getPasswordPolicy = getPasswordPolicy;
112
89
  /**
113
90
  * Check Password Strength
91
+ *
114
92
  * Check password strength and get validation feedback
115
93
  */
116
- const checkPasswordStrength = (options) => {
117
- return (options.client ?? client_gen_1.client).post({
118
- url: '/v1/auth/password/check',
119
- ...options,
120
- headers: {
121
- 'Content-Type': 'application/json',
122
- ...options.headers
123
- }
124
- });
125
- };
94
+ const checkPasswordStrength = (options) => (options.client ?? client_gen_1.client).post({
95
+ url: '/v1/auth/password/check',
96
+ ...options,
97
+ headers: {
98
+ 'Content-Type': 'application/json',
99
+ ...options.headers
100
+ }
101
+ });
126
102
  exports.checkPasswordStrength = checkPasswordStrength;
127
103
  /**
128
104
  * Forgot Password
105
+ *
129
106
  * Request password reset email. Always returns success to prevent email enumeration.
130
107
  */
131
- const forgotPassword = (options) => {
132
- return (options.client ?? client_gen_1.client).post({
133
- url: '/v1/auth/password/forgot',
134
- ...options,
135
- headers: {
136
- 'Content-Type': 'application/json',
137
- ...options.headers
138
- }
139
- });
140
- };
108
+ const forgotPassword = (options) => (options.client ?? client_gen_1.client).post({
109
+ url: '/v1/auth/password/forgot',
110
+ ...options,
111
+ headers: {
112
+ 'Content-Type': 'application/json',
113
+ ...options.headers
114
+ }
115
+ });
141
116
  exports.forgotPassword = forgotPassword;
142
117
  /**
143
118
  * Validate Reset Token
119
+ *
144
120
  * Check if a password reset token is valid without consuming it.
145
121
  */
146
- const validateResetToken = (options) => {
147
- return (options.client ?? client_gen_1.client).get({
148
- url: '/v1/auth/password/reset/validate',
149
- ...options
150
- });
151
- };
122
+ const validateResetToken = (options) => (options.client ?? client_gen_1.client).get({ url: '/v1/auth/password/reset/validate', ...options });
152
123
  exports.validateResetToken = validateResetToken;
153
124
  /**
154
125
  * Reset Password
126
+ *
155
127
  * Reset password with token from email. Returns JWT for auto-login.
156
128
  */
157
- const resetPassword = (options) => {
158
- return (options.client ?? client_gen_1.client).post({
159
- url: '/v1/auth/password/reset',
160
- ...options,
161
- headers: {
162
- 'Content-Type': 'application/json',
163
- ...options.headers
164
- }
165
- });
166
- };
129
+ const resetPassword = (options) => (options.client ?? client_gen_1.client).post({
130
+ url: '/v1/auth/password/reset',
131
+ ...options,
132
+ headers: {
133
+ 'Content-Type': 'application/json',
134
+ ...options.headers
135
+ }
136
+ });
167
137
  exports.resetPassword = resetPassword;
168
138
  /**
169
139
  * Generate SSO Token
140
+ *
170
141
  * Generate a temporary SSO token for cross-app authentication.
171
142
  */
172
- const generateSsoToken = (options) => {
173
- return (options?.client ?? client_gen_1.client).post({
174
- url: '/v1/auth/sso-token',
175
- ...options
176
- });
177
- };
143
+ const generateSsoToken = (options) => (options?.client ?? client_gen_1.client).post({ url: '/v1/auth/sso-token', ...options });
178
144
  exports.generateSsoToken = generateSsoToken;
179
145
  /**
180
146
  * SSO Token Exchange
147
+ *
181
148
  * Exchange SSO token for secure session handoff to target application.
182
149
  */
183
- const ssoTokenExchange = (options) => {
184
- return (options.client ?? client_gen_1.client).post({
185
- url: '/v1/auth/sso-exchange',
186
- ...options,
187
- headers: {
188
- 'Content-Type': 'application/json',
189
- ...options.headers
190
- }
191
- });
192
- };
150
+ const ssoTokenExchange = (options) => (options.client ?? client_gen_1.client).post({
151
+ url: '/v1/auth/sso-exchange',
152
+ ...options,
153
+ headers: {
154
+ 'Content-Type': 'application/json',
155
+ ...options.headers
156
+ }
157
+ });
193
158
  exports.ssoTokenExchange = ssoTokenExchange;
194
159
  /**
195
160
  * Complete SSO Authentication
161
+ *
196
162
  * Complete SSO authentication using session ID from secure handoff.
197
163
  */
198
- const completeSsoAuth = (options) => {
199
- return (options.client ?? client_gen_1.client).post({
200
- url: '/v1/auth/sso-complete',
201
- ...options,
202
- headers: {
203
- 'Content-Type': 'application/json',
204
- ...options.headers
205
- }
206
- });
207
- };
164
+ const completeSsoAuth = (options) => (options.client ?? client_gen_1.client).post({
165
+ url: '/v1/auth/sso-complete',
166
+ ...options,
167
+ headers: {
168
+ 'Content-Type': 'application/json',
169
+ ...options.headers
170
+ }
171
+ });
208
172
  exports.completeSsoAuth = completeSsoAuth;
209
173
  /**
210
174
  * Get CAPTCHA Configuration
175
+ *
211
176
  * Get CAPTCHA configuration including site key and whether CAPTCHA is required.
212
177
  */
213
- const getCaptchaConfig = (options) => {
214
- return (options?.client ?? client_gen_1.client).get({
215
- url: '/v1/auth/captcha/config',
216
- ...options
217
- });
218
- };
178
+ const getCaptchaConfig = (options) => (options?.client ?? client_gen_1.client).get({ url: '/v1/auth/captcha/config', ...options });
219
179
  exports.getCaptchaConfig = getCaptchaConfig;
220
180
  /**
221
181
  * Health Check
182
+ *
222
183
  * Service health check endpoint for monitoring and load balancers
223
184
  */
224
- const getServiceStatus = (options) => {
225
- return (options?.client ?? client_gen_1.client).get({
226
- url: '/v1/status',
227
- ...options
228
- });
229
- };
185
+ const getServiceStatus = (options) => (options?.client ?? client_gen_1.client).get({ url: '/v1/status', ...options });
230
186
  exports.getServiceStatus = getServiceStatus;
231
187
  /**
232
188
  * Get Current User
189
+ *
233
190
  * Returns information about the currently authenticated user.
234
191
  */
235
- const getCurrentUser = (options) => {
236
- return (options?.client ?? client_gen_1.client).get({
237
- security: [
238
- {
239
- name: 'X-API-Key',
240
- type: 'apiKey'
241
- },
242
- {
243
- scheme: 'bearer',
244
- type: 'http'
245
- }
246
- ],
247
- url: '/v1/user',
248
- ...options
249
- });
250
- };
192
+ const getCurrentUser = (options) => (options?.client ?? client_gen_1.client).get({
193
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
194
+ url: '/v1/user',
195
+ ...options
196
+ });
251
197
  exports.getCurrentUser = getCurrentUser;
252
198
  /**
253
199
  * Update User Profile
200
+ *
254
201
  * Update the current user's profile information.
255
202
  */
256
- const updateUser = (options) => {
257
- return (options.client ?? client_gen_1.client).put({
258
- security: [
259
- {
260
- name: 'X-API-Key',
261
- type: 'apiKey'
262
- },
263
- {
264
- scheme: 'bearer',
265
- type: 'http'
266
- }
267
- ],
268
- url: '/v1/user',
269
- ...options,
270
- headers: {
271
- 'Content-Type': 'application/json',
272
- ...options.headers
273
- }
274
- });
275
- };
203
+ const updateUser = (options) => (options.client ?? client_gen_1.client).put({
204
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
205
+ url: '/v1/user',
206
+ ...options,
207
+ headers: {
208
+ 'Content-Type': 'application/json',
209
+ ...options.headers
210
+ }
211
+ });
276
212
  exports.updateUser = updateUser;
277
213
  /**
278
214
  * Update Password
215
+ *
279
216
  * Update the current user's password.
280
217
  */
281
- const updateUserPassword = (options) => {
282
- return (options.client ?? client_gen_1.client).put({
283
- security: [
284
- {
285
- name: 'X-API-Key',
286
- type: 'apiKey'
287
- },
288
- {
289
- scheme: 'bearer',
290
- type: 'http'
291
- }
292
- ],
293
- url: '/v1/user/password',
294
- ...options,
295
- headers: {
296
- 'Content-Type': 'application/json',
297
- ...options.headers
298
- }
299
- });
300
- };
218
+ const updateUserPassword = (options) => (options.client ?? client_gen_1.client).put({
219
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
220
+ url: '/v1/user/password',
221
+ ...options,
222
+ headers: {
223
+ 'Content-Type': 'application/json',
224
+ ...options.headers
225
+ }
226
+ });
301
227
  exports.updateUserPassword = updateUserPassword;
302
228
  /**
303
229
  * List API Keys
230
+ *
304
231
  * Get all API keys for the current user.
305
232
  */
306
- const listUserApiKeys = (options) => {
307
- return (options?.client ?? client_gen_1.client).get({
308
- security: [
309
- {
310
- name: 'X-API-Key',
311
- type: 'apiKey'
312
- },
313
- {
314
- scheme: 'bearer',
315
- type: 'http'
316
- }
317
- ],
318
- url: '/v1/user/api-keys',
319
- ...options
320
- });
321
- };
233
+ const listUserApiKeys = (options) => (options?.client ?? client_gen_1.client).get({
234
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
235
+ url: '/v1/user/api-keys',
236
+ ...options
237
+ });
322
238
  exports.listUserApiKeys = listUserApiKeys;
323
239
  /**
324
240
  * Create API Key
241
+ *
325
242
  * Create a new API key for the current user.
326
243
  */
327
- const createUserApiKey = (options) => {
328
- return (options.client ?? client_gen_1.client).post({
329
- security: [
330
- {
331
- name: 'X-API-Key',
332
- type: 'apiKey'
333
- },
334
- {
335
- scheme: 'bearer',
336
- type: 'http'
337
- }
338
- ],
339
- url: '/v1/user/api-keys',
340
- ...options,
341
- headers: {
342
- 'Content-Type': 'application/json',
343
- ...options.headers
344
- }
345
- });
346
- };
244
+ const createUserApiKey = (options) => (options.client ?? client_gen_1.client).post({
245
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
246
+ url: '/v1/user/api-keys',
247
+ ...options,
248
+ headers: {
249
+ 'Content-Type': 'application/json',
250
+ ...options.headers
251
+ }
252
+ });
347
253
  exports.createUserApiKey = createUserApiKey;
348
254
  /**
349
255
  * Revoke API Key
256
+ *
350
257
  * Revoke (deactivate) an API key.
351
258
  */
352
- const revokeUserApiKey = (options) => {
353
- return (options.client ?? client_gen_1.client).delete({
354
- security: [
355
- {
356
- name: 'X-API-Key',
357
- type: 'apiKey'
358
- },
359
- {
360
- scheme: 'bearer',
361
- type: 'http'
362
- }
363
- ],
364
- url: '/v1/user/api-keys/{api_key_id}',
365
- ...options
366
- });
367
- };
259
+ const revokeUserApiKey = (options) => (options.client ?? client_gen_1.client).delete({
260
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
261
+ url: '/v1/user/api-keys/{api_key_id}',
262
+ ...options
263
+ });
368
264
  exports.revokeUserApiKey = revokeUserApiKey;
369
265
  /**
370
266
  * Update API Key
267
+ *
371
268
  * Update an API key's name or description.
372
269
  */
373
- const updateUserApiKey = (options) => {
374
- return (options.client ?? client_gen_1.client).put({
375
- security: [
376
- {
377
- name: 'X-API-Key',
378
- type: 'apiKey'
379
- },
380
- {
381
- scheme: 'bearer',
382
- type: 'http'
383
- }
384
- ],
385
- url: '/v1/user/api-keys/{api_key_id}',
386
- ...options,
387
- headers: {
388
- 'Content-Type': 'application/json',
389
- ...options.headers
390
- }
391
- });
392
- };
270
+ const updateUserApiKey = (options) => (options.client ?? client_gen_1.client).put({
271
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
272
+ url: '/v1/user/api-keys/{api_key_id}',
273
+ ...options,
274
+ headers: {
275
+ 'Content-Type': 'application/json',
276
+ ...options.headers
277
+ }
278
+ });
393
279
  exports.updateUserApiKey = updateUserApiKey;
394
280
  /**
395
281
  * List User's Organizations
282
+ *
396
283
  * Get all organizations the current user belongs to, with their role in each.
397
284
  */
398
- const listUserOrgs = (options) => {
399
- return (options?.client ?? client_gen_1.client).get({
400
- security: [
401
- {
402
- name: 'X-API-Key',
403
- type: 'apiKey'
404
- },
405
- {
406
- scheme: 'bearer',
407
- type: 'http'
408
- }
409
- ],
410
- url: '/v1/orgs',
411
- ...options
412
- });
413
- };
285
+ const listUserOrgs = (options) => (options?.client ?? client_gen_1.client).get({
286
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
287
+ url: '/v1/orgs',
288
+ ...options
289
+ });
414
290
  exports.listUserOrgs = listUserOrgs;
415
291
  /**
416
292
  * Create Organization
293
+ *
417
294
  * Create a new organization. The creating user becomes the owner.
418
295
  */
419
- const createOrg = (options) => {
420
- return (options.client ?? client_gen_1.client).post({
421
- security: [
422
- {
423
- name: 'X-API-Key',
424
- type: 'apiKey'
425
- },
426
- {
427
- scheme: 'bearer',
428
- type: 'http'
429
- }
430
- ],
431
- url: '/v1/orgs',
432
- ...options,
433
- headers: {
434
- 'Content-Type': 'application/json',
435
- ...options.headers
436
- }
437
- });
438
- };
296
+ const createOrg = (options) => (options.client ?? client_gen_1.client).post({
297
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
298
+ url: '/v1/orgs',
299
+ ...options,
300
+ headers: {
301
+ 'Content-Type': 'application/json',
302
+ ...options.headers
303
+ }
304
+ });
439
305
  exports.createOrg = createOrg;
440
306
  /**
441
307
  * Get Organization
308
+ *
442
309
  * Get detailed information about an organization.
443
310
  */
444
- const getOrg = (options) => {
445
- return (options.client ?? client_gen_1.client).get({
446
- security: [
447
- {
448
- name: 'X-API-Key',
449
- type: 'apiKey'
450
- },
451
- {
452
- scheme: 'bearer',
453
- type: 'http'
454
- }
455
- ],
456
- url: '/v1/orgs/{org_id}',
457
- ...options
458
- });
459
- };
311
+ const getOrg = (options) => (options.client ?? client_gen_1.client).get({
312
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
313
+ url: '/v1/orgs/{org_id}',
314
+ ...options
315
+ });
460
316
  exports.getOrg = getOrg;
461
317
  /**
462
318
  * Update Organization
319
+ *
463
320
  * Update organization information. Requires admin or owner role.
464
321
  */
465
- const updateOrg = (options) => {
466
- return (options.client ?? client_gen_1.client).put({
467
- security: [
468
- {
469
- name: 'X-API-Key',
470
- type: 'apiKey'
471
- },
472
- {
473
- scheme: 'bearer',
474
- type: 'http'
475
- }
476
- ],
477
- url: '/v1/orgs/{org_id}',
478
- ...options,
479
- headers: {
480
- 'Content-Type': 'application/json',
481
- ...options.headers
482
- }
483
- });
484
- };
322
+ const updateOrg = (options) => (options.client ?? client_gen_1.client).put({
323
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
324
+ url: '/v1/orgs/{org_id}',
325
+ ...options,
326
+ headers: {
327
+ 'Content-Type': 'application/json',
328
+ ...options.headers
329
+ }
330
+ });
485
331
  exports.updateOrg = updateOrg;
486
332
  /**
487
333
  * List Organization Graphs
334
+ *
488
335
  * Get all graphs belonging to an organization.
489
336
  */
490
- const listOrgGraphs = (options) => {
491
- return (options.client ?? client_gen_1.client).get({
492
- security: [
493
- {
494
- name: 'X-API-Key',
495
- type: 'apiKey'
496
- },
497
- {
498
- scheme: 'bearer',
499
- type: 'http'
500
- }
501
- ],
502
- url: '/v1/orgs/{org_id}/graphs',
503
- ...options
504
- });
505
- };
337
+ const listOrgGraphs = (options) => (options.client ?? client_gen_1.client).get({
338
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
339
+ url: '/v1/orgs/{org_id}/graphs',
340
+ ...options
341
+ });
506
342
  exports.listOrgGraphs = listOrgGraphs;
507
343
  /**
508
344
  * List Organization Members
345
+ *
509
346
  * Get all members of an organization with their roles.
510
347
  */
511
- const listOrgMembers = (options) => {
512
- return (options.client ?? client_gen_1.client).get({
513
- security: [
514
- {
515
- name: 'X-API-Key',
516
- type: 'apiKey'
517
- },
518
- {
519
- scheme: 'bearer',
520
- type: 'http'
521
- }
522
- ],
523
- url: '/v1/orgs/{org_id}/members',
524
- ...options
525
- });
526
- };
348
+ const listOrgMembers = (options) => (options.client ?? client_gen_1.client).get({
349
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
350
+ url: '/v1/orgs/{org_id}/members',
351
+ ...options
352
+ });
527
353
  exports.listOrgMembers = listOrgMembers;
528
354
  /**
529
355
  * Invite Member
356
+ *
530
357
  * Invite a user to join the organization. Requires admin or owner role.
531
358
  *
532
359
  * **⚠️ FEATURE NOT READY**: This endpoint is disabled by default (ORG_MEMBER_INVITATIONS_ENABLED=false).
533
360
  * Returns 501 NOT IMPLEMENTED when disabled. See endpoint implementation for TODO list before enabling.
534
361
  */
535
- const inviteOrgMember = (options) => {
536
- return (options.client ?? client_gen_1.client).post({
537
- security: [
538
- {
539
- name: 'X-API-Key',
540
- type: 'apiKey'
541
- },
542
- {
543
- scheme: 'bearer',
544
- type: 'http'
545
- }
546
- ],
547
- url: '/v1/orgs/{org_id}/members',
548
- ...options,
549
- headers: {
550
- 'Content-Type': 'application/json',
551
- ...options.headers
552
- }
553
- });
554
- };
362
+ const inviteOrgMember = (options) => (options.client ?? client_gen_1.client).post({
363
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
364
+ url: '/v1/orgs/{org_id}/members',
365
+ ...options,
366
+ headers: {
367
+ 'Content-Type': 'application/json',
368
+ ...options.headers
369
+ }
370
+ });
555
371
  exports.inviteOrgMember = inviteOrgMember;
556
372
  /**
557
373
  * Remove Member
374
+ *
558
375
  * Remove a member from the organization. Requires admin or owner role.
559
376
  */
560
- const removeOrgMember = (options) => {
561
- return (options.client ?? client_gen_1.client).delete({
562
- security: [
563
- {
564
- name: 'X-API-Key',
565
- type: 'apiKey'
566
- },
567
- {
568
- scheme: 'bearer',
569
- type: 'http'
570
- }
571
- ],
572
- url: '/v1/orgs/{org_id}/members/{user_id}',
573
- ...options
574
- });
575
- };
377
+ const removeOrgMember = (options) => (options.client ?? client_gen_1.client).delete({
378
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
379
+ url: '/v1/orgs/{org_id}/members/{user_id}',
380
+ ...options
381
+ });
576
382
  exports.removeOrgMember = removeOrgMember;
577
383
  /**
578
384
  * Update Member Role
385
+ *
579
386
  * Update a member's role in the organization. Requires admin or owner role.
580
387
  */
581
- const updateOrgMemberRole = (options) => {
582
- return (options.client ?? client_gen_1.client).put({
583
- security: [
584
- {
585
- name: 'X-API-Key',
586
- type: 'apiKey'
587
- },
588
- {
589
- scheme: 'bearer',
590
- type: 'http'
591
- }
592
- ],
593
- url: '/v1/orgs/{org_id}/members/{user_id}',
594
- ...options,
595
- headers: {
596
- 'Content-Type': 'application/json',
597
- ...options.headers
598
- }
599
- });
600
- };
388
+ const updateOrgMemberRole = (options) => (options.client ?? client_gen_1.client).put({
389
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
390
+ url: '/v1/orgs/{org_id}/members/{user_id}',
391
+ ...options,
392
+ headers: {
393
+ 'Content-Type': 'application/json',
394
+ ...options.headers
395
+ }
396
+ });
601
397
  exports.updateOrgMemberRole = updateOrgMemberRole;
602
398
  /**
603
399
  * Get Organization Limits
400
+ *
604
401
  * Get the current limits and quotas for an organization.
605
402
  */
606
- const getOrgLimits = (options) => {
607
- return (options.client ?? client_gen_1.client).get({
608
- security: [
609
- {
610
- name: 'X-API-Key',
611
- type: 'apiKey'
612
- },
613
- {
614
- scheme: 'bearer',
615
- type: 'http'
616
- }
617
- ],
618
- url: '/v1/orgs/{org_id}/limits',
619
- ...options
620
- });
621
- };
403
+ const getOrgLimits = (options) => (options.client ?? client_gen_1.client).get({
404
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
405
+ url: '/v1/orgs/{org_id}/limits',
406
+ ...options
407
+ });
622
408
  exports.getOrgLimits = getOrgLimits;
623
409
  /**
624
410
  * Get Organization Usage
411
+ *
625
412
  * Get detailed usage statistics for an organization aggregated across all graphs.
626
413
  */
627
- const getOrgUsage = (options) => {
628
- return (options.client ?? client_gen_1.client).get({
629
- security: [
630
- {
631
- name: 'X-API-Key',
632
- type: 'apiKey'
633
- },
634
- {
635
- scheme: 'bearer',
636
- type: 'http'
637
- }
638
- ],
639
- url: '/v1/orgs/{org_id}/usage',
640
- ...options
641
- });
642
- };
414
+ const getOrgUsage = (options) => (options.client ?? client_gen_1.client).get({
415
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
416
+ url: '/v1/orgs/{org_id}/usage',
417
+ ...options
418
+ });
643
419
  exports.getOrgUsage = getOrgUsage;
644
420
  /**
645
421
  * List Connections
422
+ *
646
423
  * List all data connections in the graph.
647
424
  *
648
425
  * Returns active and inactive connections with their current status.
@@ -658,25 +435,15 @@ exports.getOrgUsage = getOrgUsage;
658
435
  *
659
436
  * No credits are consumed for listing connections.
660
437
  */
661
- const listConnections = (options) => {
662
- return (options.client ?? client_gen_1.client).get({
663
- security: [
664
- {
665
- name: 'X-API-Key',
666
- type: 'apiKey'
667
- },
668
- {
669
- scheme: 'bearer',
670
- type: 'http'
671
- }
672
- ],
673
- url: '/v1/graphs/{graph_id}/connections',
674
- ...options
675
- });
676
- };
438
+ const listConnections = (options) => (options.client ?? client_gen_1.client).get({
439
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
440
+ url: '/v1/graphs/{graph_id}/connections',
441
+ ...options
442
+ });
677
443
  exports.listConnections = listConnections;
678
444
  /**
679
445
  * Create Connection
446
+ *
680
447
  * Create a new data connection for external system integration.
681
448
  *
682
449
  * This endpoint initiates connections to external data sources:
@@ -699,29 +466,19 @@ exports.listConnections = listConnections;
699
466
  * Note:
700
467
  * This operation is included - no credit consumption required.
701
468
  */
702
- const createConnection = (options) => {
703
- return (options.client ?? client_gen_1.client).post({
704
- security: [
705
- {
706
- name: 'X-API-Key',
707
- type: 'apiKey'
708
- },
709
- {
710
- scheme: 'bearer',
711
- type: 'http'
712
- }
713
- ],
714
- url: '/v1/graphs/{graph_id}/connections',
715
- ...options,
716
- headers: {
717
- 'Content-Type': 'application/json',
718
- ...options.headers
719
- }
720
- });
721
- };
469
+ const createConnection = (options) => (options.client ?? client_gen_1.client).post({
470
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
471
+ url: '/v1/graphs/{graph_id}/connections',
472
+ ...options,
473
+ headers: {
474
+ 'Content-Type': 'application/json',
475
+ ...options.headers
476
+ }
477
+ });
722
478
  exports.createConnection = createConnection;
723
479
  /**
724
480
  * List Connection Options
481
+ *
725
482
  * Get metadata about all available data connection providers.
726
483
  *
727
484
  * This endpoint returns comprehensive information about each supported provider:
@@ -743,25 +500,15 @@ exports.createConnection = createConnection;
743
500
  *
744
501
  * No credits are consumed for viewing connection options.
745
502
  */
746
- const getConnectionOptions = (options) => {
747
- return (options.client ?? client_gen_1.client).get({
748
- security: [
749
- {
750
- name: 'X-API-Key',
751
- type: 'apiKey'
752
- },
753
- {
754
- scheme: 'bearer',
755
- type: 'http'
756
- }
757
- ],
758
- url: '/v1/graphs/{graph_id}/connections/options',
759
- ...options
760
- });
761
- };
503
+ const getConnectionOptions = (options) => (options.client ?? client_gen_1.client).get({
504
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
505
+ url: '/v1/graphs/{graph_id}/connections/options',
506
+ ...options
507
+ });
762
508
  exports.getConnectionOptions = getConnectionOptions;
763
509
  /**
764
510
  * Exchange Link Token
511
+ *
765
512
  * Exchange a public token for permanent access credentials.
766
513
  *
767
514
  * This completes the embedded authentication flow after user authorization.
@@ -782,29 +529,19 @@ exports.getConnectionOptions = getConnectionOptions;
782
529
  *
783
530
  * No credits are consumed for token exchange.
784
531
  */
785
- const exchangeLinkToken = (options) => {
786
- return (options.client ?? client_gen_1.client).post({
787
- security: [
788
- {
789
- name: 'X-API-Key',
790
- type: 'apiKey'
791
- },
792
- {
793
- scheme: 'bearer',
794
- type: 'http'
795
- }
796
- ],
797
- url: '/v1/graphs/{graph_id}/connections/link/exchange',
798
- ...options,
799
- headers: {
800
- 'Content-Type': 'application/json',
801
- ...options.headers
802
- }
803
- });
804
- };
532
+ const exchangeLinkToken = (options) => (options.client ?? client_gen_1.client).post({
533
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
534
+ url: '/v1/graphs/{graph_id}/connections/link/exchange',
535
+ ...options,
536
+ headers: {
537
+ 'Content-Type': 'application/json',
538
+ ...options.headers
539
+ }
540
+ });
805
541
  exports.exchangeLinkToken = exchangeLinkToken;
806
542
  /**
807
543
  * Create Link Token
544
+ *
808
545
  * Create a link token for embedded authentication providers.
809
546
  *
810
547
  * This endpoint generates a temporary token used to initialize embedded authentication UI.
@@ -820,57 +557,37 @@ exports.exchangeLinkToken = exchangeLinkToken;
820
557
  *
821
558
  * No credits are consumed for creating link tokens.
822
559
  */
823
- const createLinkToken = (options) => {
824
- return (options.client ?? client_gen_1.client).post({
825
- security: [
826
- {
827
- name: 'X-API-Key',
828
- type: 'apiKey'
829
- },
830
- {
831
- scheme: 'bearer',
832
- type: 'http'
833
- }
834
- ],
835
- url: '/v1/graphs/{graph_id}/connections/link/token',
836
- ...options,
837
- headers: {
838
- 'Content-Type': 'application/json',
839
- ...options.headers
840
- }
841
- });
842
- };
560
+ const createLinkToken = (options) => (options.client ?? client_gen_1.client).post({
561
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
562
+ url: '/v1/graphs/{graph_id}/connections/link/token',
563
+ ...options,
564
+ headers: {
565
+ 'Content-Type': 'application/json',
566
+ ...options.headers
567
+ }
568
+ });
843
569
  exports.createLinkToken = createLinkToken;
844
570
  /**
845
571
  * Init Oauth
572
+ *
846
573
  * Initialize OAuth flow for a connection.
847
574
  *
848
575
  * This generates an authorization URL that the frontend should redirect the user to.
849
576
  * Currently supports: QuickBooks
850
577
  */
851
- const initOAuth = (options) => {
852
- return (options.client ?? client_gen_1.client).post({
853
- security: [
854
- {
855
- name: 'X-API-Key',
856
- type: 'apiKey'
857
- },
858
- {
859
- scheme: 'bearer',
860
- type: 'http'
861
- }
862
- ],
863
- url: '/v1/graphs/{graph_id}/connections/oauth/init',
864
- ...options,
865
- headers: {
866
- 'Content-Type': 'application/json',
867
- ...options.headers
868
- }
869
- });
870
- };
578
+ const initOAuth = (options) => (options.client ?? client_gen_1.client).post({
579
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
580
+ url: '/v1/graphs/{graph_id}/connections/oauth/init',
581
+ ...options,
582
+ headers: {
583
+ 'Content-Type': 'application/json',
584
+ ...options.headers
585
+ }
586
+ });
871
587
  exports.initOAuth = initOAuth;
872
588
  /**
873
589
  * OAuth Callback
590
+ *
874
591
  * Handle OAuth callback from provider after user authorization.
875
592
  *
876
593
  * This endpoint completes the OAuth flow:
@@ -891,29 +608,19 @@ exports.initOAuth = initOAuth;
891
608
  *
892
609
  * No credits are consumed for OAuth callbacks.
893
610
  */
894
- const oauthCallback = (options) => {
895
- return (options.client ?? client_gen_1.client).post({
896
- security: [
897
- {
898
- name: 'X-API-Key',
899
- type: 'apiKey'
900
- },
901
- {
902
- scheme: 'bearer',
903
- type: 'http'
904
- }
905
- ],
906
- url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}',
907
- ...options,
908
- headers: {
909
- 'Content-Type': 'application/json',
910
- ...options.headers
911
- }
912
- });
913
- };
611
+ const oauthCallback = (options) => (options.client ?? client_gen_1.client).post({
612
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
613
+ url: '/v1/graphs/{graph_id}/connections/oauth/callback/{provider}',
614
+ ...options,
615
+ headers: {
616
+ 'Content-Type': 'application/json',
617
+ ...options.headers
618
+ }
619
+ });
914
620
  exports.oauthCallback = oauthCallback;
915
621
  /**
916
622
  * Delete Connection
623
+ *
917
624
  * Delete a data connection and clean up related resources.
918
625
  *
919
626
  * This operation:
@@ -927,25 +634,15 @@ exports.oauthCallback = oauthCallback;
927
634
  *
928
635
  * Only users with admin role can delete connections.
929
636
  */
930
- const deleteConnection = (options) => {
931
- return (options.client ?? client_gen_1.client).delete({
932
- security: [
933
- {
934
- name: 'X-API-Key',
935
- type: 'apiKey'
936
- },
937
- {
938
- scheme: 'bearer',
939
- type: 'http'
940
- }
941
- ],
942
- url: '/v1/graphs/{graph_id}/connections/{connection_id}',
943
- ...options
944
- });
945
- };
637
+ const deleteConnection = (options) => (options.client ?? client_gen_1.client).delete({
638
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
639
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}',
640
+ ...options
641
+ });
946
642
  exports.deleteConnection = deleteConnection;
947
643
  /**
948
644
  * Get Connection
645
+ *
949
646
  * Get detailed information about a specific connection.
950
647
  *
951
648
  * Returns comprehensive connection details including:
@@ -957,25 +654,15 @@ exports.deleteConnection = deleteConnection;
957
654
  *
958
655
  * No credits are consumed for viewing connection details.
959
656
  */
960
- const getConnection = (options) => {
961
- return (options.client ?? client_gen_1.client).get({
962
- security: [
963
- {
964
- name: 'X-API-Key',
965
- type: 'apiKey'
966
- },
967
- {
968
- scheme: 'bearer',
969
- type: 'http'
970
- }
971
- ],
972
- url: '/v1/graphs/{graph_id}/connections/{connection_id}',
973
- ...options
974
- });
975
- };
657
+ const getConnection = (options) => (options.client ?? client_gen_1.client).get({
658
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
659
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}',
660
+ ...options
661
+ });
976
662
  exports.getConnection = getConnection;
977
663
  /**
978
664
  * Sync Connection
665
+ *
979
666
  * Trigger a data synchronization for the connection.
980
667
  *
981
668
  * Initiates data sync based on provider type:
@@ -1001,29 +688,19 @@ exports.getConnection = getConnection;
1001
688
  *
1002
689
  * Returns a task ID for monitoring sync progress.
1003
690
  */
1004
- const syncConnection = (options) => {
1005
- return (options.client ?? client_gen_1.client).post({
1006
- security: [
1007
- {
1008
- name: 'X-API-Key',
1009
- type: 'apiKey'
1010
- },
1011
- {
1012
- scheme: 'bearer',
1013
- type: 'http'
1014
- }
1015
- ],
1016
- url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
1017
- ...options,
1018
- headers: {
1019
- 'Content-Type': 'application/json',
1020
- ...options.headers
1021
- }
1022
- });
1023
- };
691
+ const syncConnection = (options) => (options.client ?? client_gen_1.client).post({
692
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
693
+ url: '/v1/graphs/{graph_id}/connections/{connection_id}/sync',
694
+ ...options,
695
+ headers: {
696
+ 'Content-Type': 'application/json',
697
+ ...options.headers
698
+ }
699
+ });
1024
700
  exports.syncConnection = syncConnection;
1025
701
  /**
1026
702
  * List available agents
703
+ *
1027
704
  * Get a comprehensive list of all available agents with their metadata.
1028
705
  *
1029
706
  * **Returns:**
@@ -1034,25 +711,15 @@ exports.syncConnection = syncConnection;
1034
711
  *
1035
712
  * Use the optional `capability` filter to find agents with specific capabilities.
1036
713
  */
1037
- const listAgents = (options) => {
1038
- return (options.client ?? client_gen_1.client).get({
1039
- security: [
1040
- {
1041
- name: 'X-API-Key',
1042
- type: 'apiKey'
1043
- },
1044
- {
1045
- scheme: 'bearer',
1046
- type: 'http'
1047
- }
1048
- ],
1049
- url: '/v1/graphs/{graph_id}/agent',
1050
- ...options
1051
- });
1052
- };
714
+ const listAgents = (options) => (options.client ?? client_gen_1.client).get({
715
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
716
+ url: '/v1/graphs/{graph_id}/agent',
717
+ ...options
718
+ });
1053
719
  exports.listAgents = listAgents;
1054
720
  /**
1055
721
  * Auto-select agent for query
722
+ *
1056
723
  * Automatically select the best agent for your query with intelligent execution strategy.
1057
724
  *
1058
725
  * **Agent Selection Process:**
@@ -1112,29 +779,19 @@ exports.listAgents = listAgents;
1112
779
  *
1113
780
  * See request/response examples in the "Examples" dropdown below.
1114
781
  */
1115
- const autoSelectAgent = (options) => {
1116
- return (options.client ?? client_gen_1.client).post({
1117
- security: [
1118
- {
1119
- name: 'X-API-Key',
1120
- type: 'apiKey'
1121
- },
1122
- {
1123
- scheme: 'bearer',
1124
- type: 'http'
1125
- }
1126
- ],
1127
- url: '/v1/graphs/{graph_id}/agent',
1128
- ...options,
1129
- headers: {
1130
- 'Content-Type': 'application/json',
1131
- ...options.headers
1132
- }
1133
- });
1134
- };
782
+ const autoSelectAgent = (options) => (options.client ?? client_gen_1.client).post({
783
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
784
+ url: '/v1/graphs/{graph_id}/agent',
785
+ ...options,
786
+ headers: {
787
+ 'Content-Type': 'application/json',
788
+ ...options.headers
789
+ }
790
+ });
1135
791
  exports.autoSelectAgent = autoSelectAgent;
1136
792
  /**
1137
793
  * Get agent metadata
794
+ *
1138
795
  * Get comprehensive metadata for a specific agent type.
1139
796
  *
1140
797
  * **Returns:**
@@ -1147,25 +804,15 @@ exports.autoSelectAgent = autoSelectAgent;
1147
804
  *
1148
805
  * Use this to understand agent capabilities before execution.
1149
806
  */
1150
- const getAgentMetadata = (options) => {
1151
- return (options.client ?? client_gen_1.client).get({
1152
- security: [
1153
- {
1154
- name: 'X-API-Key',
1155
- type: 'apiKey'
1156
- },
1157
- {
1158
- scheme: 'bearer',
1159
- type: 'http'
1160
- }
1161
- ],
1162
- url: '/v1/graphs/{graph_id}/agent/{agent_type}',
1163
- ...options
1164
- });
1165
- };
807
+ const getAgentMetadata = (options) => (options.client ?? client_gen_1.client).get({
808
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
809
+ url: '/v1/graphs/{graph_id}/agent/{agent_type}',
810
+ ...options
811
+ });
1166
812
  exports.getAgentMetadata = getAgentMetadata;
1167
813
  /**
1168
814
  * Execute specific agent
815
+ *
1169
816
  * Execute a specific agent type directly with intelligent execution strategy.
1170
817
  *
1171
818
  * Available agents:
@@ -1183,29 +830,19 @@ exports.getAgentMetadata = getAgentMetadata;
1183
830
  *
1184
831
  * Use this endpoint when you know which agent you want to use.
1185
832
  */
1186
- const executeSpecificAgent = (options) => {
1187
- return (options.client ?? client_gen_1.client).post({
1188
- security: [
1189
- {
1190
- name: 'X-API-Key',
1191
- type: 'apiKey'
1192
- },
1193
- {
1194
- scheme: 'bearer',
1195
- type: 'http'
1196
- }
1197
- ],
1198
- url: '/v1/graphs/{graph_id}/agent/{agent_type}',
1199
- ...options,
1200
- headers: {
1201
- 'Content-Type': 'application/json',
1202
- ...options.headers
1203
- }
1204
- });
1205
- };
833
+ const executeSpecificAgent = (options) => (options.client ?? client_gen_1.client).post({
834
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
835
+ url: '/v1/graphs/{graph_id}/agent/{agent_type}',
836
+ ...options,
837
+ headers: {
838
+ 'Content-Type': 'application/json',
839
+ ...options.headers
840
+ }
841
+ });
1206
842
  exports.executeSpecificAgent = executeSpecificAgent;
1207
843
  /**
1208
844
  * Batch process multiple queries
845
+ *
1209
846
  * Process multiple queries either sequentially or in parallel.
1210
847
  *
1211
848
  * **Features:**
@@ -1221,29 +858,19 @@ exports.executeSpecificAgent = executeSpecificAgent;
1221
858
  *
1222
859
  * Returns individual results for each query with execution metrics.
1223
860
  */
1224
- const batchProcessQueries = (options) => {
1225
- return (options.client ?? client_gen_1.client).post({
1226
- security: [
1227
- {
1228
- name: 'X-API-Key',
1229
- type: 'apiKey'
1230
- },
1231
- {
1232
- scheme: 'bearer',
1233
- type: 'http'
1234
- }
1235
- ],
1236
- url: '/v1/graphs/{graph_id}/agent/batch',
1237
- ...options,
1238
- headers: {
1239
- 'Content-Type': 'application/json',
1240
- ...options.headers
1241
- }
1242
- });
1243
- };
861
+ const batchProcessQueries = (options) => (options.client ?? client_gen_1.client).post({
862
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
863
+ url: '/v1/graphs/{graph_id}/agent/batch',
864
+ ...options,
865
+ headers: {
866
+ 'Content-Type': 'application/json',
867
+ ...options.headers
868
+ }
869
+ });
1244
870
  exports.batchProcessQueries = batchProcessQueries;
1245
871
  /**
1246
872
  * Get agent recommendations
873
+ *
1247
874
  * Get intelligent agent recommendations for a specific query.
1248
875
  *
1249
876
  * **How it works:**
@@ -1259,29 +886,19 @@ exports.batchProcessQueries = batchProcessQueries;
1259
886
  *
1260
887
  * Returns top agents ranked by confidence with explanations.
1261
888
  */
1262
- const recommendAgent = (options) => {
1263
- return (options.client ?? client_gen_1.client).post({
1264
- security: [
1265
- {
1266
- name: 'X-API-Key',
1267
- type: 'apiKey'
1268
- },
1269
- {
1270
- scheme: 'bearer',
1271
- type: 'http'
1272
- }
1273
- ],
1274
- url: '/v1/graphs/{graph_id}/agent/recommend',
1275
- ...options,
1276
- headers: {
1277
- 'Content-Type': 'application/json',
1278
- ...options.headers
1279
- }
1280
- });
1281
- };
889
+ const recommendAgent = (options) => (options.client ?? client_gen_1.client).post({
890
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
891
+ url: '/v1/graphs/{graph_id}/agent/recommend',
892
+ ...options,
893
+ headers: {
894
+ 'Content-Type': 'application/json',
895
+ ...options.headers
896
+ }
897
+ });
1282
898
  exports.recommendAgent = recommendAgent;
1283
899
  /**
1284
900
  * List MCP Tools
901
+ *
1285
902
  * Get available Model Context Protocol tools for graph analysis.
1286
903
  *
1287
904
  * This endpoint returns a comprehensive list of MCP tools optimized for AI agents:
@@ -1304,25 +921,15 @@ exports.recommendAgent = recommendAgent;
1304
921
  * **Note:**
1305
922
  * MCP tool listing is included - no credit consumption required.
1306
923
  */
1307
- const listMcpTools = (options) => {
1308
- return (options.client ?? client_gen_1.client).get({
1309
- security: [
1310
- {
1311
- name: 'X-API-Key',
1312
- type: 'apiKey'
1313
- },
1314
- {
1315
- scheme: 'bearer',
1316
- type: 'http'
1317
- }
1318
- ],
1319
- url: '/v1/graphs/{graph_id}/mcp/tools',
1320
- ...options
1321
- });
1322
- };
924
+ const listMcpTools = (options) => (options.client ?? client_gen_1.client).get({
925
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
926
+ url: '/v1/graphs/{graph_id}/mcp/tools',
927
+ ...options
928
+ });
1323
929
  exports.listMcpTools = listMcpTools;
1324
930
  /**
1325
931
  * Execute MCP Tool
932
+ *
1326
933
  * Execute an MCP tool with intelligent response optimization.
1327
934
  *
1328
935
  * This endpoint automatically selects the best execution strategy based on:
@@ -1368,50 +975,30 @@ exports.listMcpTools = listMcpTools;
1368
975
  * Only AI operations that invoke Claude or other LLM APIs consume credits,
1369
976
  * which happens at the AI agent layer, not the MCP tool layer.
1370
977
  */
1371
- const callMcpTool = (options) => {
1372
- return (options.client ?? client_gen_1.client).post({
1373
- security: [
1374
- {
1375
- name: 'X-API-Key',
1376
- type: 'apiKey'
1377
- },
1378
- {
1379
- scheme: 'bearer',
1380
- type: 'http'
1381
- }
1382
- ],
1383
- url: '/v1/graphs/{graph_id}/mcp/call-tool',
1384
- ...options,
1385
- headers: {
1386
- 'Content-Type': 'application/json',
1387
- ...options.headers
1388
- }
1389
- });
1390
- };
978
+ const callMcpTool = (options) => (options.client ?? client_gen_1.client).post({
979
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
980
+ url: '/v1/graphs/{graph_id}/mcp/call-tool',
981
+ ...options,
982
+ headers: {
983
+ 'Content-Type': 'application/json',
984
+ ...options.headers
985
+ }
986
+ });
1391
987
  exports.callMcpTool = callMcpTool;
1392
988
  /**
1393
989
  * List graph database backups
990
+ *
1394
991
  * List all backups for the specified graph database
1395
992
  */
1396
- const listBackups = (options) => {
1397
- return (options.client ?? client_gen_1.client).get({
1398
- security: [
1399
- {
1400
- name: 'X-API-Key',
1401
- type: 'apiKey'
1402
- },
1403
- {
1404
- scheme: 'bearer',
1405
- type: 'http'
1406
- }
1407
- ],
1408
- url: '/v1/graphs/{graph_id}/backups',
1409
- ...options
1410
- });
1411
- };
993
+ const listBackups = (options) => (options.client ?? client_gen_1.client).get({
994
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
995
+ url: '/v1/graphs/{graph_id}/backups',
996
+ ...options
997
+ });
1412
998
  exports.listBackups = listBackups;
1413
999
  /**
1414
1000
  * Create Backup
1001
+ *
1415
1002
  * Create a backup of the graph database.
1416
1003
  *
1417
1004
  * Creates a complete backup of the graph database (.lbug file) with:
@@ -1473,50 +1060,30 @@ exports.listBackups = listBackups;
1473
1060
  *
1474
1061
  * Returns operation details for SSE monitoring.
1475
1062
  */
1476
- const createBackup = (options) => {
1477
- return (options.client ?? client_gen_1.client).post({
1478
- security: [
1479
- {
1480
- name: 'X-API-Key',
1481
- type: 'apiKey'
1482
- },
1483
- {
1484
- scheme: 'bearer',
1485
- type: 'http'
1486
- }
1487
- ],
1488
- url: '/v1/graphs/{graph_id}/backups',
1489
- ...options,
1490
- headers: {
1491
- 'Content-Type': 'application/json',
1492
- ...options.headers
1493
- }
1494
- });
1495
- };
1063
+ const createBackup = (options) => (options.client ?? client_gen_1.client).post({
1064
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1065
+ url: '/v1/graphs/{graph_id}/backups',
1066
+ ...options,
1067
+ headers: {
1068
+ 'Content-Type': 'application/json',
1069
+ ...options.headers
1070
+ }
1071
+ });
1496
1072
  exports.createBackup = createBackup;
1497
1073
  /**
1498
1074
  * Get temporary download URL for backup
1075
+ *
1499
1076
  * Generate a temporary download URL for a backup (unencrypted, compressed .lbug files only)
1500
1077
  */
1501
- const getBackupDownloadUrl = (options) => {
1502
- return (options.client ?? client_gen_1.client).get({
1503
- security: [
1504
- {
1505
- name: 'X-API-Key',
1506
- type: 'apiKey'
1507
- },
1508
- {
1509
- scheme: 'bearer',
1510
- type: 'http'
1511
- }
1512
- ],
1513
- url: '/v1/graphs/{graph_id}/backups/{backup_id}/download',
1514
- ...options
1515
- });
1516
- };
1078
+ const getBackupDownloadUrl = (options) => (options.client ?? client_gen_1.client).get({
1079
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1080
+ url: '/v1/graphs/{graph_id}/backups/{backup_id}/download',
1081
+ ...options
1082
+ });
1517
1083
  exports.getBackupDownloadUrl = getBackupDownloadUrl;
1518
1084
  /**
1519
1085
  * Restore Encrypted Backup
1086
+ *
1520
1087
  * Restore a graph database from an encrypted backup.
1521
1088
  *
1522
1089
  * Restores a complete graph database from an encrypted backup:
@@ -1583,50 +1150,30 @@ exports.getBackupDownloadUrl = getBackupDownloadUrl;
1583
1150
  *
1584
1151
  * Returns operation details for SSE monitoring.
1585
1152
  */
1586
- const restoreBackup = (options) => {
1587
- return (options.client ?? client_gen_1.client).post({
1588
- security: [
1589
- {
1590
- name: 'X-API-Key',
1591
- type: 'apiKey'
1592
- },
1593
- {
1594
- scheme: 'bearer',
1595
- type: 'http'
1596
- }
1597
- ],
1598
- url: '/v1/graphs/{graph_id}/backups/{backup_id}/restore',
1599
- ...options,
1600
- headers: {
1601
- 'Content-Type': 'application/json',
1602
- ...options.headers
1603
- }
1604
- });
1605
- };
1153
+ const restoreBackup = (options) => (options.client ?? client_gen_1.client).post({
1154
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1155
+ url: '/v1/graphs/{graph_id}/backups/{backup_id}/restore',
1156
+ ...options,
1157
+ headers: {
1158
+ 'Content-Type': 'application/json',
1159
+ ...options.headers
1160
+ }
1161
+ });
1606
1162
  exports.restoreBackup = restoreBackup;
1607
1163
  /**
1608
1164
  * Get backup statistics
1165
+ *
1609
1166
  * Get comprehensive backup statistics for the specified graph database
1610
1167
  */
1611
- const getBackupStats = (options) => {
1612
- return (options.client ?? client_gen_1.client).get({
1613
- security: [
1614
- {
1615
- name: 'X-API-Key',
1616
- type: 'apiKey'
1617
- },
1618
- {
1619
- scheme: 'bearer',
1620
- type: 'http'
1621
- }
1622
- ],
1623
- url: '/v1/graphs/{graph_id}/backups/stats',
1624
- ...options
1625
- });
1626
- };
1168
+ const getBackupStats = (options) => (options.client ?? client_gen_1.client).get({
1169
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1170
+ url: '/v1/graphs/{graph_id}/backups/stats',
1171
+ ...options
1172
+ });
1627
1173
  exports.getBackupStats = getBackupStats;
1628
1174
  /**
1629
1175
  * Get Graph Metrics
1176
+ *
1630
1177
  * Get comprehensive metrics for the graph database.
1631
1178
  *
1632
1179
  * Provides detailed analytics including:
@@ -1645,25 +1192,15 @@ exports.getBackupStats = getBackupStats;
1645
1192
  * Note:
1646
1193
  * This operation is included - no credit consumption required.
1647
1194
  */
1648
- const getGraphMetrics = (options) => {
1649
- return (options.client ?? client_gen_1.client).get({
1650
- security: [
1651
- {
1652
- name: 'X-API-Key',
1653
- type: 'apiKey'
1654
- },
1655
- {
1656
- scheme: 'bearer',
1657
- type: 'http'
1658
- }
1659
- ],
1660
- url: '/v1/graphs/{graph_id}/analytics',
1661
- ...options
1662
- });
1663
- };
1195
+ const getGraphMetrics = (options) => (options.client ?? client_gen_1.client).get({
1196
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1197
+ url: '/v1/graphs/{graph_id}/analytics',
1198
+ ...options
1199
+ });
1664
1200
  exports.getGraphMetrics = getGraphMetrics;
1665
1201
  /**
1666
1202
  * Get Graph Usage Analytics
1203
+ *
1667
1204
  * Get comprehensive usage analytics tracked by the GraphUsage model.
1668
1205
  *
1669
1206
  * Provides temporal usage patterns including:
@@ -1694,25 +1231,15 @@ exports.getGraphMetrics = getGraphMetrics;
1694
1231
  * Note:
1695
1232
  * This operation is included - no credit consumption required.
1696
1233
  */
1697
- const getGraphUsageAnalytics = (options) => {
1698
- return (options.client ?? client_gen_1.client).get({
1699
- security: [
1700
- {
1701
- name: 'X-API-Key',
1702
- type: 'apiKey'
1703
- },
1704
- {
1705
- scheme: 'bearer',
1706
- type: 'http'
1707
- }
1708
- ],
1709
- url: '/v1/graphs/{graph_id}/analytics/usage',
1710
- ...options
1711
- });
1712
- };
1234
+ const getGraphUsageAnalytics = (options) => (options.client ?? client_gen_1.client).get({
1235
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1236
+ url: '/v1/graphs/{graph_id}/analytics/usage',
1237
+ ...options
1238
+ });
1713
1239
  exports.getGraphUsageAnalytics = getGraphUsageAnalytics;
1714
1240
  /**
1715
1241
  * Execute Cypher Query
1242
+ *
1716
1243
  * Execute a Cypher query with intelligent response optimization.
1717
1244
  *
1718
1245
  * **IMPORTANT: Write operations depend on graph type:**
@@ -1782,29 +1309,19 @@ exports.getGraphUsageAnalytics = getGraphUsageAnalytics;
1782
1309
  * Query operations are included - no credit consumption required.
1783
1310
  * Queue position is based on subscription tier for priority.
1784
1311
  */
1785
- const executeCypherQuery = (options) => {
1786
- return (options.client ?? client_gen_1.client).post({
1787
- security: [
1788
- {
1789
- name: 'X-API-Key',
1790
- type: 'apiKey'
1791
- },
1792
- {
1793
- scheme: 'bearer',
1794
- type: 'http'
1795
- }
1796
- ],
1797
- url: '/v1/graphs/{graph_id}/query',
1798
- ...options,
1799
- headers: {
1800
- 'Content-Type': 'application/json',
1801
- ...options.headers
1802
- }
1803
- });
1804
- };
1312
+ const executeCypherQuery = (options) => (options.client ?? client_gen_1.client).post({
1313
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1314
+ url: '/v1/graphs/{graph_id}/query',
1315
+ ...options,
1316
+ headers: {
1317
+ 'Content-Type': 'application/json',
1318
+ ...options.headers
1319
+ }
1320
+ });
1805
1321
  exports.executeCypherQuery = executeCypherQuery;
1806
1322
  /**
1807
1323
  * Get Runtime Graph Schema
1324
+ *
1808
1325
  * Get runtime schema information for the specified graph database.
1809
1326
  *
1810
1327
  * ## What This Returns
@@ -1850,25 +1367,15 @@ exports.executeCypherQuery = executeCypherQuery;
1850
1367
  *
1851
1368
  * This operation is included - no credit consumption required.
1852
1369
  */
1853
- const getGraphSchema = (options) => {
1854
- return (options.client ?? client_gen_1.client).get({
1855
- security: [
1856
- {
1857
- name: 'X-API-Key',
1858
- type: 'apiKey'
1859
- },
1860
- {
1861
- scheme: 'bearer',
1862
- type: 'http'
1863
- }
1864
- ],
1865
- url: '/v1/graphs/{graph_id}/schema',
1866
- ...options
1867
- });
1868
- };
1370
+ const getGraphSchema = (options) => (options.client ?? client_gen_1.client).get({
1371
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1372
+ url: '/v1/graphs/{graph_id}/schema',
1373
+ ...options
1374
+ });
1869
1375
  exports.getGraphSchema = getGraphSchema;
1870
1376
  /**
1871
1377
  * Export Declared Graph Schema
1378
+ *
1872
1379
  * Export the declared schema definition of an existing graph.
1873
1380
  *
1874
1381
  * ## What This Returns
@@ -1917,25 +1424,15 @@ exports.getGraphSchema = getGraphSchema;
1917
1424
  *
1918
1425
  * This operation is included - no credit consumption required.
1919
1426
  */
1920
- const exportGraphSchema = (options) => {
1921
- return (options.client ?? client_gen_1.client).get({
1922
- security: [
1923
- {
1924
- name: 'X-API-Key',
1925
- type: 'apiKey'
1926
- },
1927
- {
1928
- scheme: 'bearer',
1929
- type: 'http'
1930
- }
1931
- ],
1932
- url: '/v1/graphs/{graph_id}/schema/export',
1933
- ...options
1934
- });
1935
- };
1427
+ const exportGraphSchema = (options) => (options.client ?? client_gen_1.client).get({
1428
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1429
+ url: '/v1/graphs/{graph_id}/schema/export',
1430
+ ...options
1431
+ });
1936
1432
  exports.exportGraphSchema = exportGraphSchema;
1937
1433
  /**
1938
1434
  * Validate Schema
1435
+ *
1939
1436
  * Validate a custom schema definition before deployment.
1940
1437
  *
1941
1438
  * This endpoint performs comprehensive validation including:
@@ -1966,29 +1463,19 @@ exports.exportGraphSchema = exportGraphSchema;
1966
1463
  *
1967
1464
  * This operation is included - no credit consumption required.
1968
1465
  */
1969
- const validateSchema = (options) => {
1970
- return (options.client ?? client_gen_1.client).post({
1971
- security: [
1972
- {
1973
- name: 'X-API-Key',
1974
- type: 'apiKey'
1975
- },
1976
- {
1977
- scheme: 'bearer',
1978
- type: 'http'
1979
- }
1980
- ],
1981
- url: '/v1/graphs/{graph_id}/schema/validate',
1982
- ...options,
1983
- headers: {
1984
- 'Content-Type': 'application/json',
1985
- ...options.headers
1986
- }
1987
- });
1988
- };
1466
+ const validateSchema = (options) => (options.client ?? client_gen_1.client).post({
1467
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1468
+ url: '/v1/graphs/{graph_id}/schema/validate',
1469
+ ...options,
1470
+ headers: {
1471
+ 'Content-Type': 'application/json',
1472
+ ...options.headers
1473
+ }
1474
+ });
1989
1475
  exports.validateSchema = validateSchema;
1990
1476
  /**
1991
1477
  * Get Credit Summary
1478
+ *
1992
1479
  * Retrieve comprehensive credit usage summary for the specified graph.
1993
1480
  *
1994
1481
  * This endpoint provides:
@@ -1999,25 +1486,15 @@ exports.validateSchema = validateSchema;
1999
1486
  *
2000
1487
  * No credits are consumed for checking credit status.
2001
1488
  */
2002
- const getCreditSummary = (options) => {
2003
- return (options.client ?? client_gen_1.client).get({
2004
- security: [
2005
- {
2006
- name: 'X-API-Key',
2007
- type: 'apiKey'
2008
- },
2009
- {
2010
- scheme: 'bearer',
2011
- type: 'http'
2012
- }
2013
- ],
2014
- url: '/v1/graphs/{graph_id}/credits/summary',
2015
- ...options
2016
- });
2017
- };
1489
+ const getCreditSummary = (options) => (options.client ?? client_gen_1.client).get({
1490
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1491
+ url: '/v1/graphs/{graph_id}/credits/summary',
1492
+ ...options
1493
+ });
2018
1494
  exports.getCreditSummary = getCreditSummary;
2019
1495
  /**
2020
1496
  * List Credit Transactions
1497
+ *
2021
1498
  * Retrieve detailed credit transaction history for the specified graph.
2022
1499
  *
2023
1500
  * This enhanced endpoint provides:
@@ -2034,25 +1511,15 @@ exports.getCreditSummary = getCreditSummary;
2034
1511
  *
2035
1512
  * No credits are consumed for viewing transaction history.
2036
1513
  */
2037
- const listCreditTransactions = (options) => {
2038
- return (options.client ?? client_gen_1.client).get({
2039
- security: [
2040
- {
2041
- name: 'X-API-Key',
2042
- type: 'apiKey'
2043
- },
2044
- {
2045
- scheme: 'bearer',
2046
- type: 'http'
2047
- }
2048
- ],
2049
- url: '/v1/graphs/{graph_id}/credits/transactions',
2050
- ...options
2051
- });
2052
- };
1514
+ const listCreditTransactions = (options) => (options.client ?? client_gen_1.client).get({
1515
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1516
+ url: '/v1/graphs/{graph_id}/credits/transactions',
1517
+ ...options
1518
+ });
2053
1519
  exports.listCreditTransactions = listCreditTransactions;
2054
1520
  /**
2055
1521
  * Check Credit Balance
1522
+ *
2056
1523
  * Check if the graph has sufficient credits for a planned operation.
2057
1524
  *
2058
1525
  * This endpoint allows you to verify credit availability before performing
@@ -2065,25 +1532,15 @@ exports.listCreditTransactions = listCreditTransactions;
2065
1532
  *
2066
1533
  * No credits are consumed for checking availability.
2067
1534
  */
2068
- const checkCreditBalance = (options) => {
2069
- return (options.client ?? client_gen_1.client).get({
2070
- security: [
2071
- {
2072
- name: 'X-API-Key',
2073
- type: 'apiKey'
2074
- },
2075
- {
2076
- scheme: 'bearer',
2077
- type: 'http'
2078
- }
2079
- ],
2080
- url: '/v1/graphs/{graph_id}/credits/balance/check',
2081
- ...options
2082
- });
2083
- };
1535
+ const checkCreditBalance = (options) => (options.client ?? client_gen_1.client).get({
1536
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1537
+ url: '/v1/graphs/{graph_id}/credits/balance/check',
1538
+ ...options
1539
+ });
2084
1540
  exports.checkCreditBalance = checkCreditBalance;
2085
1541
  /**
2086
1542
  * Get Storage Usage
1543
+ *
2087
1544
  * Get storage usage history for a graph.
2088
1545
  *
2089
1546
  * Returns detailed storage usage information including:
@@ -2095,25 +1552,15 @@ exports.checkCreditBalance = checkCreditBalance;
2095
1552
  * This endpoint helps users understand their storage patterns
2096
1553
  * and associated credit costs.
2097
1554
  */
2098
- const getStorageUsage = (options) => {
2099
- return (options.client ?? client_gen_1.client).get({
2100
- security: [
2101
- {
2102
- name: 'X-API-Key',
2103
- type: 'apiKey'
2104
- },
2105
- {
2106
- scheme: 'bearer',
2107
- type: 'http'
2108
- }
2109
- ],
2110
- url: '/v1/graphs/{graph_id}/credits/storage/usage',
2111
- ...options
2112
- });
2113
- };
1555
+ const getStorageUsage = (options) => (options.client ?? client_gen_1.client).get({
1556
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1557
+ url: '/v1/graphs/{graph_id}/credits/storage/usage',
1558
+ ...options
1559
+ });
2114
1560
  exports.getStorageUsage = getStorageUsage;
2115
1561
  /**
2116
1562
  * Check Storage Limits
1563
+ *
2117
1564
  * Check storage limits and usage for a graph.
2118
1565
  *
2119
1566
  * Returns comprehensive storage limit information including:
@@ -2125,25 +1572,15 @@ exports.getStorageUsage = getStorageUsage;
2125
1572
  * This endpoint helps users monitor storage usage and plan for potential
2126
1573
  * limit increases. No credits are consumed for checking storage limits.
2127
1574
  */
2128
- const checkStorageLimits = (options) => {
2129
- return (options.client ?? client_gen_1.client).get({
2130
- security: [
2131
- {
2132
- name: 'X-API-Key',
2133
- type: 'apiKey'
2134
- },
2135
- {
2136
- scheme: 'bearer',
2137
- type: 'http'
2138
- }
2139
- ],
2140
- url: '/v1/graphs/{graph_id}/credits/storage/limits',
2141
- ...options
2142
- });
2143
- };
1575
+ const checkStorageLimits = (options) => (options.client ?? client_gen_1.client).get({
1576
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1577
+ url: '/v1/graphs/{graph_id}/credits/storage/limits',
1578
+ ...options
1579
+ });
2144
1580
  exports.checkStorageLimits = checkStorageLimits;
2145
1581
  /**
2146
1582
  * Database Health Check
1583
+ *
2147
1584
  * Get comprehensive health information for the graph database.
2148
1585
  *
2149
1586
  * Returns detailed health metrics including:
@@ -2169,25 +1606,15 @@ exports.checkStorageLimits = checkStorageLimits;
2169
1606
  *
2170
1607
  * This endpoint provides essential monitoring data for operational visibility.
2171
1608
  */
2172
- const getDatabaseHealth = (options) => {
2173
- return (options.client ?? client_gen_1.client).get({
2174
- security: [
2175
- {
2176
- name: 'X-API-Key',
2177
- type: 'apiKey'
2178
- },
2179
- {
2180
- scheme: 'bearer',
2181
- type: 'http'
2182
- }
2183
- ],
2184
- url: '/v1/graphs/{graph_id}/health',
2185
- ...options
2186
- });
2187
- };
1609
+ const getDatabaseHealth = (options) => (options.client ?? client_gen_1.client).get({
1610
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1611
+ url: '/v1/graphs/{graph_id}/health',
1612
+ ...options
1613
+ });
2188
1614
  exports.getDatabaseHealth = getDatabaseHealth;
2189
1615
  /**
2190
1616
  * Database Information
1617
+ *
2191
1618
  * Get comprehensive database information and statistics.
2192
1619
  *
2193
1620
  * Returns detailed database metrics including:
@@ -2214,25 +1641,15 @@ exports.getDatabaseHealth = getDatabaseHealth;
2214
1641
  *
2215
1642
  * This endpoint provides essential database information for capacity planning and monitoring.
2216
1643
  */
2217
- const getDatabaseInfo = (options) => {
2218
- return (options.client ?? client_gen_1.client).get({
2219
- security: [
2220
- {
2221
- name: 'X-API-Key',
2222
- type: 'apiKey'
2223
- },
2224
- {
2225
- scheme: 'bearer',
2226
- type: 'http'
2227
- }
2228
- ],
2229
- url: '/v1/graphs/{graph_id}/info',
2230
- ...options
2231
- });
2232
- };
1644
+ const getDatabaseInfo = (options) => (options.client ?? client_gen_1.client).get({
1645
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1646
+ url: '/v1/graphs/{graph_id}/info',
1647
+ ...options
1648
+ });
2233
1649
  exports.getDatabaseInfo = getDatabaseInfo;
2234
1650
  /**
2235
1651
  * Get Graph Operational Limits
1652
+ *
2236
1653
  * Get comprehensive operational limits for the graph database.
2237
1654
  *
2238
1655
  * Returns all operational limits that apply to this graph including:
@@ -2247,25 +1664,15 @@ exports.getDatabaseInfo = getDatabaseInfo;
2247
1664
  *
2248
1665
  * **Note**: Limits vary based on subscription tier (ladybug-standard, ladybug-large, ladybug-xlarge).
2249
1666
  */
2250
- const getGraphLimits = (options) => {
2251
- return (options.client ?? client_gen_1.client).get({
2252
- security: [
2253
- {
2254
- name: 'X-API-Key',
2255
- type: 'apiKey'
2256
- },
2257
- {
2258
- scheme: 'bearer',
2259
- type: 'http'
2260
- }
2261
- ],
2262
- url: '/v1/graphs/{graph_id}/limits',
2263
- ...options
2264
- });
2265
- };
1667
+ const getGraphLimits = (options) => (options.client ?? client_gen_1.client).get({
1668
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1669
+ url: '/v1/graphs/{graph_id}/limits',
1670
+ ...options
1671
+ });
2266
1672
  exports.getGraphLimits = getGraphLimits;
2267
1673
  /**
2268
1674
  * List Subgraphs
1675
+ *
2269
1676
  * List all subgraphs for a parent graph.
2270
1677
  *
2271
1678
  * **Requirements:**
@@ -2277,25 +1684,15 @@ exports.getGraphLimits = getGraphLimits;
2277
1684
  * - List of all subgraphs for the parent graph
2278
1685
  * - Each subgraph includes its ID, name, description, type, status, and creation date
2279
1686
  */
2280
- const listSubgraphs = (options) => {
2281
- return (options.client ?? client_gen_1.client).get({
2282
- security: [
2283
- {
2284
- name: 'X-API-Key',
2285
- type: 'apiKey'
2286
- },
2287
- {
2288
- scheme: 'bearer',
2289
- type: 'http'
2290
- }
2291
- ],
2292
- url: '/v1/graphs/{graph_id}/subgraphs',
2293
- ...options
2294
- });
2295
- };
1687
+ const listSubgraphs = (options) => (options.client ?? client_gen_1.client).get({
1688
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1689
+ url: '/v1/graphs/{graph_id}/subgraphs',
1690
+ ...options
1691
+ });
2296
1692
  exports.listSubgraphs = listSubgraphs;
2297
1693
  /**
2298
1694
  * Create Subgraph
1695
+ *
2299
1696
  * Create a new subgraph within a parent graph, with optional data forking.
2300
1697
  *
2301
1698
  * **Requirements:**
@@ -2324,29 +1721,19 @@ exports.listSubgraphs = listSubgraphs;
2324
1721
  * - Subgraph ID can be used in all standard `/v1/graphs/{graph_id}*` endpoints
2325
1722
  * - Permissions inherited from parent graph
2326
1723
  */
2327
- const createSubgraph = (options) => {
2328
- return (options.client ?? client_gen_1.client).post({
2329
- security: [
2330
- {
2331
- name: 'X-API-Key',
2332
- type: 'apiKey'
2333
- },
2334
- {
2335
- scheme: 'bearer',
2336
- type: 'http'
2337
- }
2338
- ],
2339
- url: '/v1/graphs/{graph_id}/subgraphs',
2340
- ...options,
2341
- headers: {
2342
- 'Content-Type': 'application/json',
2343
- ...options.headers
2344
- }
2345
- });
2346
- };
1724
+ const createSubgraph = (options) => (options.client ?? client_gen_1.client).post({
1725
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1726
+ url: '/v1/graphs/{graph_id}/subgraphs',
1727
+ ...options,
1728
+ headers: {
1729
+ 'Content-Type': 'application/json',
1730
+ ...options.headers
1731
+ }
1732
+ });
2347
1733
  exports.createSubgraph = createSubgraph;
2348
1734
  /**
2349
1735
  * Delete Subgraph
1736
+ *
2350
1737
  * Delete a subgraph database.
2351
1738
  *
2352
1739
  * **Requirements:**
@@ -2372,29 +1759,19 @@ exports.createSubgraph = createSubgraph;
2372
1759
  * - Deletion does not affect parent graph's credit pool or permissions
2373
1760
  * - Backup creation consumes credits from parent graph's allocation
2374
1761
  */
2375
- const deleteSubgraph = (options) => {
2376
- return (options.client ?? client_gen_1.client).delete({
2377
- security: [
2378
- {
2379
- name: 'X-API-Key',
2380
- type: 'apiKey'
2381
- },
2382
- {
2383
- scheme: 'bearer',
2384
- type: 'http'
2385
- }
2386
- ],
2387
- url: '/v1/graphs/{graph_id}/subgraphs/{subgraph_name}',
2388
- ...options,
2389
- headers: {
2390
- 'Content-Type': 'application/json',
2391
- ...options.headers
2392
- }
2393
- });
2394
- };
1762
+ const deleteSubgraph = (options) => (options.client ?? client_gen_1.client).delete({
1763
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1764
+ url: '/v1/graphs/{graph_id}/subgraphs/{subgraph_name}',
1765
+ ...options,
1766
+ headers: {
1767
+ 'Content-Type': 'application/json',
1768
+ ...options.headers
1769
+ }
1770
+ });
2395
1771
  exports.deleteSubgraph = deleteSubgraph;
2396
1772
  /**
2397
1773
  * Get Subgraph Details
1774
+ *
2398
1775
  * Get detailed information about a specific subgraph.
2399
1776
  *
2400
1777
  * **Requirements:**
@@ -2420,25 +1797,15 @@ exports.deleteSubgraph = deleteSubgraph;
2420
1797
  * Use the subgraph name (e.g., 'dev', 'staging') not the full subgraph ID.
2421
1798
  * The full ID is returned in the response (e.g., 'kg0123456789abcdef_dev').
2422
1799
  */
2423
- const getSubgraphInfo = (options) => {
2424
- return (options.client ?? client_gen_1.client).get({
2425
- security: [
2426
- {
2427
- name: 'X-API-Key',
2428
- type: 'apiKey'
2429
- },
2430
- {
2431
- scheme: 'bearer',
2432
- type: 'http'
2433
- }
2434
- ],
2435
- url: '/v1/graphs/{graph_id}/subgraphs/{subgraph_name}/info',
2436
- ...options
2437
- });
2438
- };
1800
+ const getSubgraphInfo = (options) => (options.client ?? client_gen_1.client).get({
1801
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1802
+ url: '/v1/graphs/{graph_id}/subgraphs/{subgraph_name}/info',
1803
+ ...options
1804
+ });
2439
1805
  exports.getSubgraphInfo = getSubgraphInfo;
2440
1806
  /**
2441
1807
  * Get Subgraph Quota
1808
+ *
2442
1809
  * Get subgraph quota and usage information for a parent graph.
2443
1810
  *
2444
1811
  * **Shows:**
@@ -2457,25 +1824,15 @@ exports.getSubgraphInfo = getSubgraphInfo;
2457
1824
  * Provides aggregate size metrics when available.
2458
1825
  * Individual subgraph sizes shown in list endpoint.
2459
1826
  */
2460
- const getSubgraphQuota = (options) => {
2461
- return (options.client ?? client_gen_1.client).get({
2462
- security: [
2463
- {
2464
- name: 'X-API-Key',
2465
- type: 'apiKey'
2466
- },
2467
- {
2468
- scheme: 'bearer',
2469
- type: 'http'
2470
- }
2471
- ],
2472
- url: '/v1/graphs/{graph_id}/subgraphs/quota',
2473
- ...options
2474
- });
2475
- };
1827
+ const getSubgraphQuota = (options) => (options.client ?? client_gen_1.client).get({
1828
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1829
+ url: '/v1/graphs/{graph_id}/subgraphs/quota',
1830
+ ...options
1831
+ });
2476
1832
  exports.getSubgraphQuota = getSubgraphQuota;
2477
1833
  /**
2478
1834
  * Get Subscription
1835
+ *
2479
1836
  * Get subscription details for a graph or shared repository.
2480
1837
  *
2481
1838
  * For user graphs (kg*): Returns the graph's subscription (owned by graph creator)
@@ -2483,25 +1840,15 @@ exports.getSubgraphQuota = getSubgraphQuota;
2483
1840
  *
2484
1841
  * This unified endpoint automatically detects the resource type and returns the appropriate subscription.
2485
1842
  */
2486
- const getGraphSubscription = (options) => {
2487
- return (options.client ?? client_gen_1.client).get({
2488
- security: [
2489
- {
2490
- name: 'X-API-Key',
2491
- type: 'apiKey'
2492
- },
2493
- {
2494
- scheme: 'bearer',
2495
- type: 'http'
2496
- }
2497
- ],
2498
- url: '/v1/graphs/{graph_id}/subscriptions',
2499
- ...options
2500
- });
2501
- };
1843
+ const getGraphSubscription = (options) => (options.client ?? client_gen_1.client).get({
1844
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1845
+ url: '/v1/graphs/{graph_id}/subscriptions',
1846
+ ...options
1847
+ });
2502
1848
  exports.getGraphSubscription = getGraphSubscription;
2503
1849
  /**
2504
1850
  * Create Repository Subscription
1851
+ *
2505
1852
  * Create a new subscription to a shared repository.
2506
1853
  *
2507
1854
  * This endpoint is ONLY for shared repositories (sec, industry, economic).
@@ -2509,57 +1856,37 @@ exports.getGraphSubscription = getGraphSubscription;
2509
1856
  *
2510
1857
  * The subscription will be created in ACTIVE status immediately and credits will be allocated.
2511
1858
  */
2512
- const createRepositorySubscription = (options) => {
2513
- return (options.client ?? client_gen_1.client).post({
2514
- security: [
2515
- {
2516
- name: 'X-API-Key',
2517
- type: 'apiKey'
2518
- },
2519
- {
2520
- scheme: 'bearer',
2521
- type: 'http'
2522
- }
2523
- ],
2524
- url: '/v1/graphs/{graph_id}/subscriptions',
2525
- ...options,
2526
- headers: {
2527
- 'Content-Type': 'application/json',
2528
- ...options.headers
2529
- }
2530
- });
2531
- };
1859
+ const createRepositorySubscription = (options) => (options.client ?? client_gen_1.client).post({
1860
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1861
+ url: '/v1/graphs/{graph_id}/subscriptions',
1862
+ ...options,
1863
+ headers: {
1864
+ 'Content-Type': 'application/json',
1865
+ ...options.headers
1866
+ }
1867
+ });
2532
1868
  exports.createRepositorySubscription = createRepositorySubscription;
2533
1869
  /**
2534
1870
  * Upgrade Subscription
1871
+ *
2535
1872
  * Upgrade a subscription to a different plan.
2536
1873
  *
2537
1874
  * Works for both user graphs and shared repositories.
2538
1875
  * The subscription will be immediately updated to the new plan and pricing.
2539
1876
  */
2540
- const upgradeSubscription = (options) => {
2541
- return (options.client ?? client_gen_1.client).put({
2542
- security: [
2543
- {
2544
- name: 'X-API-Key',
2545
- type: 'apiKey'
2546
- },
2547
- {
2548
- scheme: 'bearer',
2549
- type: 'http'
2550
- }
2551
- ],
2552
- url: '/v1/graphs/{graph_id}/subscriptions/upgrade',
2553
- ...options,
2554
- headers: {
2555
- 'Content-Type': 'application/json',
2556
- ...options.headers
2557
- }
2558
- });
2559
- };
1877
+ const upgradeSubscription = (options) => (options.client ?? client_gen_1.client).put({
1878
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1879
+ url: '/v1/graphs/{graph_id}/subscriptions/upgrade',
1880
+ ...options,
1881
+ headers: {
1882
+ 'Content-Type': 'application/json',
1883
+ ...options.headers
1884
+ }
1885
+ });
2560
1886
  exports.upgradeSubscription = upgradeSubscription;
2561
1887
  /**
2562
1888
  * List Staging Tables
1889
+ *
2563
1890
  * List all DuckDB staging tables with comprehensive metrics and status.
2564
1891
  *
2565
1892
  * Get a complete inventory of all staging tables for a graph, including
@@ -2595,25 +1922,15 @@ exports.upgradeSubscription = upgradeSubscription;
2595
1922
  * - Empty tables (file_count=0) are skipped during ingestion
2596
1923
  * - Table queries are included - no credit consumption
2597
1924
  */
2598
- const listTables = (options) => {
2599
- return (options.client ?? client_gen_1.client).get({
2600
- security: [
2601
- {
2602
- name: 'X-API-Key',
2603
- type: 'apiKey'
2604
- },
2605
- {
2606
- scheme: 'bearer',
2607
- type: 'http'
2608
- }
2609
- ],
2610
- url: '/v1/graphs/{graph_id}/tables',
2611
- ...options
2612
- });
2613
- };
1925
+ const listTables = (options) => (options.client ?? client_gen_1.client).get({
1926
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1927
+ url: '/v1/graphs/{graph_id}/tables',
1928
+ ...options
1929
+ });
2614
1930
  exports.listTables = listTables;
2615
1931
  /**
2616
1932
  * Query Staging Tables with SQL
1933
+ *
2617
1934
  * Execute SQL queries on DuckDB staging tables for data inspection and validation.
2618
1935
  *
2619
1936
  * Query raw staging data directly with SQL before ingestion into the graph database.
@@ -2671,29 +1988,19 @@ exports.listTables = listTables;
2671
1988
  * **Note:**
2672
1989
  * Staging table queries are included - no credit consumption
2673
1990
  */
2674
- const queryTables = (options) => {
2675
- return (options.client ?? client_gen_1.client).post({
2676
- security: [
2677
- {
2678
- name: 'X-API-Key',
2679
- type: 'apiKey'
2680
- },
2681
- {
2682
- scheme: 'bearer',
2683
- type: 'http'
2684
- }
2685
- ],
2686
- url: '/v1/graphs/{graph_id}/tables/query',
2687
- ...options,
2688
- headers: {
2689
- 'Content-Type': 'application/json',
2690
- ...options.headers
2691
- }
2692
- });
2693
- };
1991
+ const queryTables = (options) => (options.client ?? client_gen_1.client).post({
1992
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
1993
+ url: '/v1/graphs/{graph_id}/tables/query',
1994
+ ...options,
1995
+ headers: {
1996
+ 'Content-Type': 'application/json',
1997
+ ...options.headers
1998
+ }
1999
+ });
2694
2000
  exports.queryTables = queryTables;
2695
2001
  /**
2696
2002
  * Create View
2003
+ *
2697
2004
  * Generate financial report view from data source (dual-mode support).
2698
2005
  *
2699
2006
  * **Mode 1: Transaction Aggregation (generate_from_transactions)**
@@ -2711,29 +2018,19 @@ exports.queryTables = queryTables;
2711
2018
  * - Generate pivot table presentation
2712
2019
  * - Return consistent response format
2713
2020
  */
2714
- const createView = (options) => {
2715
- return (options.client ?? client_gen_1.client).post({
2716
- security: [
2717
- {
2718
- name: 'X-API-Key',
2719
- type: 'apiKey'
2720
- },
2721
- {
2722
- scheme: 'bearer',
2723
- type: 'http'
2724
- }
2725
- ],
2726
- url: '/v1/graphs/{graph_id}/views',
2727
- ...options,
2728
- headers: {
2729
- 'Content-Type': 'application/json',
2730
- ...options.headers
2731
- }
2732
- });
2733
- };
2021
+ const createView = (options) => (options.client ?? client_gen_1.client).post({
2022
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2023
+ url: '/v1/graphs/{graph_id}/views',
2024
+ ...options,
2025
+ headers: {
2026
+ 'Content-Type': 'application/json',
2027
+ ...options.headers
2028
+ }
2029
+ });
2734
2030
  exports.createView = createView;
2735
2031
  /**
2736
2032
  * Save View
2033
+ *
2737
2034
  * Save or update view as materialized report in the graph.
2738
2035
  *
2739
2036
  * Converts computed view results into persistent Report, Fact, and Structure nodes.
@@ -2764,29 +2061,19 @@ exports.createView = createView;
2764
2061
  * - parquet_export_prefix: Filename prefix for future exports
2765
2062
  * - All created facts and structures
2766
2063
  */
2767
- const saveView = (options) => {
2768
- return (options.client ?? client_gen_1.client).post({
2769
- security: [
2770
- {
2771
- name: 'X-API-Key',
2772
- type: 'apiKey'
2773
- },
2774
- {
2775
- scheme: 'bearer',
2776
- type: 'http'
2777
- }
2778
- ],
2779
- url: '/v1/graphs/{graph_id}/views/save',
2780
- ...options,
2781
- headers: {
2782
- 'Content-Type': 'application/json',
2783
- ...options.headers
2784
- }
2785
- });
2786
- };
2064
+ const saveView = (options) => (options.client ?? client_gen_1.client).post({
2065
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2066
+ url: '/v1/graphs/{graph_id}/views/save',
2067
+ ...options,
2068
+ headers: {
2069
+ 'Content-Type': 'application/json',
2070
+ ...options.headers
2071
+ }
2072
+ });
2787
2073
  exports.saveView = saveView;
2788
2074
  /**
2789
2075
  * Get Materialization Status
2076
+ *
2790
2077
  * Get current materialization status for the graph.
2791
2078
  *
2792
2079
  * Shows whether the graph is stale (DuckDB has changes not yet in graph database),
@@ -2812,25 +2099,15 @@ exports.saveView = saveView;
2812
2099
  * - Materialization clears staleness
2813
2100
  * - Status retrieval is included - no credit consumption
2814
2101
  */
2815
- const getMaterializationStatus = (options) => {
2816
- return (options.client ?? client_gen_1.client).get({
2817
- security: [
2818
- {
2819
- name: 'X-API-Key',
2820
- type: 'apiKey'
2821
- },
2822
- {
2823
- scheme: 'bearer',
2824
- type: 'http'
2825
- }
2826
- ],
2827
- url: '/v1/graphs/{graph_id}/materialize/status',
2828
- ...options
2829
- });
2830
- };
2102
+ const getMaterializationStatus = (options) => (options.client ?? client_gen_1.client).get({
2103
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2104
+ url: '/v1/graphs/{graph_id}/materialize/status',
2105
+ ...options
2106
+ });
2831
2107
  exports.getMaterializationStatus = getMaterializationStatus;
2832
2108
  /**
2833
2109
  * Materialize Graph from DuckDB
2110
+ *
2834
2111
  * Rebuild entire graph from DuckDB staging tables (materialized view pattern).
2835
2112
  *
2836
2113
  * This endpoint rebuilds the complete graph database from the current state of DuckDB
@@ -2883,29 +2160,19 @@ exports.getMaterializationStatus = getMaterializationStatus;
2883
2160
  * **Credits:**
2884
2161
  * Materialization is included - no credit consumption
2885
2162
  */
2886
- const materializeGraph = (options) => {
2887
- return (options.client ?? client_gen_1.client).post({
2888
- security: [
2889
- {
2890
- name: 'X-API-Key',
2891
- type: 'apiKey'
2892
- },
2893
- {
2894
- scheme: 'bearer',
2895
- type: 'http'
2896
- }
2897
- ],
2898
- url: '/v1/graphs/{graph_id}/materialize',
2899
- ...options,
2900
- headers: {
2901
- 'Content-Type': 'application/json',
2902
- ...options.headers
2903
- }
2904
- });
2905
- };
2163
+ const materializeGraph = (options) => (options.client ?? client_gen_1.client).post({
2164
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2165
+ url: '/v1/graphs/{graph_id}/materialize',
2166
+ ...options,
2167
+ headers: {
2168
+ 'Content-Type': 'application/json',
2169
+ ...options.headers
2170
+ }
2171
+ });
2906
2172
  exports.materializeGraph = materializeGraph;
2907
2173
  /**
2908
2174
  * List Files in Graph
2175
+ *
2909
2176
  * List all files in the graph with optional filtering.
2910
2177
  *
2911
2178
  * Get a complete inventory of files across all tables or filtered by table name,
@@ -2938,25 +2205,15 @@ exports.materializeGraph = materializeGraph;
2938
2205
  * - Use table_name parameter to filter by table
2939
2206
  * - File listing is included - no credit consumption
2940
2207
  */
2941
- const listFiles = (options) => {
2942
- return (options.client ?? client_gen_1.client).get({
2943
- security: [
2944
- {
2945
- name: 'X-API-Key',
2946
- type: 'apiKey'
2947
- },
2948
- {
2949
- scheme: 'bearer',
2950
- type: 'http'
2951
- }
2952
- ],
2953
- url: '/v1/graphs/{graph_id}/files',
2954
- ...options
2955
- });
2956
- };
2208
+ const listFiles = (options) => (options.client ?? client_gen_1.client).get({
2209
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2210
+ url: '/v1/graphs/{graph_id}/files',
2211
+ ...options
2212
+ });
2957
2213
  exports.listFiles = listFiles;
2958
2214
  /**
2959
2215
  * Create File Upload
2216
+ *
2960
2217
  * Generate presigned S3 URL for file upload.
2961
2218
  *
2962
2219
  * Initiate file upload by generating a secure, time-limited presigned S3 URL.
@@ -2985,29 +2242,19 @@ exports.listFiles = listFiles;
2985
2242
  * - Files are graph-scoped, independent resources
2986
2243
  * - Upload URL generation is included - no credit consumption
2987
2244
  */
2988
- const createFileUpload = (options) => {
2989
- return (options.client ?? client_gen_1.client).post({
2990
- security: [
2991
- {
2992
- name: 'X-API-Key',
2993
- type: 'apiKey'
2994
- },
2995
- {
2996
- scheme: 'bearer',
2997
- type: 'http'
2998
- }
2999
- ],
3000
- url: '/v1/graphs/{graph_id}/files',
3001
- ...options,
3002
- headers: {
3003
- 'Content-Type': 'application/json',
3004
- ...options.headers
3005
- }
3006
- });
3007
- };
2245
+ const createFileUpload = (options) => (options.client ?? client_gen_1.client).post({
2246
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2247
+ url: '/v1/graphs/{graph_id}/files',
2248
+ ...options,
2249
+ headers: {
2250
+ 'Content-Type': 'application/json',
2251
+ ...options.headers
2252
+ }
2253
+ });
3008
2254
  exports.createFileUpload = createFileUpload;
3009
2255
  /**
3010
2256
  * Delete File
2257
+ *
3011
2258
  * Delete file from all layers.
3012
2259
  *
3013
2260
  * Remove file from S3, database tracking, and optionally from DuckDB and graph.
@@ -3044,25 +2291,15 @@ exports.createFileUpload = createFileUpload;
3044
2291
  * - Graph rebuild recommended after cascade deletion
3045
2292
  * - File deletion is included - no credit consumption
3046
2293
  */
3047
- const deleteFile = (options) => {
3048
- return (options.client ?? client_gen_1.client).delete({
3049
- security: [
3050
- {
3051
- name: 'X-API-Key',
3052
- type: 'apiKey'
3053
- },
3054
- {
3055
- scheme: 'bearer',
3056
- type: 'http'
3057
- }
3058
- ],
3059
- url: '/v1/graphs/{graph_id}/files/{file_id}',
3060
- ...options
3061
- });
3062
- };
2294
+ const deleteFile = (options) => (options.client ?? client_gen_1.client).delete({
2295
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2296
+ url: '/v1/graphs/{graph_id}/files/{file_id}',
2297
+ ...options
2298
+ });
3063
2299
  exports.deleteFile = deleteFile;
3064
2300
  /**
3065
2301
  * Get File Information
2302
+ *
3066
2303
  * Get detailed information about a specific file.
3067
2304
  *
3068
2305
  * Retrieve comprehensive metadata for a single file by file_id, independent of
@@ -3099,25 +2336,15 @@ exports.deleteFile = deleteFile;
3099
2336
  * **Note:**
3100
2337
  * File info retrieval is included - no credit consumption
3101
2338
  */
3102
- const getFile = (options) => {
3103
- return (options.client ?? client_gen_1.client).get({
3104
- security: [
3105
- {
3106
- name: 'X-API-Key',
3107
- type: 'apiKey'
3108
- },
3109
- {
3110
- scheme: 'bearer',
3111
- type: 'http'
3112
- }
3113
- ],
3114
- url: '/v1/graphs/{graph_id}/files/{file_id}',
3115
- ...options
3116
- });
3117
- };
2339
+ const getFile = (options) => (options.client ?? client_gen_1.client).get({
2340
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2341
+ url: '/v1/graphs/{graph_id}/files/{file_id}',
2342
+ ...options
2343
+ });
3118
2344
  exports.getFile = getFile;
3119
2345
  /**
3120
2346
  * Update File Status
2347
+ *
3121
2348
  * Update file status and trigger processing.
3122
2349
  *
3123
2350
  * Update file status after upload completion. Setting status='uploaded' triggers
@@ -3145,29 +2372,19 @@ exports.getFile = getFile;
3145
2372
  * - DuckDB staging happens asynchronously
3146
2373
  * - Graph ingestion is optional (ingest_to_graph flag)
3147
2374
  */
3148
- const updateFile = (options) => {
3149
- return (options.client ?? client_gen_1.client).patch({
3150
- security: [
3151
- {
3152
- name: 'X-API-Key',
3153
- type: 'apiKey'
3154
- },
3155
- {
3156
- scheme: 'bearer',
3157
- type: 'http'
3158
- }
3159
- ],
3160
- url: '/v1/graphs/{graph_id}/files/{file_id}',
3161
- ...options,
3162
- headers: {
3163
- 'Content-Type': 'application/json',
3164
- ...options.headers
3165
- }
3166
- });
3167
- };
2375
+ const updateFile = (options) => (options.client ?? client_gen_1.client).patch({
2376
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2377
+ url: '/v1/graphs/{graph_id}/files/{file_id}',
2378
+ ...options,
2379
+ headers: {
2380
+ 'Content-Type': 'application/json',
2381
+ ...options.headers
2382
+ }
2383
+ });
3168
2384
  exports.updateFile = updateFile;
3169
2385
  /**
3170
2386
  * Get User Graphs and Repositories
2387
+ *
3171
2388
  * List all graph databases and shared repositories accessible to the current user.
3172
2389
  *
3173
2390
  * Returns a unified list of both user-created graphs and shared repositories (like SEC data)
@@ -3210,25 +2427,15 @@ exports.updateFile = updateFile;
3210
2427
  * **Note:**
3211
2428
  * Graph listing is included - no credit consumption required.
3212
2429
  */
3213
- const getGraphs = (options) => {
3214
- return (options?.client ?? client_gen_1.client).get({
3215
- security: [
3216
- {
3217
- name: 'X-API-Key',
3218
- type: 'apiKey'
3219
- },
3220
- {
3221
- scheme: 'bearer',
3222
- type: 'http'
3223
- }
3224
- ],
3225
- url: '/v1/graphs',
3226
- ...options
3227
- });
3228
- };
2430
+ const getGraphs = (options) => (options?.client ?? client_gen_1.client).get({
2431
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2432
+ url: '/v1/graphs',
2433
+ ...options
2434
+ });
3229
2435
  exports.getGraphs = getGraphs;
3230
2436
  /**
3231
2437
  * Create New Graph Database
2438
+ *
3232
2439
  * Create a new graph database with specified schema and optionally an initial entity.
3233
2440
  *
3234
2441
  * This endpoint starts an asynchronous graph creation operation and returns
@@ -3296,29 +2503,19 @@ exports.getGraphs = getGraphs;
3296
2503
  * - `_links.stream`: SSE endpoint for real-time updates
3297
2504
  * - `_links.status`: Point-in-time status check endpoint
3298
2505
  */
3299
- const createGraph = (options) => {
3300
- return (options.client ?? client_gen_1.client).post({
3301
- security: [
3302
- {
3303
- name: 'X-API-Key',
3304
- type: 'apiKey'
3305
- },
3306
- {
3307
- scheme: 'bearer',
3308
- type: 'http'
3309
- }
3310
- ],
3311
- url: '/v1/graphs',
3312
- ...options,
3313
- headers: {
3314
- 'Content-Type': 'application/json',
3315
- ...options.headers
3316
- }
3317
- });
3318
- };
2506
+ const createGraph = (options) => (options.client ?? client_gen_1.client).post({
2507
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2508
+ url: '/v1/graphs',
2509
+ ...options,
2510
+ headers: {
2511
+ 'Content-Type': 'application/json',
2512
+ ...options.headers
2513
+ }
2514
+ });
3319
2515
  exports.createGraph = createGraph;
3320
2516
  /**
3321
2517
  * Get Available Schema Extensions
2518
+ *
3322
2519
  * List all available schema extensions for graph creation.
3323
2520
  *
3324
2521
  * Schema extensions provide pre-built industry-specific data models that extend
@@ -3348,25 +2545,15 @@ exports.createGraph = createGraph;
3348
2545
  * **Note:**
3349
2546
  * Extension listing is included - no credit consumption required.
3350
2547
  */
3351
- const getAvailableExtensions = (options) => {
3352
- return (options?.client ?? client_gen_1.client).get({
3353
- security: [
3354
- {
3355
- name: 'X-API-Key',
3356
- type: 'apiKey'
3357
- },
3358
- {
3359
- scheme: 'bearer',
3360
- type: 'http'
3361
- }
3362
- ],
3363
- url: '/v1/graphs/extensions',
3364
- ...options
3365
- });
3366
- };
2548
+ const getAvailableExtensions = (options) => (options?.client ?? client_gen_1.client).get({
2549
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2550
+ url: '/v1/graphs/extensions',
2551
+ ...options
2552
+ });
3367
2553
  exports.getAvailableExtensions = getAvailableExtensions;
3368
2554
  /**
3369
2555
  * Get Available Graph Tiers
2556
+ *
3370
2557
  * List all available graph database tier configurations.
3371
2558
  *
3372
2559
  * This endpoint provides comprehensive technical specifications for each available
@@ -3395,25 +2582,15 @@ exports.getAvailableExtensions = getAvailableExtensions;
3395
2582
  * **Note:**
3396
2583
  * Tier listing is included - no credit consumption required.
3397
2584
  */
3398
- const getAvailableGraphTiers = (options) => {
3399
- return (options?.client ?? client_gen_1.client).get({
3400
- security: [
3401
- {
3402
- name: 'X-API-Key',
3403
- type: 'apiKey'
3404
- },
3405
- {
3406
- scheme: 'bearer',
3407
- type: 'http'
3408
- }
3409
- ],
3410
- url: '/v1/graphs/tiers',
3411
- ...options
3412
- });
3413
- };
2585
+ const getAvailableGraphTiers = (options) => (options?.client ?? client_gen_1.client).get({
2586
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2587
+ url: '/v1/graphs/tiers',
2588
+ ...options
2589
+ });
3414
2590
  exports.getAvailableGraphTiers = getAvailableGraphTiers;
3415
2591
  /**
3416
2592
  * Select Graph
2593
+ *
3417
2594
  * Select a specific graph as the active workspace for the user.
3418
2595
  *
3419
2596
  * The selected graph becomes the default context for operations in client applications
@@ -3444,25 +2621,15 @@ exports.getAvailableGraphTiers = getAvailableGraphTiers;
3444
2621
  * **Note:**
3445
2622
  * Graph selection is included - no credit consumption required.
3446
2623
  */
3447
- const selectGraph = (options) => {
3448
- return (options.client ?? client_gen_1.client).post({
3449
- security: [
3450
- {
3451
- name: 'X-API-Key',
3452
- type: 'apiKey'
3453
- },
3454
- {
3455
- scheme: 'bearer',
3456
- type: 'http'
3457
- }
3458
- ],
3459
- url: '/v1/graphs/{graph_id}/select',
3460
- ...options
3461
- });
3462
- };
2624
+ const selectGraph = (options) => (options.client ?? client_gen_1.client).post({
2625
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2626
+ url: '/v1/graphs/{graph_id}/select',
2627
+ ...options
2628
+ });
3463
2629
  exports.selectGraph = selectGraph;
3464
2630
  /**
3465
2631
  * Get Service Offerings
2632
+ *
3466
2633
  * Get comprehensive information about all subscription offerings.
3467
2634
  *
3468
2635
  * This endpoint provides complete information about both graph database subscriptions
@@ -3486,15 +2653,11 @@ exports.selectGraph = selectGraph;
3486
2653
  *
3487
2654
  * No authentication required - this is public service information.
3488
2655
  */
3489
- const getServiceOfferings = (options) => {
3490
- return (options?.client ?? client_gen_1.client).get({
3491
- url: '/v1/offering',
3492
- ...options
3493
- });
3494
- };
2656
+ const getServiceOfferings = (options) => (options?.client ?? client_gen_1.client).get({ url: '/v1/offering', ...options });
3495
2657
  exports.getServiceOfferings = getServiceOfferings;
3496
2658
  /**
3497
2659
  * Stream Operation Events
2660
+ *
3498
2661
  * Stream real-time events for an operation using Server-Sent Events (SSE).
3499
2662
  *
3500
2663
  * This endpoint provides real-time monitoring for all non-immediate operations including:
@@ -3543,25 +2706,15 @@ exports.getServiceOfferings = getServiceOfferings;
3543
2706
  *
3544
2707
  * **No credits are consumed for SSE connections.**
3545
2708
  */
3546
- const streamOperationEvents = (options) => {
3547
- return (options.client ?? client_gen_1.client).get({
3548
- security: [
3549
- {
3550
- name: 'X-API-Key',
3551
- type: 'apiKey'
3552
- },
3553
- {
3554
- scheme: 'bearer',
3555
- type: 'http'
3556
- }
3557
- ],
3558
- url: '/v1/operations/{operation_id}/stream',
3559
- ...options
3560
- });
3561
- };
2709
+ const streamOperationEvents = (options) => (options.client ?? client_gen_1.client).get({
2710
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2711
+ url: '/v1/operations/{operation_id}/stream',
2712
+ ...options
2713
+ });
3562
2714
  exports.streamOperationEvents = streamOperationEvents;
3563
2715
  /**
3564
2716
  * Get Operation Status
2717
+ *
3565
2718
  * Get current status and metadata for an operation.
3566
2719
  *
3567
2720
  * Returns detailed information including:
@@ -3576,25 +2729,15 @@ exports.streamOperationEvents = streamOperationEvents;
3576
2729
  *
3577
2730
  * **No credits are consumed for status checks.**
3578
2731
  */
3579
- const getOperationStatus = (options) => {
3580
- return (options.client ?? client_gen_1.client).get({
3581
- security: [
3582
- {
3583
- name: 'X-API-Key',
3584
- type: 'apiKey'
3585
- },
3586
- {
3587
- scheme: 'bearer',
3588
- type: 'http'
3589
- }
3590
- ],
3591
- url: '/v1/operations/{operation_id}/status',
3592
- ...options
3593
- });
3594
- };
2732
+ const getOperationStatus = (options) => (options.client ?? client_gen_1.client).get({
2733
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2734
+ url: '/v1/operations/{operation_id}/status',
2735
+ ...options
2736
+ });
3595
2737
  exports.getOperationStatus = getOperationStatus;
3596
2738
  /**
3597
2739
  * Cancel Operation
2740
+ *
3598
2741
  * Cancel a pending or running operation.
3599
2742
  *
3600
2743
  * Cancels the specified operation if it's still in progress. Once cancelled,
@@ -3605,25 +2748,15 @@ exports.getOperationStatus = getOperationStatus;
3605
2748
  *
3606
2749
  * **No credits are consumed for cancellation requests.**
3607
2750
  */
3608
- const cancelOperation = (options) => {
3609
- return (options.client ?? client_gen_1.client).delete({
3610
- security: [
3611
- {
3612
- name: 'X-API-Key',
3613
- type: 'apiKey'
3614
- },
3615
- {
3616
- scheme: 'bearer',
3617
- type: 'http'
3618
- }
3619
- ],
3620
- url: '/v1/operations/{operation_id}',
3621
- ...options
3622
- });
3623
- };
2751
+ const cancelOperation = (options) => (options.client ?? client_gen_1.client).delete({
2752
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2753
+ url: '/v1/operations/{operation_id}',
2754
+ ...options
2755
+ });
3624
2756
  exports.cancelOperation = cancelOperation;
3625
2757
  /**
3626
2758
  * Get Organization Customer Info
2759
+ *
3627
2760
  * Get billing customer information for an organization including payment methods on file.
3628
2761
  *
3629
2762
  * Returns customer details, payment methods, and whether invoice billing is enabled.
@@ -3632,25 +2765,15 @@ exports.cancelOperation = cancelOperation;
3632
2765
  * - User must be a member of the organization
3633
2766
  * - Sensitive payment details are only visible to owners
3634
2767
  */
3635
- const getOrgBillingCustomer = (options) => {
3636
- return (options.client ?? client_gen_1.client).get({
3637
- security: [
3638
- {
3639
- name: 'X-API-Key',
3640
- type: 'apiKey'
3641
- },
3642
- {
3643
- scheme: 'bearer',
3644
- type: 'http'
3645
- }
3646
- ],
3647
- url: '/v1/billing/customer/{org_id}',
3648
- ...options
3649
- });
3650
- };
2768
+ const getOrgBillingCustomer = (options) => (options.client ?? client_gen_1.client).get({
2769
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2770
+ url: '/v1/billing/customer/{org_id}',
2771
+ ...options
2772
+ });
3651
2773
  exports.getOrgBillingCustomer = getOrgBillingCustomer;
3652
2774
  /**
3653
2775
  * Create Customer Portal Session
2776
+ *
3654
2777
  * Create a Stripe Customer Portal session for managing payment methods.
3655
2778
  *
3656
2779
  * The portal allows users to:
@@ -3665,25 +2788,15 @@ exports.getOrgBillingCustomer = getOrgBillingCustomer;
3665
2788
  * - User must be an OWNER of the organization
3666
2789
  * - Organization must have a Stripe customer ID (i.e., has gone through checkout at least once)
3667
2790
  */
3668
- const createPortalSession = (options) => {
3669
- return (options.client ?? client_gen_1.client).post({
3670
- security: [
3671
- {
3672
- name: 'X-API-Key',
3673
- type: 'apiKey'
3674
- },
3675
- {
3676
- scheme: 'bearer',
3677
- type: 'http'
3678
- }
3679
- ],
3680
- url: '/v1/billing/customer/{org_id}/portal',
3681
- ...options
3682
- });
3683
- };
2791
+ const createPortalSession = (options) => (options.client ?? client_gen_1.client).post({
2792
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2793
+ url: '/v1/billing/customer/{org_id}/portal',
2794
+ ...options
2795
+ });
3684
2796
  exports.createPortalSession = createPortalSession;
3685
2797
  /**
3686
2798
  * List Organization Subscriptions
2799
+ *
3687
2800
  * List all active and past subscriptions for an organization.
3688
2801
  *
3689
2802
  * Includes both graph and repository subscriptions with their status, pricing, and billing information.
@@ -3691,49 +2804,29 @@ exports.createPortalSession = createPortalSession;
3691
2804
  * **Requirements:**
3692
2805
  * - User must be a member of the organization
3693
2806
  */
3694
- const listOrgSubscriptions = (options) => {
3695
- return (options.client ?? client_gen_1.client).get({
3696
- security: [
3697
- {
3698
- name: 'X-API-Key',
3699
- type: 'apiKey'
3700
- },
3701
- {
3702
- scheme: 'bearer',
3703
- type: 'http'
3704
- }
3705
- ],
3706
- url: '/v1/billing/subscriptions/{org_id}',
3707
- ...options
3708
- });
3709
- };
2807
+ const listOrgSubscriptions = (options) => (options.client ?? client_gen_1.client).get({
2808
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2809
+ url: '/v1/billing/subscriptions/{org_id}',
2810
+ ...options
2811
+ });
3710
2812
  exports.listOrgSubscriptions = listOrgSubscriptions;
3711
2813
  /**
3712
2814
  * Get Organization Subscription Details
2815
+ *
3713
2816
  * Get detailed information about a specific subscription.
3714
2817
  *
3715
2818
  * **Requirements:**
3716
2819
  * - User must be a member of the organization
3717
2820
  */
3718
- const getOrgSubscription = (options) => {
3719
- return (options.client ?? client_gen_1.client).get({
3720
- security: [
3721
- {
3722
- name: 'X-API-Key',
3723
- type: 'apiKey'
3724
- },
3725
- {
3726
- scheme: 'bearer',
3727
- type: 'http'
3728
- }
3729
- ],
3730
- url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}',
3731
- ...options
3732
- });
3733
- };
2821
+ const getOrgSubscription = (options) => (options.client ?? client_gen_1.client).get({
2822
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2823
+ url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}',
2824
+ ...options
2825
+ });
3734
2826
  exports.getOrgSubscription = getOrgSubscription;
3735
2827
  /**
3736
2828
  * Cancel Organization Subscription
2829
+ *
3737
2830
  * Cancel an organization subscription.
3738
2831
  *
3739
2832
  * The subscription will remain active until the end of the current billing period.
@@ -3741,25 +2834,15 @@ exports.getOrgSubscription = getOrgSubscription;
3741
2834
  * **Requirements:**
3742
2835
  * - User must be an OWNER of the organization
3743
2836
  */
3744
- const cancelOrgSubscription = (options) => {
3745
- return (options.client ?? client_gen_1.client).post({
3746
- security: [
3747
- {
3748
- name: 'X-API-Key',
3749
- type: 'apiKey'
3750
- },
3751
- {
3752
- scheme: 'bearer',
3753
- type: 'http'
3754
- }
3755
- ],
3756
- url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}/cancel',
3757
- ...options
3758
- });
3759
- };
2837
+ const cancelOrgSubscription = (options) => (options.client ?? client_gen_1.client).post({
2838
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2839
+ url: '/v1/billing/subscriptions/{org_id}/subscription/{subscription_id}/cancel',
2840
+ ...options
2841
+ });
3760
2842
  exports.cancelOrgSubscription = cancelOrgSubscription;
3761
2843
  /**
3762
2844
  * List Organization Invoices
2845
+ *
3763
2846
  * List payment history and invoices for an organization.
3764
2847
  *
3765
2848
  * Returns past invoices with payment status, amounts, and line items.
@@ -3768,25 +2851,15 @@ exports.cancelOrgSubscription = cancelOrgSubscription;
3768
2851
  * - User must be a member of the organization
3769
2852
  * - Full invoice details are only visible to owners and admins
3770
2853
  */
3771
- const listOrgInvoices = (options) => {
3772
- return (options.client ?? client_gen_1.client).get({
3773
- security: [
3774
- {
3775
- name: 'X-API-Key',
3776
- type: 'apiKey'
3777
- },
3778
- {
3779
- scheme: 'bearer',
3780
- type: 'http'
3781
- }
3782
- ],
3783
- url: '/v1/billing/invoices/{org_id}',
3784
- ...options
3785
- });
3786
- };
2854
+ const listOrgInvoices = (options) => (options.client ?? client_gen_1.client).get({
2855
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2856
+ url: '/v1/billing/invoices/{org_id}',
2857
+ ...options
2858
+ });
3787
2859
  exports.listOrgInvoices = listOrgInvoices;
3788
2860
  /**
3789
2861
  * Get Organization Upcoming Invoice
2862
+ *
3790
2863
  * Get preview of the next invoice for an organization.
3791
2864
  *
3792
2865
  * Returns estimated charges for the next billing period.
@@ -3795,25 +2868,15 @@ exports.listOrgInvoices = listOrgInvoices;
3795
2868
  * - User must be a member of the organization
3796
2869
  * - Full invoice details are only visible to owners and admins
3797
2870
  */
3798
- const getOrgUpcomingInvoice = (options) => {
3799
- return (options.client ?? client_gen_1.client).get({
3800
- security: [
3801
- {
3802
- name: 'X-API-Key',
3803
- type: 'apiKey'
3804
- },
3805
- {
3806
- scheme: 'bearer',
3807
- type: 'http'
3808
- }
3809
- ],
3810
- url: '/v1/billing/invoices/{org_id}/upcoming',
3811
- ...options
3812
- });
3813
- };
2871
+ const getOrgUpcomingInvoice = (options) => (options.client ?? client_gen_1.client).get({
2872
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2873
+ url: '/v1/billing/invoices/{org_id}/upcoming',
2874
+ ...options
2875
+ });
3814
2876
  exports.getOrgUpcomingInvoice = getOrgUpcomingInvoice;
3815
2877
  /**
3816
2878
  * Create Payment Checkout Session
2879
+ *
3817
2880
  * Create a Stripe checkout session for collecting payment method.
3818
2881
  *
3819
2882
  * This endpoint is used when an organization owner needs to add a payment method before
@@ -3832,29 +2895,19 @@ exports.getOrgUpcomingInvoice = getOrgUpcomingInvoice;
3832
2895
  * - User must be an OWNER of their organization
3833
2896
  * - Enterprise customers (with invoice_billing_enabled) should not call this endpoint.
3834
2897
  */
3835
- const createCheckoutSession = (options) => {
3836
- return (options.client ?? client_gen_1.client).post({
3837
- security: [
3838
- {
3839
- name: 'X-API-Key',
3840
- type: 'apiKey'
3841
- },
3842
- {
3843
- scheme: 'bearer',
3844
- type: 'http'
3845
- }
3846
- ],
3847
- url: '/v1/billing/checkout',
3848
- ...options,
3849
- headers: {
3850
- 'Content-Type': 'application/json',
3851
- ...options.headers
3852
- }
3853
- });
3854
- };
2898
+ const createCheckoutSession = (options) => (options.client ?? client_gen_1.client).post({
2899
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2900
+ url: '/v1/billing/checkout',
2901
+ ...options,
2902
+ headers: {
2903
+ 'Content-Type': 'application/json',
2904
+ ...options.headers
2905
+ }
2906
+ });
3855
2907
  exports.createCheckoutSession = createCheckoutSession;
3856
2908
  /**
3857
2909
  * Get Checkout Session Status
2910
+ *
3858
2911
  * Poll the status of a checkout session.
3859
2912
  *
3860
2913
  * Frontend should poll this endpoint after user returns from Stripe Checkout
@@ -3870,20 +2923,9 @@ exports.createCheckoutSession = createCheckoutSession;
3870
2923
  * - For graphs: `resource_id` will be the graph_id, and `operation_id` can be used to monitor SSE progress
3871
2924
  * - For repositories: `resource_id` will be the repository name and access is immediately available
3872
2925
  */
3873
- const getCheckoutStatus = (options) => {
3874
- return (options.client ?? client_gen_1.client).get({
3875
- security: [
3876
- {
3877
- name: 'X-API-Key',
3878
- type: 'apiKey'
3879
- },
3880
- {
3881
- scheme: 'bearer',
3882
- type: 'http'
3883
- }
3884
- ],
3885
- url: '/v1/billing/checkout/{session_id}/status',
3886
- ...options
3887
- });
3888
- };
2926
+ const getCheckoutStatus = (options) => (options.client ?? client_gen_1.client).get({
2927
+ security: [{ name: 'X-API-Key', type: 'apiKey' }, { scheme: 'bearer', type: 'http' }],
2928
+ url: '/v1/billing/checkout/{session_id}/status',
2929
+ ...options
2930
+ });
3889
2931
  exports.getCheckoutStatus = getCheckoutStatus;