@productcraft/social 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/api.md +250 -246
- package/dist/index.cjs +257 -247
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +270 -249
- package/dist/index.d.ts +270 -249
- package/dist/index.js +257 -247
- package/dist/index.js.map +1 -1
- package/manifest.json +198 -198
- package/package.json +25 -8
package/dist/index.cjs
CHANGED
|
@@ -42,10 +42,10 @@ var CommunitiesActorsCommentsResource = class extends APIResource {
|
|
|
42
42
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-actors-actor-id-comments
|
|
43
43
|
* @example
|
|
44
44
|
* ```ts
|
|
45
|
-
* for await (const comment of social.communities.actors.comments.list("
|
|
45
|
+
* for await (const comment of social.communities.actors.comments.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
46
46
|
* console.log(comment);
|
|
47
47
|
* }
|
|
48
|
-
* const page = await social.communities.actors.comments.list("
|
|
48
|
+
* const page = await social.communities.actors.comments.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
51
|
list(communityId, actorId, params, options) {
|
|
@@ -67,10 +67,10 @@ var CommunitiesActorsReactionsResource = class extends APIResource {
|
|
|
67
67
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-actors-actor-id-reactions
|
|
68
68
|
* @example
|
|
69
69
|
* ```ts
|
|
70
|
-
* for await (const reaction of social.communities.actors.reactions.list("
|
|
70
|
+
* for await (const reaction of social.communities.actors.reactions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
71
71
|
* console.log(reaction);
|
|
72
72
|
* }
|
|
73
|
-
* const page = await social.communities.actors.reactions.list("
|
|
73
|
+
* const page = await social.communities.actors.reactions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
74
74
|
* ```
|
|
75
75
|
*/
|
|
76
76
|
list(communityId, actorId, params, options) {
|
|
@@ -103,7 +103,7 @@ var CommunitiesModerationActionsResource = class extends APIResource {
|
|
|
103
103
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-moderation-actions
|
|
104
104
|
* @example
|
|
105
105
|
* ```ts
|
|
106
|
-
* const moderationAction = await social.communities.moderation.actions.create("
|
|
106
|
+
* const moderationAction = await social.communities.moderation.actions.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {
|
|
107
107
|
* action: "remove",
|
|
108
108
|
* target_id: "bbbbbbbb-0000-0000-0000-000000000001",
|
|
109
109
|
* target_kind: "direct_message",
|
|
@@ -131,7 +131,7 @@ var CommunitiesModerationActorsResource = class extends APIResource {
|
|
|
131
131
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-moderation-actors-actor-id-shadow-ban
|
|
132
132
|
* @example
|
|
133
133
|
* ```ts
|
|
134
|
-
* const moderationActor = await social.communities.moderation.actors.shadowBan("
|
|
134
|
+
* const moderationActor = await social.communities.moderation.actors.shadowBan("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { duration_hours: 168 });
|
|
135
135
|
* ```
|
|
136
136
|
*/
|
|
137
137
|
shadowBan(communityId, actorId, params, options) {
|
|
@@ -150,7 +150,7 @@ var CommunitiesModerationActorsResource = class extends APIResource {
|
|
|
150
150
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-workspaces-workspace-id-communities-community-id-moderation-actors-actor-id-shadow-ban
|
|
151
151
|
* @example
|
|
152
152
|
* ```ts
|
|
153
|
-
* const moderationActor = await social.communities.moderation.actors.unshadowBan("
|
|
153
|
+
* const moderationActor = await social.communities.moderation.actors.unshadowBan("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
154
154
|
* ```
|
|
155
155
|
*/
|
|
156
156
|
unshadowBan(communityId, actorId, options) {
|
|
@@ -172,10 +172,10 @@ var CommunitiesModerationAuditResource = class extends APIResource {
|
|
|
172
172
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-moderation-audit
|
|
173
173
|
* @example
|
|
174
174
|
* ```ts
|
|
175
|
-
* for await (const audit of social.communities.moderation.audit.list("
|
|
175
|
+
* for await (const audit of social.communities.moderation.audit.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
176
176
|
* console.log(audit);
|
|
177
177
|
* }
|
|
178
|
-
* const page = await social.communities.moderation.audit.list("
|
|
178
|
+
* const page = await social.communities.moderation.audit.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
179
179
|
* ```
|
|
180
180
|
*/
|
|
181
181
|
list(communityId, params, options) {
|
|
@@ -197,7 +197,7 @@ var CommunitiesModerationBlockedTermsResource = class extends APIResource {
|
|
|
197
197
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-moderation-blocked-terms
|
|
198
198
|
* @example
|
|
199
199
|
* ```ts
|
|
200
|
-
* const blockedTerm = await social.communities.moderation.blockedTerms.create("
|
|
200
|
+
* const blockedTerm = await social.communities.moderation.blockedTerms.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { term: "spoiler" });
|
|
201
201
|
* ```
|
|
202
202
|
*/
|
|
203
203
|
create(communityId, params, options) {
|
|
@@ -215,7 +215,7 @@ var CommunitiesModerationBlockedTermsResource = class extends APIResource {
|
|
|
215
215
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-workspaces-workspace-id-communities-community-id-moderation-blocked-terms-term
|
|
216
216
|
* @example
|
|
217
217
|
* ```ts
|
|
218
|
-
* await social.communities.moderation.blockedTerms.delete("
|
|
218
|
+
* await social.communities.moderation.blockedTerms.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "spoiler");
|
|
219
219
|
* ```
|
|
220
220
|
*/
|
|
221
221
|
delete(communityId, term, options) {
|
|
@@ -234,10 +234,10 @@ var CommunitiesModerationBlockedTermsResource = class extends APIResource {
|
|
|
234
234
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-moderation-blocked-terms
|
|
235
235
|
* @example
|
|
236
236
|
* ```ts
|
|
237
|
-
* for await (const blockedTerm of social.communities.moderation.blockedTerms.list("
|
|
237
|
+
* for await (const blockedTerm of social.communities.moderation.blockedTerms.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
238
238
|
* console.log(blockedTerm);
|
|
239
239
|
* }
|
|
240
|
-
* const page = await social.communities.moderation.blockedTerms.list("
|
|
240
|
+
* const page = await social.communities.moderation.blockedTerms.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
241
241
|
* ```
|
|
242
242
|
*/
|
|
243
243
|
list(communityId, params, options) {
|
|
@@ -259,10 +259,10 @@ var CommunitiesModerationConversationsMessagesResource = class extends APIResour
|
|
|
259
259
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-moderation-conversations-conversation-id-messages
|
|
260
260
|
* @example
|
|
261
261
|
* ```ts
|
|
262
|
-
* for await (const message of social.communities.moderation.conversations.messages.list("
|
|
262
|
+
* for await (const message of social.communities.moderation.conversations.messages.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
263
263
|
* console.log(message);
|
|
264
264
|
* }
|
|
265
|
-
* const page = await social.communities.moderation.conversations.messages.list("
|
|
265
|
+
* const page = await social.communities.moderation.conversations.messages.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
266
266
|
* ```
|
|
267
267
|
*/
|
|
268
268
|
list(communityId, conversationId, params, options) {
|
|
@@ -287,10 +287,10 @@ var CommunitiesModerationConversationsResource = class extends APIResource {
|
|
|
287
287
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-moderation-conversations
|
|
288
288
|
* @example
|
|
289
289
|
* ```ts
|
|
290
|
-
* for await (const conversation of social.communities.moderation.conversations.list("
|
|
290
|
+
* for await (const conversation of social.communities.moderation.conversations.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
291
291
|
* console.log(conversation);
|
|
292
292
|
* }
|
|
293
|
-
* const page = await social.communities.moderation.conversations.list("
|
|
293
|
+
* const page = await social.communities.moderation.conversations.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
294
294
|
* ```
|
|
295
295
|
*/
|
|
296
296
|
list(communityId, params, options) {
|
|
@@ -312,10 +312,10 @@ var CommunitiesModerationFlagsResource = class extends APIResource {
|
|
|
312
312
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-moderation-flags
|
|
313
313
|
* @example
|
|
314
314
|
* ```ts
|
|
315
|
-
* for await (const flag of social.communities.moderation.flags.list("
|
|
315
|
+
* for await (const flag of social.communities.moderation.flags.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
316
316
|
* console.log(flag);
|
|
317
317
|
* }
|
|
318
|
-
* const page = await social.communities.moderation.flags.list("
|
|
318
|
+
* const page = await social.communities.moderation.flags.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
319
319
|
* ```
|
|
320
320
|
*/
|
|
321
321
|
list(communityId, params, options) {
|
|
@@ -337,7 +337,7 @@ var CommunitiesModerationFlagsResource = class extends APIResource {
|
|
|
337
337
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-moderation-flags-flag-id-actions
|
|
338
338
|
* @example
|
|
339
339
|
* ```ts
|
|
340
|
-
* const actOnFlag = await social.communities.moderation.flags.resolve("
|
|
340
|
+
* const actOnFlag = await social.communities.moderation.flags.resolve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { action: "hide" });
|
|
341
341
|
* ```
|
|
342
342
|
*/
|
|
343
343
|
resolve(communityId, flagId, params, options) {
|
|
@@ -359,10 +359,10 @@ var CommunitiesModerationShadowBannedResource = class extends APIResource {
|
|
|
359
359
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-moderation-shadow-banned
|
|
360
360
|
* @example
|
|
361
361
|
* ```ts
|
|
362
|
-
* for await (const shadowBanned of social.communities.moderation.shadowBanned.list("
|
|
362
|
+
* for await (const shadowBanned of social.communities.moderation.shadowBanned.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
363
363
|
* console.log(shadowBanned);
|
|
364
364
|
* }
|
|
365
|
-
* const page = await social.communities.moderation.shadowBanned.list("
|
|
365
|
+
* const page = await social.communities.moderation.shadowBanned.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
366
366
|
* ```
|
|
367
367
|
*/
|
|
368
368
|
list(communityId, params, options) {
|
|
@@ -419,7 +419,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
419
419
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints
|
|
420
420
|
* @example
|
|
421
421
|
* ```ts
|
|
422
|
-
* const webhookEndpointWithSecret = await social.communities.webhooks.endpoints.create("
|
|
422
|
+
* const webhookEndpointWithSecret = await social.communities.webhooks.endpoints.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { url: "https://api.acme.com/webhooks" });
|
|
423
423
|
* ```
|
|
424
424
|
*/
|
|
425
425
|
create(communityId, params, options) {
|
|
@@ -442,7 +442,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
442
442
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints-endpoint-id
|
|
443
443
|
* @example
|
|
444
444
|
* ```ts
|
|
445
|
-
* await social.communities.webhooks.endpoints.delete("
|
|
445
|
+
* await social.communities.webhooks.endpoints.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
446
446
|
* ```
|
|
447
447
|
*/
|
|
448
448
|
delete(communityId, endpointId, options) {
|
|
@@ -464,7 +464,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
464
464
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints
|
|
465
465
|
* @example
|
|
466
466
|
* ```ts
|
|
467
|
-
* for await (const endpoint of social.communities.webhooks.endpoints.list("
|
|
467
|
+
* for await (const endpoint of social.communities.webhooks.endpoints.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
468
468
|
* console.log(endpoint);
|
|
469
469
|
* }
|
|
470
470
|
* ```
|
|
@@ -489,7 +489,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
489
489
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints-endpoint-id
|
|
490
490
|
* @example
|
|
491
491
|
* ```ts
|
|
492
|
-
* const webhookEndpoint = await social.communities.webhooks.endpoints.retrieve("
|
|
492
|
+
* const webhookEndpoint = await social.communities.webhooks.endpoints.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
493
493
|
* ```
|
|
494
494
|
*/
|
|
495
495
|
retrieve(communityId, endpointId, options) {
|
|
@@ -514,7 +514,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
514
514
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints-endpoint-id-rotate-secret
|
|
515
515
|
* @example
|
|
516
516
|
* ```ts
|
|
517
|
-
* const webhookEndpointWithSecret = await social.communities.webhooks.endpoints.rotateSecret("
|
|
517
|
+
* const webhookEndpointWithSecret = await social.communities.webhooks.endpoints.rotateSecret("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { grace_hours: 24 });
|
|
518
518
|
* ```
|
|
519
519
|
*/
|
|
520
520
|
rotateSecret(communityId, endpointId, params, options) {
|
|
@@ -539,7 +539,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
539
539
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints-endpoint-id-test
|
|
540
540
|
* @example
|
|
541
541
|
* ```ts
|
|
542
|
-
* const webhookDeliveryAttempt = await social.communities.webhooks.endpoints.test("
|
|
542
|
+
* const webhookDeliveryAttempt = await social.communities.webhooks.endpoints.test("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { event_type: "post.created" });
|
|
543
543
|
* ```
|
|
544
544
|
*/
|
|
545
545
|
test(communityId, endpointId, params, options) {
|
|
@@ -565,7 +565,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
565
565
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints-endpoint-id
|
|
566
566
|
* @example
|
|
567
567
|
* ```ts
|
|
568
|
-
* const webhookEndpoint = await social.communities.webhooks.endpoints.update("
|
|
568
|
+
* const webhookEndpoint = await social.communities.webhooks.endpoints.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { description: "Production receiver" });
|
|
569
569
|
* ```
|
|
570
570
|
*/
|
|
571
571
|
update(communityId, endpointId, params, options) {
|
|
@@ -588,7 +588,7 @@ var CommunitiesWebhooksEventTypesResource = class extends APIResource {
|
|
|
588
588
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-webhooks-event-types
|
|
589
589
|
* @example
|
|
590
590
|
* ```ts
|
|
591
|
-
* const listWebhookEventTypes = await social.communities.webhooks.eventTypes.list("
|
|
591
|
+
* const listWebhookEventTypes = await social.communities.webhooks.eventTypes.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
592
592
|
* ```
|
|
593
593
|
*/
|
|
594
594
|
list(communityId, options) {
|
|
@@ -613,10 +613,10 @@ var CommunitiesWebhooksEventsResource = class extends APIResource {
|
|
|
613
613
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-webhooks-events
|
|
614
614
|
* @example
|
|
615
615
|
* ```ts
|
|
616
|
-
* for await (const event of social.communities.webhooks.events.list("
|
|
616
|
+
* for await (const event of social.communities.webhooks.events.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
617
617
|
* console.log(event);
|
|
618
618
|
* }
|
|
619
|
-
* const page = await social.communities.webhooks.events.list("
|
|
619
|
+
* const page = await social.communities.webhooks.events.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
620
620
|
* ```
|
|
621
621
|
*/
|
|
622
622
|
list(communityId, params, options) {
|
|
@@ -641,7 +641,7 @@ var CommunitiesWebhooksEventsResource = class extends APIResource {
|
|
|
641
641
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-webhooks-events-event-id-replay
|
|
642
642
|
* @example
|
|
643
643
|
* ```ts
|
|
644
|
-
* const replayWebhookEvent = await social.communities.webhooks.events.replay("
|
|
644
|
+
* const replayWebhookEvent = await social.communities.webhooks.events.replay("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "evt_3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
645
645
|
* ```
|
|
646
646
|
*/
|
|
647
647
|
replay(communityId, eventId, params, options) {
|
|
@@ -664,7 +664,7 @@ var CommunitiesWebhooksEventsResource = class extends APIResource {
|
|
|
664
664
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-webhooks-events-event-id
|
|
665
665
|
* @example
|
|
666
666
|
* ```ts
|
|
667
|
-
* const webhookEventDetail = await social.communities.webhooks.events.retrieve("
|
|
667
|
+
* const webhookEventDetail = await social.communities.webhooks.events.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "evt_3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
668
668
|
* ```
|
|
669
669
|
*/
|
|
670
670
|
retrieve(communityId, eventId, options) {
|
|
@@ -710,7 +710,7 @@ var CommunitiesResource = class extends APIResource {
|
|
|
710
710
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-analytics
|
|
711
711
|
* @example
|
|
712
712
|
* ```ts
|
|
713
|
-
* const communityAnalytics = await social.communities.analytics("
|
|
713
|
+
* const communityAnalytics = await social.communities.analytics("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
714
714
|
* ```
|
|
715
715
|
*/
|
|
716
716
|
analytics(communityId, options) {
|
|
@@ -749,7 +749,7 @@ var CommunitiesResource = class extends APIResource {
|
|
|
749
749
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-workspaces-workspace-id-communities-community-id
|
|
750
750
|
* @example
|
|
751
751
|
* ```ts
|
|
752
|
-
* await social.communities.delete("
|
|
752
|
+
* await social.communities.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
753
753
|
* ```
|
|
754
754
|
*/
|
|
755
755
|
delete(communityId, options) {
|
|
@@ -788,7 +788,7 @@ var CommunitiesResource = class extends APIResource {
|
|
|
788
788
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id
|
|
789
789
|
* @example
|
|
790
790
|
* ```ts
|
|
791
|
-
* const community = await social.communities.retrieve("
|
|
791
|
+
* const community = await social.communities.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
792
792
|
* ```
|
|
793
793
|
*/
|
|
794
794
|
retrieve(communityId, options) {
|
|
@@ -808,7 +808,7 @@ var CommunitiesResource = class extends APIResource {
|
|
|
808
808
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-workspaces-workspace-id-communities-community-id
|
|
809
809
|
* @example
|
|
810
810
|
* ```ts
|
|
811
|
-
* const community = await social.communities.update("
|
|
811
|
+
* const community = await social.communities.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { description: "string" });
|
|
812
812
|
* ```
|
|
813
813
|
*/
|
|
814
814
|
update(communityId, params, options) {
|
|
@@ -883,7 +883,7 @@ var WebhooksEndpointsResource = class extends APIResource {
|
|
|
883
883
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id
|
|
884
884
|
* @example
|
|
885
885
|
* ```ts
|
|
886
|
-
* await social.webhooks.endpoints.delete("
|
|
886
|
+
* await social.webhooks.endpoints.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
887
887
|
* ```
|
|
888
888
|
*/
|
|
889
889
|
delete(endpointId, options) {
|
|
@@ -928,7 +928,7 @@ var WebhooksEndpointsResource = class extends APIResource {
|
|
|
928
928
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id
|
|
929
929
|
* @example
|
|
930
930
|
* ```ts
|
|
931
|
-
* const webhookEndpoint = await social.webhooks.endpoints.retrieve("
|
|
931
|
+
* const webhookEndpoint = await social.webhooks.endpoints.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
932
932
|
* ```
|
|
933
933
|
*/
|
|
934
934
|
retrieve(endpointId, options) {
|
|
@@ -952,7 +952,7 @@ var WebhooksEndpointsResource = class extends APIResource {
|
|
|
952
952
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id-rotate-secret
|
|
953
953
|
* @example
|
|
954
954
|
* ```ts
|
|
955
|
-
* const webhookEndpointWithSecret = await social.webhooks.endpoints.rotateSecret("
|
|
955
|
+
* const webhookEndpointWithSecret = await social.webhooks.endpoints.rotateSecret("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { grace_hours: 24 });
|
|
956
956
|
* ```
|
|
957
957
|
*/
|
|
958
958
|
rotateSecret(endpointId, params, options) {
|
|
@@ -976,7 +976,7 @@ var WebhooksEndpointsResource = class extends APIResource {
|
|
|
976
976
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id-test
|
|
977
977
|
* @example
|
|
978
978
|
* ```ts
|
|
979
|
-
* const webhookDeliveryAttempt = await social.webhooks.endpoints.test("
|
|
979
|
+
* const webhookDeliveryAttempt = await social.webhooks.endpoints.test("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { event_type: "post.created" });
|
|
980
980
|
* ```
|
|
981
981
|
*/
|
|
982
982
|
test(endpointId, params, options) {
|
|
@@ -1001,7 +1001,7 @@ var WebhooksEndpointsResource = class extends APIResource {
|
|
|
1001
1001
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id
|
|
1002
1002
|
* @example
|
|
1003
1003
|
* ```ts
|
|
1004
|
-
* const webhookEndpoint = await social.webhooks.endpoints.update("
|
|
1004
|
+
* const webhookEndpoint = await social.webhooks.endpoints.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { description: "Production receiver" });
|
|
1005
1005
|
* ```
|
|
1006
1006
|
*/
|
|
1007
1007
|
update(endpointId, params, options) {
|
|
@@ -1074,7 +1074,7 @@ var WebhooksEventsResource = class extends APIResource {
|
|
|
1074
1074
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-webhooks-events-event-id-replay
|
|
1075
1075
|
* @example
|
|
1076
1076
|
* ```ts
|
|
1077
|
-
* const replayWebhookEvent = await social.webhooks.events.replay("
|
|
1077
|
+
* const replayWebhookEvent = await social.webhooks.events.replay("evt_3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
1078
1078
|
* ```
|
|
1079
1079
|
*/
|
|
1080
1080
|
replay(eventId, params, options) {
|
|
@@ -1096,7 +1096,7 @@ var WebhooksEventsResource = class extends APIResource {
|
|
|
1096
1096
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-webhooks-events-event-id
|
|
1097
1097
|
* @example
|
|
1098
1098
|
* ```ts
|
|
1099
|
-
* const webhookEventDetail = await social.webhooks.events.retrieve("
|
|
1099
|
+
* const webhookEventDetail = await social.webhooks.events.retrieve("evt_3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
1100
1100
|
* ```
|
|
1101
1101
|
*/
|
|
1102
1102
|
retrieve(eventId, options) {
|
|
@@ -1126,6 +1126,16 @@ var WebhooksResource = class extends APIResource {
|
|
|
1126
1126
|
unwrap(params) {
|
|
1127
1127
|
return this._client.unwrapWebhook(params, "PRODUCTCRAFT_SOCIAL_WEBHOOK_SECRET");
|
|
1128
1128
|
}
|
|
1129
|
+
/**
|
|
1130
|
+
* Sign a test event the way ProductCraft signs deliveries (Standard Webhooks), so a handler
|
|
1131
|
+
* test can call `unwrap` without a live delivery. Returns the exact body and the headers.
|
|
1132
|
+
*
|
|
1133
|
+
* @param params - The event (an object is JSON-encoded), and optionally the secret, `id` and `timestamp`.
|
|
1134
|
+
* @throws {ConfigurationError} No secret was passed or configured.
|
|
1135
|
+
*/
|
|
1136
|
+
sign(params) {
|
|
1137
|
+
return this._client.signWebhook(params, "PRODUCTCRAFT_SOCIAL_WEBHOOK_SECRET");
|
|
1138
|
+
}
|
|
1129
1139
|
};
|
|
1130
1140
|
var SocialResources = class extends APIResource {
|
|
1131
1141
|
#communities;
|
|
@@ -1157,10 +1167,10 @@ var CommunityActorsArchivedResource = class extends APIResource {
|
|
|
1157
1167
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-archived
|
|
1158
1168
|
* @example
|
|
1159
1169
|
* ```ts
|
|
1160
|
-
* for await (const archived of social.community("
|
|
1170
|
+
* for await (const archived of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.archived.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1161
1171
|
* console.log(archived);
|
|
1162
1172
|
* }
|
|
1163
|
-
* const page = await social.community("
|
|
1173
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.archived.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1164
1174
|
* ```
|
|
1165
1175
|
*/
|
|
1166
1176
|
list(actorId, params, options) {
|
|
@@ -1180,10 +1190,10 @@ var CommunityActorsAssetsResource = class extends APIResource {
|
|
|
1180
1190
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-assets
|
|
1181
1191
|
* @example
|
|
1182
1192
|
* ```ts
|
|
1183
|
-
* for await (const asset of social.community("
|
|
1193
|
+
* for await (const asset of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.assets.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1184
1194
|
* console.log(asset);
|
|
1185
1195
|
* }
|
|
1186
|
-
* const page = await social.community("
|
|
1196
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.assets.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1187
1197
|
* ```
|
|
1188
1198
|
*/
|
|
1189
1199
|
list(actorId, params, options) {
|
|
@@ -1205,10 +1215,10 @@ var CommunityActorsBlocksResource = class extends APIResource {
|
|
|
1205
1215
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-blocks
|
|
1206
1216
|
* @example
|
|
1207
1217
|
* ```ts
|
|
1208
|
-
* for await (const block of social.community("
|
|
1218
|
+
* for await (const block of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.blocks.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1209
1219
|
* console.log(block);
|
|
1210
1220
|
* }
|
|
1211
|
-
* const page = await social.community("
|
|
1221
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.blocks.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1212
1222
|
* ```
|
|
1213
1223
|
*/
|
|
1214
1224
|
list(actorId, params, options) {
|
|
@@ -1231,10 +1241,10 @@ var CommunityActorsBookmarksResource = class extends APIResource {
|
|
|
1231
1241
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-bookmarks
|
|
1232
1242
|
* @example
|
|
1233
1243
|
* ```ts
|
|
1234
|
-
* for await (const bookmark of social.community("
|
|
1244
|
+
* for await (const bookmark of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.bookmarks.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1235
1245
|
* console.log(bookmark);
|
|
1236
1246
|
* }
|
|
1237
|
-
* const page = await social.community("
|
|
1247
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.bookmarks.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1238
1248
|
* ```
|
|
1239
1249
|
*/
|
|
1240
1250
|
list(actorId, params, options) {
|
|
@@ -1255,7 +1265,7 @@ var CommunityActorsByExternalResource = class extends APIResource {
|
|
|
1255
1265
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors-by-external-batch
|
|
1256
1266
|
* @example
|
|
1257
1267
|
* ```ts
|
|
1258
|
-
* const actorsByExternalBatch = await social.community("
|
|
1268
|
+
* const actorsByExternalBatch = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.byExternal.batch({ external_ids: ["user_abc123", "user_def456"] });
|
|
1259
1269
|
* ```
|
|
1260
1270
|
*/
|
|
1261
1271
|
batch(params, options) {
|
|
@@ -1273,7 +1283,7 @@ var CommunityActorsByExternalResource = class extends APIResource {
|
|
|
1273
1283
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-by-external-external-id
|
|
1274
1284
|
* @example
|
|
1275
1285
|
* ```ts
|
|
1276
|
-
* const actor = await social.community("
|
|
1286
|
+
* const actor = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.byExternal.retrieve("user_42");
|
|
1277
1287
|
* ```
|
|
1278
1288
|
*/
|
|
1279
1289
|
retrieve(externalId, options) {
|
|
@@ -1297,10 +1307,10 @@ var CommunityActorsCloseFriendsResource = class extends APIResource {
|
|
|
1297
1307
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-close-friends
|
|
1298
1308
|
* @example
|
|
1299
1309
|
* ```ts
|
|
1300
|
-
* for await (const closeFriend of social.community("
|
|
1310
|
+
* for await (const closeFriend of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.closeFriends.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1301
1311
|
* console.log(closeFriend);
|
|
1302
1312
|
* }
|
|
1303
|
-
* const page = await social.community("
|
|
1313
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.closeFriends.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1304
1314
|
* ```
|
|
1305
1315
|
*/
|
|
1306
1316
|
list(actorId, params, options) {
|
|
@@ -1319,10 +1329,10 @@ var CommunityActorsDismissedSuggestionsResource = class extends APIResource {
|
|
|
1319
1329
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-dismissed-suggestions
|
|
1320
1330
|
* @example
|
|
1321
1331
|
* ```ts
|
|
1322
|
-
* for await (const dismissedSuggestion of social.community("
|
|
1332
|
+
* for await (const dismissedSuggestion of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.dismissedSuggestions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1323
1333
|
* console.log(dismissedSuggestion);
|
|
1324
1334
|
* }
|
|
1325
|
-
* const page = await social.community("
|
|
1335
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.dismissedSuggestions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1326
1336
|
* ```
|
|
1327
1337
|
*/
|
|
1328
1338
|
list(actorId, params, options) {
|
|
@@ -1345,10 +1355,10 @@ var CommunityActorsDraftsResource = class extends APIResource {
|
|
|
1345
1355
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-drafts
|
|
1346
1356
|
* @example
|
|
1347
1357
|
* ```ts
|
|
1348
|
-
* for await (const draft of social.community("
|
|
1358
|
+
* for await (const draft of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.drafts.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1349
1359
|
* console.log(draft);
|
|
1350
1360
|
* }
|
|
1351
|
-
* const page = await social.community("
|
|
1361
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.drafts.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1352
1362
|
* ```
|
|
1353
1363
|
*/
|
|
1354
1364
|
list(actorId, params, options) {
|
|
@@ -1370,10 +1380,10 @@ var CommunityActorsFeedResource = class extends APIResource {
|
|
|
1370
1380
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-feed
|
|
1371
1381
|
* @example
|
|
1372
1382
|
* ```ts
|
|
1373
|
-
* for await (const feed of social.community("
|
|
1383
|
+
* for await (const feed of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.feed.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1374
1384
|
* console.log(feed);
|
|
1375
1385
|
* }
|
|
1376
|
-
* const page = await social.community("
|
|
1386
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.feed.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1377
1387
|
* ```
|
|
1378
1388
|
*/
|
|
1379
1389
|
list(actorId, params, options) {
|
|
@@ -1393,10 +1403,10 @@ var CommunityActorsFollowRequestsResource = class extends APIResource {
|
|
|
1393
1403
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-follow-requests
|
|
1394
1404
|
* @example
|
|
1395
1405
|
* ```ts
|
|
1396
|
-
* for await (const followRequest of social.community("
|
|
1406
|
+
* for await (const followRequest of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.followRequests.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1397
1407
|
* console.log(followRequest);
|
|
1398
1408
|
* }
|
|
1399
|
-
* const page = await social.community("
|
|
1409
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.followRequests.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1400
1410
|
* ```
|
|
1401
1411
|
*/
|
|
1402
1412
|
list(actorId, params, options) {
|
|
@@ -1418,10 +1428,10 @@ var CommunityActorsFollowersResource = class extends APIResource {
|
|
|
1418
1428
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-followers
|
|
1419
1429
|
* @example
|
|
1420
1430
|
* ```ts
|
|
1421
|
-
* for await (const follower of social.community("
|
|
1431
|
+
* for await (const follower of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.followers.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1422
1432
|
* console.log(follower);
|
|
1423
1433
|
* }
|
|
1424
|
-
* const page = await social.community("
|
|
1434
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.followers.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1425
1435
|
* ```
|
|
1426
1436
|
*/
|
|
1427
1437
|
list(actorId, params, options) {
|
|
@@ -1443,10 +1453,10 @@ var CommunityActorsFollowingResource = class extends APIResource {
|
|
|
1443
1453
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-following
|
|
1444
1454
|
* @example
|
|
1445
1455
|
* ```ts
|
|
1446
|
-
* for await (const following of social.community("
|
|
1456
|
+
* for await (const following of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.following.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1447
1457
|
* console.log(following);
|
|
1448
1458
|
* }
|
|
1449
|
-
* const page = await social.community("
|
|
1459
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.following.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1450
1460
|
* ```
|
|
1451
1461
|
*/
|
|
1452
1462
|
list(actorId, params, options) {
|
|
@@ -1469,7 +1479,7 @@ var CommunityActorsHashtagFollowsResource = class extends APIResource {
|
|
|
1469
1479
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors-actor-id-hashtag-follows
|
|
1470
1480
|
* @example
|
|
1471
1481
|
* ```ts
|
|
1472
|
-
* const hashtagFollow = await social.community("
|
|
1482
|
+
* const hashtagFollow = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.hashtagFollows.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { tag: "storymode" });
|
|
1473
1483
|
* ```
|
|
1474
1484
|
*/
|
|
1475
1485
|
create(actorId, params, options) {
|
|
@@ -1489,7 +1499,7 @@ var CommunityActorsHashtagFollowsResource = class extends APIResource {
|
|
|
1489
1499
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-actors-actor-id-hashtag-follows-tag
|
|
1490
1500
|
* @example
|
|
1491
1501
|
* ```ts
|
|
1492
|
-
* await social.community("
|
|
1502
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.hashtagFollows.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "launch");
|
|
1493
1503
|
* ```
|
|
1494
1504
|
*/
|
|
1495
1505
|
delete(actorId, tag, options) {
|
|
@@ -1508,10 +1518,10 @@ var CommunityActorsHashtagFollowsResource = class extends APIResource {
|
|
|
1508
1518
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-hashtag-follows
|
|
1509
1519
|
* @example
|
|
1510
1520
|
* ```ts
|
|
1511
|
-
* for await (const hashtagFollow of social.community("
|
|
1521
|
+
* for await (const hashtagFollow of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.hashtagFollows.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1512
1522
|
* console.log(hashtagFollow);
|
|
1513
1523
|
* }
|
|
1514
|
-
* const page = await social.community("
|
|
1524
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.hashtagFollows.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1515
1525
|
* ```
|
|
1516
1526
|
*/
|
|
1517
1527
|
list(actorId, params, options) {
|
|
@@ -1530,10 +1540,10 @@ var CommunityActorsHidesResource = class extends APIResource {
|
|
|
1530
1540
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-hides
|
|
1531
1541
|
* @example
|
|
1532
1542
|
* ```ts
|
|
1533
|
-
* for await (const hide of social.community("
|
|
1543
|
+
* for await (const hide of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.hides.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1534
1544
|
* console.log(hide);
|
|
1535
1545
|
* }
|
|
1536
|
-
* const page = await social.community("
|
|
1546
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.hides.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1537
1547
|
* ```
|
|
1538
1548
|
*/
|
|
1539
1549
|
list(actorId, params, options) {
|
|
@@ -1556,10 +1566,10 @@ var CommunityActorsHighlightsResource = class extends APIResource {
|
|
|
1556
1566
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-owner-actor-id-highlights
|
|
1557
1567
|
* @example
|
|
1558
1568
|
* ```ts
|
|
1559
|
-
* for await (const highlight of social.community("
|
|
1569
|
+
* for await (const highlight of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.highlights.list("aaaaaaaa-0000-0000-0000-000000000001")) {
|
|
1560
1570
|
* console.log(highlight);
|
|
1561
1571
|
* }
|
|
1562
|
-
* const page = await social.community("
|
|
1572
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.highlights.list("aaaaaaaa-0000-0000-0000-000000000001", {}, { timeout: 5_000 });
|
|
1563
1573
|
* ```
|
|
1564
1574
|
*/
|
|
1565
1575
|
list(ownerActorId, params, options) {
|
|
@@ -1582,10 +1592,10 @@ var CommunityActorsMentionsResource = class extends APIResource {
|
|
|
1582
1592
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-mentions
|
|
1583
1593
|
* @example
|
|
1584
1594
|
* ```ts
|
|
1585
|
-
* for await (const mention of social.community("
|
|
1595
|
+
* for await (const mention of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.mentions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1586
1596
|
* console.log(mention);
|
|
1587
1597
|
* }
|
|
1588
|
-
* const page = await social.community("
|
|
1598
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.mentions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1589
1599
|
* ```
|
|
1590
1600
|
*/
|
|
1591
1601
|
list(actorId, params, options) {
|
|
@@ -1608,7 +1618,7 @@ var CommunityActorsMutedTermsResource = class extends APIResource {
|
|
|
1608
1618
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors-actor-id-muted-terms
|
|
1609
1619
|
* @example
|
|
1610
1620
|
* ```ts
|
|
1611
|
-
* const mutedTerm = await social.community("
|
|
1621
|
+
* const mutedTerm = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.mutedTerms.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { term: "spoiler" });
|
|
1612
1622
|
* ```
|
|
1613
1623
|
*/
|
|
1614
1624
|
create(actorId, params, options) {
|
|
@@ -1627,7 +1637,7 @@ var CommunityActorsMutedTermsResource = class extends APIResource {
|
|
|
1627
1637
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-actors-actor-id-muted-terms-term
|
|
1628
1638
|
* @example
|
|
1629
1639
|
* ```ts
|
|
1630
|
-
* await social.community("
|
|
1640
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.mutedTerms.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "spoiler");
|
|
1631
1641
|
* ```
|
|
1632
1642
|
*/
|
|
1633
1643
|
delete(actorId, term, options) {
|
|
@@ -1646,10 +1656,10 @@ var CommunityActorsMutedTermsResource = class extends APIResource {
|
|
|
1646
1656
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-muted-terms
|
|
1647
1657
|
* @example
|
|
1648
1658
|
* ```ts
|
|
1649
|
-
* for await (const mutedTerm of social.community("
|
|
1659
|
+
* for await (const mutedTerm of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.mutedTerms.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1650
1660
|
* console.log(mutedTerm);
|
|
1651
1661
|
* }
|
|
1652
|
-
* const page = await social.community("
|
|
1662
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.mutedTerms.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1653
1663
|
* ```
|
|
1654
1664
|
*/
|
|
1655
1665
|
list(actorId, params, options) {
|
|
@@ -1671,10 +1681,10 @@ var CommunityActorsMutesResource = class extends APIResource {
|
|
|
1671
1681
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-mutes
|
|
1672
1682
|
* @example
|
|
1673
1683
|
* ```ts
|
|
1674
|
-
* for await (const mute of social.community("
|
|
1684
|
+
* for await (const mute of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.mutes.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1675
1685
|
* console.log(mute);
|
|
1676
1686
|
* }
|
|
1677
|
-
* const page = await social.community("
|
|
1687
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.mutes.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1678
1688
|
* ```
|
|
1679
1689
|
*/
|
|
1680
1690
|
list(actorId, params, options) {
|
|
@@ -1696,7 +1706,7 @@ var CommunityActorsNotificationPrefsResource = class extends APIResource {
|
|
|
1696
1706
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-notification-prefs
|
|
1697
1707
|
* @example
|
|
1698
1708
|
* ```ts
|
|
1699
|
-
* const notificationPrefList = await social.community("
|
|
1709
|
+
* const notificationPrefList = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.notificationPrefs.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
1700
1710
|
* ```
|
|
1701
1711
|
*/
|
|
1702
1712
|
list(actorId, options) {
|
|
@@ -1719,7 +1729,7 @@ var CommunityActorsNotificationPrefsResource = class extends APIResource {
|
|
|
1719
1729
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-actors-actor-id-notification-prefs-kind
|
|
1720
1730
|
* @example
|
|
1721
1731
|
* ```ts
|
|
1722
|
-
* const notificationPref = await social.community("
|
|
1732
|
+
* const notificationPref = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.notificationPrefs.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "follow", { enabled: false });
|
|
1723
1733
|
* ```
|
|
1724
1734
|
*/
|
|
1725
1735
|
update(actorId, kind, params, options) {
|
|
@@ -1742,10 +1752,10 @@ var CommunityActorsNotificationsResource = class extends APIResource {
|
|
|
1742
1752
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-notifications
|
|
1743
1753
|
* @example
|
|
1744
1754
|
* ```ts
|
|
1745
|
-
* for await (const notification of social.community("
|
|
1755
|
+
* for await (const notification of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.notifications.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1746
1756
|
* console.log(notification);
|
|
1747
1757
|
* }
|
|
1748
|
-
* const page = await social.community("
|
|
1758
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.notifications.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1749
1759
|
* ```
|
|
1750
1760
|
*/
|
|
1751
1761
|
list(actorId, params, options) {
|
|
@@ -1767,7 +1777,7 @@ var CommunityActorsNotificationsResource = class extends APIResource {
|
|
|
1767
1777
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors-actor-id-notifications-read-all
|
|
1768
1778
|
* @example
|
|
1769
1779
|
* ```ts
|
|
1770
|
-
* const result = await social.community("
|
|
1780
|
+
* const result = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.notifications.markAllRead("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { before: "2026-05-01T00:00:00.000Z" });
|
|
1771
1781
|
* ```
|
|
1772
1782
|
*/
|
|
1773
1783
|
markAllRead(actorId, params, options) {
|
|
@@ -1787,7 +1797,7 @@ var CommunityActorsNotificationsResource = class extends APIResource {
|
|
|
1787
1797
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-notifications-unread-count
|
|
1788
1798
|
* @example
|
|
1789
1799
|
* ```ts
|
|
1790
|
-
* const result = await social.community("
|
|
1800
|
+
* const result = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.notifications.unreadCount("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
1791
1801
|
* ```
|
|
1792
1802
|
*/
|
|
1793
1803
|
unreadCount(actorId, options) {
|
|
@@ -1810,7 +1820,7 @@ var CommunityActorsNotificationsResource = class extends APIResource {
|
|
|
1810
1820
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-actors-actor-id-notifications-notification-id
|
|
1811
1821
|
* @example
|
|
1812
1822
|
* ```ts
|
|
1813
|
-
* await social.community("
|
|
1823
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.notifications.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "11111111-1111-1111-1111-111111111111", { read: true });
|
|
1814
1824
|
* ```
|
|
1815
1825
|
*/
|
|
1816
1826
|
update(actorId, notificationId, params, options) {
|
|
@@ -1834,7 +1844,7 @@ var CommunityActorsRelationshipsResource = class extends APIResource {
|
|
|
1834
1844
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-src-actor-id-relationships
|
|
1835
1845
|
* @example
|
|
1836
1846
|
* ```ts
|
|
1837
|
-
* const relationshipList = await social.community("
|
|
1847
|
+
* const relationshipList = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.relationships.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { with: "0b1c2d3e-4f50-4a6b-8c7d-8e9f0a1b2c3d" });
|
|
1838
1848
|
* ```
|
|
1839
1849
|
*/
|
|
1840
1850
|
list(srcActorId, params, options) {
|
|
@@ -1856,10 +1866,10 @@ var CommunityActorsRestrictsResource = class extends APIResource {
|
|
|
1856
1866
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-restricts
|
|
1857
1867
|
* @example
|
|
1858
1868
|
* ```ts
|
|
1859
|
-
* for await (const restrict of social.community("
|
|
1869
|
+
* for await (const restrict of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.restricts.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1860
1870
|
* console.log(restrict);
|
|
1861
1871
|
* }
|
|
1862
|
-
* const page = await social.community("
|
|
1872
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.restricts.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1863
1873
|
* ```
|
|
1864
1874
|
*/
|
|
1865
1875
|
list(actorId, params, options) {
|
|
@@ -1882,10 +1892,10 @@ var CommunityActorsScheduledPostsResource = class extends APIResource {
|
|
|
1882
1892
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-scheduled-posts
|
|
1883
1893
|
* @example
|
|
1884
1894
|
* ```ts
|
|
1885
|
-
* for await (const scheduledPost of social.community("
|
|
1895
|
+
* for await (const scheduledPost of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.scheduledPosts.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1886
1896
|
* console.log(scheduledPost);
|
|
1887
1897
|
* }
|
|
1888
|
-
* const page = await social.community("
|
|
1898
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.scheduledPosts.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1889
1899
|
* ```
|
|
1890
1900
|
*/
|
|
1891
1901
|
list(actorId, params, options) {
|
|
@@ -1907,7 +1917,7 @@ var CommunityActorsStoryTrayResource = class extends APIResource {
|
|
|
1907
1917
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-story-tray
|
|
1908
1918
|
* @example
|
|
1909
1919
|
* ```ts
|
|
1910
|
-
* for await (const storyTray of social.community("
|
|
1920
|
+
* for await (const storyTray of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.storyTray.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1911
1921
|
* console.log(storyTray);
|
|
1912
1922
|
* }
|
|
1913
1923
|
* ```
|
|
@@ -1932,10 +1942,10 @@ var CommunityActorsSuggestedFollowsResource = class extends APIResource {
|
|
|
1932
1942
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-suggested-follows
|
|
1933
1943
|
* @example
|
|
1934
1944
|
* ```ts
|
|
1935
|
-
* for await (const suggestedFollow of social.community("
|
|
1945
|
+
* for await (const suggestedFollow of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.suggestedFollows.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1936
1946
|
* console.log(suggestedFollow);
|
|
1937
1947
|
* }
|
|
1938
|
-
* const page = await social.community("
|
|
1948
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.suggestedFollows.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1939
1949
|
* ```
|
|
1940
1950
|
*/
|
|
1941
1951
|
list(actorId, params, options) {
|
|
@@ -1958,10 +1968,10 @@ var CommunityActorsTaggedResource = class extends APIResource {
|
|
|
1958
1968
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-tagged-actor-id-tagged
|
|
1959
1969
|
* @example
|
|
1960
1970
|
* ```ts
|
|
1961
|
-
* for await (const tagged of social.community("
|
|
1971
|
+
* for await (const tagged of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.tagged.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
1962
1972
|
* console.log(tagged);
|
|
1963
1973
|
* }
|
|
1964
|
-
* const page = await social.community("
|
|
1974
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.tagged.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
1965
1975
|
* ```
|
|
1966
1976
|
*/
|
|
1967
1977
|
list(taggedActorId, params, options) {
|
|
@@ -2086,7 +2096,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2086
2096
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors-batch
|
|
2087
2097
|
* @example
|
|
2088
2098
|
* ```ts
|
|
2089
|
-
* const batchActors = await social.community("
|
|
2099
|
+
* const batchActors = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.batch({ actors: [{ external_id: "user_abc123" }] });
|
|
2090
2100
|
* ```
|
|
2091
2101
|
*/
|
|
2092
2102
|
batch(params, options) {
|
|
@@ -2104,7 +2114,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2104
2114
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-counters
|
|
2105
2115
|
* @example
|
|
2106
2116
|
* ```ts
|
|
2107
|
-
* const actorCounters = await social.community("
|
|
2117
|
+
* const actorCounters = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.counters("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2108
2118
|
* ```
|
|
2109
2119
|
*/
|
|
2110
2120
|
counters(actorId, options) {
|
|
@@ -2124,7 +2134,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2124
2134
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors
|
|
2125
2135
|
* @example
|
|
2126
2136
|
* ```ts
|
|
2127
|
-
* const upsertActor = await social.community("
|
|
2137
|
+
* const upsertActor = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.create({ external_id: "user_abc123" });
|
|
2128
2138
|
* ```
|
|
2129
2139
|
*/
|
|
2130
2140
|
create(params, options) {
|
|
@@ -2142,7 +2152,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2142
2152
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-actors-actor-id
|
|
2143
2153
|
* @example
|
|
2144
2154
|
* ```ts
|
|
2145
|
-
* await social.community("
|
|
2155
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2146
2156
|
* ```
|
|
2147
2157
|
*/
|
|
2148
2158
|
delete(actorId, options) {
|
|
@@ -2162,7 +2172,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2162
2172
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-insights
|
|
2163
2173
|
* @example
|
|
2164
2174
|
* ```ts
|
|
2165
|
-
* const actorInsights = await social.community("
|
|
2175
|
+
* const actorInsights = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.insights("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2166
2176
|
* ```
|
|
2167
2177
|
*/
|
|
2168
2178
|
insights(actorId, params, options) {
|
|
@@ -2181,10 +2191,10 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2181
2191
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors
|
|
2182
2192
|
* @example
|
|
2183
2193
|
* ```ts
|
|
2184
|
-
* for await (const actor of social.community("
|
|
2194
|
+
* for await (const actor of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.list()) {
|
|
2185
2195
|
* console.log(actor);
|
|
2186
2196
|
* }
|
|
2187
|
-
* const page = await social.community("
|
|
2197
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.list({}, { timeout: 5_000 });
|
|
2188
2198
|
* ```
|
|
2189
2199
|
*/
|
|
2190
2200
|
list(params, options) {
|
|
@@ -2206,7 +2216,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2206
2216
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors-actor-id-post-state
|
|
2207
2217
|
* @example
|
|
2208
2218
|
* ```ts
|
|
2209
|
-
* const postState = await social.community("
|
|
2219
|
+
* const postState = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.postState("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {
|
|
2210
2220
|
* post_ids: ["bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb", "cccccccc-cccc-cccc-cccc-cccccccccccc"],
|
|
2211
2221
|
* });
|
|
2212
2222
|
* ```
|
|
@@ -2225,7 +2235,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2225
2235
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id
|
|
2226
2236
|
* @example
|
|
2227
2237
|
* ```ts
|
|
2228
|
-
* const actor = await social.community("
|
|
2238
|
+
* const actor = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2229
2239
|
* ```
|
|
2230
2240
|
*/
|
|
2231
2241
|
retrieve(actorId, options) {
|
|
@@ -2245,7 +2255,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2245
2255
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-actors-actor-id
|
|
2246
2256
|
* @example
|
|
2247
2257
|
* ```ts
|
|
2248
|
-
* const actor = await social.community("
|
|
2258
|
+
* const actor = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { avatar_url: "string" });
|
|
2249
2259
|
* ```
|
|
2250
2260
|
*/
|
|
2251
2261
|
update(actorId, params, options) {
|
|
@@ -2267,7 +2277,7 @@ var CommunityAssetsResource = class extends APIResource {
|
|
|
2267
2277
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-assets-asset-id-complete
|
|
2268
2278
|
* @example
|
|
2269
2279
|
* ```ts
|
|
2270
|
-
* const uploadAsset = await social.community("
|
|
2280
|
+
* const uploadAsset = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").assets.complete("eeeeeeee-0000-0000-0000-000000000001");
|
|
2271
2281
|
* ```
|
|
2272
2282
|
*/
|
|
2273
2283
|
complete(assetId, options) {
|
|
@@ -2288,7 +2298,7 @@ var CommunityAssetsResource = class extends APIResource {
|
|
|
2288
2298
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-assets
|
|
2289
2299
|
* @example
|
|
2290
2300
|
* ```ts
|
|
2291
|
-
* const uploadAsset = await social.community("
|
|
2301
|
+
* const uploadAsset = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").assets.create();
|
|
2292
2302
|
* ```
|
|
2293
2303
|
*/
|
|
2294
2304
|
create(params, options) {
|
|
@@ -2306,7 +2316,7 @@ var CommunityAssetsResource = class extends APIResource {
|
|
|
2306
2316
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-assets-asset-id
|
|
2307
2317
|
* @example
|
|
2308
2318
|
* ```ts
|
|
2309
|
-
* await social.community("
|
|
2319
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").assets.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2310
2320
|
* ```
|
|
2311
2321
|
*/
|
|
2312
2322
|
delete(assetId, options) {
|
|
@@ -2324,7 +2334,7 @@ var CommunityAssetsResource = class extends APIResource {
|
|
|
2324
2334
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-assets-asset-id
|
|
2325
2335
|
* @example
|
|
2326
2336
|
* ```ts
|
|
2327
|
-
* const asset = await social.community("
|
|
2337
|
+
* const asset = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").assets.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2328
2338
|
* ```
|
|
2329
2339
|
*/
|
|
2330
2340
|
retrieve(assetId, options) {
|
|
@@ -2347,7 +2357,7 @@ var CommunityBlocksResource = class extends APIResource {
|
|
|
2347
2357
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-blocks
|
|
2348
2358
|
* @example
|
|
2349
2359
|
* ```ts
|
|
2350
|
-
* const createEdge = await social.community("
|
|
2360
|
+
* const createEdge = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").blocks.create({ dst_actor_id: "aaaaaaaa-0000-0000-0000-000000000002" });
|
|
2351
2361
|
* ```
|
|
2352
2362
|
*/
|
|
2353
2363
|
create(params, options) {
|
|
@@ -2366,7 +2376,7 @@ var CommunityBlocksResource = class extends APIResource {
|
|
|
2366
2376
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-blocks-src-actor-id-dst-actor-id
|
|
2367
2377
|
* @example
|
|
2368
2378
|
* ```ts
|
|
2369
|
-
* await social.community("
|
|
2379
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").blocks.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2370
2380
|
* ```
|
|
2371
2381
|
*/
|
|
2372
2382
|
delete(srcActorId, dstActorId, options) {
|
|
@@ -2391,7 +2401,7 @@ var CommunityCloseFriendsResource = class extends APIResource {
|
|
|
2391
2401
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-close-friends
|
|
2392
2402
|
* @example
|
|
2393
2403
|
* ```ts
|
|
2394
|
-
* await social.community("
|
|
2404
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").closeFriends.create({ member_actor_id: "aaaaaaaa-0000-0000-0000-000000000002" });
|
|
2395
2405
|
* ```
|
|
2396
2406
|
*/
|
|
2397
2407
|
create(params, options) {
|
|
@@ -2412,7 +2422,7 @@ var CommunityCloseFriendsResource = class extends APIResource {
|
|
|
2412
2422
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-close-friends-owner-actor-id-member-actor-id
|
|
2413
2423
|
* @example
|
|
2414
2424
|
* ```ts
|
|
2415
|
-
* await social.community("
|
|
2425
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").closeFriends.delete("aaaaaaaa-0000-0000-0000-000000000001", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2416
2426
|
* ```
|
|
2417
2427
|
*/
|
|
2418
2428
|
delete(ownerActorId, memberActorId, options) {
|
|
@@ -2434,7 +2444,7 @@ var CommunityCollectionsItemsResource = class extends APIResource {
|
|
|
2434
2444
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-collections-collection-id-items
|
|
2435
2445
|
* @example
|
|
2436
2446
|
* ```ts
|
|
2437
|
-
* const collectionItem = await social.community("
|
|
2447
|
+
* const collectionItem = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.items.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { post_id: "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" });
|
|
2438
2448
|
* ```
|
|
2439
2449
|
*/
|
|
2440
2450
|
create(collectionId, params, options) {
|
|
@@ -2453,7 +2463,7 @@ var CommunityCollectionsItemsResource = class extends APIResource {
|
|
|
2453
2463
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-collections-collection-id-items-post-id
|
|
2454
2464
|
* @example
|
|
2455
2465
|
* ```ts
|
|
2456
|
-
* await social.community("
|
|
2466
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.items.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { caller_actor_id: "aaaaaaaa-0000-0000-0000-000000000001" });
|
|
2457
2467
|
* ```
|
|
2458
2468
|
*/
|
|
2459
2469
|
delete(collectionId, postId, params, options) {
|
|
@@ -2471,10 +2481,10 @@ var CommunityCollectionsItemsResource = class extends APIResource {
|
|
|
2471
2481
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-collections-collection-id-items
|
|
2472
2482
|
* @example
|
|
2473
2483
|
* ```ts
|
|
2474
|
-
* for await (const item of social.community("
|
|
2484
|
+
* for await (const item of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.items.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
2475
2485
|
* console.log(item);
|
|
2476
2486
|
* }
|
|
2477
|
-
* const page = await social.community("
|
|
2487
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.items.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
2478
2488
|
* ```
|
|
2479
2489
|
*/
|
|
2480
2490
|
list(collectionId, params, options) {
|
|
@@ -2494,7 +2504,7 @@ var CommunityCollectionsItemsResource = class extends APIResource {
|
|
|
2494
2504
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-collections-collection-id-items-post-id
|
|
2495
2505
|
* @example
|
|
2496
2506
|
* ```ts
|
|
2497
|
-
* const collectionItem = await social.community("
|
|
2507
|
+
* const collectionItem = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.items.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { position: 3 });
|
|
2498
2508
|
* ```
|
|
2499
2509
|
*/
|
|
2500
2510
|
update(collectionId, postId, params, options) {
|
|
@@ -2521,7 +2531,7 @@ var CommunityCollectionsResource = class extends APIResource {
|
|
|
2521
2531
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-collections
|
|
2522
2532
|
* @example
|
|
2523
2533
|
* ```ts
|
|
2524
|
-
* const collection = await social.community("
|
|
2534
|
+
* const collection = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.create({ name: "Travel" });
|
|
2525
2535
|
* ```
|
|
2526
2536
|
*/
|
|
2527
2537
|
create(params, options) {
|
|
@@ -2540,7 +2550,7 @@ var CommunityCollectionsResource = class extends APIResource {
|
|
|
2540
2550
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-collections-collection-id
|
|
2541
2551
|
* @example
|
|
2542
2552
|
* ```ts
|
|
2543
|
-
* await social.community("
|
|
2553
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { caller_actor_id: "aaaaaaaa-0000-0000-0000-000000000001" });
|
|
2544
2554
|
* ```
|
|
2545
2555
|
*/
|
|
2546
2556
|
delete(collectionId, params, options) {
|
|
@@ -2556,10 +2566,10 @@ var CommunityCollectionsResource = class extends APIResource {
|
|
|
2556
2566
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-collections
|
|
2557
2567
|
* @example
|
|
2558
2568
|
* ```ts
|
|
2559
|
-
* for await (const collection of social.community("
|
|
2569
|
+
* for await (const collection of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.list()) {
|
|
2560
2570
|
* console.log(collection);
|
|
2561
2571
|
* }
|
|
2562
|
-
* const page = await social.community("
|
|
2572
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.list({}, { timeout: 5_000 });
|
|
2563
2573
|
* ```
|
|
2564
2574
|
*/
|
|
2565
2575
|
list(params, options) {
|
|
@@ -2577,7 +2587,7 @@ var CommunityCollectionsResource = class extends APIResource {
|
|
|
2577
2587
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-collections-collection-id
|
|
2578
2588
|
* @example
|
|
2579
2589
|
* ```ts
|
|
2580
|
-
* const collection = await social.community("
|
|
2590
|
+
* const collection = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2581
2591
|
* ```
|
|
2582
2592
|
*/
|
|
2583
2593
|
retrieve(collectionId, params, options) {
|
|
@@ -2597,7 +2607,7 @@ var CommunityCollectionsResource = class extends APIResource {
|
|
|
2597
2607
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-collections-collection-id
|
|
2598
2608
|
* @example
|
|
2599
2609
|
* ```ts
|
|
2600
|
-
* const collection = await social.community("
|
|
2610
|
+
* const collection = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2601
2611
|
* ```
|
|
2602
2612
|
*/
|
|
2603
2613
|
update(collectionId, params, options) {
|
|
@@ -2619,7 +2629,7 @@ var CommunityConnectionsResource = class extends APIResource {
|
|
|
2619
2629
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-connections-dst-actor-id-src-actor-id-accept
|
|
2620
2630
|
* @example
|
|
2621
2631
|
* ```ts
|
|
2622
|
-
* const connectionResult = await social.community("
|
|
2632
|
+
* const connectionResult = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").connections.accept("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2623
2633
|
* ```
|
|
2624
2634
|
*/
|
|
2625
2635
|
accept(dstActorId, srcActorId, options) {
|
|
@@ -2640,7 +2650,7 @@ var CommunityConnectionsResource = class extends APIResource {
|
|
|
2640
2650
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-connections
|
|
2641
2651
|
* @example
|
|
2642
2652
|
* ```ts
|
|
2643
|
-
* const connectionResult = await social.community("
|
|
2653
|
+
* const connectionResult = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").connections.create({
|
|
2644
2654
|
* dst_actor_id: "aaaaaaaa-0000-0000-0000-000000000002",
|
|
2645
2655
|
* src_actor_id: "aaaaaaaa-0000-0000-0000-000000000001",
|
|
2646
2656
|
* });
|
|
@@ -2663,7 +2673,7 @@ var CommunityConnectionsResource = class extends APIResource {
|
|
|
2663
2673
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-connections-actor-id-other-actor-id
|
|
2664
2674
|
* @example
|
|
2665
2675
|
* ```ts
|
|
2666
|
-
* await social.community("
|
|
2676
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").connections.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2667
2677
|
* ```
|
|
2668
2678
|
*/
|
|
2669
2679
|
delete(actorId, otherActorId, options) {
|
|
@@ -2686,7 +2696,7 @@ var CommunityConversationsMembersResource = class extends APIResource {
|
|
|
2686
2696
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-conversations-conversation-id-members
|
|
2687
2697
|
* @example
|
|
2688
2698
|
* ```ts
|
|
2689
|
-
* const conversation = await social.community("
|
|
2699
|
+
* const conversation = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.members.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
2690
2700
|
* ```
|
|
2691
2701
|
*/
|
|
2692
2702
|
create(conversationId, params, options) {
|
|
@@ -2708,7 +2718,7 @@ var CommunityConversationsMembersResource = class extends APIResource {
|
|
|
2708
2718
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-conversations-conversation-id-members-member-actor-id
|
|
2709
2719
|
* @example
|
|
2710
2720
|
* ```ts
|
|
2711
|
-
* await social.community("
|
|
2721
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.members.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
2712
2722
|
* ```
|
|
2713
2723
|
*/
|
|
2714
2724
|
delete(conversationId, memberActorId, params, options) {
|
|
@@ -2729,7 +2739,7 @@ var CommunityConversationsMembersResource = class extends APIResource {
|
|
|
2729
2739
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-conversations-conversation-id-members-member-actor-id
|
|
2730
2740
|
* @example
|
|
2731
2741
|
* ```ts
|
|
2732
|
-
* const conversation = await social.community("
|
|
2742
|
+
* const conversation = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.members.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2733
2743
|
* ```
|
|
2734
2744
|
*/
|
|
2735
2745
|
update(conversationId, memberActorId, params, options) {
|
|
@@ -2753,7 +2763,7 @@ var CommunityConversationsMessagesReactionsResource = class extends APIResource
|
|
|
2753
2763
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-conversations-conversation-id-messages-message-id-reactions
|
|
2754
2764
|
* @example
|
|
2755
2765
|
* ```ts
|
|
2756
|
-
* const directMessageReactionCreated = await social.community("
|
|
2766
|
+
* const directMessageReactionCreated = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.messages.reactions.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { type: "heart" });
|
|
2757
2767
|
* ```
|
|
2758
2768
|
*/
|
|
2759
2769
|
create(conversationId, messageId, params, options) {
|
|
@@ -2774,7 +2784,7 @@ var CommunityConversationsMessagesReactionsResource = class extends APIResource
|
|
|
2774
2784
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-conversations-conversation-id-messages-message-id-reactions-actor-id-type
|
|
2775
2785
|
* @example
|
|
2776
2786
|
* ```ts
|
|
2777
|
-
* const directMessageReactionRemoved = await social.community("
|
|
2787
|
+
* const directMessageReactionRemoved = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.messages.reactions.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "like");
|
|
2778
2788
|
* ```
|
|
2779
2789
|
*/
|
|
2780
2790
|
delete(conversationId, messageId, actorId, type, options) {
|
|
@@ -2794,7 +2804,7 @@ var CommunityConversationsMessagesReactionsResource = class extends APIResource
|
|
|
2794
2804
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-conversations-conversation-id-messages-message-id-reactions
|
|
2795
2805
|
* @example
|
|
2796
2806
|
* ```ts
|
|
2797
|
-
* for await (const reaction of social.community("
|
|
2807
|
+
* for await (const reaction of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.messages.reactions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {})) {
|
|
2798
2808
|
* console.log(reaction);
|
|
2799
2809
|
* }
|
|
2800
2810
|
* ```
|
|
@@ -2823,7 +2833,7 @@ var CommunityConversationsMessagesResource = class extends APIResource {
|
|
|
2823
2833
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-conversations-conversation-id-messages
|
|
2824
2834
|
* @example
|
|
2825
2835
|
* ```ts
|
|
2826
|
-
* const directMessage = await social.community("
|
|
2836
|
+
* const directMessage = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.messages.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
2827
2837
|
* ```
|
|
2828
2838
|
*/
|
|
2829
2839
|
create(conversationId, params, options) {
|
|
@@ -2844,7 +2854,7 @@ var CommunityConversationsMessagesResource = class extends APIResource {
|
|
|
2844
2854
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-conversations-conversation-id-messages-message-id
|
|
2845
2855
|
* @example
|
|
2846
2856
|
* ```ts
|
|
2847
|
-
* await social.community("
|
|
2857
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.messages.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
2848
2858
|
* ```
|
|
2849
2859
|
*/
|
|
2850
2860
|
delete(conversationId, messageId, params, options) {
|
|
@@ -2863,7 +2873,7 @@ var CommunityConversationsMessagesResource = class extends APIResource {
|
|
|
2863
2873
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-conversations-conversation-id-messages
|
|
2864
2874
|
* @example
|
|
2865
2875
|
* ```ts
|
|
2866
|
-
* for await (const message of social.community("
|
|
2876
|
+
* for await (const message of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.messages.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {})) {
|
|
2867
2877
|
* console.log(message);
|
|
2868
2878
|
* }
|
|
2869
2879
|
* ```
|
|
@@ -2885,7 +2895,7 @@ var CommunityConversationsMessagesResource = class extends APIResource {
|
|
|
2885
2895
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-conversations-conversation-id-messages-message-id
|
|
2886
2896
|
* @example
|
|
2887
2897
|
* ```ts
|
|
2888
|
-
* const directMessage = await social.community("
|
|
2898
|
+
* const directMessage = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.messages.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
2889
2899
|
* ```
|
|
2890
2900
|
*/
|
|
2891
2901
|
retrieve(conversationId, messageId, params, options) {
|
|
@@ -2907,7 +2917,7 @@ var CommunityConversationsMessagesResource = class extends APIResource {
|
|
|
2907
2917
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-conversations-conversation-id-messages-message-id
|
|
2908
2918
|
* @example
|
|
2909
2919
|
* ```ts
|
|
2910
|
-
* const directMessage = await social.community("
|
|
2920
|
+
* const directMessage = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.messages.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { body: "edited" });
|
|
2911
2921
|
* ```
|
|
2912
2922
|
*/
|
|
2913
2923
|
update(conversationId, messageId, params, options) {
|
|
@@ -2937,7 +2947,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
2937
2947
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-conversations
|
|
2938
2948
|
* @example
|
|
2939
2949
|
* ```ts
|
|
2940
|
-
* const conversation = await social.community("
|
|
2950
|
+
* const conversation = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.create({});
|
|
2941
2951
|
* ```
|
|
2942
2952
|
*/
|
|
2943
2953
|
create(params, options) {
|
|
@@ -2957,7 +2967,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
2957
2967
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-conversations-conversation-id
|
|
2958
2968
|
* @example
|
|
2959
2969
|
* ```ts
|
|
2960
|
-
* await social.community("
|
|
2970
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
2961
2971
|
* ```
|
|
2962
2972
|
*/
|
|
2963
2973
|
delete(conversationId, params, options) {
|
|
@@ -2975,7 +2985,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
2975
2985
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-conversations
|
|
2976
2986
|
* @example
|
|
2977
2987
|
* ```ts
|
|
2978
|
-
* for await (const conversation of social.community("
|
|
2988
|
+
* for await (const conversation of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.list({})) {
|
|
2979
2989
|
* console.log(conversation);
|
|
2980
2990
|
* }
|
|
2981
2991
|
* ```
|
|
@@ -2997,7 +3007,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
2997
3007
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-conversations-conversation-id-read
|
|
2998
3008
|
* @example
|
|
2999
3009
|
* ```ts
|
|
3000
|
-
* await social.community("
|
|
3010
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.markRead("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
3001
3011
|
* ```
|
|
3002
3012
|
*/
|
|
3003
3013
|
markRead(conversationId, params, options) {
|
|
@@ -3016,7 +3026,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
3016
3026
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-conversations-conversation-id
|
|
3017
3027
|
* @example
|
|
3018
3028
|
* ```ts
|
|
3019
|
-
* const conversation = await social.community("
|
|
3029
|
+
* const conversation = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
3020
3030
|
* ```
|
|
3021
3031
|
*/
|
|
3022
3032
|
retrieve(conversationId, params, options) {
|
|
@@ -3034,7 +3044,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
3034
3044
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-conversations-unread-count
|
|
3035
3045
|
* @example
|
|
3036
3046
|
* ```ts
|
|
3037
|
-
* const unreadCount = await social.community("
|
|
3047
|
+
* const unreadCount = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.unreadCount({});
|
|
3038
3048
|
* ```
|
|
3039
3049
|
*/
|
|
3040
3050
|
unreadCount(params, options) {
|
|
@@ -3055,7 +3065,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
3055
3065
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-conversations-conversation-id
|
|
3056
3066
|
* @example
|
|
3057
3067
|
* ```ts
|
|
3058
|
-
* const conversation = await social.community("
|
|
3068
|
+
* const conversation = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
3059
3069
|
* ```
|
|
3060
3070
|
*/
|
|
3061
3071
|
update(conversationId, params, options) {
|
|
@@ -3076,7 +3086,7 @@ var CommunityCountersResource = class extends APIResource {
|
|
|
3076
3086
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-counters
|
|
3077
3087
|
* @example
|
|
3078
3088
|
* ```ts
|
|
3079
|
-
* const batchCounters = await social.community("
|
|
3089
|
+
* const batchCounters = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").counters.list({ actor_ids: "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f,0b1c2d3e-4f50-4a6b-8c7d-8e9f0a1b2c3d" });
|
|
3080
3090
|
* ```
|
|
3081
3091
|
*/
|
|
3082
3092
|
list(params, options) {
|
|
@@ -3096,10 +3106,10 @@ var CommunityDiscoverFeedResource = class extends APIResource {
|
|
|
3096
3106
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-discover-feed
|
|
3097
3107
|
* @example
|
|
3098
3108
|
* ```ts
|
|
3099
|
-
* for await (const discoverFeed of social.community("
|
|
3109
|
+
* for await (const discoverFeed of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").discoverFeed.list()) {
|
|
3100
3110
|
* console.log(discoverFeed);
|
|
3101
3111
|
* }
|
|
3102
|
-
* const page = await social.community("
|
|
3112
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").discoverFeed.list({}, { timeout: 5_000 });
|
|
3103
3113
|
* ```
|
|
3104
3114
|
*/
|
|
3105
3115
|
list(params, options) {
|
|
@@ -3120,7 +3130,7 @@ var CommunityDismissedSuggestionsResource = class extends APIResource {
|
|
|
3120
3130
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-dismissed-suggestions
|
|
3121
3131
|
* @example
|
|
3122
3132
|
* ```ts
|
|
3123
|
-
* const createEdge = await social.community("
|
|
3133
|
+
* const createEdge = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").dismissedSuggestions.create({ dst_actor_id: "aaaaaaaa-0000-0000-0000-000000000002" });
|
|
3124
3134
|
* ```
|
|
3125
3135
|
*/
|
|
3126
3136
|
create(params, options) {
|
|
@@ -3137,7 +3147,7 @@ var CommunityDismissedSuggestionsResource = class extends APIResource {
|
|
|
3137
3147
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-dismissed-suggestions-src-actor-id-dst-actor-id
|
|
3138
3148
|
* @example
|
|
3139
3149
|
* ```ts
|
|
3140
|
-
* await social.community("
|
|
3150
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").dismissedSuggestions.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3141
3151
|
* ```
|
|
3142
3152
|
*/
|
|
3143
3153
|
delete(srcActorId, dstActorId, options) {
|
|
@@ -3160,7 +3170,7 @@ var CommunityFlagsResource = class extends APIResource {
|
|
|
3160
3170
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-flags
|
|
3161
3171
|
* @example
|
|
3162
3172
|
* ```ts
|
|
3163
|
-
* const createFlag = await social.community("
|
|
3173
|
+
* const createFlag = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").flags.create({ target_id: "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb", target_kind: "post" });
|
|
3164
3174
|
* ```
|
|
3165
3175
|
*/
|
|
3166
3176
|
create(params, options) {
|
|
@@ -3177,10 +3187,10 @@ var CommunityFlagsResource = class extends APIResource {
|
|
|
3177
3187
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-flags
|
|
3178
3188
|
* @example
|
|
3179
3189
|
* ```ts
|
|
3180
|
-
* for await (const flag of social.community("
|
|
3190
|
+
* for await (const flag of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").flags.list()) {
|
|
3181
3191
|
* console.log(flag);
|
|
3182
3192
|
* }
|
|
3183
|
-
* const page = await social.community("
|
|
3193
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").flags.list({}, { timeout: 5_000 });
|
|
3184
3194
|
* ```
|
|
3185
3195
|
*/
|
|
3186
3196
|
list(params, options) {
|
|
@@ -3200,7 +3210,7 @@ var CommunityFollowRequestsResource = class extends APIResource {
|
|
|
3200
3210
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-follow-requests-dst-actor-id-src-actor-id-approve
|
|
3201
3211
|
* @example
|
|
3202
3212
|
* ```ts
|
|
3203
|
-
* const createEdge = await social.community("
|
|
3213
|
+
* const createEdge = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").followRequests.approve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3204
3214
|
* ```
|
|
3205
3215
|
*/
|
|
3206
3216
|
approve(dstActorId, srcActorId, options) {
|
|
@@ -3218,7 +3228,7 @@ var CommunityFollowRequestsResource = class extends APIResource {
|
|
|
3218
3228
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-follow-requests-dst-actor-id-src-actor-id
|
|
3219
3229
|
* @example
|
|
3220
3230
|
* ```ts
|
|
3221
|
-
* await social.community("
|
|
3231
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").followRequests.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3222
3232
|
* ```
|
|
3223
3233
|
*/
|
|
3224
3234
|
delete(dstActorId, srcActorId, options) {
|
|
@@ -3239,7 +3249,7 @@ var CommunityFollowsResource = class extends APIResource {
|
|
|
3239
3249
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-follows-batch
|
|
3240
3250
|
* @example
|
|
3241
3251
|
* ```ts
|
|
3242
|
-
* const batchFollows = await social.community("
|
|
3252
|
+
* const batchFollows = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").follows.batch({
|
|
3243
3253
|
* follows: [
|
|
3244
3254
|
* {
|
|
3245
3255
|
* actor_id: "aaaaaaaa-0000-0000-0000-000000000001",
|
|
@@ -3267,7 +3277,7 @@ var CommunityFollowsResource = class extends APIResource {
|
|
|
3267
3277
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-follows
|
|
3268
3278
|
* @example
|
|
3269
3279
|
* ```ts
|
|
3270
|
-
* const followResult = await social.community("
|
|
3280
|
+
* const followResult = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").follows.create({ dst_actor_id: "aaaaaaaa-0000-0000-0000-000000000002" });
|
|
3271
3281
|
* ```
|
|
3272
3282
|
*/
|
|
3273
3283
|
create(params, options) {
|
|
@@ -3286,7 +3296,7 @@ var CommunityFollowsResource = class extends APIResource {
|
|
|
3286
3296
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-follows-src-actor-id-dst-actor-id
|
|
3287
3297
|
* @example
|
|
3288
3298
|
* ```ts
|
|
3289
|
-
* await social.community("
|
|
3299
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").follows.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3290
3300
|
* ```
|
|
3291
3301
|
*/
|
|
3292
3302
|
delete(srcActorId, dstActorId, options) {
|
|
@@ -3308,10 +3318,10 @@ var CommunityHashtagsPostsResource = class extends APIResource {
|
|
|
3308
3318
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-hashtags-tag-posts
|
|
3309
3319
|
* @example
|
|
3310
3320
|
* ```ts
|
|
3311
|
-
* for await (const post of social.community("
|
|
3321
|
+
* for await (const post of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hashtags.posts.list("launch")) {
|
|
3312
3322
|
* console.log(post);
|
|
3313
3323
|
* }
|
|
3314
|
-
* const page = await social.community("
|
|
3324
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hashtags.posts.list("launch", {}, { timeout: 5_000 });
|
|
3315
3325
|
* ```
|
|
3316
3326
|
*/
|
|
3317
3327
|
list(tag, params, options) {
|
|
@@ -3336,10 +3346,10 @@ var CommunityHashtagsResource = class extends APIResource {
|
|
|
3336
3346
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-hashtags
|
|
3337
3347
|
* @example
|
|
3338
3348
|
* ```ts
|
|
3339
|
-
* for await (const hashtag of social.community("
|
|
3349
|
+
* for await (const hashtag of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hashtags.list()) {
|
|
3340
3350
|
* console.log(hashtag);
|
|
3341
3351
|
* }
|
|
3342
|
-
* const page = await social.community("
|
|
3352
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hashtags.list({}, { timeout: 5_000 });
|
|
3343
3353
|
* ```
|
|
3344
3354
|
*/
|
|
3345
3355
|
list(params, options) {
|
|
@@ -3358,7 +3368,7 @@ var CommunityHashtagsResource = class extends APIResource {
|
|
|
3358
3368
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-hashtags-tag
|
|
3359
3369
|
* @example
|
|
3360
3370
|
* ```ts
|
|
3361
|
-
* const hashtagDetail = await social.community("
|
|
3371
|
+
* const hashtagDetail = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hashtags.retrieve("launch");
|
|
3362
3372
|
* ```
|
|
3363
3373
|
*/
|
|
3364
3374
|
retrieve(tag, options) {
|
|
@@ -3378,7 +3388,7 @@ var CommunityHidesResource = class extends APIResource {
|
|
|
3378
3388
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-hides
|
|
3379
3389
|
* @example
|
|
3380
3390
|
* ```ts
|
|
3381
|
-
* const hideResult = await social.community("
|
|
3391
|
+
* const hideResult = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hides.create({ post_id: "bbbbbbbb-0000-0000-0000-000000000001" });
|
|
3382
3392
|
* ```
|
|
3383
3393
|
*/
|
|
3384
3394
|
create(params, options) {
|
|
@@ -3395,7 +3405,7 @@ var CommunityHidesResource = class extends APIResource {
|
|
|
3395
3405
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-hides-src-actor-id-post-id
|
|
3396
3406
|
* @example
|
|
3397
3407
|
* ```ts
|
|
3398
|
-
* await social.community("
|
|
3408
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hides.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3399
3409
|
* ```
|
|
3400
3410
|
*/
|
|
3401
3411
|
delete(srcActorId, postId, options) {
|
|
@@ -3417,7 +3427,7 @@ var CommunityListsFeedResource = class extends APIResource {
|
|
|
3417
3427
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-lists-list-id-feed
|
|
3418
3428
|
* @example
|
|
3419
3429
|
* ```ts
|
|
3420
|
-
* for await (const feed of social.community("
|
|
3430
|
+
* for await (const feed of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.feed.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {})) {
|
|
3421
3431
|
* console.log(feed);
|
|
3422
3432
|
* }
|
|
3423
3433
|
* ```
|
|
@@ -3441,7 +3451,7 @@ var CommunityListsMembersResource = class extends APIResource {
|
|
|
3441
3451
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-lists-list-id-members
|
|
3442
3452
|
* @example
|
|
3443
3453
|
* ```ts
|
|
3444
|
-
* const actorListMember = await social.community("
|
|
3454
|
+
* const actorListMember = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.members.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
3445
3455
|
* ```
|
|
3446
3456
|
*/
|
|
3447
3457
|
create(listId, params, options) {
|
|
@@ -3462,7 +3472,7 @@ var CommunityListsMembersResource = class extends APIResource {
|
|
|
3462
3472
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-lists-list-id-members-member-actor-id
|
|
3463
3473
|
* @example
|
|
3464
3474
|
* ```ts
|
|
3465
|
-
* await social.community("
|
|
3475
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.members.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
3466
3476
|
* ```
|
|
3467
3477
|
*/
|
|
3468
3478
|
delete(listId, memberActorId, params, options) {
|
|
@@ -3481,10 +3491,10 @@ var CommunityListsMembersResource = class extends APIResource {
|
|
|
3481
3491
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-lists-list-id-members
|
|
3482
3492
|
* @example
|
|
3483
3493
|
* ```ts
|
|
3484
|
-
* for await (const member of social.community("
|
|
3494
|
+
* for await (const member of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.members.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
3485
3495
|
* console.log(member);
|
|
3486
3496
|
* }
|
|
3487
|
-
* const page = await social.community("
|
|
3497
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.members.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
3488
3498
|
* ```
|
|
3489
3499
|
*/
|
|
3490
3500
|
list(listId, params, options) {
|
|
@@ -3514,7 +3524,7 @@ var CommunityListsResource = class extends APIResource {
|
|
|
3514
3524
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-lists
|
|
3515
3525
|
* @example
|
|
3516
3526
|
* ```ts
|
|
3517
|
-
* const actorList = await social.community("
|
|
3527
|
+
* const actorList = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.create({ name: "Tech news" });
|
|
3518
3528
|
* ```
|
|
3519
3529
|
*/
|
|
3520
3530
|
create(params, options) {
|
|
@@ -3534,7 +3544,7 @@ var CommunityListsResource = class extends APIResource {
|
|
|
3534
3544
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-lists-list-id
|
|
3535
3545
|
* @example
|
|
3536
3546
|
* ```ts
|
|
3537
|
-
* await social.community("
|
|
3547
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
3538
3548
|
* ```
|
|
3539
3549
|
*/
|
|
3540
3550
|
delete(listId, params, options) {
|
|
@@ -3551,10 +3561,10 @@ var CommunityListsResource = class extends APIResource {
|
|
|
3551
3561
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-lists
|
|
3552
3562
|
* @example
|
|
3553
3563
|
* ```ts
|
|
3554
|
-
* for await (const list of social.community("
|
|
3564
|
+
* for await (const list of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.list()) {
|
|
3555
3565
|
* console.log(list);
|
|
3556
3566
|
* }
|
|
3557
|
-
* const page = await social.community("
|
|
3567
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.list({}, { timeout: 5_000 });
|
|
3558
3568
|
* ```
|
|
3559
3569
|
*/
|
|
3560
3570
|
list(params, options) {
|
|
@@ -3573,7 +3583,7 @@ var CommunityListsResource = class extends APIResource {
|
|
|
3573
3583
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-lists-list-id
|
|
3574
3584
|
* @example
|
|
3575
3585
|
* ```ts
|
|
3576
|
-
* const actorList = await social.community("
|
|
3586
|
+
* const actorList = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3577
3587
|
* ```
|
|
3578
3588
|
*/
|
|
3579
3589
|
retrieve(listId, params, options) {
|
|
@@ -3593,7 +3603,7 @@ var CommunityListsResource = class extends APIResource {
|
|
|
3593
3603
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-lists-list-id
|
|
3594
3604
|
* @example
|
|
3595
3605
|
* ```ts
|
|
3596
|
-
* const actorList = await social.community("
|
|
3606
|
+
* const actorList = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3597
3607
|
* ```
|
|
3598
3608
|
*/
|
|
3599
3609
|
update(listId, params, options) {
|
|
@@ -3616,7 +3626,7 @@ var CommunityMutesResource = class extends APIResource {
|
|
|
3616
3626
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-mutes
|
|
3617
3627
|
* @example
|
|
3618
3628
|
* ```ts
|
|
3619
|
-
* const createEdge = await social.community("
|
|
3629
|
+
* const createEdge = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").mutes.create({ dst_actor_id: "aaaaaaaa-0000-0000-0000-000000000002" });
|
|
3620
3630
|
* ```
|
|
3621
3631
|
*/
|
|
3622
3632
|
create(params, options) {
|
|
@@ -3635,7 +3645,7 @@ var CommunityMutesResource = class extends APIResource {
|
|
|
3635
3645
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-mutes-src-actor-id-dst-actor-id
|
|
3636
3646
|
* @example
|
|
3637
3647
|
* ```ts
|
|
3638
|
-
* await social.community("
|
|
3648
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").mutes.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3639
3649
|
* ```
|
|
3640
3650
|
*/
|
|
3641
3651
|
delete(srcActorId, dstActorId, options) {
|
|
@@ -3659,7 +3669,7 @@ var CommunityPostsCommentsReactionsResource = class extends APIResource {
|
|
|
3659
3669
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-comments-comment-id-reactions
|
|
3660
3670
|
* @example
|
|
3661
3671
|
* ```ts
|
|
3662
|
-
* const addCommentReaction = await social.community("
|
|
3672
|
+
* const addCommentReaction = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.reactions.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { type: "like" });
|
|
3663
3673
|
* ```
|
|
3664
3674
|
*/
|
|
3665
3675
|
create(postId, commentId, params, options) {
|
|
@@ -3681,7 +3691,7 @@ var CommunityPostsCommentsReactionsResource = class extends APIResource {
|
|
|
3681
3691
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-comments-comment-id-reactions-src-actor-id-type
|
|
3682
3692
|
* @example
|
|
3683
3693
|
* ```ts
|
|
3684
|
-
* const commentReactionCounts = await social.community("
|
|
3694
|
+
* const commentReactionCounts = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.reactions.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "like");
|
|
3685
3695
|
* ```
|
|
3686
3696
|
*/
|
|
3687
3697
|
delete(postId, commentId, srcActorId, type, options) {
|
|
@@ -3701,10 +3711,10 @@ var CommunityPostsCommentsReactionsResource = class extends APIResource {
|
|
|
3701
3711
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-comments-comment-id-reactions
|
|
3702
3712
|
* @example
|
|
3703
3713
|
* ```ts
|
|
3704
|
-
* for await (const reaction of social.community("
|
|
3714
|
+
* for await (const reaction of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.reactions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
3705
3715
|
* console.log(reaction);
|
|
3706
3716
|
* }
|
|
3707
|
-
* const page = await social.community("
|
|
3717
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.reactions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
3708
3718
|
* ```
|
|
3709
3719
|
*/
|
|
3710
3720
|
list(postId, commentId, params, options) {
|
|
@@ -3732,7 +3742,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3732
3742
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-comments-comment-id-approve
|
|
3733
3743
|
* @example
|
|
3734
3744
|
* ```ts
|
|
3735
|
-
* const comment = await social.community("
|
|
3745
|
+
* const comment = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.approve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3736
3746
|
* ```
|
|
3737
3747
|
*/
|
|
3738
3748
|
approve(postId, commentId, params, options) {
|
|
@@ -3753,7 +3763,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3753
3763
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-comments
|
|
3754
3764
|
* @example
|
|
3755
3765
|
* ```ts
|
|
3756
|
-
* const comment = await social.community("
|
|
3766
|
+
* const comment = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { body: "Looks great, shipping today." });
|
|
3757
3767
|
* ```
|
|
3758
3768
|
*/
|
|
3759
3769
|
create(postId, params, options) {
|
|
@@ -3772,7 +3782,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3772
3782
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-comments-comment-id
|
|
3773
3783
|
* @example
|
|
3774
3784
|
* ```ts
|
|
3775
|
-
* await social.community("
|
|
3785
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3776
3786
|
* ```
|
|
3777
3787
|
*/
|
|
3778
3788
|
delete(postId, commentId, options) {
|
|
@@ -3791,10 +3801,10 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3791
3801
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-comments
|
|
3792
3802
|
* @example
|
|
3793
3803
|
* ```ts
|
|
3794
|
-
* for await (const comment of social.community("
|
|
3804
|
+
* for await (const comment of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
3795
3805
|
* console.log(comment);
|
|
3796
3806
|
* }
|
|
3797
|
-
* const page = await social.community("
|
|
3807
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
3798
3808
|
* ```
|
|
3799
3809
|
*/
|
|
3800
3810
|
list(postId, params, options) {
|
|
@@ -3817,7 +3827,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3817
3827
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-comments-comment-id-pin
|
|
3818
3828
|
* @example
|
|
3819
3829
|
* ```ts
|
|
3820
|
-
* const comment = await social.community("
|
|
3830
|
+
* const comment = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.pin("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
3821
3831
|
* ```
|
|
3822
3832
|
*/
|
|
3823
3833
|
pin(postId, commentId, params, options) {
|
|
@@ -3837,7 +3847,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3837
3847
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-comments-comment-id
|
|
3838
3848
|
* @example
|
|
3839
3849
|
* ```ts
|
|
3840
|
-
* const comment = await social.community("
|
|
3850
|
+
* const comment = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3841
3851
|
* ```
|
|
3842
3852
|
*/
|
|
3843
3853
|
retrieve(postId, commentId, params, options) {
|
|
@@ -3859,7 +3869,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3859
3869
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-comments-comment-id-pin
|
|
3860
3870
|
* @example
|
|
3861
3871
|
* ```ts
|
|
3862
|
-
* const comment = await social.community("
|
|
3872
|
+
* const comment = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.unpin("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
3863
3873
|
* ```
|
|
3864
3874
|
*/
|
|
3865
3875
|
unpin(postId, commentId, params, options) {
|
|
@@ -3880,7 +3890,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3880
3890
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-posts-post-id-comments-comment-id
|
|
3881
3891
|
* @example
|
|
3882
3892
|
* ```ts
|
|
3883
|
-
* const comment = await social.community("
|
|
3893
|
+
* const comment = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.comments.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { body: "string" });
|
|
3884
3894
|
* ```
|
|
3885
3895
|
*/
|
|
3886
3896
|
update(postId, commentId, params, options) {
|
|
@@ -3903,10 +3913,10 @@ var CommunityPostsQuotesResource = class extends APIResource {
|
|
|
3903
3913
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-quotes
|
|
3904
3914
|
* @example
|
|
3905
3915
|
* ```ts
|
|
3906
|
-
* for await (const quote of social.community("
|
|
3916
|
+
* for await (const quote of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.quotes.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
3907
3917
|
* console.log(quote);
|
|
3908
3918
|
* }
|
|
3909
|
-
* const page = await social.community("
|
|
3919
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.quotes.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
3910
3920
|
* ```
|
|
3911
3921
|
*/
|
|
3912
3922
|
list(postId, params, options) {
|
|
@@ -3929,7 +3939,7 @@ var CommunityPostsReactionsResource = class extends APIResource {
|
|
|
3929
3939
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-reactions
|
|
3930
3940
|
* @example
|
|
3931
3941
|
* ```ts
|
|
3932
|
-
* const reaction = await social.community("
|
|
3942
|
+
* const reaction = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.reactions.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { type: "like" });
|
|
3933
3943
|
* ```
|
|
3934
3944
|
*/
|
|
3935
3945
|
create(postId, params, options) {
|
|
@@ -3950,7 +3960,7 @@ var CommunityPostsReactionsResource = class extends APIResource {
|
|
|
3950
3960
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-reactions-src-actor-id-type
|
|
3951
3961
|
* @example
|
|
3952
3962
|
* ```ts
|
|
3953
|
-
* const reactionCounts = await social.community("
|
|
3963
|
+
* const reactionCounts = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.reactions.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "like");
|
|
3954
3964
|
* ```
|
|
3955
3965
|
*/
|
|
3956
3966
|
delete(postId, srcActorId, type, options) {
|
|
@@ -3970,10 +3980,10 @@ var CommunityPostsReactionsResource = class extends APIResource {
|
|
|
3970
3980
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-reactions
|
|
3971
3981
|
* @example
|
|
3972
3982
|
* ```ts
|
|
3973
|
-
* for await (const reaction of social.community("
|
|
3983
|
+
* for await (const reaction of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.reactions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
3974
3984
|
* console.log(reaction);
|
|
3975
3985
|
* }
|
|
3976
|
-
* const page = await social.community("
|
|
3986
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.reactions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
3977
3987
|
* ```
|
|
3978
3988
|
*/
|
|
3979
3989
|
list(postId, params, options) {
|
|
@@ -3994,10 +4004,10 @@ var CommunityPostsRepostsResource = class extends APIResource {
|
|
|
3994
4004
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-reposts
|
|
3995
4005
|
* @example
|
|
3996
4006
|
* ```ts
|
|
3997
|
-
* for await (const repost of social.community("
|
|
4007
|
+
* for await (const repost of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.reposts.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
3998
4008
|
* console.log(repost);
|
|
3999
4009
|
* }
|
|
4000
|
-
* const page = await social.community("
|
|
4010
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.reposts.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
4001
4011
|
* ```
|
|
4002
4012
|
*/
|
|
4003
4013
|
list(postId, params, options) {
|
|
@@ -4020,10 +4030,10 @@ var CommunityPostsRevisionsResource = class extends APIResource {
|
|
|
4020
4030
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-revisions
|
|
4021
4031
|
* @example
|
|
4022
4032
|
* ```ts
|
|
4023
|
-
* for await (const revision of social.community("
|
|
4033
|
+
* for await (const revision of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.revisions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
4024
4034
|
* console.log(revision);
|
|
4025
4035
|
* }
|
|
4026
|
-
* const page = await social.community("
|
|
4036
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.revisions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
4027
4037
|
* ```
|
|
4028
4038
|
*/
|
|
4029
4039
|
list(postId, params, options) {
|
|
@@ -4048,7 +4058,7 @@ var CommunityPostsTagsResource = class extends APIResource {
|
|
|
4048
4058
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-tags-tagged-actor-id-approve
|
|
4049
4059
|
* @example
|
|
4050
4060
|
* ```ts
|
|
4051
|
-
* const postTag = await social.community("
|
|
4061
|
+
* const postTag = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.tags.approve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
4052
4062
|
* ```
|
|
4053
4063
|
*/
|
|
4054
4064
|
approve(postId, taggedActorId, params, options) {
|
|
@@ -4070,7 +4080,7 @@ var CommunityPostsTagsResource = class extends APIResource {
|
|
|
4070
4080
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-tags-tagged-actor-id-remove
|
|
4071
4081
|
* @example
|
|
4072
4082
|
* ```ts
|
|
4073
|
-
* const postTag = await social.community("
|
|
4083
|
+
* const postTag = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.tags.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
4074
4084
|
* ```
|
|
4075
4085
|
*/
|
|
4076
4086
|
delete(postId, taggedActorId, params, options) {
|
|
@@ -4094,7 +4104,7 @@ var CommunityPostsViewersResource = class extends APIResource {
|
|
|
4094
4104
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-viewers
|
|
4095
4105
|
* @example
|
|
4096
4106
|
* ```ts
|
|
4097
|
-
* for await (const viewer of social.community("
|
|
4107
|
+
* for await (const viewer of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.viewers.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {})) {
|
|
4098
4108
|
* console.log(viewer);
|
|
4099
4109
|
* }
|
|
4100
4110
|
* ```
|
|
@@ -4120,7 +4130,7 @@ var CommunityPostsVotersResource = class extends APIResource {
|
|
|
4120
4130
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-voters
|
|
4121
4131
|
* @example
|
|
4122
4132
|
* ```ts
|
|
4123
|
-
* for await (const voter of social.community("
|
|
4133
|
+
* for await (const voter of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.voters.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {})) {
|
|
4124
4134
|
* console.log(voter);
|
|
4125
4135
|
* }
|
|
4126
4136
|
* ```
|
|
@@ -4148,7 +4158,7 @@ var CommunityPostsVotesResource = class extends APIResource {
|
|
|
4148
4158
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-votes
|
|
4149
4159
|
* @example
|
|
4150
4160
|
* ```ts
|
|
4151
|
-
* await social.community("
|
|
4161
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.votes.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { option_index: 1 });
|
|
4152
4162
|
* ```
|
|
4153
4163
|
*/
|
|
4154
4164
|
create(postId, params, options) {
|
|
@@ -4169,7 +4179,7 @@ var CommunityPostsVotesResource = class extends APIResource {
|
|
|
4169
4179
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-votes-actor-id
|
|
4170
4180
|
* @example
|
|
4171
4181
|
* ```ts
|
|
4172
|
-
* await social.community("
|
|
4182
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.votes.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4173
4183
|
* ```
|
|
4174
4184
|
*/
|
|
4175
4185
|
delete(postId, actorId, options) {
|
|
@@ -4190,7 +4200,7 @@ var CommunityPostsVotesResource = class extends APIResource {
|
|
|
4190
4200
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-votes-actor-id
|
|
4191
4201
|
* @example
|
|
4192
4202
|
* ```ts
|
|
4193
|
-
* const result = await social.community("
|
|
4203
|
+
* const result = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.votes.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4194
4204
|
* ```
|
|
4195
4205
|
*/
|
|
4196
4206
|
retrieve(postId, actorId, options) {
|
|
@@ -4250,7 +4260,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4250
4260
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-bookmark
|
|
4251
4261
|
* @example
|
|
4252
4262
|
* ```ts
|
|
4253
|
-
* const bookmarkToggle = await social.community("
|
|
4263
|
+
* const bookmarkToggle = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.bookmark("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
4254
4264
|
* ```
|
|
4255
4265
|
*/
|
|
4256
4266
|
bookmark(postId, params, options) {
|
|
@@ -4271,7 +4281,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4271
4281
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts
|
|
4272
4282
|
* @example
|
|
4273
4283
|
* ```ts
|
|
4274
|
-
* const post = await social.community("
|
|
4284
|
+
* const post = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.create({});
|
|
4275
4285
|
* ```
|
|
4276
4286
|
*/
|
|
4277
4287
|
create(params, options) {
|
|
@@ -4289,7 +4299,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4289
4299
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id
|
|
4290
4300
|
* @example
|
|
4291
4301
|
* ```ts
|
|
4292
|
-
* await social.community("
|
|
4302
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4293
4303
|
* ```
|
|
4294
4304
|
*/
|
|
4295
4305
|
delete(postId, options) {
|
|
@@ -4309,7 +4319,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4309
4319
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-insights
|
|
4310
4320
|
* @example
|
|
4311
4321
|
* ```ts
|
|
4312
|
-
* const postInsights = await social.community("
|
|
4322
|
+
* const postInsights = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.insights("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4313
4323
|
* ```
|
|
4314
4324
|
*/
|
|
4315
4325
|
insights(postId, params, options) {
|
|
@@ -4327,10 +4337,10 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4327
4337
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts
|
|
4328
4338
|
* @example
|
|
4329
4339
|
* ```ts
|
|
4330
|
-
* for await (const post of social.community("
|
|
4340
|
+
* for await (const post of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.list()) {
|
|
4331
4341
|
* console.log(post);
|
|
4332
4342
|
* }
|
|
4333
|
-
* const page = await social.community("
|
|
4343
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.list({}, { timeout: 5_000 });
|
|
4334
4344
|
* ```
|
|
4335
4345
|
*/
|
|
4336
4346
|
list(params, options) {
|
|
@@ -4351,7 +4361,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4351
4361
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-poll-results
|
|
4352
4362
|
* @example
|
|
4353
4363
|
* ```ts
|
|
4354
|
-
* const result = await social.community("
|
|
4364
|
+
* const result = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.pollResults("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4355
4365
|
* ```
|
|
4356
4366
|
*/
|
|
4357
4367
|
pollResults(postId, options) {
|
|
@@ -4369,7 +4379,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4369
4379
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-impressions
|
|
4370
4380
|
* @example
|
|
4371
4381
|
* ```ts
|
|
4372
|
-
* await social.community("
|
|
4382
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.recordImpressions({
|
|
4373
4383
|
* post_ids: ["bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb", "cccccccc-cccc-cccc-cccc-cccccccccccc"],
|
|
4374
4384
|
* });
|
|
4375
4385
|
* ```
|
|
@@ -4394,7 +4404,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4394
4404
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-views
|
|
4395
4405
|
* @example
|
|
4396
4406
|
* ```ts
|
|
4397
|
-
* await social.community("
|
|
4407
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.recordView("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
4398
4408
|
* ```
|
|
4399
4409
|
*/
|
|
4400
4410
|
recordView(postId, params, options) {
|
|
@@ -4417,7 +4427,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4417
4427
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-repost
|
|
4418
4428
|
* @example
|
|
4419
4429
|
* ```ts
|
|
4420
|
-
* const createRepost = await social.community("
|
|
4430
|
+
* const createRepost = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.repost("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
4421
4431
|
* ```
|
|
4422
4432
|
*/
|
|
4423
4433
|
repost(postId, params, options) {
|
|
@@ -4438,7 +4448,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4438
4448
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id
|
|
4439
4449
|
* @example
|
|
4440
4450
|
* ```ts
|
|
4441
|
-
* const post = await social.community("
|
|
4451
|
+
* const post = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4442
4452
|
* ```
|
|
4443
4453
|
*/
|
|
4444
4454
|
retrieve(postId, params, options) {
|
|
@@ -4458,7 +4468,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4458
4468
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-bookmark
|
|
4459
4469
|
* @example
|
|
4460
4470
|
* ```ts
|
|
4461
|
-
* await social.community("
|
|
4471
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.unbookmark("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
4462
4472
|
* ```
|
|
4463
4473
|
*/
|
|
4464
4474
|
unbookmark(postId, params, options) {
|
|
@@ -4478,7 +4488,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4478
4488
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-repost
|
|
4479
4489
|
* @example
|
|
4480
4490
|
* ```ts
|
|
4481
|
-
* await social.community("
|
|
4491
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.unrepost("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
4482
4492
|
* ```
|
|
4483
4493
|
*/
|
|
4484
4494
|
unrepost(postId, params, options) {
|
|
@@ -4499,7 +4509,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4499
4509
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-posts-post-id
|
|
4500
4510
|
* @example
|
|
4501
4511
|
* ```ts
|
|
4502
|
-
* const post = await social.community("
|
|
4512
|
+
* const post = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { attributes: {} });
|
|
4503
4513
|
* ```
|
|
4504
4514
|
*/
|
|
4505
4515
|
update(postId, params, options) {
|
|
@@ -4522,7 +4532,7 @@ var CommunityRestrictsResource = class extends APIResource {
|
|
|
4522
4532
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-restricts
|
|
4523
4533
|
* @example
|
|
4524
4534
|
* ```ts
|
|
4525
|
-
* const createEdge = await social.community("
|
|
4535
|
+
* const createEdge = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").restricts.create({ dst_actor_id: "aaaaaaaa-0000-0000-0000-000000000002" });
|
|
4526
4536
|
* ```
|
|
4527
4537
|
*/
|
|
4528
4538
|
create(params, options) {
|
|
@@ -4541,7 +4551,7 @@ var CommunityRestrictsResource = class extends APIResource {
|
|
|
4541
4551
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-restricts-src-actor-id-dst-actor-id
|
|
4542
4552
|
* @example
|
|
4543
4553
|
* ```ts
|
|
4544
|
-
* await social.community("
|
|
4554
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").restricts.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4545
4555
|
* ```
|
|
4546
4556
|
*/
|
|
4547
4557
|
delete(srcActorId, dstActorId, options) {
|
|
@@ -4564,7 +4574,7 @@ var CommunitySearchActorsResource = class extends APIResource {
|
|
|
4564
4574
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-search-actors
|
|
4565
4575
|
* @example
|
|
4566
4576
|
* ```ts
|
|
4567
|
-
* for await (const actor of social.community("
|
|
4577
|
+
* for await (const actor of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").search.actors.list({ q: "onboarding" })) {
|
|
4568
4578
|
* console.log(actor);
|
|
4569
4579
|
* }
|
|
4570
4580
|
* ```
|
|
@@ -4589,7 +4599,7 @@ var CommunitySearchHashtagsResource = class extends APIResource {
|
|
|
4589
4599
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-search-hashtags
|
|
4590
4600
|
* @example
|
|
4591
4601
|
* ```ts
|
|
4592
|
-
* for await (const hashtag of social.community("
|
|
4602
|
+
* for await (const hashtag of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").search.hashtags.list({ q: "onboarding" })) {
|
|
4593
4603
|
* console.log(hashtag);
|
|
4594
4604
|
* }
|
|
4595
4605
|
* ```
|
|
@@ -4614,7 +4624,7 @@ var CommunitySearchPostsResource = class extends APIResource {
|
|
|
4614
4624
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-search-posts
|
|
4615
4625
|
* @example
|
|
4616
4626
|
* ```ts
|
|
4617
|
-
* for await (const post of social.community("
|
|
4627
|
+
* for await (const post of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").search.posts.list({ q: "onboarding" })) {
|
|
4618
4628
|
* console.log(post);
|
|
4619
4629
|
* }
|
|
4620
4630
|
* ```
|
|
@@ -4656,7 +4666,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4656
4666
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-webhooks-endpoints
|
|
4657
4667
|
* @example
|
|
4658
4668
|
* ```ts
|
|
4659
|
-
* const webhookEndpointWithSecret = await social.community("
|
|
4669
|
+
* const webhookEndpointWithSecret = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.endpoints.create({ url: "https://api.acme.com/webhooks" });
|
|
4660
4670
|
* ```
|
|
4661
4671
|
*/
|
|
4662
4672
|
create(params, options) {
|
|
@@ -4678,7 +4688,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4678
4688
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-webhooks-endpoints-endpoint-id
|
|
4679
4689
|
* @example
|
|
4680
4690
|
* ```ts
|
|
4681
|
-
* await social.community("
|
|
4691
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.endpoints.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4682
4692
|
* ```
|
|
4683
4693
|
*/
|
|
4684
4694
|
delete(endpointId, options) {
|
|
@@ -4699,7 +4709,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4699
4709
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-webhooks-endpoints
|
|
4700
4710
|
* @example
|
|
4701
4711
|
* ```ts
|
|
4702
|
-
* for await (const endpoint of social.community("
|
|
4712
|
+
* for await (const endpoint of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.endpoints.list()) {
|
|
4703
4713
|
* console.log(endpoint);
|
|
4704
4714
|
* }
|
|
4705
4715
|
* ```
|
|
@@ -4723,7 +4733,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4723
4733
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-webhooks-endpoints-endpoint-id
|
|
4724
4734
|
* @example
|
|
4725
4735
|
* ```ts
|
|
4726
|
-
* const webhookEndpoint = await social.community("
|
|
4736
|
+
* const webhookEndpoint = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.endpoints.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4727
4737
|
* ```
|
|
4728
4738
|
*/
|
|
4729
4739
|
retrieve(endpointId, options) {
|
|
@@ -4747,7 +4757,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4747
4757
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-webhooks-endpoints-endpoint-id-rotate-secret
|
|
4748
4758
|
* @example
|
|
4749
4759
|
* ```ts
|
|
4750
|
-
* const webhookEndpointWithSecret = await social.community("
|
|
4760
|
+
* const webhookEndpointWithSecret = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.endpoints.rotateSecret("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { grace_hours: 24 });
|
|
4751
4761
|
* ```
|
|
4752
4762
|
*/
|
|
4753
4763
|
rotateSecret(endpointId, params, options) {
|
|
@@ -4771,7 +4781,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4771
4781
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-webhooks-endpoints-endpoint-id-test
|
|
4772
4782
|
* @example
|
|
4773
4783
|
* ```ts
|
|
4774
|
-
* const webhookDeliveryAttempt = await social.community("
|
|
4784
|
+
* const webhookDeliveryAttempt = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.endpoints.test("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { event_type: "post.created" });
|
|
4775
4785
|
* ```
|
|
4776
4786
|
*/
|
|
4777
4787
|
test(endpointId, params, options) {
|
|
@@ -4796,7 +4806,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4796
4806
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-webhooks-endpoints-endpoint-id
|
|
4797
4807
|
* @example
|
|
4798
4808
|
* ```ts
|
|
4799
|
-
* const webhookEndpoint = await social.community("
|
|
4809
|
+
* const webhookEndpoint = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.endpoints.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { description: "Production receiver" });
|
|
4800
4810
|
* ```
|
|
4801
4811
|
*/
|
|
4802
4812
|
update(endpointId, params, options) {
|
|
@@ -4818,7 +4828,7 @@ var CommunityWebhooksEventTypesResource = class extends APIResource {
|
|
|
4818
4828
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-webhooks-event-types
|
|
4819
4829
|
* @example
|
|
4820
4830
|
* ```ts
|
|
4821
|
-
* const listWebhookEventTypes = await social.community("
|
|
4831
|
+
* const listWebhookEventTypes = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.eventTypes.list();
|
|
4822
4832
|
* ```
|
|
4823
4833
|
*/
|
|
4824
4834
|
list(options) {
|
|
@@ -4842,10 +4852,10 @@ var CommunityWebhooksEventsResource = class extends APIResource {
|
|
|
4842
4852
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-webhooks-events
|
|
4843
4853
|
* @example
|
|
4844
4854
|
* ```ts
|
|
4845
|
-
* for await (const event of social.community("
|
|
4855
|
+
* for await (const event of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.events.list()) {
|
|
4846
4856
|
* console.log(event);
|
|
4847
4857
|
* }
|
|
4848
|
-
* const page = await social.community("
|
|
4858
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.events.list({}, { timeout: 5_000 });
|
|
4849
4859
|
* ```
|
|
4850
4860
|
*/
|
|
4851
4861
|
list(params, options) {
|
|
@@ -4869,7 +4879,7 @@ var CommunityWebhooksEventsResource = class extends APIResource {
|
|
|
4869
4879
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-webhooks-events-event-id-replay
|
|
4870
4880
|
* @example
|
|
4871
4881
|
* ```ts
|
|
4872
|
-
* const replayWebhookEvent = await social.community("
|
|
4882
|
+
* const replayWebhookEvent = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.events.replay("evt_3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4873
4883
|
* ```
|
|
4874
4884
|
*/
|
|
4875
4885
|
replay(eventId, params, options) {
|
|
@@ -4891,7 +4901,7 @@ var CommunityWebhooksEventsResource = class extends APIResource {
|
|
|
4891
4901
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-webhooks-events-event-id
|
|
4892
4902
|
* @example
|
|
4893
4903
|
* ```ts
|
|
4894
|
-
* const webhookEventDetail = await social.community("
|
|
4904
|
+
* const webhookEventDetail = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.events.retrieve("evt_3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4895
4905
|
* ```
|
|
4896
4906
|
*/
|
|
4897
4907
|
retrieve(eventId, options) {
|
|
@@ -5049,7 +5059,7 @@ var WebhookEventStatus = { values: ["pending", "delivered", "failed", "not_sent"
|
|
|
5049
5059
|
var WebhookEventType = { values: ["post.created", "post.updated", "post.deleted", "post.reaction.created", "repost.created", "comment.created", "comment.updated", "comment.deleted", "comment.reaction.created", "edge.follow.created", "edge.follow.deleted", "edge.follow.requested", "edge.follow.request_approved", "flag.created", "flag.updated", "moderation.action.applied", "actor.updated", "dm.message.created", "tag.created", "asset.ready", "asset.failed"] };
|
|
5050
5060
|
|
|
5051
5061
|
// src/_generated/client.ts
|
|
5052
|
-
var VERSION = "1.
|
|
5062
|
+
var VERSION = "1.2.0" ;
|
|
5053
5063
|
exports.default = class Social extends SocialResources {
|
|
5054
5064
|
#openapi;
|
|
5055
5065
|
constructor(options = {}) {
|