@adspireai/adspire-node-sdk 1.0.256 → 1.0.286
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/dist-public/sdk.gen.d.ts +2 -362
- package/dist-public/sdk.gen.js +133 -1188
- package/dist-public/sdk.gen.js.map +1 -1
- package/dist-public/types.gen.d.ts +265 -2226
- package/dist-public/types.gen.js +8 -2
- package/dist-public/types.gen.js.map +1 -1
- package/package.json +1 -1
package/dist-public/sdk.gen.js
CHANGED
|
@@ -1,102 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.acceptWorkspaceInvite = exports.validateWorkspaceInvite = exports.sendWorkspaceInvite = exports.listPendingInvites = exports.updateWorkspace = exports.getWorkspace = exports.deleteWorkspace = exports.createWorkspace = exports.listWorkspaces = exports.inviteWhiteboardPreviewExternalUser = exports.listWhiteboardPreviewExternalUsers = exports.revokeWhiteboardPreviewExternalUser = exports.deleteWhiteboardPreview = exports.discardPreviousWhiteboardPreviews = exports.createWhiteboardPreview = exports.listWhiteboardPreviews = exports.duplicateWhiteboardPost = exports.reorderWhiteboardPosts = exports.updateWhiteboardPost = exports.getWhiteboardPost = exports.deleteWhiteboardPost = exports.createWhiteboardPost = exports.listWhiteboardPosts = exports.updateWhiteboardPostComment = exports.getWhiteboardPostComment = exports.deleteWhiteboardPostComment = exports.createWhiteboardPostComment = exports.listWhiteboardPostComments = exports.updateWhiteboard = exports.getWhiteboard = exports.deleteWhiteboard = exports.createWhiteboard = exports.listWhiteboards = exports.updateWhiteboardComment = exports.getWhiteboardComment = exports.deleteWhiteboardComment = exports.createWhiteboardComment = exports.listWhiteboardComments = exports.updateWebhookLog = exports.getWebhookLog = exports.deleteWebhookLog = exports.createWebhookLog = exports.listWebhookLogs = exports.updateWebhookEvent = exports.getWebhookEvent = exports.deleteWebhookEvent = exports.createWebhookEvent = exports.listWebhookEvents = void 0;
|
|
4
|
+
exports.deleteWhiteboardComment = exports.createWhiteboardComment = exports.listWhiteboardComments = exports.updateWebhookEvent = exports.getWebhookEvent = exports.deleteWebhookEvent = exports.createWebhookEvent = exports.listWebhookEvents = exports.updateCompany = exports.getCompany = exports.deleteCompany = exports.autocompleteCompanies = exports.createCompany = exports.listCompanies = exports.updateCampaign = exports.getCampaign = exports.deleteCampaign = exports.listBrandCampaigns = exports.createCampaign = exports.listCampaigns = exports.updateBrandPrompt = exports.getBrandPrompt = exports.deleteBrandPrompt = exports.createBrandPrompt = exports.listBrandPrompts = exports.updateBrand = exports.getBrand = exports.deleteBrand = exports.createBrand = exports.listBrands = exports.syncBrandChannels = exports.listBrandChannels = exports.updateBrandAssets = exports.getBrandAssets = exports.logoutUser = exports.getMe = exports.loginUser = exports.updateApprovalRequest = exports.getApprovalRequest = exports.deleteApprovalRequest = exports.listApprovalRequestsByWhiteboardPreview = exports.createApprovalRequest = exports.listApprovalRequests = exports.updateActivityLog = exports.getActivityLog = exports.deleteActivityLog = exports.listBrandActivityLogs = exports.listWorkspaceActivityLogs = exports.createActivityLog = exports.listActivityLogs = void 0;
|
|
5
|
+
exports.inviteWhiteboardPreviewExternalUser = exports.listWhiteboardPreviewExternalUsers = exports.revokeWhiteboardPreviewExternalUser = exports.deleteWhiteboardPreview = exports.discardPreviousWhiteboardPreviews = exports.createWhiteboardPreview = exports.listWhiteboardPreviews = exports.duplicateWhiteboardPost = exports.reorderWhiteboardPosts = exports.updateWhiteboardPost = exports.getWhiteboardPost = exports.deleteWhiteboardPost = exports.createWhiteboardPost = exports.listWhiteboardPosts = exports.updateWhiteboardPostComment = exports.getWhiteboardPostComment = exports.deleteWhiteboardPostComment = exports.createWhiteboardPostComment = exports.listWhiteboardPostComments = exports.updateWhiteboard = exports.getWhiteboard = exports.deleteWhiteboard = exports.createWhiteboard = exports.listWhiteboards = exports.updateWhiteboardComment = exports.getWhiteboardComment = void 0;
|
|
7
6
|
const client_gen_1 = require("./client.gen");
|
|
8
|
-
/**
|
|
9
|
-
* List AI credit usage records for the authenticated user
|
|
10
|
-
* Get a list of all AI credit usage records for the authenticated user
|
|
11
|
-
*/
|
|
12
|
-
const listAiCreditUsages = (options) => {
|
|
13
|
-
var _a;
|
|
14
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
15
|
-
url: '/api/ai-credit-usages',
|
|
16
|
-
...options
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
exports.listAiCreditUsages = listAiCreditUsages;
|
|
20
|
-
/**
|
|
21
|
-
* Create AI credit usage record
|
|
22
|
-
* Create a new AI credit usage record
|
|
23
|
-
*/
|
|
24
|
-
const createAiCreditUsage = (options) => {
|
|
25
|
-
var _a;
|
|
26
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
27
|
-
url: '/api/ai-credit-usages',
|
|
28
|
-
...options,
|
|
29
|
-
headers: {
|
|
30
|
-
'Content-Type': 'application/json',
|
|
31
|
-
...options.headers
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
exports.createAiCreditUsage = createAiCreditUsage;
|
|
36
|
-
/**
|
|
37
|
-
* List AI credit usage records for a brand
|
|
38
|
-
* Get a list of all AI credit usage records for a specific brand
|
|
39
|
-
*/
|
|
40
|
-
const listBrandAiCreditUsages = (options) => {
|
|
41
|
-
var _a;
|
|
42
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
43
|
-
url: '/api/brands/{brand}/ai-credit-usages',
|
|
44
|
-
...options
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
exports.listBrandAiCreditUsages = listBrandAiCreditUsages;
|
|
48
|
-
/**
|
|
49
|
-
* List AI credit usage records for a workspace
|
|
50
|
-
* Get a list of all AI credit usage records for a specific workspace
|
|
51
|
-
*/
|
|
52
|
-
const listWorkspaceAiCreditUsages = (options) => {
|
|
53
|
-
var _a;
|
|
54
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
55
|
-
url: '/api/workspaces/{workspace}/ai-credit-usages',
|
|
56
|
-
...options
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
exports.listWorkspaceAiCreditUsages = listWorkspaceAiCreditUsages;
|
|
60
|
-
/**
|
|
61
|
-
* Delete AI credit usage record
|
|
62
|
-
* Delete a specific AI credit usage record
|
|
63
|
-
*/
|
|
64
|
-
const deleteAiCreditUsage = (options) => {
|
|
65
|
-
var _a;
|
|
66
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
67
|
-
url: '/api/ai-credit-usages/{id}',
|
|
68
|
-
...options
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
exports.deleteAiCreditUsage = deleteAiCreditUsage;
|
|
72
|
-
/**
|
|
73
|
-
* Get specific AI credit usage record
|
|
74
|
-
* Get a specific AI credit usage record by ID
|
|
75
|
-
*/
|
|
76
|
-
const getAiCreditUsage = (options) => {
|
|
77
|
-
var _a;
|
|
78
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
79
|
-
url: '/api/ai-credit-usages/{id}',
|
|
80
|
-
...options
|
|
81
|
-
});
|
|
82
|
-
};
|
|
83
|
-
exports.getAiCreditUsage = getAiCreditUsage;
|
|
84
|
-
/**
|
|
85
|
-
* Update AI credit usage record
|
|
86
|
-
* Update an existing AI credit usage record
|
|
87
|
-
*/
|
|
88
|
-
const updateAiCreditUsage = (options) => {
|
|
89
|
-
var _a;
|
|
90
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
91
|
-
url: '/api/ai-credit-usages/{id}',
|
|
92
|
-
...options,
|
|
93
|
-
headers: {
|
|
94
|
-
'Content-Type': 'application/json',
|
|
95
|
-
...options.headers
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
exports.updateAiCreditUsage = updateAiCreditUsage;
|
|
100
7
|
/**
|
|
101
8
|
* List activity logs
|
|
102
9
|
* Get a list of all activity logs
|
|
@@ -189,90 +96,6 @@ const updateActivityLog = (options) => {
|
|
|
189
96
|
});
|
|
190
97
|
};
|
|
191
98
|
exports.updateActivityLog = updateActivityLog;
|
|
192
|
-
/**
|
|
193
|
-
* Generate whiteboard post content from a selected prompt
|
|
194
|
-
* Synchronously generates post content from provided content using a selected saved brand content prompt and returns the generated content without updating the whiteboard post.
|
|
195
|
-
*/
|
|
196
|
-
const generateWhiteboardPostContentFromPrompt = (options) => {
|
|
197
|
-
var _a;
|
|
198
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
199
|
-
url: '/api/whiteboards/{whiteboard}/posts/{whiteboard_post}/assistant/generate',
|
|
200
|
-
...options,
|
|
201
|
-
headers: {
|
|
202
|
-
'Content-Type': 'application/json',
|
|
203
|
-
...options.headers
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
};
|
|
207
|
-
exports.generateWhiteboardPostContentFromPrompt = generateWhiteboardPostContentFromPrompt;
|
|
208
|
-
/**
|
|
209
|
-
* List your API keys
|
|
210
|
-
* Retrieve all API key records for the authenticated user.
|
|
211
|
-
*/
|
|
212
|
-
const listApiKeys = (options) => {
|
|
213
|
-
var _a;
|
|
214
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
215
|
-
url: '/api/api-keys',
|
|
216
|
-
...options
|
|
217
|
-
});
|
|
218
|
-
};
|
|
219
|
-
exports.listApiKeys = listApiKeys;
|
|
220
|
-
/**
|
|
221
|
-
* Create an API key
|
|
222
|
-
* Generate a new API key
|
|
223
|
-
*/
|
|
224
|
-
const createApiKey = (options) => {
|
|
225
|
-
var _a;
|
|
226
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
227
|
-
url: '/api/api-keys',
|
|
228
|
-
...options,
|
|
229
|
-
headers: {
|
|
230
|
-
'Content-Type': 'application/json',
|
|
231
|
-
...options.headers
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
};
|
|
235
|
-
exports.createApiKey = createApiKey;
|
|
236
|
-
/**
|
|
237
|
-
* Delete an API key
|
|
238
|
-
* Remove a specific API key
|
|
239
|
-
*/
|
|
240
|
-
const deleteApiKey = (options) => {
|
|
241
|
-
var _a;
|
|
242
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
243
|
-
url: '/api/api-keys/{id}',
|
|
244
|
-
...options
|
|
245
|
-
});
|
|
246
|
-
};
|
|
247
|
-
exports.deleteApiKey = deleteApiKey;
|
|
248
|
-
/**
|
|
249
|
-
* Get an API key
|
|
250
|
-
* Retrieve a specific API key
|
|
251
|
-
*/
|
|
252
|
-
const getApiKey = (options) => {
|
|
253
|
-
var _a;
|
|
254
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
255
|
-
url: '/api/api-keys/{id}',
|
|
256
|
-
...options
|
|
257
|
-
});
|
|
258
|
-
};
|
|
259
|
-
exports.getApiKey = getApiKey;
|
|
260
|
-
/**
|
|
261
|
-
* Update an API key
|
|
262
|
-
* Update a specific API key's information
|
|
263
|
-
*/
|
|
264
|
-
const updateApiKey = (options) => {
|
|
265
|
-
var _a;
|
|
266
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
267
|
-
url: '/api/api-keys/{id}',
|
|
268
|
-
...options,
|
|
269
|
-
headers: {
|
|
270
|
-
'Content-Type': 'application/json',
|
|
271
|
-
...options.headers
|
|
272
|
-
}
|
|
273
|
-
});
|
|
274
|
-
};
|
|
275
|
-
exports.updateApiKey = updateApiKey;
|
|
276
99
|
/**
|
|
277
100
|
* List approval requests
|
|
278
101
|
* Retrieve all approval request records
|
|
@@ -352,22 +175,6 @@ const updateApprovalRequest = (options) => {
|
|
|
352
175
|
});
|
|
353
176
|
};
|
|
354
177
|
exports.updateApprovalRequest = updateApprovalRequest;
|
|
355
|
-
/**
|
|
356
|
-
* Register a new user
|
|
357
|
-
* Creates a new user account and returns authentication token or success message
|
|
358
|
-
*/
|
|
359
|
-
const registerUser = (options) => {
|
|
360
|
-
var _a;
|
|
361
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
362
|
-
url: '/api/auth/register',
|
|
363
|
-
...options,
|
|
364
|
-
headers: {
|
|
365
|
-
'Content-Type': 'application/json',
|
|
366
|
-
...options.headers
|
|
367
|
-
}
|
|
368
|
-
});
|
|
369
|
-
};
|
|
370
|
-
exports.registerUser = registerUser;
|
|
371
178
|
/**
|
|
372
179
|
* User login
|
|
373
180
|
* Logs in a user and returns an access token
|
|
@@ -408,102 +215,6 @@ const logoutUser = (options) => {
|
|
|
408
215
|
});
|
|
409
216
|
};
|
|
410
217
|
exports.logoutUser = logoutUser;
|
|
411
|
-
/**
|
|
412
|
-
* Refresh JWT token
|
|
413
|
-
* Refreshes the current JWT token and returns a new one
|
|
414
|
-
*/
|
|
415
|
-
const refreshToken = (options) => {
|
|
416
|
-
var _a;
|
|
417
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
418
|
-
url: '/api/auth/refresh',
|
|
419
|
-
...options
|
|
420
|
-
});
|
|
421
|
-
};
|
|
422
|
-
exports.refreshToken = refreshToken;
|
|
423
|
-
/**
|
|
424
|
-
* Send password reset link
|
|
425
|
-
* Sends a password reset link to the user's email address.
|
|
426
|
-
*/
|
|
427
|
-
const sendResetLinkEmail = (options) => {
|
|
428
|
-
var _a;
|
|
429
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
430
|
-
url: '/api/auth/password/email',
|
|
431
|
-
...options,
|
|
432
|
-
headers: {
|
|
433
|
-
'Content-Type': 'application/json',
|
|
434
|
-
...options.headers
|
|
435
|
-
}
|
|
436
|
-
});
|
|
437
|
-
};
|
|
438
|
-
exports.sendResetLinkEmail = sendResetLinkEmail;
|
|
439
|
-
/**
|
|
440
|
-
* Reset user password
|
|
441
|
-
* Resets the user's password using a valid reset token.
|
|
442
|
-
*/
|
|
443
|
-
const resetPassword = (options) => {
|
|
444
|
-
var _a;
|
|
445
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
446
|
-
url: '/api/auth/password/reset',
|
|
447
|
-
...options,
|
|
448
|
-
headers: {
|
|
449
|
-
'Content-Type': 'application/json',
|
|
450
|
-
...options.headers
|
|
451
|
-
}
|
|
452
|
-
});
|
|
453
|
-
};
|
|
454
|
-
exports.resetPassword = resetPassword;
|
|
455
|
-
/**
|
|
456
|
-
* Resume subscription
|
|
457
|
-
* Resume a cancelled subscription during grace period
|
|
458
|
-
*/
|
|
459
|
-
const resumeSubscription = (options) => {
|
|
460
|
-
var _a;
|
|
461
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
462
|
-
url: '/api/billing/resume_plan',
|
|
463
|
-
...options
|
|
464
|
-
});
|
|
465
|
-
};
|
|
466
|
-
exports.resumeSubscription = resumeSubscription;
|
|
467
|
-
/**
|
|
468
|
-
* Get customer portal URL
|
|
469
|
-
* Get LemonSqueezy customer portal URL for updating payment information
|
|
470
|
-
*/
|
|
471
|
-
const getClientPortalUrl = (options) => {
|
|
472
|
-
var _a;
|
|
473
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
474
|
-
url: '/api/billing/client_portal',
|
|
475
|
-
...options
|
|
476
|
-
});
|
|
477
|
-
};
|
|
478
|
-
exports.getClientPortalUrl = getClientPortalUrl;
|
|
479
|
-
/**
|
|
480
|
-
* Cancel subscription
|
|
481
|
-
* Cancel the current active subscription
|
|
482
|
-
*/
|
|
483
|
-
const cancelSubscription = (options) => {
|
|
484
|
-
var _a;
|
|
485
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
486
|
-
url: '/api/billing/cancel_plan',
|
|
487
|
-
...options
|
|
488
|
-
});
|
|
489
|
-
};
|
|
490
|
-
exports.cancelSubscription = cancelSubscription;
|
|
491
|
-
/**
|
|
492
|
-
* Select or switch subscription plan
|
|
493
|
-
* Subscribe to a new plan or switch existing subscription. Returns checkout URL for new subscriptions or switches the plan immediately for existing subscribers.
|
|
494
|
-
*/
|
|
495
|
-
const selectPlan = (options) => {
|
|
496
|
-
var _a;
|
|
497
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
498
|
-
url: '/api/billing/get_plan',
|
|
499
|
-
...options,
|
|
500
|
-
headers: {
|
|
501
|
-
'Content-Type': 'application/json',
|
|
502
|
-
...options.headers
|
|
503
|
-
}
|
|
504
|
-
});
|
|
505
|
-
};
|
|
506
|
-
exports.selectPlan = selectPlan;
|
|
507
218
|
/**
|
|
508
219
|
* Get brand assets
|
|
509
220
|
* Retrieve the assets (color scheme, typography, media) for a specific brand
|
|
@@ -543,613 +254,15 @@ const listBrandChannels = (options) => {
|
|
|
543
254
|
...options
|
|
544
255
|
});
|
|
545
256
|
};
|
|
546
|
-
exports.listBrandChannels = listBrandChannels;
|
|
547
|
-
/**
|
|
548
|
-
* Sync brand channels
|
|
549
|
-
* Replace all channels for a brand with the provided list. Each channel includes a platform type and optional details.
|
|
550
|
-
*/
|
|
551
|
-
const syncBrandChannels = (options) => {
|
|
552
|
-
var _a;
|
|
553
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
554
|
-
url: '/api/brands/{brand}/channels',
|
|
555
|
-
...options,
|
|
556
|
-
headers: {
|
|
557
|
-
'Content-Type': 'application/json',
|
|
558
|
-
...options.headers
|
|
559
|
-
}
|
|
560
|
-
});
|
|
561
|
-
};
|
|
562
|
-
exports.syncBrandChannels = syncBrandChannels;
|
|
563
|
-
/**
|
|
564
|
-
* List brands
|
|
565
|
-
* Retrieve all brand records for the authenticated user's active workspace
|
|
566
|
-
*/
|
|
567
|
-
const listBrands = (options) => {
|
|
568
|
-
var _a;
|
|
569
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
570
|
-
url: '/api/brands',
|
|
571
|
-
...options
|
|
572
|
-
});
|
|
573
|
-
};
|
|
574
|
-
exports.listBrands = listBrands;
|
|
575
|
-
/**
|
|
576
|
-
* Create brand
|
|
577
|
-
* Create a new brand record
|
|
578
|
-
*/
|
|
579
|
-
const createBrand = (options) => {
|
|
580
|
-
var _a;
|
|
581
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
582
|
-
url: '/api/brands',
|
|
583
|
-
...options,
|
|
584
|
-
headers: {
|
|
585
|
-
'Content-Type': 'application/json',
|
|
586
|
-
...options.headers
|
|
587
|
-
}
|
|
588
|
-
});
|
|
589
|
-
};
|
|
590
|
-
exports.createBrand = createBrand;
|
|
591
|
-
/**
|
|
592
|
-
* Delete brand
|
|
593
|
-
* Delete a specific brand record
|
|
594
|
-
*/
|
|
595
|
-
const deleteBrand = (options) => {
|
|
596
|
-
var _a;
|
|
597
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
598
|
-
url: '/api/brands/{id}',
|
|
599
|
-
...options
|
|
600
|
-
});
|
|
601
|
-
};
|
|
602
|
-
exports.deleteBrand = deleteBrand;
|
|
603
|
-
/**
|
|
604
|
-
* Show brand
|
|
605
|
-
* Retrieve a specific brand by id
|
|
606
|
-
*/
|
|
607
|
-
const getBrand = (options) => {
|
|
608
|
-
var _a;
|
|
609
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
610
|
-
url: '/api/brands/{id}',
|
|
611
|
-
...options
|
|
612
|
-
});
|
|
613
|
-
};
|
|
614
|
-
exports.getBrand = getBrand;
|
|
615
|
-
/**
|
|
616
|
-
* Update brand
|
|
617
|
-
* Update an existing brand record
|
|
618
|
-
*/
|
|
619
|
-
const updateBrand = (options) => {
|
|
620
|
-
var _a;
|
|
621
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
622
|
-
url: '/api/brands/{id}',
|
|
623
|
-
...options,
|
|
624
|
-
headers: {
|
|
625
|
-
'Content-Type': 'application/json',
|
|
626
|
-
...options.headers
|
|
627
|
-
}
|
|
628
|
-
});
|
|
629
|
-
};
|
|
630
|
-
exports.updateBrand = updateBrand;
|
|
631
|
-
/**
|
|
632
|
-
* List prompts for a brand
|
|
633
|
-
* Retrieve all prompts for a specific brand with optional type filter
|
|
634
|
-
*/
|
|
635
|
-
const listBrandPrompts = (options) => {
|
|
636
|
-
var _a;
|
|
637
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
638
|
-
url: '/api/brands/{brand}/prompts',
|
|
639
|
-
...options
|
|
640
|
-
});
|
|
641
|
-
};
|
|
642
|
-
exports.listBrandPrompts = listBrandPrompts;
|
|
643
|
-
/**
|
|
644
|
-
* Create brand prompt
|
|
645
|
-
* Create a new prompt for a brand
|
|
646
|
-
*/
|
|
647
|
-
const createBrandPrompt = (options) => {
|
|
648
|
-
var _a;
|
|
649
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
650
|
-
url: '/api/brands/{brand}/prompts',
|
|
651
|
-
...options,
|
|
652
|
-
headers: {
|
|
653
|
-
'Content-Type': 'application/json',
|
|
654
|
-
...options.headers
|
|
655
|
-
}
|
|
656
|
-
});
|
|
657
|
-
};
|
|
658
|
-
exports.createBrandPrompt = createBrandPrompt;
|
|
659
|
-
/**
|
|
660
|
-
* Delete brand prompt
|
|
661
|
-
* Delete a specific brand prompt
|
|
662
|
-
*/
|
|
663
|
-
const deleteBrandPrompt = (options) => {
|
|
664
|
-
var _a;
|
|
665
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
666
|
-
url: '/api/brands/{brand}/prompts/{brand_prompt}',
|
|
667
|
-
...options
|
|
668
|
-
});
|
|
669
|
-
};
|
|
670
|
-
exports.deleteBrandPrompt = deleteBrandPrompt;
|
|
671
|
-
/**
|
|
672
|
-
* Show brand prompt
|
|
673
|
-
* Retrieve a specific brand prompt
|
|
674
|
-
*/
|
|
675
|
-
const getBrandPrompt = (options) => {
|
|
676
|
-
var _a;
|
|
677
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
678
|
-
url: '/api/brands/{brand}/prompts/{brand_prompt}',
|
|
679
|
-
...options
|
|
680
|
-
});
|
|
681
|
-
};
|
|
682
|
-
exports.getBrandPrompt = getBrandPrompt;
|
|
683
|
-
/**
|
|
684
|
-
* Update brand prompt
|
|
685
|
-
* Update an existing brand prompt
|
|
686
|
-
*/
|
|
687
|
-
const updateBrandPrompt = (options) => {
|
|
688
|
-
var _a;
|
|
689
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
690
|
-
url: '/api/brands/{brand}/prompts/{brand_prompt}',
|
|
691
|
-
...options,
|
|
692
|
-
headers: {
|
|
693
|
-
'Content-Type': 'application/json',
|
|
694
|
-
...options.headers
|
|
695
|
-
}
|
|
696
|
-
});
|
|
697
|
-
};
|
|
698
|
-
exports.updateBrandPrompt = updateBrandPrompt;
|
|
699
|
-
/**
|
|
700
|
-
* List campaigns by workspace
|
|
701
|
-
* Get a list of all campaigns for the authenticated user's active workspace. Optionally filter by status and/or completion state.
|
|
702
|
-
*/
|
|
703
|
-
const listCampaigns = (options) => {
|
|
704
|
-
var _a;
|
|
705
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
706
|
-
url: '/api/campaigns',
|
|
707
|
-
...options
|
|
708
|
-
});
|
|
709
|
-
};
|
|
710
|
-
exports.listCampaigns = listCampaigns;
|
|
711
|
-
/**
|
|
712
|
-
* Create campaign
|
|
713
|
-
* Create a new campaign
|
|
714
|
-
*/
|
|
715
|
-
const createCampaign = (options) => {
|
|
716
|
-
var _a;
|
|
717
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
718
|
-
url: '/api/campaigns',
|
|
719
|
-
...options,
|
|
720
|
-
headers: {
|
|
721
|
-
'Content-Type': 'application/json',
|
|
722
|
-
...options.headers
|
|
723
|
-
}
|
|
724
|
-
});
|
|
725
|
-
};
|
|
726
|
-
exports.createCampaign = createCampaign;
|
|
727
|
-
/**
|
|
728
|
-
* List campaigns for a brand
|
|
729
|
-
* Get a list of all campaigns for a specific brand.
|
|
730
|
-
*/
|
|
731
|
-
const listBrandCampaigns = (options) => {
|
|
732
|
-
var _a;
|
|
733
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
734
|
-
url: '/api/brands/{brand}/campaigns',
|
|
735
|
-
...options
|
|
736
|
-
});
|
|
737
|
-
};
|
|
738
|
-
exports.listBrandCampaigns = listBrandCampaigns;
|
|
739
|
-
/**
|
|
740
|
-
* Delete campaign
|
|
741
|
-
* Delete a campaign
|
|
742
|
-
*/
|
|
743
|
-
const deleteCampaign = (options) => {
|
|
744
|
-
var _a;
|
|
745
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
746
|
-
url: '/api/campaigns/{id}',
|
|
747
|
-
...options
|
|
748
|
-
});
|
|
749
|
-
};
|
|
750
|
-
exports.deleteCampaign = deleteCampaign;
|
|
751
|
-
/**
|
|
752
|
-
* Get campaign
|
|
753
|
-
* Get a specific campaign
|
|
754
|
-
*/
|
|
755
|
-
const getCampaign = (options) => {
|
|
756
|
-
var _a;
|
|
757
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
758
|
-
url: '/api/campaigns/{id}',
|
|
759
|
-
...options
|
|
760
|
-
});
|
|
761
|
-
};
|
|
762
|
-
exports.getCampaign = getCampaign;
|
|
763
|
-
/**
|
|
764
|
-
* Update campaign
|
|
765
|
-
* Update a campaign
|
|
766
|
-
*/
|
|
767
|
-
const updateCampaign = (options) => {
|
|
768
|
-
var _a;
|
|
769
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
770
|
-
url: '/api/campaigns/{id}',
|
|
771
|
-
...options,
|
|
772
|
-
headers: {
|
|
773
|
-
'Content-Type': 'application/json',
|
|
774
|
-
...options.headers
|
|
775
|
-
}
|
|
776
|
-
});
|
|
777
|
-
};
|
|
778
|
-
exports.updateCampaign = updateCampaign;
|
|
779
|
-
/**
|
|
780
|
-
* List companies
|
|
781
|
-
* Retrieve all companies for the authenticated user
|
|
782
|
-
*/
|
|
783
|
-
const listCompanies = (options) => {
|
|
784
|
-
var _a;
|
|
785
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
786
|
-
url: '/api/companies',
|
|
787
|
-
...options
|
|
788
|
-
});
|
|
789
|
-
};
|
|
790
|
-
exports.listCompanies = listCompanies;
|
|
791
|
-
/**
|
|
792
|
-
* Create company
|
|
793
|
-
* Create a new company record
|
|
794
|
-
*/
|
|
795
|
-
const createCompany = (options) => {
|
|
796
|
-
var _a;
|
|
797
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
798
|
-
url: '/api/companies',
|
|
799
|
-
...options,
|
|
800
|
-
headers: {
|
|
801
|
-
'Content-Type': 'application/json',
|
|
802
|
-
...options.headers
|
|
803
|
-
}
|
|
804
|
-
});
|
|
805
|
-
};
|
|
806
|
-
exports.createCompany = createCompany;
|
|
807
|
-
/**
|
|
808
|
-
* Autocomplete companies
|
|
809
|
-
* Search companies by name for autocomplete functionality
|
|
810
|
-
*/
|
|
811
|
-
const autocompleteCompanies = (options) => {
|
|
812
|
-
var _a;
|
|
813
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
814
|
-
url: '/api/companies/autocomplete',
|
|
815
|
-
...options
|
|
816
|
-
});
|
|
817
|
-
};
|
|
818
|
-
exports.autocompleteCompanies = autocompleteCompanies;
|
|
819
|
-
/**
|
|
820
|
-
* Delete company
|
|
821
|
-
* Delete a specific company record
|
|
822
|
-
*/
|
|
823
|
-
const deleteCompany = (options) => {
|
|
824
|
-
var _a;
|
|
825
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
826
|
-
url: '/api/companies/{id}',
|
|
827
|
-
...options
|
|
828
|
-
});
|
|
829
|
-
};
|
|
830
|
-
exports.deleteCompany = deleteCompany;
|
|
831
|
-
/**
|
|
832
|
-
* Show company
|
|
833
|
-
* Retrieve a specific company by id
|
|
834
|
-
*/
|
|
835
|
-
const getCompany = (options) => {
|
|
836
|
-
var _a;
|
|
837
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
838
|
-
url: '/api/companies/{id}',
|
|
839
|
-
...options
|
|
840
|
-
});
|
|
841
|
-
};
|
|
842
|
-
exports.getCompany = getCompany;
|
|
843
|
-
/**
|
|
844
|
-
* Update company
|
|
845
|
-
* Update an existing company record
|
|
846
|
-
*/
|
|
847
|
-
const updateCompany = (options) => {
|
|
848
|
-
var _a;
|
|
849
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
850
|
-
url: '/api/companies/{id}',
|
|
851
|
-
...options,
|
|
852
|
-
headers: {
|
|
853
|
-
'Content-Type': 'application/json',
|
|
854
|
-
...options.headers
|
|
855
|
-
}
|
|
856
|
-
});
|
|
857
|
-
};
|
|
858
|
-
exports.updateCompany = updateCompany;
|
|
859
|
-
/**
|
|
860
|
-
* List connectors
|
|
861
|
-
* Retrieve all active connector records with optional filters
|
|
862
|
-
*/
|
|
863
|
-
const listConnectors = (options) => {
|
|
864
|
-
var _a;
|
|
865
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
866
|
-
url: '/api/connectors',
|
|
867
|
-
...options
|
|
868
|
-
});
|
|
869
|
-
};
|
|
870
|
-
exports.listConnectors = listConnectors;
|
|
871
|
-
/**
|
|
872
|
-
* List connector installations
|
|
873
|
-
* Retrieve all connector installations for the authenticated user's active workspace
|
|
874
|
-
*/
|
|
875
|
-
const listConnectorInstallations = (options) => {
|
|
876
|
-
var _a;
|
|
877
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
878
|
-
url: '/api/connector-installations',
|
|
879
|
-
...options
|
|
880
|
-
});
|
|
881
|
-
};
|
|
882
|
-
exports.listConnectorInstallations = listConnectorInstallations;
|
|
883
|
-
/**
|
|
884
|
-
* Create connector installation
|
|
885
|
-
* Create a new connector installation record
|
|
886
|
-
*/
|
|
887
|
-
const createConnectorInstallation = (options) => {
|
|
888
|
-
var _a;
|
|
889
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
890
|
-
url: '/api/connector-installations',
|
|
891
|
-
...options,
|
|
892
|
-
headers: {
|
|
893
|
-
'Content-Type': 'application/json',
|
|
894
|
-
...options.headers
|
|
895
|
-
}
|
|
896
|
-
});
|
|
897
|
-
};
|
|
898
|
-
exports.createConnectorInstallation = createConnectorInstallation;
|
|
899
|
-
/**
|
|
900
|
-
* Delete connector installation
|
|
901
|
-
* Delete a specific connector installation
|
|
902
|
-
*/
|
|
903
|
-
const deleteConnectorInstallation = (options) => {
|
|
904
|
-
var _a;
|
|
905
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
906
|
-
url: '/api/connector-installations/{id}',
|
|
907
|
-
...options
|
|
908
|
-
});
|
|
909
|
-
};
|
|
910
|
-
exports.deleteConnectorInstallation = deleteConnectorInstallation;
|
|
911
|
-
/**
|
|
912
|
-
* Update connector installation
|
|
913
|
-
* Update an existing connector installation record
|
|
914
|
-
*/
|
|
915
|
-
const updateConnectorInstallation = (options) => {
|
|
916
|
-
var _a;
|
|
917
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
918
|
-
url: '/api/connector-installations/{id}',
|
|
919
|
-
...options,
|
|
920
|
-
headers: {
|
|
921
|
-
'Content-Type': 'application/json',
|
|
922
|
-
...options.headers
|
|
923
|
-
}
|
|
924
|
-
});
|
|
925
|
-
};
|
|
926
|
-
exports.updateConnectorInstallation = updateConnectorInstallation;
|
|
927
|
-
/**
|
|
928
|
-
* Crawl a URL and generate posts
|
|
929
|
-
* Dispatches an async job that crawls the given URL, extracts structured content using AI, and generates platform-optimized posts. Returns only a status code with no response body.
|
|
930
|
-
*/
|
|
931
|
-
const crawlUrl = (options) => {
|
|
932
|
-
var _a;
|
|
933
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
934
|
-
url: '/api/jobs/crawl-page',
|
|
935
|
-
...options,
|
|
936
|
-
headers: {
|
|
937
|
-
'Content-Type': 'application/json',
|
|
938
|
-
...options.headers
|
|
939
|
-
}
|
|
940
|
-
});
|
|
941
|
-
};
|
|
942
|
-
exports.crawlUrl = crawlUrl;
|
|
943
|
-
/**
|
|
944
|
-
* Get current external user
|
|
945
|
-
* Get the currently authenticated external user based on ADSPR-EXTERNAL-TOKEN
|
|
946
|
-
*/
|
|
947
|
-
const getExternalCurrentUser = (options) => {
|
|
948
|
-
var _a;
|
|
949
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
950
|
-
security: [
|
|
951
|
-
{
|
|
952
|
-
name: 'ADSPR-EXTERNAL-TOKEN',
|
|
953
|
-
type: 'apiKey'
|
|
954
|
-
}
|
|
955
|
-
],
|
|
956
|
-
url: '/api/external/me',
|
|
957
|
-
...options
|
|
958
|
-
});
|
|
959
|
-
};
|
|
960
|
-
exports.getExternalCurrentUser = getExternalCurrentUser;
|
|
961
|
-
/**
|
|
962
|
-
* List comments for a whiteboard preview
|
|
963
|
-
* Retrieve comments for a whiteboard preview. By default returns only preview-level comments. Use include_posts=true to also include comments on all posts within the preview. Supports filtering by commenter type.
|
|
964
|
-
*/
|
|
965
|
-
const listWhiteboardPreviewComments = (options) => {
|
|
966
|
-
var _a;
|
|
967
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
968
|
-
security: [
|
|
969
|
-
{
|
|
970
|
-
name: 'Authorization or ADSPR-EXTERNAL-TOKEN',
|
|
971
|
-
type: 'apiKey'
|
|
972
|
-
}
|
|
973
|
-
],
|
|
974
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/comments',
|
|
975
|
-
...options
|
|
976
|
-
});
|
|
977
|
-
};
|
|
978
|
-
exports.listWhiteboardPreviewComments = listWhiteboardPreviewComments;
|
|
979
|
-
/**
|
|
980
|
-
* Create comment
|
|
981
|
-
* Create a new comment (or reply) on a whiteboard preview
|
|
982
|
-
*/
|
|
983
|
-
const createWhiteboardPreviewComment = (options) => {
|
|
984
|
-
var _a;
|
|
985
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
986
|
-
security: [
|
|
987
|
-
{
|
|
988
|
-
name: 'Authorization or ADSPR-EXTERNAL-TOKEN',
|
|
989
|
-
type: 'apiKey'
|
|
990
|
-
}
|
|
991
|
-
],
|
|
992
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/comments',
|
|
993
|
-
...options,
|
|
994
|
-
headers: {
|
|
995
|
-
'Content-Type': 'application/json',
|
|
996
|
-
...options.headers
|
|
997
|
-
}
|
|
998
|
-
});
|
|
999
|
-
};
|
|
1000
|
-
exports.createWhiteboardPreviewComment = createWhiteboardPreviewComment;
|
|
1001
|
-
/**
|
|
1002
|
-
* Delete comment
|
|
1003
|
-
* Soft delete a whiteboard preview comment (users can only delete their own comments). Returns the deleted comment with is_deleted flag set to true.
|
|
1004
|
-
*/
|
|
1005
|
-
const deleteWhiteboardPreviewComment = (options) => {
|
|
1006
|
-
var _a;
|
|
1007
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
1008
|
-
security: [
|
|
1009
|
-
{
|
|
1010
|
-
name: 'Authorization or ADSPR-EXTERNAL-TOKEN',
|
|
1011
|
-
type: 'apiKey'
|
|
1012
|
-
}
|
|
1013
|
-
],
|
|
1014
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/comments/{comment}',
|
|
1015
|
-
...options
|
|
1016
|
-
});
|
|
1017
|
-
};
|
|
1018
|
-
exports.deleteWhiteboardPreviewComment = deleteWhiteboardPreviewComment;
|
|
1019
|
-
/**
|
|
1020
|
-
* Update comment
|
|
1021
|
-
* Update an existing whiteboard preview comment (users can only edit their own comments)
|
|
1022
|
-
*/
|
|
1023
|
-
const updateWhiteboardPreviewComment = (options) => {
|
|
1024
|
-
var _a;
|
|
1025
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
1026
|
-
security: [
|
|
1027
|
-
{
|
|
1028
|
-
name: 'Authorization or ADSPR-EXTERNAL-TOKEN',
|
|
1029
|
-
type: 'apiKey'
|
|
1030
|
-
}
|
|
1031
|
-
],
|
|
1032
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/comments/{comment}',
|
|
1033
|
-
...options,
|
|
1034
|
-
headers: {
|
|
1035
|
-
'Content-Type': 'application/json',
|
|
1036
|
-
...options.headers
|
|
1037
|
-
}
|
|
1038
|
-
});
|
|
1039
|
-
};
|
|
1040
|
-
exports.updateWhiteboardPreviewComment = updateWhiteboardPreviewComment;
|
|
1041
|
-
/**
|
|
1042
|
-
* Get whiteboard preview with posts
|
|
1043
|
-
* Get whiteboard preview with all posts for external review
|
|
1044
|
-
*/
|
|
1045
|
-
const showExternalWhiteboardPreview = (options) => {
|
|
1046
|
-
var _a;
|
|
1047
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
1048
|
-
security: [
|
|
1049
|
-
{
|
|
1050
|
-
name: 'Authorization or ADSPR-EXTERNAL-TOKEN',
|
|
1051
|
-
type: 'apiKey'
|
|
1052
|
-
}
|
|
1053
|
-
],
|
|
1054
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}',
|
|
1055
|
-
...options
|
|
1056
|
-
});
|
|
1057
|
-
};
|
|
1058
|
-
exports.showExternalWhiteboardPreview = showExternalWhiteboardPreview;
|
|
1059
|
-
/**
|
|
1060
|
-
* Update whiteboard preview status
|
|
1061
|
-
* Update whiteboard preview status to approved or rejected
|
|
1062
|
-
*/
|
|
1063
|
-
const updateExternalWhiteboardPreview = (options) => {
|
|
1064
|
-
var _a;
|
|
1065
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
1066
|
-
security: [
|
|
1067
|
-
{
|
|
1068
|
-
name: 'ADSPR-EXTERNAL-TOKEN',
|
|
1069
|
-
type: 'apiKey'
|
|
1070
|
-
}
|
|
1071
|
-
],
|
|
1072
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}',
|
|
1073
|
-
...options,
|
|
1074
|
-
headers: {
|
|
1075
|
-
'Content-Type': 'application/json',
|
|
1076
|
-
...options.headers
|
|
1077
|
-
}
|
|
1078
|
-
});
|
|
1079
|
-
};
|
|
1080
|
-
exports.updateExternalWhiteboardPreview = updateExternalWhiteboardPreview;
|
|
1081
|
-
/**
|
|
1082
|
-
* List comments for a whiteboard preview post
|
|
1083
|
-
* Retrieve all comments (including replies) for a specific whiteboard preview post. Supports filtering by commenter type.
|
|
1084
|
-
*/
|
|
1085
|
-
const listWhiteboardPreviewPostComments = (options) => {
|
|
1086
|
-
var _a;
|
|
1087
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
1088
|
-
security: [
|
|
1089
|
-
{
|
|
1090
|
-
name: 'Authorization or ADSPR-EXTERNAL-TOKEN',
|
|
1091
|
-
type: 'apiKey'
|
|
1092
|
-
}
|
|
1093
|
-
],
|
|
1094
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/posts/{whiteboard_preview_post}/comments',
|
|
1095
|
-
...options
|
|
1096
|
-
});
|
|
1097
|
-
};
|
|
1098
|
-
exports.listWhiteboardPreviewPostComments = listWhiteboardPreviewPostComments;
|
|
1099
|
-
/**
|
|
1100
|
-
* Create comment
|
|
1101
|
-
* Create a new comment (or reply) on a whiteboard preview post
|
|
1102
|
-
*/
|
|
1103
|
-
const createWhiteboardPreviewPostComment = (options) => {
|
|
1104
|
-
var _a;
|
|
1105
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
1106
|
-
security: [
|
|
1107
|
-
{
|
|
1108
|
-
name: 'Authorization or ADSPR-EXTERNAL-TOKEN',
|
|
1109
|
-
type: 'apiKey'
|
|
1110
|
-
}
|
|
1111
|
-
],
|
|
1112
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/posts/{whiteboard_preview_post}/comments',
|
|
1113
|
-
...options,
|
|
1114
|
-
headers: {
|
|
1115
|
-
'Content-Type': 'application/json',
|
|
1116
|
-
...options.headers
|
|
1117
|
-
}
|
|
1118
|
-
});
|
|
1119
|
-
};
|
|
1120
|
-
exports.createWhiteboardPreviewPostComment = createWhiteboardPreviewPostComment;
|
|
1121
|
-
/**
|
|
1122
|
-
* Delete comment
|
|
1123
|
-
* Soft delete a comment (users can only delete their own comments). Returns the deleted comment with is_deleted flag set to true.
|
|
1124
|
-
*/
|
|
1125
|
-
const deleteWhiteboardPreviewPostComment = (options) => {
|
|
1126
|
-
var _a;
|
|
1127
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
1128
|
-
security: [
|
|
1129
|
-
{
|
|
1130
|
-
name: 'Authorization or ADSPR-EXTERNAL-TOKEN',
|
|
1131
|
-
type: 'apiKey'
|
|
1132
|
-
}
|
|
1133
|
-
],
|
|
1134
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/posts/{whiteboard_preview_post}/comments/{comment}',
|
|
1135
|
-
...options
|
|
1136
|
-
});
|
|
1137
|
-
};
|
|
1138
|
-
exports.deleteWhiteboardPreviewPostComment = deleteWhiteboardPreviewPostComment;
|
|
257
|
+
exports.listBrandChannels = listBrandChannels;
|
|
1139
258
|
/**
|
|
1140
|
-
*
|
|
1141
|
-
*
|
|
259
|
+
* Sync brand channels
|
|
260
|
+
* Sync channels for a brand. Existing channels are updated when an id is provided; omitted unused channels are deleted.
|
|
1142
261
|
*/
|
|
1143
|
-
const
|
|
262
|
+
const syncBrandChannels = (options) => {
|
|
1144
263
|
var _a;
|
|
1145
264
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
1146
|
-
|
|
1147
|
-
{
|
|
1148
|
-
name: 'Authorization or ADSPR-EXTERNAL-TOKEN',
|
|
1149
|
-
type: 'apiKey'
|
|
1150
|
-
}
|
|
1151
|
-
],
|
|
1152
|
-
url: '/api/whiteboard-previews/external/{whiteboard_preview}/posts/{whiteboard_preview_post}/comments/{comment}',
|
|
265
|
+
url: '/api/brands/{brand}/channels',
|
|
1153
266
|
...options,
|
|
1154
267
|
headers: {
|
|
1155
268
|
'Content-Type': 'application/json',
|
|
@@ -1157,27 +270,27 @@ const updateWhiteboardPreviewPostComment = (options) => {
|
|
|
1157
270
|
}
|
|
1158
271
|
});
|
|
1159
272
|
};
|
|
1160
|
-
exports.
|
|
273
|
+
exports.syncBrandChannels = syncBrandChannels;
|
|
1161
274
|
/**
|
|
1162
|
-
* List
|
|
1163
|
-
* Retrieve all
|
|
275
|
+
* List brands
|
|
276
|
+
* Retrieve all brand records for the authenticated user's active workspace
|
|
1164
277
|
*/
|
|
1165
|
-
const
|
|
278
|
+
const listBrands = (options) => {
|
|
1166
279
|
var _a;
|
|
1167
280
|
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
1168
|
-
url: '/api/
|
|
281
|
+
url: '/api/brands',
|
|
1169
282
|
...options
|
|
1170
283
|
});
|
|
1171
284
|
};
|
|
1172
|
-
exports.
|
|
285
|
+
exports.listBrands = listBrands;
|
|
1173
286
|
/**
|
|
1174
|
-
* Create
|
|
1175
|
-
* Create a new
|
|
287
|
+
* Create brand
|
|
288
|
+
* Create a new brand record
|
|
1176
289
|
*/
|
|
1177
|
-
const
|
|
290
|
+
const createBrand = (options) => {
|
|
1178
291
|
var _a;
|
|
1179
292
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
1180
|
-
url: '/api/
|
|
293
|
+
url: '/api/brands',
|
|
1181
294
|
...options,
|
|
1182
295
|
headers: {
|
|
1183
296
|
'Content-Type': 'application/json',
|
|
@@ -1185,39 +298,39 @@ const createExternalUser = (options) => {
|
|
|
1185
298
|
}
|
|
1186
299
|
});
|
|
1187
300
|
};
|
|
1188
|
-
exports.
|
|
301
|
+
exports.createBrand = createBrand;
|
|
1189
302
|
/**
|
|
1190
|
-
* Delete
|
|
1191
|
-
* Delete a specific
|
|
303
|
+
* Delete brand
|
|
304
|
+
* Delete a specific brand record
|
|
1192
305
|
*/
|
|
1193
|
-
const
|
|
306
|
+
const deleteBrand = (options) => {
|
|
1194
307
|
var _a;
|
|
1195
308
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
1196
|
-
url: '/api/
|
|
309
|
+
url: '/api/brands/{id}',
|
|
1197
310
|
...options
|
|
1198
311
|
});
|
|
1199
312
|
};
|
|
1200
|
-
exports.
|
|
313
|
+
exports.deleteBrand = deleteBrand;
|
|
1201
314
|
/**
|
|
1202
|
-
* Show
|
|
1203
|
-
* Retrieve a specific
|
|
315
|
+
* Show brand
|
|
316
|
+
* Retrieve a specific brand by id
|
|
1204
317
|
*/
|
|
1205
|
-
const
|
|
318
|
+
const getBrand = (options) => {
|
|
1206
319
|
var _a;
|
|
1207
320
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
1208
|
-
url: '/api/
|
|
321
|
+
url: '/api/brands/{id}',
|
|
1209
322
|
...options
|
|
1210
323
|
});
|
|
1211
324
|
};
|
|
1212
|
-
exports.
|
|
325
|
+
exports.getBrand = getBrand;
|
|
1213
326
|
/**
|
|
1214
|
-
* Update
|
|
1215
|
-
* Update an existing
|
|
327
|
+
* Update brand
|
|
328
|
+
* Update an existing brand record
|
|
1216
329
|
*/
|
|
1217
|
-
const
|
|
330
|
+
const updateBrand = (options) => {
|
|
1218
331
|
var _a;
|
|
1219
332
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
1220
|
-
url: '/api/
|
|
333
|
+
url: '/api/brands/{id}',
|
|
1221
334
|
...options,
|
|
1222
335
|
headers: {
|
|
1223
336
|
'Content-Type': 'application/json',
|
|
@@ -1225,27 +338,27 @@ const updateExternalUser = (options) => {
|
|
|
1225
338
|
}
|
|
1226
339
|
});
|
|
1227
340
|
};
|
|
1228
|
-
exports.
|
|
341
|
+
exports.updateBrand = updateBrand;
|
|
1229
342
|
/**
|
|
1230
|
-
* List
|
|
1231
|
-
* Retrieve all
|
|
343
|
+
* List prompts for a brand
|
|
344
|
+
* Retrieve all prompts for a specific brand with optional type filter
|
|
1232
345
|
*/
|
|
1233
|
-
const
|
|
346
|
+
const listBrandPrompts = (options) => {
|
|
1234
347
|
var _a;
|
|
1235
|
-
return ((_a = options
|
|
1236
|
-
url: '/api/
|
|
348
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
349
|
+
url: '/api/brands/{brand}/prompts',
|
|
1237
350
|
...options
|
|
1238
351
|
});
|
|
1239
352
|
};
|
|
1240
|
-
exports.
|
|
353
|
+
exports.listBrandPrompts = listBrandPrompts;
|
|
1241
354
|
/**
|
|
1242
|
-
* Create
|
|
1243
|
-
* Create a new
|
|
355
|
+
* Create brand prompt
|
|
356
|
+
* Create a new prompt for a brand
|
|
1244
357
|
*/
|
|
1245
|
-
const
|
|
358
|
+
const createBrandPrompt = (options) => {
|
|
1246
359
|
var _a;
|
|
1247
360
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
1248
|
-
url: '/api/
|
|
361
|
+
url: '/api/brands/{brand}/prompts',
|
|
1249
362
|
...options,
|
|
1250
363
|
headers: {
|
|
1251
364
|
'Content-Type': 'application/json',
|
|
@@ -1253,39 +366,39 @@ const createNotification = (options) => {
|
|
|
1253
366
|
}
|
|
1254
367
|
});
|
|
1255
368
|
};
|
|
1256
|
-
exports.
|
|
369
|
+
exports.createBrandPrompt = createBrandPrompt;
|
|
1257
370
|
/**
|
|
1258
|
-
* Delete
|
|
1259
|
-
* Delete a specific
|
|
371
|
+
* Delete brand prompt
|
|
372
|
+
* Delete a specific brand prompt
|
|
1260
373
|
*/
|
|
1261
|
-
const
|
|
374
|
+
const deleteBrandPrompt = (options) => {
|
|
1262
375
|
var _a;
|
|
1263
376
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
1264
|
-
url: '/api/
|
|
377
|
+
url: '/api/brands/{brand}/prompts/{brand_prompt}',
|
|
1265
378
|
...options
|
|
1266
379
|
});
|
|
1267
380
|
};
|
|
1268
|
-
exports.
|
|
381
|
+
exports.deleteBrandPrompt = deleteBrandPrompt;
|
|
1269
382
|
/**
|
|
1270
|
-
* Show
|
|
1271
|
-
* Retrieve a specific
|
|
383
|
+
* Show brand prompt
|
|
384
|
+
* Retrieve a specific brand prompt
|
|
1272
385
|
*/
|
|
1273
|
-
const
|
|
386
|
+
const getBrandPrompt = (options) => {
|
|
1274
387
|
var _a;
|
|
1275
388
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
1276
|
-
url: '/api/
|
|
389
|
+
url: '/api/brands/{brand}/prompts/{brand_prompt}',
|
|
1277
390
|
...options
|
|
1278
391
|
});
|
|
1279
392
|
};
|
|
1280
|
-
exports.
|
|
393
|
+
exports.getBrandPrompt = getBrandPrompt;
|
|
1281
394
|
/**
|
|
1282
|
-
* Update
|
|
1283
|
-
* Update an existing
|
|
395
|
+
* Update brand prompt
|
|
396
|
+
* Update an existing brand prompt
|
|
1284
397
|
*/
|
|
1285
|
-
const
|
|
398
|
+
const updateBrandPrompt = (options) => {
|
|
1286
399
|
var _a;
|
|
1287
400
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
1288
|
-
url: '/api/
|
|
401
|
+
url: '/api/brands/{brand}/prompts/{brand_prompt}',
|
|
1289
402
|
...options,
|
|
1290
403
|
headers: {
|
|
1291
404
|
'Content-Type': 'application/json',
|
|
@@ -1293,27 +406,27 @@ const updateNotification = (options) => {
|
|
|
1293
406
|
}
|
|
1294
407
|
});
|
|
1295
408
|
};
|
|
1296
|
-
exports.
|
|
409
|
+
exports.updateBrandPrompt = updateBrandPrompt;
|
|
1297
410
|
/**
|
|
1298
|
-
* List
|
|
1299
|
-
*
|
|
411
|
+
* List campaigns by workspace
|
|
412
|
+
* Get a list of all campaigns for the authenticated user's active workspace. Optionally filter by status and/or completion state.
|
|
1300
413
|
*/
|
|
1301
|
-
const
|
|
414
|
+
const listCampaigns = (options) => {
|
|
1302
415
|
var _a;
|
|
1303
416
|
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
1304
|
-
url: '/api/
|
|
417
|
+
url: '/api/campaigns',
|
|
1305
418
|
...options
|
|
1306
419
|
});
|
|
1307
420
|
};
|
|
1308
|
-
exports.
|
|
421
|
+
exports.listCampaigns = listCampaigns;
|
|
1309
422
|
/**
|
|
1310
|
-
* Create
|
|
1311
|
-
* Create a new
|
|
423
|
+
* Create campaign
|
|
424
|
+
* Create a new campaign
|
|
1312
425
|
*/
|
|
1313
|
-
const
|
|
426
|
+
const createCampaign = (options) => {
|
|
1314
427
|
var _a;
|
|
1315
428
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
1316
|
-
url: '/api/
|
|
429
|
+
url: '/api/campaigns',
|
|
1317
430
|
...options,
|
|
1318
431
|
headers: {
|
|
1319
432
|
'Content-Type': 'application/json',
|
|
@@ -1321,39 +434,51 @@ const createPackage = (options) => {
|
|
|
1321
434
|
}
|
|
1322
435
|
});
|
|
1323
436
|
};
|
|
1324
|
-
exports.
|
|
437
|
+
exports.createCampaign = createCampaign;
|
|
438
|
+
/**
|
|
439
|
+
* List campaigns for a brand
|
|
440
|
+
* Get a list of all campaigns for a specific brand.
|
|
441
|
+
*/
|
|
442
|
+
const listBrandCampaigns = (options) => {
|
|
443
|
+
var _a;
|
|
444
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
445
|
+
url: '/api/brands/{brand}/campaigns',
|
|
446
|
+
...options
|
|
447
|
+
});
|
|
448
|
+
};
|
|
449
|
+
exports.listBrandCampaigns = listBrandCampaigns;
|
|
1325
450
|
/**
|
|
1326
|
-
* Delete
|
|
1327
|
-
* Delete a
|
|
451
|
+
* Delete campaign
|
|
452
|
+
* Delete a campaign
|
|
1328
453
|
*/
|
|
1329
|
-
const
|
|
454
|
+
const deleteCampaign = (options) => {
|
|
1330
455
|
var _a;
|
|
1331
456
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
1332
|
-
url: '/api/
|
|
457
|
+
url: '/api/campaigns/{id}',
|
|
1333
458
|
...options
|
|
1334
459
|
});
|
|
1335
460
|
};
|
|
1336
|
-
exports.
|
|
461
|
+
exports.deleteCampaign = deleteCampaign;
|
|
1337
462
|
/**
|
|
1338
|
-
*
|
|
1339
|
-
*
|
|
463
|
+
* Get campaign
|
|
464
|
+
* Get a specific campaign
|
|
1340
465
|
*/
|
|
1341
|
-
const
|
|
466
|
+
const getCampaign = (options) => {
|
|
1342
467
|
var _a;
|
|
1343
468
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
1344
|
-
url: '/api/
|
|
469
|
+
url: '/api/campaigns/{id}',
|
|
1345
470
|
...options
|
|
1346
471
|
});
|
|
1347
472
|
};
|
|
1348
|
-
exports.
|
|
473
|
+
exports.getCampaign = getCampaign;
|
|
1349
474
|
/**
|
|
1350
|
-
* Update
|
|
1351
|
-
* Update
|
|
475
|
+
* Update campaign
|
|
476
|
+
* Update a campaign
|
|
1352
477
|
*/
|
|
1353
|
-
const
|
|
478
|
+
const updateCampaign = (options) => {
|
|
1354
479
|
var _a;
|
|
1355
480
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
1356
|
-
url: '/api/
|
|
481
|
+
url: '/api/campaigns/{id}',
|
|
1357
482
|
...options,
|
|
1358
483
|
headers: {
|
|
1359
484
|
'Content-Type': 'application/json',
|
|
@@ -1361,27 +486,27 @@ const updatePackage = (options) => {
|
|
|
1361
486
|
}
|
|
1362
487
|
});
|
|
1363
488
|
};
|
|
1364
|
-
exports.
|
|
489
|
+
exports.updateCampaign = updateCampaign;
|
|
1365
490
|
/**
|
|
1366
|
-
* List
|
|
1367
|
-
* Retrieve all
|
|
491
|
+
* List companies
|
|
492
|
+
* Retrieve all companies for the authenticated user
|
|
1368
493
|
*/
|
|
1369
|
-
const
|
|
494
|
+
const listCompanies = (options) => {
|
|
1370
495
|
var _a;
|
|
1371
496
|
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
1372
|
-
url: '/api/
|
|
497
|
+
url: '/api/companies',
|
|
1373
498
|
...options
|
|
1374
499
|
});
|
|
1375
500
|
};
|
|
1376
|
-
exports.
|
|
501
|
+
exports.listCompanies = listCompanies;
|
|
1377
502
|
/**
|
|
1378
|
-
* Create
|
|
1379
|
-
* Create a new
|
|
503
|
+
* Create company
|
|
504
|
+
* Create a new company record
|
|
1380
505
|
*/
|
|
1381
|
-
const
|
|
506
|
+
const createCompany = (options) => {
|
|
1382
507
|
var _a;
|
|
1383
508
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
1384
|
-
url: '/api/
|
|
509
|
+
url: '/api/companies',
|
|
1385
510
|
...options,
|
|
1386
511
|
headers: {
|
|
1387
512
|
'Content-Type': 'application/json',
|
|
@@ -1389,39 +514,51 @@ const createUser = (options) => {
|
|
|
1389
514
|
}
|
|
1390
515
|
});
|
|
1391
516
|
};
|
|
1392
|
-
exports.
|
|
517
|
+
exports.createCompany = createCompany;
|
|
518
|
+
/**
|
|
519
|
+
* Autocomplete companies
|
|
520
|
+
* Search companies by name for autocomplete functionality
|
|
521
|
+
*/
|
|
522
|
+
const autocompleteCompanies = (options) => {
|
|
523
|
+
var _a;
|
|
524
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
525
|
+
url: '/api/companies/autocomplete',
|
|
526
|
+
...options
|
|
527
|
+
});
|
|
528
|
+
};
|
|
529
|
+
exports.autocompleteCompanies = autocompleteCompanies;
|
|
1393
530
|
/**
|
|
1394
|
-
* Delete
|
|
1395
|
-
* Delete a specific
|
|
531
|
+
* Delete company
|
|
532
|
+
* Delete a specific company record
|
|
1396
533
|
*/
|
|
1397
|
-
const
|
|
534
|
+
const deleteCompany = (options) => {
|
|
1398
535
|
var _a;
|
|
1399
536
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
1400
|
-
url: '/api/
|
|
537
|
+
url: '/api/companies/{id}',
|
|
1401
538
|
...options
|
|
1402
539
|
});
|
|
1403
540
|
};
|
|
1404
|
-
exports.
|
|
541
|
+
exports.deleteCompany = deleteCompany;
|
|
1405
542
|
/**
|
|
1406
|
-
* Show
|
|
1407
|
-
* Retrieve a specific
|
|
543
|
+
* Show company
|
|
544
|
+
* Retrieve a specific company by id
|
|
1408
545
|
*/
|
|
1409
|
-
const
|
|
546
|
+
const getCompany = (options) => {
|
|
1410
547
|
var _a;
|
|
1411
548
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
1412
|
-
url: '/api/
|
|
549
|
+
url: '/api/companies/{id}',
|
|
1413
550
|
...options
|
|
1414
551
|
});
|
|
1415
552
|
};
|
|
1416
|
-
exports.
|
|
553
|
+
exports.getCompany = getCompany;
|
|
1417
554
|
/**
|
|
1418
|
-
* Update
|
|
1419
|
-
* Update an existing
|
|
555
|
+
* Update company
|
|
556
|
+
* Update an existing company record
|
|
1420
557
|
*/
|
|
1421
|
-
const
|
|
558
|
+
const updateCompany = (options) => {
|
|
1422
559
|
var _a;
|
|
1423
560
|
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
1424
|
-
url: '/api/
|
|
561
|
+
url: '/api/companies/{id}',
|
|
1425
562
|
...options,
|
|
1426
563
|
headers: {
|
|
1427
564
|
'Content-Type': 'application/json',
|
|
@@ -1429,7 +566,7 @@ const updateUser = (options) => {
|
|
|
1429
566
|
}
|
|
1430
567
|
});
|
|
1431
568
|
};
|
|
1432
|
-
exports.
|
|
569
|
+
exports.updateCompany = updateCompany;
|
|
1433
570
|
/**
|
|
1434
571
|
* List webhook events
|
|
1435
572
|
* Retrieve all webhook event records
|
|
@@ -1498,74 +635,6 @@ const updateWebhookEvent = (options) => {
|
|
|
1498
635
|
});
|
|
1499
636
|
};
|
|
1500
637
|
exports.updateWebhookEvent = updateWebhookEvent;
|
|
1501
|
-
/**
|
|
1502
|
-
* List webhook logs
|
|
1503
|
-
* Retrieve all webhook log records
|
|
1504
|
-
*/
|
|
1505
|
-
const listWebhookLogs = (options) => {
|
|
1506
|
-
var _a;
|
|
1507
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
1508
|
-
url: '/api/webhook-logs',
|
|
1509
|
-
...options
|
|
1510
|
-
});
|
|
1511
|
-
};
|
|
1512
|
-
exports.listWebhookLogs = listWebhookLogs;
|
|
1513
|
-
/**
|
|
1514
|
-
* Create webhook log
|
|
1515
|
-
* Create a new webhook log entry
|
|
1516
|
-
*/
|
|
1517
|
-
const createWebhookLog = (options) => {
|
|
1518
|
-
var _a;
|
|
1519
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
1520
|
-
url: '/api/webhook-logs',
|
|
1521
|
-
...options,
|
|
1522
|
-
headers: {
|
|
1523
|
-
'Content-Type': 'application/json',
|
|
1524
|
-
...options.headers
|
|
1525
|
-
}
|
|
1526
|
-
});
|
|
1527
|
-
};
|
|
1528
|
-
exports.createWebhookLog = createWebhookLog;
|
|
1529
|
-
/**
|
|
1530
|
-
* Delete webhook log
|
|
1531
|
-
* Delete a specific webhook log
|
|
1532
|
-
*/
|
|
1533
|
-
const deleteWebhookLog = (options) => {
|
|
1534
|
-
var _a;
|
|
1535
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
1536
|
-
url: '/api/webhook-logs/{id}',
|
|
1537
|
-
...options
|
|
1538
|
-
});
|
|
1539
|
-
};
|
|
1540
|
-
exports.deleteWebhookLog = deleteWebhookLog;
|
|
1541
|
-
/**
|
|
1542
|
-
* Show webhook log
|
|
1543
|
-
* Retrieve a specific webhook log by id
|
|
1544
|
-
*/
|
|
1545
|
-
const getWebhookLog = (options) => {
|
|
1546
|
-
var _a;
|
|
1547
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
1548
|
-
url: '/api/webhook-logs/{id}',
|
|
1549
|
-
...options
|
|
1550
|
-
});
|
|
1551
|
-
};
|
|
1552
|
-
exports.getWebhookLog = getWebhookLog;
|
|
1553
|
-
/**
|
|
1554
|
-
* Update webhook log
|
|
1555
|
-
* Update an existing webhook log entry
|
|
1556
|
-
*/
|
|
1557
|
-
const updateWebhookLog = (options) => {
|
|
1558
|
-
var _a;
|
|
1559
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
1560
|
-
url: '/api/webhook-logs/{id}',
|
|
1561
|
-
...options,
|
|
1562
|
-
headers: {
|
|
1563
|
-
'Content-Type': 'application/json',
|
|
1564
|
-
...options.headers
|
|
1565
|
-
}
|
|
1566
|
-
});
|
|
1567
|
-
};
|
|
1568
|
-
exports.updateWebhookLog = updateWebhookLog;
|
|
1569
638
|
/**
|
|
1570
639
|
* List comments for a whiteboard
|
|
1571
640
|
* Retrieve comments for a whiteboard. By default returns only whiteboard-level comments. Use include_posts=true to also include comments on all posts within the whiteboard.
|
|
@@ -1958,128 +1027,4 @@ const inviteWhiteboardPreviewExternalUser = (options) => {
|
|
|
1958
1027
|
});
|
|
1959
1028
|
};
|
|
1960
1029
|
exports.inviteWhiteboardPreviewExternalUser = inviteWhiteboardPreviewExternalUser;
|
|
1961
|
-
/**
|
|
1962
|
-
* List workspaces
|
|
1963
|
-
* Retrieve all workspaces the authenticated user belongs to
|
|
1964
|
-
*/
|
|
1965
|
-
const listWorkspaces = (options) => {
|
|
1966
|
-
var _a;
|
|
1967
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
1968
|
-
url: '/api/workspaces',
|
|
1969
|
-
...options
|
|
1970
|
-
});
|
|
1971
|
-
};
|
|
1972
|
-
exports.listWorkspaces = listWorkspaces;
|
|
1973
|
-
/**
|
|
1974
|
-
* Create workspace
|
|
1975
|
-
* Create a new workspace record
|
|
1976
|
-
*/
|
|
1977
|
-
const createWorkspace = (options) => {
|
|
1978
|
-
var _a;
|
|
1979
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
1980
|
-
url: '/api/workspaces',
|
|
1981
|
-
...options,
|
|
1982
|
-
headers: {
|
|
1983
|
-
'Content-Type': 'application/json',
|
|
1984
|
-
...options.headers
|
|
1985
|
-
}
|
|
1986
|
-
});
|
|
1987
|
-
};
|
|
1988
|
-
exports.createWorkspace = createWorkspace;
|
|
1989
|
-
/**
|
|
1990
|
-
* Delete workspace
|
|
1991
|
-
* Delete a specific workspace
|
|
1992
|
-
*/
|
|
1993
|
-
const deleteWorkspace = (options) => {
|
|
1994
|
-
var _a;
|
|
1995
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).delete({
|
|
1996
|
-
url: '/api/workspaces/{id}',
|
|
1997
|
-
...options
|
|
1998
|
-
});
|
|
1999
|
-
};
|
|
2000
|
-
exports.deleteWorkspace = deleteWorkspace;
|
|
2001
|
-
/**
|
|
2002
|
-
* Show workspace
|
|
2003
|
-
* Retrieve a specific workspace by id with billing information
|
|
2004
|
-
*/
|
|
2005
|
-
const getWorkspace = (options) => {
|
|
2006
|
-
var _a;
|
|
2007
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
2008
|
-
url: '/api/workspaces/{id}',
|
|
2009
|
-
...options
|
|
2010
|
-
});
|
|
2011
|
-
};
|
|
2012
|
-
exports.getWorkspace = getWorkspace;
|
|
2013
|
-
/**
|
|
2014
|
-
* Update workspace
|
|
2015
|
-
* Update an existing workspace record
|
|
2016
|
-
*/
|
|
2017
|
-
const updateWorkspace = (options) => {
|
|
2018
|
-
var _a;
|
|
2019
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).put({
|
|
2020
|
-
url: '/api/workspaces/{id}',
|
|
2021
|
-
...options,
|
|
2022
|
-
headers: {
|
|
2023
|
-
'Content-Type': 'application/json',
|
|
2024
|
-
...options.headers
|
|
2025
|
-
}
|
|
2026
|
-
});
|
|
2027
|
-
};
|
|
2028
|
-
exports.updateWorkspace = updateWorkspace;
|
|
2029
|
-
/**
|
|
2030
|
-
* List pending invitations
|
|
2031
|
-
* Returns all pending, non-expired invitations for the authenticated user's active workspace. Only admins can list invitations.
|
|
2032
|
-
*/
|
|
2033
|
-
const listPendingInvites = (options) => {
|
|
2034
|
-
var _a;
|
|
2035
|
-
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
2036
|
-
url: '/api/invites',
|
|
2037
|
-
...options
|
|
2038
|
-
});
|
|
2039
|
-
};
|
|
2040
|
-
exports.listPendingInvites = listPendingInvites;
|
|
2041
|
-
/**
|
|
2042
|
-
* Send a workspace invitation
|
|
2043
|
-
* Sends an invitation email to join the authenticated user's active workspace. Only admins can send invitations.
|
|
2044
|
-
*/
|
|
2045
|
-
const sendWorkspaceInvite = (options) => {
|
|
2046
|
-
var _a;
|
|
2047
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
2048
|
-
url: '/api/invites/send',
|
|
2049
|
-
...options,
|
|
2050
|
-
headers: {
|
|
2051
|
-
'Content-Type': 'application/json',
|
|
2052
|
-
...options.headers
|
|
2053
|
-
}
|
|
2054
|
-
});
|
|
2055
|
-
};
|
|
2056
|
-
exports.sendWorkspaceInvite = sendWorkspaceInvite;
|
|
2057
|
-
/**
|
|
2058
|
-
* Validate an invitation token
|
|
2059
|
-
* Returns invitation details for the given token. Public endpoint, no authentication required.
|
|
2060
|
-
*/
|
|
2061
|
-
const validateWorkspaceInvite = (options) => {
|
|
2062
|
-
var _a;
|
|
2063
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).get({
|
|
2064
|
-
url: '/api/invites/{token}',
|
|
2065
|
-
...options
|
|
2066
|
-
});
|
|
2067
|
-
};
|
|
2068
|
-
exports.validateWorkspaceInvite = validateWorkspaceInvite;
|
|
2069
|
-
/**
|
|
2070
|
-
* Accept a workspace invitation
|
|
2071
|
-
* Accepts a pending invitation, linking the authenticated user to the workspace with the assigned role.
|
|
2072
|
-
*/
|
|
2073
|
-
const acceptWorkspaceInvite = (options) => {
|
|
2074
|
-
var _a;
|
|
2075
|
-
return ((_a = options.client) !== null && _a !== void 0 ? _a : client_gen_1.client).post({
|
|
2076
|
-
url: '/api/invites/accept',
|
|
2077
|
-
...options,
|
|
2078
|
-
headers: {
|
|
2079
|
-
'Content-Type': 'application/json',
|
|
2080
|
-
...options.headers
|
|
2081
|
-
}
|
|
2082
|
-
});
|
|
2083
|
-
};
|
|
2084
|
-
exports.acceptWorkspaceInvite = acceptWorkspaceInvite;
|
|
2085
1030
|
//# sourceMappingURL=sdk.gen.js.map
|