@heymantle/core-api-client 0.2.0 → 0.2.2
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.
- package/README.md +92 -1752
- package/dist/index.d.mts +12907 -10579
- package/dist/index.d.ts +12907 -10579
- package/dist/index.js +604 -752
- package/dist/index.mjs +604 -752
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -186,679 +186,601 @@ var BaseResource = class {
|
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
|
|
189
|
-
// src/resources/
|
|
190
|
-
var
|
|
189
|
+
// src/resources/affiliate-commissions.ts
|
|
190
|
+
var AffiliateCommissionsResource = class extends BaseResource {
|
|
191
191
|
async list(params) {
|
|
192
|
-
return this.unwrap(this.api.GET("/
|
|
193
|
-
}
|
|
194
|
-
async get(customerId) {
|
|
195
|
-
return this.unwrap(this.api.GET("/customers/{id}", { params: { path: { id: customerId } } }));
|
|
196
|
-
}
|
|
197
|
-
async create(data) {
|
|
198
|
-
return this.unwrap(this.api.POST("/customers", { body: data }));
|
|
199
|
-
}
|
|
200
|
-
async update(customerId, data) {
|
|
201
|
-
return this.unwrap(this.api.PUT("/customers/{id}", { params: { path: { id: customerId } }, body: data }));
|
|
202
|
-
}
|
|
203
|
-
async addTags(customerId, tags) {
|
|
204
|
-
return this.unwrap(this.api.POST("/customers/{id}/addTags", { params: { path: { id: customerId } }, body: { tags } }));
|
|
205
|
-
}
|
|
206
|
-
async removeTags(customerId, tags) {
|
|
207
|
-
return this.unwrap(this.api.POST("/customers/{id}/removeTags", { params: { path: { id: customerId } }, body: { tags } }));
|
|
208
|
-
}
|
|
209
|
-
async getTimeline(customerId, params) {
|
|
210
|
-
return this.unwrap(this.api.GET("/customers/{id}/timeline", { params: { path: { id: customerId }, query: params } }));
|
|
211
|
-
}
|
|
212
|
-
async listAccountOwners(customerId) {
|
|
213
|
-
return this.unwrap(this.api.GET("/customers/{id}/account_owners", { params: { path: { id: customerId } } }));
|
|
214
|
-
}
|
|
215
|
-
async addAccountOwner(customerId, data) {
|
|
216
|
-
return this.unwrap(this.api.POST("/customers/{id}/account_owners", { params: { path: { id: customerId } }, body: data }));
|
|
217
|
-
}
|
|
218
|
-
async removeAccountOwner(customerId, ownerId) {
|
|
219
|
-
return this.unwrap(this.api.DELETE("/customers/{id}/account_owners/{ownerId}", { params: { path: { id: customerId, ownerId } } }));
|
|
220
|
-
}
|
|
221
|
-
async listCustomFields(params) {
|
|
222
|
-
return this.unwrap(this.api.GET("/customers/custom_fields", { params: { query: params } }));
|
|
223
|
-
}
|
|
224
|
-
async createCustomField(data) {
|
|
225
|
-
return this.unwrap(this.api.POST("/customers/custom_fields", { body: data }));
|
|
226
|
-
}
|
|
227
|
-
async getCustomField(fieldId) {
|
|
228
|
-
return this.unwrap(this.api.GET("/customers/custom_fields/{id}", { params: { path: { id: fieldId } } }));
|
|
229
|
-
}
|
|
230
|
-
async updateCustomField(fieldId, data) {
|
|
231
|
-
return this.unwrap(this.api.PUT("/customers/custom_fields/{id}", { params: { path: { id: fieldId } }, body: data }));
|
|
192
|
+
return this.unwrap(this.api.GET("/affiliate_commissions", { params: { query: params } }));
|
|
232
193
|
}
|
|
233
|
-
async
|
|
234
|
-
return this.unwrap(this.api.
|
|
194
|
+
async get(commissionId) {
|
|
195
|
+
return this.unwrap(this.api.GET("/affiliate_commissions/{id}", { params: { path: { id: commissionId } } }));
|
|
235
196
|
}
|
|
236
197
|
};
|
|
237
198
|
|
|
238
|
-
// src/resources/
|
|
239
|
-
var
|
|
199
|
+
// src/resources/affiliate-payouts.ts
|
|
200
|
+
var AffiliatePayoutsResource = class extends BaseResource {
|
|
240
201
|
async list(params) {
|
|
241
|
-
return this.unwrap(this.api.GET("/
|
|
242
|
-
}
|
|
243
|
-
async get(contactId) {
|
|
244
|
-
return this.unwrap(this.api.GET("/contacts/{id}", { params: { path: { id: contactId } } }));
|
|
202
|
+
return this.unwrap(this.api.GET("/affiliate_payouts", { params: { query: params } }));
|
|
245
203
|
}
|
|
246
|
-
async
|
|
247
|
-
return this.unwrap(this.api.
|
|
204
|
+
async get(payoutId) {
|
|
205
|
+
return this.unwrap(this.api.GET("/affiliate_payouts/{id}", { params: { path: { id: payoutId } } }));
|
|
248
206
|
}
|
|
249
|
-
|
|
250
|
-
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
// src/resources/affiliate-programs.ts
|
|
210
|
+
var AffiliateProgramsResource = class extends BaseResource {
|
|
211
|
+
async list(params) {
|
|
212
|
+
return this.unwrap(this.api.GET("/affiliate_programs", { params: { query: params } }));
|
|
251
213
|
}
|
|
252
|
-
async
|
|
253
|
-
return this.unwrap(this.api.
|
|
214
|
+
async get(programId) {
|
|
215
|
+
return this.unwrap(this.api.GET("/affiliate_programs/{id}", { params: { path: { id: programId } } }));
|
|
254
216
|
}
|
|
255
|
-
|
|
256
|
-
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
// src/resources/affiliate-referrals.ts
|
|
220
|
+
var AffiliateReferralsResource = class extends BaseResource {
|
|
221
|
+
async list(params) {
|
|
222
|
+
return this.unwrap(this.api.GET("/affiliate_referrals", { params: { query: params } }));
|
|
257
223
|
}
|
|
258
|
-
async
|
|
259
|
-
return this.unwrap(this.api.
|
|
224
|
+
async get(referralId) {
|
|
225
|
+
return this.unwrap(this.api.GET("/affiliate_referrals/{id}", { params: { path: { id: referralId } } }));
|
|
260
226
|
}
|
|
261
227
|
};
|
|
262
228
|
|
|
263
|
-
// src/resources/
|
|
264
|
-
var
|
|
265
|
-
/**
|
|
266
|
-
* List subscriptions with optional filters and pagination
|
|
267
|
-
*/
|
|
229
|
+
// src/resources/affiliates.ts
|
|
230
|
+
var AffiliatesResource = class extends BaseResource {
|
|
268
231
|
async list(params) {
|
|
269
|
-
return this.unwrap(this.api.GET("/
|
|
232
|
+
return this.unwrap(this.api.GET("/affiliates", { params: { query: params } }));
|
|
270
233
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
*/
|
|
274
|
-
async get(subscriptionId) {
|
|
275
|
-
return this.unwrap(this.api.GET("/subscriptions/{id}", { params: { path: { id: subscriptionId } } }));
|
|
234
|
+
async get(affiliateId) {
|
|
235
|
+
return this.unwrap(this.api.GET("/affiliates/{id}", { params: { path: { id: affiliateId } } }));
|
|
276
236
|
}
|
|
277
237
|
};
|
|
278
238
|
|
|
279
|
-
// src/resources/
|
|
280
|
-
var
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
async
|
|
285
|
-
return this.unwrap(this.api.GET("/
|
|
239
|
+
// src/resources/ai-agent-runs.ts
|
|
240
|
+
var AiAgentRunsResource = class extends BaseResource {
|
|
241
|
+
async create(agentId, data) {
|
|
242
|
+
return this.unwrap(this.api.POST("/ai/agents/{agentId}/runs", { params: { path: { agentId } }, body: data }));
|
|
243
|
+
}
|
|
244
|
+
async get(agentId, runId) {
|
|
245
|
+
return this.unwrap(this.api.GET("/ai/agents/{agentId}/runs/{runId}", { params: { path: { agentId, runId } } }));
|
|
286
246
|
}
|
|
287
247
|
/**
|
|
288
|
-
* Create
|
|
289
|
-
*
|
|
290
|
-
* @example
|
|
291
|
-
* // Single event
|
|
292
|
-
* await client.usageEvents.create({
|
|
293
|
-
* eventName: 'api_call',
|
|
294
|
-
* customerId: 'cust_123',
|
|
295
|
-
* appId: 'app_456',
|
|
296
|
-
* properties: { endpoint: '/users' },
|
|
297
|
-
* });
|
|
298
|
-
*
|
|
299
|
-
* @example
|
|
300
|
-
* // Multiple events
|
|
301
|
-
* await client.usageEvents.create({
|
|
302
|
-
* events: [
|
|
303
|
-
* { eventName: 'api_call', customerId: 'cust_123', appId: 'app_456' },
|
|
304
|
-
* { eventName: 'api_call', customerId: 'cust_789', appId: 'app_456' },
|
|
305
|
-
* ],
|
|
306
|
-
* });
|
|
248
|
+
* Create an agent run and poll until it reaches a terminal status.
|
|
307
249
|
*/
|
|
308
|
-
async
|
|
309
|
-
|
|
250
|
+
async createAndWait(agentId, data, options) {
|
|
251
|
+
const { timeout = 3e5, pollInterval = 2e3 } = options ?? {};
|
|
252
|
+
const result = await this.create(agentId, data);
|
|
253
|
+
const run = result.run;
|
|
254
|
+
if (!run?.id) throw new Error("Agent run ID not returned");
|
|
255
|
+
const start = Date.now();
|
|
256
|
+
while (Date.now() - start < timeout) {
|
|
257
|
+
const response = await this.get(agentId, run.id);
|
|
258
|
+
const agentRun = response.run;
|
|
259
|
+
if (agentRun.status === "completed" || agentRun.status === "error") return agentRun;
|
|
260
|
+
await new Promise((resolve) => setTimeout(resolve, pollInterval));
|
|
261
|
+
}
|
|
262
|
+
throw new Error(`Agent run timed out after ${timeout}ms`);
|
|
310
263
|
}
|
|
311
264
|
};
|
|
312
265
|
|
|
313
266
|
// src/resources/apps.ts
|
|
314
267
|
var AppsResource = class extends BaseResource {
|
|
315
|
-
// Apps
|
|
316
268
|
async list(params) {
|
|
317
269
|
return this.unwrap(this.api.GET("/apps", { params: { query: params } }));
|
|
318
270
|
}
|
|
271
|
+
async analyze(appId, data) {
|
|
272
|
+
return this.unwrap(this.api.POST("/apps/{id}/analyze", { params: { path: { id: appId } }, body: data }));
|
|
273
|
+
}
|
|
319
274
|
async get(appId) {
|
|
320
275
|
return this.unwrap(this.api.GET("/apps/{id}", { params: { path: { id: appId } } }));
|
|
321
276
|
}
|
|
322
|
-
// Plans
|
|
323
|
-
async listPlans(appId, params) {
|
|
324
|
-
return this.unwrap(this.api.GET("/apps/{id}/plans", { params: { path: { id: appId }, query: params } }));
|
|
325
|
-
}
|
|
326
277
|
async getPlan(appId, planId) {
|
|
327
278
|
return this.unwrap(this.api.GET("/apps/{id}/plans/{planId}", { params: { path: { id: appId, planId } } }));
|
|
328
279
|
}
|
|
329
|
-
async createPlan(appId, data) {
|
|
330
|
-
return this.unwrap(this.api.POST("/apps/{id}/plans", { params: { path: { id: appId } }, body: data }));
|
|
331
|
-
}
|
|
332
280
|
async updatePlan(appId, planId, data) {
|
|
333
281
|
return this.unwrap(this.api.PUT("/apps/{id}/plans/{planId}", { params: { path: { id: appId, planId } }, body: data }));
|
|
334
282
|
}
|
|
283
|
+
async getAppEvent(appId, appEventId) {
|
|
284
|
+
return this.unwrap(this.api.GET("/apps/{id}/app_events/{appEventId}", { params: { path: { id: appId, appEventId } } }));
|
|
285
|
+
}
|
|
286
|
+
async listAppEvents(appId, params) {
|
|
287
|
+
return this.unwrap(this.api.GET("/apps/{id}/app_events", { params: { path: { id: appId }, query: params } }));
|
|
288
|
+
}
|
|
289
|
+
async createAppEvent(appId, data) {
|
|
290
|
+
return this.unwrap(this.api.POST("/apps/{id}/app_events", { params: { path: { id: appId } }, body: data }));
|
|
291
|
+
}
|
|
292
|
+
async getChecklist(appId, checklistId) {
|
|
293
|
+
return this.unwrap(this.api.GET("/apps/{appId}/checklists/{checklistId}", { params: { path: { appId, checklistId } } }));
|
|
294
|
+
}
|
|
295
|
+
async updateChecklist(appId, checklistId, data) {
|
|
296
|
+
return this.unwrap(this.api.PUT("/apps/{appId}/checklists/{checklistId}", { params: { path: { appId, checklistId } }, body: data }));
|
|
297
|
+
}
|
|
298
|
+
async deleteChecklist(appId, checklistId) {
|
|
299
|
+
return this.unwrap(this.api.DELETE("/apps/{appId}/checklists/{checklistId}", { params: { path: { appId, checklistId } } }));
|
|
300
|
+
}
|
|
301
|
+
async listChecklists(appId) {
|
|
302
|
+
return this.unwrap(this.api.GET("/apps/{appId}/checklists", { params: { path: { appId } } }));
|
|
303
|
+
}
|
|
304
|
+
async createChecklist(appId, data) {
|
|
305
|
+
return this.unwrap(this.api.POST("/apps/{appId}/checklists", { params: { path: { appId } }, body: data }));
|
|
306
|
+
}
|
|
335
307
|
async archivePlan(appId, planId) {
|
|
336
308
|
return this.unwrap(this.api.PUT("/apps/{id}/plans/{planId}/archive", { params: { path: { id: appId, planId } } }));
|
|
337
309
|
}
|
|
338
310
|
async unarchivePlan(appId, planId) {
|
|
339
311
|
return this.unwrap(this.api.PUT("/apps/{id}/plans/{planId}/unarchive", { params: { path: { id: appId, planId } } }));
|
|
340
312
|
}
|
|
341
|
-
// Features
|
|
342
|
-
async listFeatures(appId) {
|
|
343
|
-
return this.unwrap(this.api.GET("/apps/{appId}/plans/features", { params: { path: { appId } } }));
|
|
344
|
-
}
|
|
345
313
|
async getFeature(appId, featureId) {
|
|
346
314
|
return this.unwrap(this.api.GET("/apps/{appId}/plans/features/{featureId}", { params: { path: { appId, featureId } } }));
|
|
347
315
|
}
|
|
348
|
-
async createFeature(appId, data) {
|
|
349
|
-
return this.unwrap(this.api.POST("/apps/{appId}/plans/features", { params: { path: { appId } }, body: data }));
|
|
350
|
-
}
|
|
351
316
|
async updateFeature(appId, featureId, data) {
|
|
352
317
|
return this.unwrap(this.api.PUT("/apps/{appId}/plans/features/{featureId}", { params: { path: { appId, featureId } }, body: data }));
|
|
353
318
|
}
|
|
354
319
|
async deleteFeature(appId, featureId) {
|
|
355
320
|
return this.unwrap(this.api.DELETE("/apps/{appId}/plans/features/{featureId}", { params: { path: { appId, featureId } } }));
|
|
356
321
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
322
|
+
async listFeatures(appId) {
|
|
323
|
+
return this.unwrap(this.api.GET("/apps/{appId}/plans/features", { params: { path: { appId } } }));
|
|
324
|
+
}
|
|
325
|
+
async createFeature(appId, data) {
|
|
326
|
+
return this.unwrap(this.api.POST("/apps/{appId}/plans/features", { params: { path: { appId } }, body: data }));
|
|
327
|
+
}
|
|
328
|
+
async listPlans(appId, params) {
|
|
329
|
+
return this.unwrap(this.api.GET("/apps/{id}/plans", { params: { path: { id: appId }, query: params } }));
|
|
330
|
+
}
|
|
331
|
+
async createPlan(appId, data) {
|
|
332
|
+
return this.unwrap(this.api.POST("/apps/{id}/plans", { params: { path: { id: appId } }, body: data }));
|
|
360
333
|
}
|
|
361
334
|
async getReview(appId, reviewId) {
|
|
362
335
|
return this.unwrap(this.api.GET("/apps/{id}/reviews/{reviewId}", { params: { path: { id: appId, reviewId } } }));
|
|
363
336
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
337
|
+
async listReviews(appId, params) {
|
|
338
|
+
return this.unwrap(this.api.GET("/apps/{id}/reviews", { params: { path: { id: appId }, query: params } }));
|
|
339
|
+
}
|
|
340
|
+
async getSkill(appId, skillId, params) {
|
|
341
|
+
return this.unwrap(this.api.GET("/apps/{id}/skills/{skillId}", { params: { path: { id: appId, skillId }, query: params } }));
|
|
342
|
+
}
|
|
343
|
+
async createSkill(appId, skillId, data) {
|
|
344
|
+
return this.unwrap(this.api.POST("/apps/{id}/skills/{skillId}", { params: { path: { id: appId, skillId } }, body: data }));
|
|
367
345
|
}
|
|
368
346
|
async getUsageMetric(appId, usageMetricId) {
|
|
369
347
|
return this.unwrap(this.api.GET("/apps/{id}/usage_metrics/{usageMetricId}", { params: { path: { id: appId, usageMetricId } } }));
|
|
370
348
|
}
|
|
371
|
-
async createUsageMetric(appId, data) {
|
|
372
|
-
return this.unwrap(this.api.POST("/apps/{id}/usage_metrics", { params: { path: { id: appId } }, body: data }));
|
|
373
|
-
}
|
|
374
349
|
async updateUsageMetric(appId, usageMetricId, data) {
|
|
375
350
|
return this.unwrap(this.api.PUT("/apps/{id}/usage_metrics/{usageMetricId}", { params: { path: { id: appId, usageMetricId } }, body: data }));
|
|
376
351
|
}
|
|
377
352
|
async deleteUsageMetric(appId, usageMetricId) {
|
|
378
353
|
return this.unwrap(this.api.DELETE("/apps/{id}/usage_metrics/{usageMetricId}", { params: { path: { id: appId, usageMetricId } } }));
|
|
379
354
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
return this.unwrap(this.api.GET("/apps/{id}/app_events", { params: { path: { id: appId }, query: params } }));
|
|
355
|
+
async listUsageMetrics(appId) {
|
|
356
|
+
return this.unwrap(this.api.GET("/apps/{id}/usage_metrics", { params: { path: { id: appId } } }));
|
|
383
357
|
}
|
|
384
|
-
async
|
|
385
|
-
return this.unwrap(this.api.
|
|
358
|
+
async createUsageMetric(appId, data) {
|
|
359
|
+
return this.unwrap(this.api.POST("/apps/{id}/usage_metrics", { params: { path: { id: appId } }, body: data }));
|
|
386
360
|
}
|
|
387
|
-
|
|
388
|
-
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
// src/resources/assistant.ts
|
|
364
|
+
var AssistantResource = class extends BaseResource {
|
|
365
|
+
async getConversation(conversationId) {
|
|
366
|
+
return this.unwrap(this.api.GET("/assistant/conversations/{id}", { params: { path: { id: conversationId } } }));
|
|
389
367
|
}
|
|
390
368
|
};
|
|
391
369
|
|
|
392
|
-
// src/resources/
|
|
393
|
-
var
|
|
370
|
+
// src/resources/channels.ts
|
|
371
|
+
var ChannelsResource = class extends BaseResource {
|
|
394
372
|
async list(params) {
|
|
395
|
-
return this.unwrap(this.api.GET("/
|
|
396
|
-
}
|
|
397
|
-
async get(dealId) {
|
|
398
|
-
return this.unwrap(this.api.GET("/deals/{id}", { params: { path: { id: dealId } } }));
|
|
373
|
+
return this.unwrap(this.api.GET("/channels", { params: { query: params } }));
|
|
399
374
|
}
|
|
400
375
|
async create(data) {
|
|
401
|
-
return this.unwrap(this.api.POST("/
|
|
402
|
-
}
|
|
403
|
-
async update(dealId, data) {
|
|
404
|
-
return this.unwrap(this.api.PUT("/deals/{id}", { params: { path: { id: dealId } }, body: data }));
|
|
405
|
-
}
|
|
406
|
-
async del(dealId) {
|
|
407
|
-
return this.unwrap(this.api.DELETE("/deals/{id}", { params: { path: { id: dealId } } }));
|
|
408
|
-
}
|
|
409
|
-
async timeline(dealId) {
|
|
410
|
-
return this.unwrap(this.api.GET("/deals/{id}/timeline", { params: { path: { id: dealId } } }));
|
|
411
|
-
}
|
|
412
|
-
async listEvents(dealId) {
|
|
413
|
-
return this.unwrap(this.api.GET("/deals/{id}/events", { params: { path: { id: dealId } } }));
|
|
414
|
-
}
|
|
415
|
-
async createEvent(dealId, data) {
|
|
416
|
-
return this.unwrap(this.api.POST("/deals/{id}/events", { params: { path: { id: dealId } }, body: data }));
|
|
376
|
+
return this.unwrap(this.api.POST("/channels", { body: data }));
|
|
417
377
|
}
|
|
418
378
|
};
|
|
419
379
|
|
|
420
|
-
// src/resources/
|
|
421
|
-
var
|
|
380
|
+
// src/resources/charges.ts
|
|
381
|
+
var ChargesResource = class extends BaseResource {
|
|
422
382
|
async list(params) {
|
|
423
|
-
return this.unwrap(this.api.GET("/
|
|
424
|
-
}
|
|
425
|
-
async get(dealFlowId) {
|
|
426
|
-
return this.unwrap(this.api.GET("/deal_flows/{id}", { params: { path: { id: dealFlowId } } }));
|
|
427
|
-
}
|
|
428
|
-
async create(data) {
|
|
429
|
-
return this.unwrap(this.api.POST("/deal_flows", { body: data }));
|
|
430
|
-
}
|
|
431
|
-
async update(dealFlowId, data) {
|
|
432
|
-
return this.unwrap(this.api.PUT("/deal_flows/{id}", { params: { path: { id: dealFlowId } }, body: data }));
|
|
433
|
-
}
|
|
434
|
-
async del(dealFlowId) {
|
|
435
|
-
return this.unwrap(this.api.DELETE("/deal_flows/{id}", { params: { path: { id: dealFlowId } } }));
|
|
383
|
+
return this.unwrap(this.api.GET("/charges", { params: { query: params } }));
|
|
436
384
|
}
|
|
437
385
|
};
|
|
438
386
|
|
|
439
|
-
// src/resources/
|
|
440
|
-
var
|
|
387
|
+
// src/resources/companies.ts
|
|
388
|
+
var CompaniesResource = class extends BaseResource {
|
|
441
389
|
async list(params) {
|
|
442
|
-
return this.unwrap(this.api.GET("/
|
|
443
|
-
}
|
|
444
|
-
async get(dealActivityId) {
|
|
445
|
-
return this.unwrap(this.api.GET("/deal_activities/{id}", { params: { path: { id: dealActivityId } } }));
|
|
390
|
+
return this.unwrap(this.api.GET("/companies", { params: { query: params } }));
|
|
446
391
|
}
|
|
447
392
|
async create(data) {
|
|
448
|
-
return this.unwrap(this.api.POST("/
|
|
393
|
+
return this.unwrap(this.api.POST("/companies", { body: data }));
|
|
449
394
|
}
|
|
450
|
-
async
|
|
451
|
-
return this.unwrap(this.api.
|
|
395
|
+
async get(companyId) {
|
|
396
|
+
return this.unwrap(this.api.GET("/companies/{id}", { params: { path: { id: companyId } } }));
|
|
397
|
+
}
|
|
398
|
+
async update(companyId, data) {
|
|
399
|
+
return this.unwrap(this.api.PUT("/companies/{id}", { params: { path: { id: companyId } }, body: data }));
|
|
452
400
|
}
|
|
453
|
-
async del(
|
|
454
|
-
return this.unwrap(this.api.DELETE("/
|
|
401
|
+
async del(companyId) {
|
|
402
|
+
return this.unwrap(this.api.DELETE("/companies/{id}", { params: { path: { id: companyId } } }));
|
|
455
403
|
}
|
|
456
404
|
};
|
|
457
405
|
|
|
458
|
-
// src/resources/
|
|
459
|
-
var
|
|
460
|
-
// Tickets
|
|
406
|
+
// src/resources/contacts.ts
|
|
407
|
+
var ContactsResource = class extends BaseResource {
|
|
461
408
|
async list(params) {
|
|
462
|
-
return this.unwrap(this.api.GET("/
|
|
463
|
-
}
|
|
464
|
-
async get(ticketId) {
|
|
465
|
-
return this.unwrap(this.api.GET("/tickets/{id}", { params: { path: { id: ticketId } } }));
|
|
409
|
+
return this.unwrap(this.api.GET("/contacts", { params: { query: params } }));
|
|
466
410
|
}
|
|
467
411
|
async create(data) {
|
|
468
|
-
return this.unwrap(this.api.POST("/
|
|
469
|
-
}
|
|
470
|
-
async update(ticketId, data) {
|
|
471
|
-
return this.unwrap(this.api.PUT("/tickets/{id}", { params: { path: { id: ticketId } }, body: data }));
|
|
472
|
-
}
|
|
473
|
-
// Messages
|
|
474
|
-
async listMessages(ticketId, params) {
|
|
475
|
-
return this.unwrap(this.api.GET("/tickets/{id}/messages", { params: { path: { id: ticketId }, query: params } }));
|
|
412
|
+
return this.unwrap(this.api.POST("/contacts", { body: data }));
|
|
476
413
|
}
|
|
477
|
-
async
|
|
478
|
-
return this.unwrap(this.api.
|
|
414
|
+
async addTags(contactId, data) {
|
|
415
|
+
return this.unwrap(this.api.POST("/contacts/{id}/addTags", { params: { path: { id: contactId } }, body: data }));
|
|
479
416
|
}
|
|
480
|
-
async
|
|
481
|
-
return this.unwrap(this.api.
|
|
417
|
+
async get(contactId) {
|
|
418
|
+
return this.unwrap(this.api.GET("/contacts/{id}", { params: { path: { id: contactId } } }));
|
|
482
419
|
}
|
|
483
|
-
async
|
|
484
|
-
return this.unwrap(this.api.PUT("/
|
|
420
|
+
async update(contactId, data) {
|
|
421
|
+
return this.unwrap(this.api.PUT("/contacts/{id}", { params: { path: { id: contactId } }, body: data }));
|
|
485
422
|
}
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
return this.unwrap(this.api.GET("/tickets/{id}/events", { params: { path: { id: ticketId }, query: params } }));
|
|
423
|
+
async del(contactId) {
|
|
424
|
+
return this.unwrap(this.api.DELETE("/contacts/{id}", { params: { path: { id: contactId } } }));
|
|
489
425
|
}
|
|
490
|
-
async
|
|
491
|
-
return this.unwrap(this.api.POST("/
|
|
426
|
+
async removeTags(contactId, data) {
|
|
427
|
+
return this.unwrap(this.api.POST("/contacts/{id}/removeTags", { params: { path: { id: contactId } }, body: data }));
|
|
492
428
|
}
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
// src/resources/custom-data.ts
|
|
432
|
+
var CustomDataResource = class extends BaseResource {
|
|
433
|
+
async getValue(params) {
|
|
434
|
+
return this.unwrap(this.api.GET("/custom_data", { params: { query: params } }));
|
|
496
435
|
}
|
|
497
|
-
async
|
|
498
|
-
return this.unwrap(this.api.
|
|
436
|
+
async set(data) {
|
|
437
|
+
return this.unwrap(this.api.PUT("/custom_data", { body: data }));
|
|
499
438
|
}
|
|
500
439
|
};
|
|
501
440
|
|
|
502
|
-
// src/resources/
|
|
503
|
-
var
|
|
504
|
-
/**
|
|
505
|
-
* List CX channels with optional filters
|
|
506
|
-
*/
|
|
441
|
+
// src/resources/customer-segments.ts
|
|
442
|
+
var CustomerSegmentsResource = class extends BaseResource {
|
|
507
443
|
async list(params) {
|
|
508
|
-
return this.unwrap(this.api.GET("/
|
|
444
|
+
return this.unwrap(this.api.GET("/customer_segments", { params: { query: params } }));
|
|
509
445
|
}
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
*/
|
|
513
|
-
async create(data) {
|
|
514
|
-
return this.unwrap(this.api.POST("/channels", { body: data }));
|
|
446
|
+
async get(segmentId) {
|
|
447
|
+
return this.unwrap(this.api.GET("/customer_segments/{id}", { params: { path: { id: segmentId } } }));
|
|
515
448
|
}
|
|
516
449
|
};
|
|
517
450
|
|
|
518
|
-
// src/resources/
|
|
519
|
-
var
|
|
520
|
-
/**
|
|
521
|
-
* List flows with optional filters and pagination
|
|
522
|
-
*/
|
|
451
|
+
// src/resources/customers.ts
|
|
452
|
+
var CustomersResource = class extends BaseResource {
|
|
523
453
|
async list(params) {
|
|
524
|
-
return this.unwrap(this.api.GET("/
|
|
525
|
-
}
|
|
526
|
-
/**
|
|
527
|
-
* Get a single flow by ID
|
|
528
|
-
*/
|
|
529
|
-
async get(flowId) {
|
|
530
|
-
return this.unwrap(this.api.GET("/flows/{id}", { params: { path: { id: flowId } } }));
|
|
454
|
+
return this.unwrap(this.api.GET("/customers", { params: { query: params } }));
|
|
531
455
|
}
|
|
532
|
-
/**
|
|
533
|
-
* Create a new flow
|
|
534
|
-
*/
|
|
535
456
|
async create(data) {
|
|
536
|
-
return this.unwrap(this.api.POST("/
|
|
457
|
+
return this.unwrap(this.api.POST("/customers", { body: data }));
|
|
537
458
|
}
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
*/
|
|
541
|
-
async update(flowId, data) {
|
|
542
|
-
return this.unwrap(this.api.PATCH("/flows/{id}", { params: { path: { id: flowId } }, body: data }));
|
|
459
|
+
async listCustomFields(params) {
|
|
460
|
+
return this.unwrap(this.api.GET("/customers/custom_fields", { params: { query: params } }));
|
|
543
461
|
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
*/
|
|
547
|
-
async del(flowId) {
|
|
548
|
-
return this.unwrap(this.api.DELETE("/flows/{id}", { params: { path: { id: flowId } } }));
|
|
462
|
+
async createCustomField(data) {
|
|
463
|
+
return this.unwrap(this.api.POST("/customers/custom_fields", { body: data }));
|
|
549
464
|
}
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
// src/resources/tasks.ts
|
|
553
|
-
var TasksResource = class extends BaseResource {
|
|
554
|
-
// Tasks
|
|
555
|
-
async list(params) {
|
|
556
|
-
return this.unwrap(this.api.GET("/tasks", { params: { query: params } }));
|
|
465
|
+
async updateAccountOwner(customerId, ownerId, data) {
|
|
466
|
+
return this.unwrap(this.api.PUT("/customers/{id}/account_owners/{ownerId}", { params: { path: { id: customerId, ownerId } }, body: data }));
|
|
557
467
|
}
|
|
558
|
-
async
|
|
559
|
-
return this.unwrap(this.api.
|
|
468
|
+
async deleteAccountOwner(customerId, ownerId) {
|
|
469
|
+
return this.unwrap(this.api.DELETE("/customers/{id}/account_owners/{ownerId}", { params: { path: { id: customerId, ownerId } } }));
|
|
560
470
|
}
|
|
561
|
-
async
|
|
562
|
-
return this.unwrap(this.api.POST("/
|
|
471
|
+
async addTags(customerId, data) {
|
|
472
|
+
return this.unwrap(this.api.POST("/customers/{id}/addTags", { params: { path: { id: customerId } }, body: data }));
|
|
563
473
|
}
|
|
564
|
-
async
|
|
565
|
-
return this.unwrap(this.api.
|
|
474
|
+
async get(customerId) {
|
|
475
|
+
return this.unwrap(this.api.GET("/customers/{id}", { params: { path: { id: customerId } } }));
|
|
566
476
|
}
|
|
567
|
-
async
|
|
568
|
-
return this.unwrap(this.api.
|
|
477
|
+
async update(customerId, data) {
|
|
478
|
+
return this.unwrap(this.api.PUT("/customers/{id}", { params: { path: { id: customerId } }, body: data }));
|
|
569
479
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
return this.unwrap(this.api.GET("/tasks/{id}/todo-items", { params: { path: { id: taskId } } }));
|
|
480
|
+
async removeTags(customerId, data) {
|
|
481
|
+
return this.unwrap(this.api.POST("/customers/{id}/removeTags", { params: { path: { id: customerId } }, body: data }));
|
|
573
482
|
}
|
|
574
|
-
async
|
|
575
|
-
return this.unwrap(this.api.GET("/
|
|
483
|
+
async getTimeline(customerId, params) {
|
|
484
|
+
return this.unwrap(this.api.GET("/customers/{id}/timeline", { params: { path: { id: customerId }, query: params } }));
|
|
576
485
|
}
|
|
577
|
-
async
|
|
578
|
-
return this.unwrap(this.api.
|
|
486
|
+
async listAccountOwners(customerId) {
|
|
487
|
+
return this.unwrap(this.api.GET("/customers/{id}/account_owners", { params: { path: { id: customerId } } }));
|
|
579
488
|
}
|
|
580
|
-
async
|
|
581
|
-
return this.unwrap(this.api.
|
|
489
|
+
async createAccountOwner(customerId, data) {
|
|
490
|
+
return this.unwrap(this.api.POST("/customers/{id}/account_owners", { params: { path: { id: customerId } }, body: data }));
|
|
582
491
|
}
|
|
583
|
-
async
|
|
584
|
-
return this.unwrap(this.api.
|
|
492
|
+
async getCustomField(customerId) {
|
|
493
|
+
return this.unwrap(this.api.GET("/customers/custom_fields/{id}", { params: { path: { id: customerId } } }));
|
|
494
|
+
}
|
|
495
|
+
async updateCustomField(customerId, data) {
|
|
496
|
+
return this.unwrap(this.api.PUT("/customers/custom_fields/{id}", { params: { path: { id: customerId } }, body: data }));
|
|
497
|
+
}
|
|
498
|
+
async deleteCustomField(customerId) {
|
|
499
|
+
return this.unwrap(this.api.DELETE("/customers/custom_fields/{id}", { params: { path: { id: customerId } } }));
|
|
585
500
|
}
|
|
586
501
|
};
|
|
587
502
|
|
|
588
|
-
// src/resources/
|
|
589
|
-
var
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
*/
|
|
593
|
-
async list() {
|
|
594
|
-
return this.unwrap(this.api.GET("/webhooks"));
|
|
503
|
+
// src/resources/deal-activities.ts
|
|
504
|
+
var DealActivitiesResource = class extends BaseResource {
|
|
505
|
+
async list(params) {
|
|
506
|
+
return this.unwrap(this.api.GET("/deal_activities", { params: { query: params } }));
|
|
595
507
|
}
|
|
596
|
-
/**
|
|
597
|
-
* Create a new webhook
|
|
598
|
-
*/
|
|
599
508
|
async create(data) {
|
|
600
|
-
return this.unwrap(this.api.POST("/
|
|
509
|
+
return this.unwrap(this.api.POST("/deal_activities", { body: data }));
|
|
601
510
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
*/
|
|
605
|
-
async update(webhookId, data) {
|
|
606
|
-
return this.unwrap(this.api.PUT("/webhooks/{id}", { params: { path: { id: webhookId } }, body: data }));
|
|
511
|
+
async get(activityId) {
|
|
512
|
+
return this.unwrap(this.api.GET("/deal_activities/{id}", { params: { path: { id: activityId } } }));
|
|
607
513
|
}
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
async del(
|
|
612
|
-
return this.unwrap(this.api.DELETE("/
|
|
514
|
+
async update(activityId, data) {
|
|
515
|
+
return this.unwrap(this.api.PUT("/deal_activities/{id}", { params: { path: { id: activityId } }, body: data }));
|
|
516
|
+
}
|
|
517
|
+
async del(activityId) {
|
|
518
|
+
return this.unwrap(this.api.DELETE("/deal_activities/{id}", { params: { path: { id: activityId } } }));
|
|
613
519
|
}
|
|
614
520
|
};
|
|
615
521
|
|
|
616
|
-
// src/resources/
|
|
617
|
-
var
|
|
618
|
-
/**
|
|
619
|
-
* List companies with optional pagination
|
|
620
|
-
*/
|
|
522
|
+
// src/resources/deal-flows.ts
|
|
523
|
+
var DealFlowsResource = class extends BaseResource {
|
|
621
524
|
async list(params) {
|
|
622
|
-
return this.unwrap(this.api.GET("/
|
|
623
|
-
}
|
|
624
|
-
/**
|
|
625
|
-
* Get a single company by ID
|
|
626
|
-
*/
|
|
627
|
-
async get(companyId) {
|
|
628
|
-
return this.unwrap(this.api.GET("/companies/{id}", { params: { path: { id: companyId } } }));
|
|
525
|
+
return this.unwrap(this.api.GET("/deal_flows", { params: { query: params } }));
|
|
629
526
|
}
|
|
630
|
-
/**
|
|
631
|
-
* Create a new company
|
|
632
|
-
*/
|
|
633
527
|
async create(data) {
|
|
634
|
-
return this.unwrap(this.api.POST("/
|
|
528
|
+
return this.unwrap(this.api.POST("/deal_flows", { body: data }));
|
|
635
529
|
}
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
*/
|
|
639
|
-
async update(companyId, data) {
|
|
640
|
-
return this.unwrap(this.api.PUT("/companies/{id}", { params: { path: { id: companyId } }, body: data }));
|
|
530
|
+
async get(dealFlowId) {
|
|
531
|
+
return this.unwrap(this.api.GET("/deal_flows/{id}", { params: { path: { id: dealFlowId } } }));
|
|
641
532
|
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
async del(
|
|
646
|
-
return this.unwrap(this.api.DELETE("/
|
|
533
|
+
async update(dealFlowId, data) {
|
|
534
|
+
return this.unwrap(this.api.PUT("/deal_flows/{id}", { params: { path: { id: dealFlowId } }, body: data }));
|
|
535
|
+
}
|
|
536
|
+
async del(dealFlowId) {
|
|
537
|
+
return this.unwrap(this.api.DELETE("/deal_flows/{id}", { params: { path: { id: dealFlowId } } }));
|
|
647
538
|
}
|
|
648
539
|
};
|
|
649
540
|
|
|
650
|
-
// src/resources/
|
|
651
|
-
var
|
|
652
|
-
/**
|
|
653
|
-
* List public customer segments with optional pagination
|
|
654
|
-
*/
|
|
541
|
+
// src/resources/deals.ts
|
|
542
|
+
var DealsResource = class extends BaseResource {
|
|
655
543
|
async list(params) {
|
|
656
|
-
return this.unwrap(this.api.GET("/
|
|
544
|
+
return this.unwrap(this.api.GET("/deals", { params: { query: params } }));
|
|
657
545
|
}
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
async
|
|
662
|
-
return this.unwrap(this.api.GET("/
|
|
546
|
+
async create(data) {
|
|
547
|
+
return this.unwrap(this.api.POST("/deals", { body: data }));
|
|
548
|
+
}
|
|
549
|
+
async listEvents(dealId, params) {
|
|
550
|
+
return this.unwrap(this.api.GET("/deals/{id}/events", { params: { path: { id: dealId }, query: params } }));
|
|
551
|
+
}
|
|
552
|
+
async createEvent(dealId, data) {
|
|
553
|
+
return this.unwrap(this.api.POST("/deals/{id}/events", { params: { path: { id: dealId } }, body: data }));
|
|
554
|
+
}
|
|
555
|
+
async get(dealId) {
|
|
556
|
+
return this.unwrap(this.api.GET("/deals/{id}", { params: { path: { id: dealId } } }));
|
|
557
|
+
}
|
|
558
|
+
async update(dealId, data) {
|
|
559
|
+
return this.unwrap(this.api.PUT("/deals/{id}", { params: { path: { id: dealId } }, body: data }));
|
|
560
|
+
}
|
|
561
|
+
async del(dealId) {
|
|
562
|
+
return this.unwrap(this.api.DELETE("/deals/{id}", { params: { path: { id: dealId } } }));
|
|
563
|
+
}
|
|
564
|
+
async getTimeline(dealId, params) {
|
|
565
|
+
return this.unwrap(this.api.GET("/deals/{id}/timeline", { params: { path: { id: dealId }, query: params } }));
|
|
663
566
|
}
|
|
664
567
|
};
|
|
665
568
|
|
|
666
|
-
// src/resources/
|
|
667
|
-
var
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
*/
|
|
671
|
-
async list(params) {
|
|
672
|
-
return this.unwrap(this.api.GET("/affiliates", { params: { query: params } }));
|
|
569
|
+
// src/resources/docs.ts
|
|
570
|
+
var DocsResource = class extends BaseResource {
|
|
571
|
+
async listCollections(params) {
|
|
572
|
+
return this.unwrap(this.api.GET("/docs/collections", { params: { query: params } }));
|
|
673
573
|
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
*/
|
|
677
|
-
async get(affiliateId) {
|
|
678
|
-
return this.unwrap(this.api.GET("/affiliates/{id}", { params: { path: { id: affiliateId } } }));
|
|
574
|
+
async createCollection(data) {
|
|
575
|
+
return this.unwrap(this.api.POST("/docs/collections", { body: data }));
|
|
679
576
|
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
577
|
+
async listGroups(params) {
|
|
578
|
+
return this.unwrap(this.api.GET("/docs/groups", { params: { query: params } }));
|
|
579
|
+
}
|
|
580
|
+
async createGroup(data) {
|
|
581
|
+
return this.unwrap(this.api.POST("/docs/groups", { body: data }));
|
|
582
|
+
}
|
|
583
|
+
async listPages(params) {
|
|
584
|
+
return this.unwrap(this.api.GET("/docs/pages", { params: { query: params } }));
|
|
585
|
+
}
|
|
586
|
+
async createPage(data) {
|
|
587
|
+
return this.unwrap(this.api.POST("/docs/pages", { body: data }));
|
|
588
|
+
}
|
|
589
|
+
async listRepositories(params) {
|
|
590
|
+
return this.unwrap(this.api.GET("/docs/repositories", { params: { query: params } }));
|
|
591
|
+
}
|
|
592
|
+
async updateCollection(collectionId, data) {
|
|
593
|
+
return this.unwrap(this.api.PUT("/docs/collections/{collection_id}", { params: { path: { collection_id: collectionId } }, body: data }));
|
|
594
|
+
}
|
|
595
|
+
async deleteCollection(collectionId) {
|
|
596
|
+
return this.unwrap(this.api.DELETE("/docs/collections/{collection_id}", { params: { path: { collection_id: collectionId } } }));
|
|
597
|
+
}
|
|
598
|
+
async updateGroup(groupId, data) {
|
|
599
|
+
return this.unwrap(this.api.PUT("/docs/groups/{group_id}", { params: { path: { group_id: groupId } }, body: data }));
|
|
600
|
+
}
|
|
601
|
+
async deleteGroup(groupId) {
|
|
602
|
+
return this.unwrap(this.api.DELETE("/docs/groups/{group_id}", { params: { path: { group_id: groupId } } }));
|
|
603
|
+
}
|
|
604
|
+
async getPage(pageId, params) {
|
|
605
|
+
return this.unwrap(this.api.GET("/docs/pages/{page_id}", { params: { path: { page_id: pageId }, query: params } }));
|
|
606
|
+
}
|
|
607
|
+
async updatePage(pageId, data) {
|
|
608
|
+
return this.unwrap(this.api.PUT("/docs/pages/{page_id}", { params: { path: { page_id: pageId } }, body: data }));
|
|
609
|
+
}
|
|
610
|
+
async deletePage(pageId) {
|
|
611
|
+
return this.unwrap(this.api.DELETE("/docs/pages/{page_id}", { params: { path: { page_id: pageId } } }));
|
|
612
|
+
}
|
|
613
|
+
async getRepository(docId, params) {
|
|
614
|
+
return this.unwrap(this.api.GET("/docs/repositories/{id}", { params: { path: { id: docId }, query: params } }));
|
|
686
615
|
}
|
|
687
616
|
};
|
|
688
617
|
|
|
689
|
-
// src/resources/
|
|
690
|
-
var
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
*/
|
|
694
|
-
async list(params) {
|
|
695
|
-
return this.unwrap(this.api.GET("/affiliate_programs", { params: { query: params } }));
|
|
618
|
+
// src/resources/email-unsubscribe-groups.ts
|
|
619
|
+
var EmailUnsubscribeGroupsResource = class extends BaseResource {
|
|
620
|
+
async list() {
|
|
621
|
+
return this.unwrap(this.api.GET("/email/unsubscribe_groups"));
|
|
696
622
|
}
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
*/
|
|
700
|
-
async get(programId) {
|
|
701
|
-
return this.unwrap(this.api.GET("/affiliate_programs/{id}", { params: { path: { id: programId } } }));
|
|
623
|
+
async deleteMemberDelete(groupId, memberId) {
|
|
624
|
+
return this.unwrap(this.api.DELETE("/email/unsubscribe_groups/{id}/members/{member_id}", { params: { path: { id: groupId, member_id: memberId } } }));
|
|
702
625
|
}
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
* Note: POST not yet in OpenAPI spec
|
|
706
|
-
*/
|
|
707
|
-
async create(data) {
|
|
708
|
-
return this.unwrap(this.untypedApi.POST("/affiliate_programs", { body: data }));
|
|
626
|
+
async listMembers(groupId) {
|
|
627
|
+
return this.unwrap(this.api.GET("/email/unsubscribe_groups/{id}/members", { params: { path: { id: groupId } } }));
|
|
709
628
|
}
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
* Note: PUT not yet in OpenAPI spec
|
|
713
|
-
*/
|
|
714
|
-
async update(programId, data) {
|
|
715
|
-
return this.unwrap(this.untypedApi.PUT("/affiliate_programs/{id}", { params: { path: { id: programId } }, body: data }));
|
|
629
|
+
async createMember(groupId, data) {
|
|
630
|
+
return this.unwrap(this.api.POST("/email/unsubscribe_groups/{id}/members", { params: { path: { id: groupId } }, body: data }));
|
|
716
631
|
}
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
async
|
|
722
|
-
return this.unwrap(this.
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
// src/resources/entities.ts
|
|
635
|
+
var EntitiesResource = class extends BaseResource {
|
|
636
|
+
async search(params) {
|
|
637
|
+
return this.unwrap(this.api.GET("/entities", { params: { query: params } }));
|
|
723
638
|
}
|
|
724
639
|
};
|
|
725
640
|
|
|
726
|
-
// src/resources/
|
|
727
|
-
var
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
*/
|
|
731
|
-
async list(params) {
|
|
732
|
-
return this.unwrap(this.api.GET("/affiliate_commissions", { params: { query: params } }));
|
|
641
|
+
// src/resources/flow-extensions.ts
|
|
642
|
+
var FlowExtensionsResource = class extends BaseResource {
|
|
643
|
+
async listActions() {
|
|
644
|
+
return this.unwrap(this.api.GET("/flow/extensions/actions"));
|
|
733
645
|
}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
async
|
|
738
|
-
return this.unwrap(this.api.GET("/
|
|
646
|
+
async createAction(data) {
|
|
647
|
+
return this.unwrap(this.api.POST("/flow/extensions/actions", { body: data }));
|
|
648
|
+
}
|
|
649
|
+
async listTriggers() {
|
|
650
|
+
return this.unwrap(this.api.GET("/flow/extensions/triggers"));
|
|
651
|
+
}
|
|
652
|
+
async createTriggerPost(data) {
|
|
653
|
+
return this.unwrap(this.api.POST("/flow/extensions/triggers", { body: data }));
|
|
654
|
+
}
|
|
655
|
+
async validateSchema(data) {
|
|
656
|
+
return this.unwrap(this.api.POST("/flow/extensions/triggers/validate-schema", { body: data }));
|
|
657
|
+
}
|
|
658
|
+
async updateRun(extensionId, data) {
|
|
659
|
+
return this.unwrap(this.api.PUT("/flow/actions/runs/{id}", { params: { path: { id: extensionId } }, body: data }));
|
|
660
|
+
}
|
|
661
|
+
async fireTrigger(handle, data) {
|
|
662
|
+
return this.unwrap(this.api.POST("/flow/extensions/triggers/{handle}/fire", { params: { path: { handle } }, body: data }));
|
|
663
|
+
}
|
|
664
|
+
async updateAction(extensionId, data) {
|
|
665
|
+
return this.unwrap(this.api.PUT("/flow/extensions/actions/{id}", { params: { path: { id: extensionId } }, body: data }));
|
|
666
|
+
}
|
|
667
|
+
async deleteAction(extensionId) {
|
|
668
|
+
return this.unwrap(this.api.DELETE("/flow/extensions/actions/{id}", { params: { path: { id: extensionId } } }));
|
|
669
|
+
}
|
|
670
|
+
async getTrigger(handle) {
|
|
671
|
+
return this.unwrap(this.api.GET("/flow/extensions/triggers/{handle}", { params: { path: { handle } } }));
|
|
672
|
+
}
|
|
673
|
+
async replaceTrigger(handle, data) {
|
|
674
|
+
return this.unwrap(this.api.PUT("/flow/extensions/triggers/{handle}", { params: { path: { handle } }, body: data }));
|
|
675
|
+
}
|
|
676
|
+
async updateTrigger(handle, data) {
|
|
677
|
+
return this.unwrap(this.api.PATCH("/flow/extensions/triggers/{handle}", { params: { path: { handle } }, body: data }));
|
|
678
|
+
}
|
|
679
|
+
async deleteTrigger(handle) {
|
|
680
|
+
return this.unwrap(this.api.DELETE("/flow/extensions/triggers/{handle}", { params: { path: { handle } } }));
|
|
739
681
|
}
|
|
740
682
|
};
|
|
741
683
|
|
|
742
|
-
// src/resources/
|
|
743
|
-
var
|
|
744
|
-
/**
|
|
745
|
-
* List affiliate payouts with optional filters and pagination
|
|
746
|
-
*/
|
|
684
|
+
// src/resources/flows.ts
|
|
685
|
+
var FlowsResource = class extends BaseResource {
|
|
747
686
|
async list(params) {
|
|
748
|
-
return this.unwrap(this.api.GET("/
|
|
687
|
+
return this.unwrap(this.api.GET("/flows", { params: { query: params } }));
|
|
749
688
|
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
*/
|
|
753
|
-
async get(payoutId) {
|
|
754
|
-
return this.unwrap(this.api.GET("/affiliate_payouts/{id}", { params: { path: { id: payoutId } } }));
|
|
689
|
+
async create(data) {
|
|
690
|
+
return this.unwrap(this.api.POST("/flows", { body: data }));
|
|
755
691
|
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
// src/resources/affiliate-referrals.ts
|
|
759
|
-
var AffiliateReferralsResource = class extends BaseResource {
|
|
760
|
-
/**
|
|
761
|
-
* List affiliate referrals with optional filters and pagination
|
|
762
|
-
*/
|
|
763
|
-
async list(params) {
|
|
764
|
-
return this.unwrap(this.api.GET("/affiliate_referrals", { params: { query: params } }));
|
|
692
|
+
async get(flowId) {
|
|
693
|
+
return this.unwrap(this.api.GET("/flows/{id}", { params: { path: { id: flowId } } }));
|
|
765
694
|
}
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
async
|
|
770
|
-
return this.unwrap(this.api.
|
|
695
|
+
async update(flowId, data) {
|
|
696
|
+
return this.unwrap(this.api.PATCH("/flows/{id}", { params: { path: { id: flowId } }, body: data }));
|
|
697
|
+
}
|
|
698
|
+
async del(flowId) {
|
|
699
|
+
return this.unwrap(this.api.DELETE("/flows/{id}", { params: { path: { id: flowId } } }));
|
|
771
700
|
}
|
|
772
701
|
};
|
|
773
702
|
|
|
774
|
-
// src/resources/
|
|
775
|
-
var
|
|
776
|
-
/**
|
|
777
|
-
* List charges with optional filters and pagination
|
|
778
|
-
*/
|
|
703
|
+
// src/resources/journal-entries.ts
|
|
704
|
+
var JournalEntriesResource = class extends BaseResource {
|
|
779
705
|
async list(params) {
|
|
780
|
-
return this.unwrap(this.api.GET("/
|
|
706
|
+
return this.unwrap(this.api.GET("/journal_entries", { params: { query: params } }));
|
|
707
|
+
}
|
|
708
|
+
async create(data) {
|
|
709
|
+
return this.unwrap(this.api.POST("/journal_entries", { body: data }));
|
|
710
|
+
}
|
|
711
|
+
async get(entryId, params) {
|
|
712
|
+
return this.unwrap(this.api.GET("/journal_entries/{id}", { params: { path: { id: entryId }, query: params } }));
|
|
713
|
+
}
|
|
714
|
+
async update(entryId, data) {
|
|
715
|
+
return this.unwrap(this.api.PUT("/journal_entries/{id}", { params: { path: { id: entryId } }, body: data }));
|
|
716
|
+
}
|
|
717
|
+
async del(entryId) {
|
|
718
|
+
return this.unwrap(this.api.DELETE("/journal_entries/{id}", { params: { path: { id: entryId } } }));
|
|
781
719
|
}
|
|
782
720
|
};
|
|
783
721
|
|
|
784
|
-
// src/resources/
|
|
785
|
-
var
|
|
786
|
-
/**
|
|
787
|
-
* List transactions with optional filters and pagination
|
|
788
|
-
*/
|
|
722
|
+
// src/resources/lists.ts
|
|
723
|
+
var ListsResource = class extends BaseResource {
|
|
789
724
|
async list(params) {
|
|
790
|
-
return this.unwrap(this.api.GET("/
|
|
725
|
+
return this.unwrap(this.api.GET("/lists", { params: { query: params } }));
|
|
791
726
|
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
*/
|
|
795
|
-
async get(transactionId) {
|
|
796
|
-
return this.unwrap(this.api.GET("/transactions/{id}", { params: { path: { id: transactionId } } }));
|
|
727
|
+
async create(data) {
|
|
728
|
+
return this.unwrap(this.api.POST("/lists", { body: data }));
|
|
797
729
|
}
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
// src/resources/metrics.ts
|
|
801
|
-
var MetricsResource = class extends BaseResource {
|
|
802
|
-
async mrr(params) {
|
|
803
|
-
return this.unwrap(this.api.GET("/api/core/v1/metrics/mrr", { params: { query: params } }));
|
|
730
|
+
async add(listId, data) {
|
|
731
|
+
return this.unwrap(this.api.POST("/lists/{id}/add", { params: { path: { id: listId } }, body: data }));
|
|
804
732
|
}
|
|
805
|
-
async
|
|
806
|
-
return this.unwrap(this.api.GET("/
|
|
733
|
+
async get(listId, params) {
|
|
734
|
+
return this.unwrap(this.api.GET("/lists/{id}", { params: { path: { id: listId }, query: params } }));
|
|
807
735
|
}
|
|
808
|
-
async
|
|
809
|
-
return this.unwrap(this.api.
|
|
736
|
+
async update(listId, data) {
|
|
737
|
+
return this.unwrap(this.api.PUT("/lists/{id}", { params: { path: { id: listId } }, body: data }));
|
|
810
738
|
}
|
|
811
|
-
async
|
|
812
|
-
return this.unwrap(this.api.
|
|
739
|
+
async del(listId) {
|
|
740
|
+
return this.unwrap(this.api.DELETE("/lists/{id}", { params: { path: { id: listId } } }));
|
|
813
741
|
}
|
|
814
|
-
async
|
|
815
|
-
return this.unwrap(this.api.
|
|
742
|
+
async remove(listId, data) {
|
|
743
|
+
return this.unwrap(this.api.POST("/lists/{id}/remove", { params: { path: { id: listId } }, body: data }));
|
|
816
744
|
}
|
|
817
|
-
|
|
818
|
-
|
|
745
|
+
};
|
|
746
|
+
|
|
747
|
+
// src/resources/meetings.ts
|
|
748
|
+
var MeetingsResource = class extends BaseResource {
|
|
749
|
+
async list(params) {
|
|
750
|
+
return this.unwrap(this.api.GET("/meetings", { params: { query: params } }));
|
|
819
751
|
}
|
|
820
|
-
async
|
|
821
|
-
return this.unwrap(this.api.
|
|
752
|
+
async create(data) {
|
|
753
|
+
return this.unwrap(this.api.POST("/meetings", { body: data }));
|
|
822
754
|
}
|
|
823
|
-
async
|
|
824
|
-
return this.unwrap(this.api.GET("/
|
|
755
|
+
async getRecordingUrl(meetingId) {
|
|
756
|
+
return this.unwrap(this.api.GET("/meetings/{id}/recording-url", { params: { path: { id: meetingId } } }));
|
|
825
757
|
}
|
|
826
|
-
async
|
|
827
|
-
return this.unwrap(this.api.
|
|
758
|
+
async acceptTaskSuggestion(meetingId, suggestionId, data) {
|
|
759
|
+
return this.unwrap(this.api.POST("/meetings/{id}/task-suggestions/{suggestionId}/accept", { params: { path: { id: meetingId, suggestionId } }, body: data }));
|
|
828
760
|
}
|
|
829
|
-
async
|
|
830
|
-
return this.unwrap(this.api.
|
|
761
|
+
async dismissTaskSuggestion(meetingId, suggestionId) {
|
|
762
|
+
return this.unwrap(this.api.POST("/meetings/{id}/task-suggestions/{suggestionId}/dismiss", { params: { path: { id: meetingId, suggestionId } } }));
|
|
831
763
|
}
|
|
832
|
-
async
|
|
833
|
-
return this.unwrap(this.api.
|
|
764
|
+
async updateAttendee(meetingId, attendeeId, data) {
|
|
765
|
+
return this.unwrap(this.api.PUT("/meetings/{id}/attendees/{attendeeId}", { params: { path: { id: meetingId, attendeeId } }, body: data }));
|
|
834
766
|
}
|
|
835
|
-
async
|
|
836
|
-
return this.unwrap(this.api.GET("/
|
|
767
|
+
async transcribeGet(meetingId) {
|
|
768
|
+
return this.unwrap(this.api.GET("/meetings/{id}/transcribe", { params: { path: { id: meetingId } } }));
|
|
837
769
|
}
|
|
838
|
-
async
|
|
839
|
-
return this.unwrap(this.api.
|
|
770
|
+
async transcribePost(meetingId, data) {
|
|
771
|
+
return this.unwrap(this.api.POST("/meetings/{id}/transcribe", { params: { path: { id: meetingId } }, body: data }));
|
|
840
772
|
}
|
|
841
|
-
async
|
|
842
|
-
return this.unwrap(this.api.
|
|
773
|
+
async transcribeUpload(meetingId, data) {
|
|
774
|
+
return this.unwrap(this.api.POST("/meetings/{id}/transcribe/upload", { params: { path: { id: meetingId } }, body: data }));
|
|
843
775
|
}
|
|
844
|
-
async
|
|
845
|
-
return this.unwrap(this.api.GET("/
|
|
776
|
+
async get(meetingId) {
|
|
777
|
+
return this.unwrap(this.api.GET("/meetings/{id}", { params: { path: { id: meetingId } } }));
|
|
846
778
|
}
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
// src/resources/users.ts
|
|
850
|
-
var UsersResource = class extends BaseResource {
|
|
851
|
-
/**
|
|
852
|
-
* List organization users with optional pagination
|
|
853
|
-
*/
|
|
854
|
-
async list(params) {
|
|
855
|
-
return this.unwrap(this.api.GET("/users", { params: { query: params } }));
|
|
779
|
+
async update(meetingId, data) {
|
|
780
|
+
return this.unwrap(this.api.PUT("/meetings/{id}", { params: { path: { id: meetingId } }, body: data }));
|
|
856
781
|
}
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
*/
|
|
860
|
-
async get(userId) {
|
|
861
|
-
return this.unwrap(this.api.GET("/users/{id}", { params: { path: { id: userId } } }));
|
|
782
|
+
async del(meetingId) {
|
|
783
|
+
return this.unwrap(this.api.DELETE("/meetings/{id}", { params: { path: { id: meetingId } } }));
|
|
862
784
|
}
|
|
863
785
|
};
|
|
864
786
|
|
|
@@ -869,328 +791,255 @@ var MeResource = class extends BaseResource {
|
|
|
869
791
|
}
|
|
870
792
|
};
|
|
871
793
|
|
|
872
|
-
// src/resources/
|
|
873
|
-
var
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
*/
|
|
877
|
-
async get() {
|
|
878
|
-
return this.unwrap(this.api.GET("/organization"));
|
|
879
|
-
}
|
|
880
|
-
};
|
|
881
|
-
|
|
882
|
-
// src/resources/agents.ts
|
|
883
|
-
var AgentsResource = class extends BaseResource {
|
|
884
|
-
async list() {
|
|
885
|
-
return this.unwrap(this.untypedApi.GET("/agents", {}));
|
|
886
|
-
}
|
|
887
|
-
async get(agentId) {
|
|
888
|
-
return this.unwrap(this.untypedApi.GET("/agents/{id}", { params: { path: { id: agentId } } }));
|
|
889
|
-
}
|
|
890
|
-
async create(params) {
|
|
891
|
-
return this.unwrap(this.untypedApi.POST("/agents", { body: params }));
|
|
892
|
-
}
|
|
893
|
-
async findOrCreate(params) {
|
|
894
|
-
return this.unwrap(this.untypedApi.POST("/agents/find_or_create", { body: params }));
|
|
895
|
-
}
|
|
896
|
-
};
|
|
897
|
-
|
|
898
|
-
// src/resources/docs.ts
|
|
899
|
-
var DocsResource = class extends BaseResource {
|
|
900
|
-
// Collections
|
|
901
|
-
async listCollections(params) {
|
|
902
|
-
return this.unwrap(this.api.GET("/docs/collections", { params: { query: params } }));
|
|
794
|
+
// src/resources/metrics.ts
|
|
795
|
+
var MetricsResource = class extends BaseResource {
|
|
796
|
+
async sales(params) {
|
|
797
|
+
return this.unwrap(this.api.GET("/metrics/sales", { params: { query: params } }));
|
|
903
798
|
}
|
|
904
|
-
async
|
|
905
|
-
return this.unwrap(this.api.
|
|
799
|
+
async activeInstalls(params) {
|
|
800
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/activeInstalls", { params: { query: params } }));
|
|
906
801
|
}
|
|
907
|
-
async
|
|
908
|
-
return this.unwrap(this.api.
|
|
802
|
+
async activeSubscriptions(params) {
|
|
803
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/activeSubscriptions", { params: { query: params } }));
|
|
909
804
|
}
|
|
910
|
-
async
|
|
911
|
-
return this.unwrap(this.api.
|
|
805
|
+
async arpu(params) {
|
|
806
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/arpu", { params: { query: params } }));
|
|
912
807
|
}
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
return this.unwrap(this.api.GET("/docs/groups", { params: { query: params } }));
|
|
808
|
+
async arr(params) {
|
|
809
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/arr", { params: { query: params } }));
|
|
916
810
|
}
|
|
917
|
-
async
|
|
918
|
-
return this.unwrap(this.api.
|
|
811
|
+
async logoChurn(params) {
|
|
812
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/logoChurn", { params: { query: params } }));
|
|
919
813
|
}
|
|
920
|
-
async
|
|
921
|
-
return this.unwrap(this.api.
|
|
814
|
+
async mrr(params) {
|
|
815
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/mrr", { params: { query: params } }));
|
|
922
816
|
}
|
|
923
|
-
async
|
|
924
|
-
return this.unwrap(this.api.
|
|
817
|
+
async netInstalls(params) {
|
|
818
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/netInstalls", { params: { query: params } }));
|
|
925
819
|
}
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
return this.unwrap(this.api.GET("/docs/pages", { params: { query: params } }));
|
|
820
|
+
async netRevenue(params) {
|
|
821
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/netRevenue", { params: { query: params } }));
|
|
929
822
|
}
|
|
930
|
-
async
|
|
931
|
-
return this.unwrap(this.api.GET("/
|
|
823
|
+
async netRevenueRetention(params) {
|
|
824
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/netRevenueRetention", { params: { query: params } }));
|
|
932
825
|
}
|
|
933
|
-
async
|
|
934
|
-
return this.unwrap(this.api.
|
|
826
|
+
async payout(params) {
|
|
827
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/payout", { params: { query: params } }));
|
|
935
828
|
}
|
|
936
|
-
async
|
|
937
|
-
return this.unwrap(this.api.
|
|
829
|
+
async predictedLtv(params) {
|
|
830
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/predictedLtv", { params: { query: params } }));
|
|
938
831
|
}
|
|
939
|
-
async
|
|
940
|
-
return this.unwrap(this.api.
|
|
832
|
+
async revenueChurn(params) {
|
|
833
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/revenueChurn", { params: { query: params } }));
|
|
941
834
|
}
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
return this.unwrap(this.api.GET("/docs/repositories", { params: { query: params } }));
|
|
835
|
+
async revenueRetention(params) {
|
|
836
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/revenueRetention", { params: { query: params } }));
|
|
945
837
|
}
|
|
946
|
-
async
|
|
947
|
-
return this.unwrap(this.api.GET("/
|
|
838
|
+
async usageEvent(params) {
|
|
839
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/usageEvent", { params: { query: params } }));
|
|
948
840
|
}
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
// src/resources/entities.ts
|
|
952
|
-
var EntitiesResource = class extends BaseResource {
|
|
953
|
-
/**
|
|
954
|
-
* Search across contacts and customers
|
|
955
|
-
* Returns entities with a _type discriminator field
|
|
956
|
-
*/
|
|
957
|
-
async search(params) {
|
|
958
|
-
return this.unwrap(this.api.GET("/entities", { params: { query: params } }));
|
|
841
|
+
async usageMetric(params) {
|
|
842
|
+
return this.unwrap(this.api.GET("/api/core/v1/metrics/usageMetric", { params: { query: params } }));
|
|
959
843
|
}
|
|
960
844
|
};
|
|
961
845
|
|
|
962
|
-
// src/resources/
|
|
963
|
-
var
|
|
964
|
-
async
|
|
965
|
-
return this.unwrap(this.api.
|
|
966
|
-
}
|
|
967
|
-
async getValue(params) {
|
|
968
|
-
return this.unwrap(this.api.GET("/custom_data", { params: { query: params } }));
|
|
846
|
+
// src/resources/organization.ts
|
|
847
|
+
var OrganizationResource = class extends BaseResource {
|
|
848
|
+
async list() {
|
|
849
|
+
return this.unwrap(this.api.GET("/organization"));
|
|
969
850
|
}
|
|
970
851
|
};
|
|
971
852
|
|
|
972
|
-
// src/resources/
|
|
973
|
-
var
|
|
974
|
-
/**
|
|
975
|
-
* List timeline comments with optional filters and pagination
|
|
976
|
-
*/
|
|
853
|
+
// src/resources/subscriptions.ts
|
|
854
|
+
var SubscriptionsResource = class extends BaseResource {
|
|
977
855
|
async list(params) {
|
|
978
|
-
return this.unwrap(this.api.GET("/
|
|
979
|
-
}
|
|
980
|
-
/**
|
|
981
|
-
* Get a single timeline comment by ID
|
|
982
|
-
*/
|
|
983
|
-
async get(id) {
|
|
984
|
-
return this.unwrap(this.api.GET("/timeline_comments/{id}", { params: { path: { id } } }));
|
|
985
|
-
}
|
|
986
|
-
/**
|
|
987
|
-
* Create a new timeline comment
|
|
988
|
-
*/
|
|
989
|
-
async create(data) {
|
|
990
|
-
return this.unwrap(this.api.POST("/timeline_comments", { body: data }));
|
|
991
|
-
}
|
|
992
|
-
/**
|
|
993
|
-
* Update an existing timeline comment
|
|
994
|
-
*/
|
|
995
|
-
async update(id, data) {
|
|
996
|
-
return this.unwrap(this.api.PUT("/timeline_comments/{id}", { params: { path: { id } }, body: data }));
|
|
856
|
+
return this.unwrap(this.api.GET("/subscriptions", { params: { query: params } }));
|
|
997
857
|
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
*/
|
|
1001
|
-
async del(id, data) {
|
|
1002
|
-
return this.unwrap(this.api.DELETE("/timeline_comments/{id}", { params: { path: { id } }, body: data }));
|
|
858
|
+
async get(subscriptionId) {
|
|
859
|
+
return this.unwrap(this.api.GET("/subscriptions/{id}", { params: { path: { id: subscriptionId } } }));
|
|
1003
860
|
}
|
|
1004
861
|
};
|
|
1005
862
|
|
|
1006
|
-
// src/resources/
|
|
1007
|
-
var
|
|
863
|
+
// src/resources/synced-emails.ts
|
|
864
|
+
var SyncedEmailsResource = class extends BaseResource {
|
|
1008
865
|
async list(params) {
|
|
1009
|
-
return this.unwrap(this.api.GET("/
|
|
1010
|
-
}
|
|
1011
|
-
async get(listId) {
|
|
1012
|
-
return this.unwrap(this.api.GET("/lists/{id}", { params: { path: { id: listId } } }));
|
|
866
|
+
return this.unwrap(this.api.GET("/synced_emails", { params: { query: params } }));
|
|
1013
867
|
}
|
|
1014
868
|
async create(data) {
|
|
1015
|
-
return this.unwrap(this.api.POST("/
|
|
869
|
+
return this.unwrap(this.api.POST("/synced_emails", { body: data }));
|
|
1016
870
|
}
|
|
1017
|
-
async
|
|
1018
|
-
return this.unwrap(this.api.
|
|
871
|
+
async listMessages(syncedEmailId) {
|
|
872
|
+
return this.unwrap(this.api.GET("/synced_emails/{id}/messages", { params: { path: { id: syncedEmailId } } }));
|
|
1019
873
|
}
|
|
1020
|
-
async
|
|
1021
|
-
return this.unwrap(this.api.
|
|
874
|
+
async createMessage(syncedEmailId, data) {
|
|
875
|
+
return this.unwrap(this.api.POST("/synced_emails/{id}/messages", { params: { path: { id: syncedEmailId } }, body: data }));
|
|
1022
876
|
}
|
|
1023
|
-
async
|
|
1024
|
-
return this.unwrap(this.api.
|
|
877
|
+
async get(syncedEmailId) {
|
|
878
|
+
return this.unwrap(this.api.GET("/synced_emails/{id}", { params: { path: { id: syncedEmailId } } }));
|
|
1025
879
|
}
|
|
1026
|
-
async
|
|
1027
|
-
return this.unwrap(this.api.
|
|
880
|
+
async update(syncedEmailId, data) {
|
|
881
|
+
return this.unwrap(this.api.PUT("/synced_emails/{id}", { params: { path: { id: syncedEmailId } }, body: data }));
|
|
882
|
+
}
|
|
883
|
+
async del(syncedEmailId) {
|
|
884
|
+
return this.unwrap(this.api.DELETE("/synced_emails/{id}", { params: { path: { id: syncedEmailId } } }));
|
|
1028
885
|
}
|
|
1029
886
|
};
|
|
1030
887
|
|
|
1031
|
-
// src/resources/
|
|
1032
|
-
var
|
|
1033
|
-
/**
|
|
1034
|
-
* List journal entries with optional filters and pagination
|
|
1035
|
-
*/
|
|
888
|
+
// src/resources/tasks.ts
|
|
889
|
+
var TasksResource = class extends BaseResource {
|
|
1036
890
|
async list(params) {
|
|
1037
|
-
return this.unwrap(this.api.GET("/
|
|
1038
|
-
}
|
|
1039
|
-
/**
|
|
1040
|
-
* Get a single journal entry by ID
|
|
1041
|
-
*/
|
|
1042
|
-
async get(entryId, params) {
|
|
1043
|
-
return this.unwrap(this.api.GET("/journal_entries/{id}", { params: { path: { id: entryId }, query: params } }));
|
|
891
|
+
return this.unwrap(this.api.GET("/tasks", { params: { query: params } }));
|
|
1044
892
|
}
|
|
1045
|
-
/**
|
|
1046
|
-
* Create a new journal entry
|
|
1047
|
-
*/
|
|
1048
893
|
async create(data) {
|
|
1049
|
-
return this.unwrap(this.api.POST("/
|
|
894
|
+
return this.unwrap(this.api.POST("/tasks", { body: data }));
|
|
1050
895
|
}
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
*/
|
|
1054
|
-
async update(entryId, data) {
|
|
1055
|
-
return this.unwrap(this.api.PUT("/journal_entries/{id}", { params: { path: { id: entryId } }, body: data }));
|
|
896
|
+
async get(taskId) {
|
|
897
|
+
return this.unwrap(this.api.GET("/tasks/{id}", { params: { path: { id: taskId } } }));
|
|
1056
898
|
}
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
*/
|
|
1060
|
-
async del(entryId) {
|
|
1061
|
-
return this.unwrap(this.api.DELETE("/journal_entries/{id}", { params: { path: { id: entryId } } }));
|
|
899
|
+
async update(taskId, data) {
|
|
900
|
+
return this.unwrap(this.api.PUT("/tasks/{id}", { params: { path: { id: taskId } }, body: data }));
|
|
1062
901
|
}
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
// src/resources/email-unsubscribe-groups.ts
|
|
1066
|
-
var EmailUnsubscribeGroupsResource = class extends BaseResource {
|
|
1067
|
-
async list(params) {
|
|
1068
|
-
return this.unwrap(this.api.GET("/email/unsubscribe_groups", { params: { query: params } }));
|
|
902
|
+
async del(taskId) {
|
|
903
|
+
return this.unwrap(this.api.DELETE("/tasks/{id}", { params: { path: { id: taskId } } }));
|
|
1069
904
|
}
|
|
1070
|
-
async
|
|
1071
|
-
return this.unwrap(this.api.GET("/
|
|
905
|
+
async getTodoItem(taskId, itemId) {
|
|
906
|
+
return this.unwrap(this.api.GET("/tasks/{id}/todo-items/{itemId}", { params: { path: { id: taskId, itemId } } }));
|
|
1072
907
|
}
|
|
1073
|
-
async
|
|
1074
|
-
return this.unwrap(this.api.
|
|
908
|
+
async updateTodoItem(taskId, itemId, data) {
|
|
909
|
+
return this.unwrap(this.api.PUT("/tasks/{id}/todo-items/{itemId}", { params: { path: { id: taskId, itemId } }, body: data }));
|
|
910
|
+
}
|
|
911
|
+
async deleteTodoItem(taskId, itemId) {
|
|
912
|
+
return this.unwrap(this.api.DELETE("/tasks/{id}/todo-items/{itemId}", { params: { path: { id: taskId, itemId } } }));
|
|
1075
913
|
}
|
|
1076
|
-
async
|
|
1077
|
-
return this.unwrap(this.api.
|
|
914
|
+
async getTodoItems(taskId) {
|
|
915
|
+
return this.unwrap(this.api.GET("/tasks/{id}/todo-items", { params: { path: { id: taskId } } }));
|
|
1078
916
|
}
|
|
1079
|
-
async
|
|
1080
|
-
return this.unwrap(this.api.
|
|
917
|
+
async createTodoItems(taskId, data) {
|
|
918
|
+
return this.unwrap(this.api.POST("/tasks/{id}/todo-items", { params: { path: { id: taskId } }, body: data }));
|
|
1081
919
|
}
|
|
1082
920
|
};
|
|
1083
921
|
|
|
1084
|
-
// src/resources/
|
|
1085
|
-
var
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
return this.unwrap(this.api.GET("/flow/extensions/actions", { params: { query: params } }));
|
|
922
|
+
// src/resources/tickets.ts
|
|
923
|
+
var TicketsResource = class extends BaseResource {
|
|
924
|
+
async list(params) {
|
|
925
|
+
return this.unwrap(this.api.GET("/tickets", { params: { query: params } }));
|
|
1089
926
|
}
|
|
1090
|
-
async
|
|
1091
|
-
return this.unwrap(this.api.POST("/
|
|
927
|
+
async create(data) {
|
|
928
|
+
return this.unwrap(this.api.POST("/tickets", { body: data }));
|
|
1092
929
|
}
|
|
1093
|
-
async
|
|
1094
|
-
return this.unwrap(this.api.
|
|
930
|
+
async listEvents(ticketId, params) {
|
|
931
|
+
return this.unwrap(this.api.GET("/tickets/{id}/events", { params: { path: { id: ticketId }, query: params } }));
|
|
1095
932
|
}
|
|
1096
|
-
async
|
|
1097
|
-
return this.unwrap(this.api.
|
|
933
|
+
async createEvent(ticketId, data) {
|
|
934
|
+
return this.unwrap(this.api.POST("/tickets/{id}/events", { params: { path: { id: ticketId } }, body: data }));
|
|
1098
935
|
}
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
return this.unwrap(this.api.PUT("/flow/actions/runs/{id}", { params: { path: { id: runId } }, body: data }));
|
|
936
|
+
async updateEvent(ticketId, data) {
|
|
937
|
+
return this.unwrap(this.api.PUT("/tickets/{id}/events", { params: { path: { id: ticketId } }, body: data }));
|
|
1102
938
|
}
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
return this.unwrap(this.api.GET("/flow/extensions/triggers"));
|
|
939
|
+
async getLoop(ticketId, loopId) {
|
|
940
|
+
return this.unwrap(this.api.GET("/tickets/{id}/loops/{loopId}", { params: { path: { id: ticketId, loopId } } }));
|
|
1106
941
|
}
|
|
1107
|
-
async
|
|
1108
|
-
return this.unwrap(this.api.GET("/
|
|
942
|
+
async listLoops(ticketId, params) {
|
|
943
|
+
return this.unwrap(this.api.GET("/tickets/{id}/loops", { params: { path: { id: ticketId }, query: params } }));
|
|
1109
944
|
}
|
|
1110
|
-
async
|
|
1111
|
-
return this.unwrap(this.api.
|
|
945
|
+
async getMessage(ticketId, messageId) {
|
|
946
|
+
return this.unwrap(this.api.GET("/tickets/{id}/messages/{messageId}", { params: { path: { id: ticketId, messageId } } }));
|
|
1112
947
|
}
|
|
1113
|
-
async
|
|
1114
|
-
return this.unwrap(this.api.
|
|
948
|
+
async listMessages(ticketId, params) {
|
|
949
|
+
return this.unwrap(this.api.GET("/tickets/{id}/messages", { params: { path: { id: ticketId }, query: params } }));
|
|
1115
950
|
}
|
|
1116
|
-
async
|
|
1117
|
-
return this.unwrap(this.api.
|
|
951
|
+
async createMessage(ticketId, data) {
|
|
952
|
+
return this.unwrap(this.api.POST("/tickets/{id}/messages", { params: { path: { id: ticketId } }, body: data }));
|
|
1118
953
|
}
|
|
1119
|
-
async
|
|
1120
|
-
return this.unwrap(this.api.
|
|
954
|
+
async updateMessage(ticketId, data) {
|
|
955
|
+
return this.unwrap(this.api.PUT("/tickets/{id}/messages", { params: { path: { id: ticketId } }, body: data }));
|
|
956
|
+
}
|
|
957
|
+
async get(ticketId) {
|
|
958
|
+
return this.unwrap(this.api.GET("/tickets/{id}", { params: { path: { id: ticketId } } }));
|
|
959
|
+
}
|
|
960
|
+
async update(ticketId, data) {
|
|
961
|
+
return this.unwrap(this.api.PUT("/tickets/{id}", { params: { path: { id: ticketId } }, body: data }));
|
|
1121
962
|
}
|
|
1122
963
|
};
|
|
1123
964
|
|
|
1124
|
-
// src/resources/
|
|
1125
|
-
var
|
|
1126
|
-
async
|
|
1127
|
-
return this.unwrap(this.api.
|
|
965
|
+
// src/resources/timeline-comments.ts
|
|
966
|
+
var TimelineCommentsResource = class extends BaseResource {
|
|
967
|
+
async list(params) {
|
|
968
|
+
return this.unwrap(this.api.GET("/timeline_comments", { params: { query: params } }));
|
|
1128
969
|
}
|
|
1129
|
-
async
|
|
1130
|
-
return this.unwrap(this.api.
|
|
970
|
+
async create(data) {
|
|
971
|
+
return this.unwrap(this.api.POST("/timeline_comments", { body: data }));
|
|
1131
972
|
}
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
async
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
const start = Date.now();
|
|
1141
|
-
while (Date.now() - start < timeout) {
|
|
1142
|
-
const response = await this.get(agentId, run.id);
|
|
1143
|
-
const agentRun = response.run;
|
|
1144
|
-
if (agentRun.status === "completed" || agentRun.status === "error") {
|
|
1145
|
-
return agentRun;
|
|
1146
|
-
}
|
|
1147
|
-
await new Promise((resolve) => setTimeout(resolve, pollInterval));
|
|
1148
|
-
}
|
|
1149
|
-
throw new Error(`Agent run timed out after ${timeout}ms`);
|
|
973
|
+
async get(commentId) {
|
|
974
|
+
return this.unwrap(this.api.GET("/timeline_comments/{id}", { params: { path: { id: commentId } } }));
|
|
975
|
+
}
|
|
976
|
+
async update(commentId, data) {
|
|
977
|
+
return this.unwrap(this.api.PUT("/timeline_comments/{id}", { params: { path: { id: commentId } }, body: data }));
|
|
978
|
+
}
|
|
979
|
+
async del(commentId, params) {
|
|
980
|
+
return this.unwrap(this.api.DELETE("/timeline_comments/{id}", { params: { path: { id: commentId }, query: params } }));
|
|
1150
981
|
}
|
|
1151
982
|
};
|
|
1152
983
|
|
|
1153
|
-
// src/resources/
|
|
1154
|
-
var
|
|
984
|
+
// src/resources/transactions.ts
|
|
985
|
+
var TransactionsResource = class extends BaseResource {
|
|
1155
986
|
async list(params) {
|
|
1156
|
-
return this.unwrap(this.api.GET("/
|
|
1157
|
-
}
|
|
1158
|
-
async get(meetingId) {
|
|
1159
|
-
return this.unwrap(this.api.GET("/meetings/{id}", { params: { path: { id: meetingId } } }));
|
|
987
|
+
return this.unwrap(this.api.GET("/transactions", { params: { query: params } }));
|
|
1160
988
|
}
|
|
1161
|
-
async
|
|
1162
|
-
return this.unwrap(this.api.
|
|
989
|
+
async get(transactionId) {
|
|
990
|
+
return this.unwrap(this.api.GET("/transactions/{id}", { params: { path: { id: transactionId } } }));
|
|
1163
991
|
}
|
|
1164
|
-
|
|
1165
|
-
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
// src/resources/usage-events.ts
|
|
995
|
+
var UsageEventsResource = class extends BaseResource {
|
|
996
|
+
async list(params) {
|
|
997
|
+
return this.unwrap(this.api.GET("/usage_events", { params: { query: params } }));
|
|
1166
998
|
}
|
|
1167
|
-
async
|
|
1168
|
-
return this.unwrap(this.api.
|
|
999
|
+
async create(data) {
|
|
1000
|
+
return this.unwrap(this.api.POST("/usage_events", { body: data }));
|
|
1169
1001
|
}
|
|
1170
1002
|
};
|
|
1171
1003
|
|
|
1172
|
-
// src/resources/
|
|
1173
|
-
var
|
|
1004
|
+
// src/resources/users.ts
|
|
1005
|
+
var UsersResource = class extends BaseResource {
|
|
1174
1006
|
async list(params) {
|
|
1175
|
-
return this.unwrap(this.
|
|
1007
|
+
return this.unwrap(this.api.GET("/users", { params: { query: params } }));
|
|
1176
1008
|
}
|
|
1177
|
-
async get(
|
|
1178
|
-
return this.unwrap(this.
|
|
1009
|
+
async get(userId) {
|
|
1010
|
+
return this.unwrap(this.api.GET("/users/{id}", { params: { path: { id: userId } } }));
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
// src/resources/webhooks.ts
|
|
1015
|
+
var WebhooksResource = class extends BaseResource {
|
|
1016
|
+
async list() {
|
|
1017
|
+
return this.unwrap(this.api.GET("/webhooks"));
|
|
1179
1018
|
}
|
|
1180
1019
|
async create(data) {
|
|
1181
|
-
return this.unwrap(this.
|
|
1020
|
+
return this.unwrap(this.api.POST("/webhooks", { body: data }));
|
|
1182
1021
|
}
|
|
1183
|
-
async update(
|
|
1184
|
-
return this.unwrap(this.
|
|
1022
|
+
async update(webhookId, data) {
|
|
1023
|
+
return this.unwrap(this.api.PUT("/webhooks/{id}", { params: { path: { id: webhookId } }, body: data }));
|
|
1185
1024
|
}
|
|
1186
|
-
async del(
|
|
1187
|
-
return this.unwrap(this.
|
|
1025
|
+
async del(webhookId) {
|
|
1026
|
+
return this.unwrap(this.api.DELETE("/webhooks/{id}", { params: { path: { id: webhookId } } }));
|
|
1027
|
+
}
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1030
|
+
// src/resources/agents.ts
|
|
1031
|
+
var AgentsResource = class extends BaseResource {
|
|
1032
|
+
async list() {
|
|
1033
|
+
return this.unwrap(this.untypedApi.GET("/agents", {}));
|
|
1034
|
+
}
|
|
1035
|
+
async get(agentId) {
|
|
1036
|
+
return this.unwrap(this.untypedApi.GET("/agents/{id}", { params: { path: { id: agentId } } }));
|
|
1188
1037
|
}
|
|
1189
|
-
async
|
|
1190
|
-
return this.unwrap(this.untypedApi.POST("/
|
|
1038
|
+
async create(params) {
|
|
1039
|
+
return this.unwrap(this.untypedApi.POST("/agents", { body: params }));
|
|
1191
1040
|
}
|
|
1192
|
-
async
|
|
1193
|
-
return this.unwrap(this.untypedApi.
|
|
1041
|
+
async findOrCreate(params) {
|
|
1042
|
+
return this.unwrap(this.untypedApi.POST("/agents/find_or_create", { body: params }));
|
|
1194
1043
|
}
|
|
1195
1044
|
};
|
|
1196
1045
|
|
|
@@ -1201,10 +1050,11 @@ function createTimeoutSignal(ms) {
|
|
|
1201
1050
|
return controller.signal;
|
|
1202
1051
|
}
|
|
1203
1052
|
var MantleCoreClient = class {
|
|
1053
|
+
// @generated-resource-properties-end
|
|
1204
1054
|
constructor(config) {
|
|
1205
|
-
if (!config.apiKey && !config.accessToken) {
|
|
1055
|
+
if (!config.apiKey && !config.accessToken && !config.fetch) {
|
|
1206
1056
|
throw new Error(
|
|
1207
|
-
"MantleCoreClient requires either apiKey or
|
|
1057
|
+
"MantleCoreClient requires either apiKey, accessToken, or a custom fetch function"
|
|
1208
1058
|
);
|
|
1209
1059
|
}
|
|
1210
1060
|
this.apiKey = config.apiKey;
|
|
@@ -1214,7 +1064,8 @@ var MantleCoreClient = class {
|
|
|
1214
1064
|
baseUrl: config.baseURL || "https://api.heymantle.com/v1",
|
|
1215
1065
|
headers: {
|
|
1216
1066
|
"Content-Type": "application/json"
|
|
1217
|
-
}
|
|
1067
|
+
},
|
|
1068
|
+
...config.fetch ? { fetch: config.fetch } : {}
|
|
1218
1069
|
});
|
|
1219
1070
|
this._api.use({
|
|
1220
1071
|
onRequest: ({ request }) => {
|
|
@@ -1238,44 +1089,45 @@ var MantleCoreClient = class {
|
|
|
1238
1089
|
this._api.use(mw);
|
|
1239
1090
|
}
|
|
1240
1091
|
}
|
|
1241
|
-
this.customers = new CustomersResource(this);
|
|
1242
|
-
this.contacts = new ContactsResource(this);
|
|
1243
|
-
this.subscriptions = new SubscriptionsResource(this);
|
|
1244
|
-
this.usageEvents = new UsageEventsResource(this);
|
|
1245
|
-
this.apps = new AppsResource(this);
|
|
1246
|
-
this.deals = new DealsResource(this);
|
|
1247
|
-
this.dealFlows = new DealFlowsResource(this);
|
|
1248
|
-
this.dealActivities = new DealActivitiesResource(this);
|
|
1249
|
-
this.tickets = new TicketsResource(this);
|
|
1250
|
-
this.channels = new ChannelsResource(this);
|
|
1251
|
-
this.flows = new FlowsResource(this);
|
|
1252
|
-
this.tasks = new TasksResource(this);
|
|
1253
|
-
this.webhooks = new WebhooksResource(this);
|
|
1254
|
-
this.companies = new CompaniesResource(this);
|
|
1255
|
-
this.customerSegments = new CustomerSegmentsResource(this);
|
|
1256
|
-
this.affiliates = new AffiliatesResource(this);
|
|
1257
|
-
this.affiliatePrograms = new AffiliateProgramsResource(this);
|
|
1258
1092
|
this.affiliateCommissions = new AffiliateCommissionsResource(this);
|
|
1259
1093
|
this.affiliatePayouts = new AffiliatePayoutsResource(this);
|
|
1094
|
+
this.affiliatePrograms = new AffiliateProgramsResource(this);
|
|
1260
1095
|
this.affiliateReferrals = new AffiliateReferralsResource(this);
|
|
1096
|
+
this.affiliates = new AffiliatesResource(this);
|
|
1097
|
+
this.aiAgentRuns = new AiAgentRunsResource(this);
|
|
1098
|
+
this.apps = new AppsResource(this);
|
|
1099
|
+
this.assistant = new AssistantResource(this);
|
|
1100
|
+
this.channels = new ChannelsResource(this);
|
|
1261
1101
|
this.charges = new ChargesResource(this);
|
|
1262
|
-
this.
|
|
1263
|
-
this.
|
|
1264
|
-
this.users = new UsersResource(this);
|
|
1265
|
-
this.me = new MeResource(this);
|
|
1266
|
-
this.organization = new OrganizationResource(this);
|
|
1267
|
-
this.agents = new AgentsResource(this);
|
|
1268
|
-
this.docs = new DocsResource(this);
|
|
1269
|
-
this.entities = new EntitiesResource(this);
|
|
1102
|
+
this.companies = new CompaniesResource(this);
|
|
1103
|
+
this.contacts = new ContactsResource(this);
|
|
1270
1104
|
this.customData = new CustomDataResource(this);
|
|
1271
|
-
this.
|
|
1272
|
-
this.
|
|
1273
|
-
this.
|
|
1105
|
+
this.customerSegments = new CustomerSegmentsResource(this);
|
|
1106
|
+
this.customers = new CustomersResource(this);
|
|
1107
|
+
this.dealActivities = new DealActivitiesResource(this);
|
|
1108
|
+
this.dealFlows = new DealFlowsResource(this);
|
|
1109
|
+
this.deals = new DealsResource(this);
|
|
1110
|
+
this.docs = new DocsResource(this);
|
|
1274
1111
|
this.emailUnsubscribeGroups = new EmailUnsubscribeGroupsResource(this);
|
|
1112
|
+
this.entities = new EntitiesResource(this);
|
|
1275
1113
|
this.flowExtensions = new FlowExtensionsResource(this);
|
|
1276
|
-
this.
|
|
1114
|
+
this.flows = new FlowsResource(this);
|
|
1115
|
+
this.journalEntries = new JournalEntriesResource(this);
|
|
1116
|
+
this.lists = new ListsResource(this);
|
|
1277
1117
|
this.meetings = new MeetingsResource(this);
|
|
1118
|
+
this.me = new MeResource(this);
|
|
1119
|
+
this.metrics = new MetricsResource(this);
|
|
1120
|
+
this.organization = new OrganizationResource(this);
|
|
1121
|
+
this.subscriptions = new SubscriptionsResource(this);
|
|
1278
1122
|
this.syncedEmails = new SyncedEmailsResource(this);
|
|
1123
|
+
this.tasks = new TasksResource(this);
|
|
1124
|
+
this.tickets = new TicketsResource(this);
|
|
1125
|
+
this.timelineComments = new TimelineCommentsResource(this);
|
|
1126
|
+
this.transactions = new TransactionsResource(this);
|
|
1127
|
+
this.usageEvents = new UsageEventsResource(this);
|
|
1128
|
+
this.users = new UsersResource(this);
|
|
1129
|
+
this.webhooks = new WebhooksResource(this);
|
|
1130
|
+
this.agents = new AgentsResource(this);
|
|
1279
1131
|
}
|
|
1280
1132
|
/**
|
|
1281
1133
|
* Register an openapi-fetch middleware
|