@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.js
CHANGED
|
@@ -39,10 +39,10 @@ var CommunitiesActorsCommentsResource = class extends APIResource {
|
|
|
39
39
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-actors-actor-id-comments
|
|
40
40
|
* @example
|
|
41
41
|
* ```ts
|
|
42
|
-
* for await (const comment of social.communities.actors.comments.list("
|
|
42
|
+
* for await (const comment of social.communities.actors.comments.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
43
43
|
* console.log(comment);
|
|
44
44
|
* }
|
|
45
|
-
* const page = await social.communities.actors.comments.list("
|
|
45
|
+
* const page = await social.communities.actors.comments.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
48
|
list(communityId, actorId, params, options) {
|
|
@@ -64,10 +64,10 @@ var CommunitiesActorsReactionsResource = class extends APIResource {
|
|
|
64
64
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-actors-actor-id-reactions
|
|
65
65
|
* @example
|
|
66
66
|
* ```ts
|
|
67
|
-
* for await (const reaction of social.communities.actors.reactions.list("
|
|
67
|
+
* for await (const reaction of social.communities.actors.reactions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
68
68
|
* console.log(reaction);
|
|
69
69
|
* }
|
|
70
|
-
* const page = await social.communities.actors.reactions.list("
|
|
70
|
+
* const page = await social.communities.actors.reactions.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
71
71
|
* ```
|
|
72
72
|
*/
|
|
73
73
|
list(communityId, actorId, params, options) {
|
|
@@ -100,7 +100,7 @@ var CommunitiesModerationActionsResource = class extends APIResource {
|
|
|
100
100
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-moderation-actions
|
|
101
101
|
* @example
|
|
102
102
|
* ```ts
|
|
103
|
-
* const moderationAction = await social.communities.moderation.actions.create("
|
|
103
|
+
* const moderationAction = await social.communities.moderation.actions.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {
|
|
104
104
|
* action: "remove",
|
|
105
105
|
* target_id: "bbbbbbbb-0000-0000-0000-000000000001",
|
|
106
106
|
* target_kind: "direct_message",
|
|
@@ -128,7 +128,7 @@ var CommunitiesModerationActorsResource = class extends APIResource {
|
|
|
128
128
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-moderation-actors-actor-id-shadow-ban
|
|
129
129
|
* @example
|
|
130
130
|
* ```ts
|
|
131
|
-
* const moderationActor = await social.communities.moderation.actors.shadowBan("
|
|
131
|
+
* const moderationActor = await social.communities.moderation.actors.shadowBan("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { duration_hours: 168 });
|
|
132
132
|
* ```
|
|
133
133
|
*/
|
|
134
134
|
shadowBan(communityId, actorId, params, options) {
|
|
@@ -147,7 +147,7 @@ var CommunitiesModerationActorsResource = class extends APIResource {
|
|
|
147
147
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-workspaces-workspace-id-communities-community-id-moderation-actors-actor-id-shadow-ban
|
|
148
148
|
* @example
|
|
149
149
|
* ```ts
|
|
150
|
-
* const moderationActor = await social.communities.moderation.actors.unshadowBan("
|
|
150
|
+
* const moderationActor = await social.communities.moderation.actors.unshadowBan("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
151
151
|
* ```
|
|
152
152
|
*/
|
|
153
153
|
unshadowBan(communityId, actorId, options) {
|
|
@@ -169,10 +169,10 @@ var CommunitiesModerationAuditResource = class extends APIResource {
|
|
|
169
169
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-moderation-audit
|
|
170
170
|
* @example
|
|
171
171
|
* ```ts
|
|
172
|
-
* for await (const audit of social.communities.moderation.audit.list("
|
|
172
|
+
* for await (const audit of social.communities.moderation.audit.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
173
173
|
* console.log(audit);
|
|
174
174
|
* }
|
|
175
|
-
* const page = await social.communities.moderation.audit.list("
|
|
175
|
+
* const page = await social.communities.moderation.audit.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
176
176
|
* ```
|
|
177
177
|
*/
|
|
178
178
|
list(communityId, params, options) {
|
|
@@ -194,7 +194,7 @@ var CommunitiesModerationBlockedTermsResource = class extends APIResource {
|
|
|
194
194
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-moderation-blocked-terms
|
|
195
195
|
* @example
|
|
196
196
|
* ```ts
|
|
197
|
-
* const blockedTerm = await social.communities.moderation.blockedTerms.create("
|
|
197
|
+
* const blockedTerm = await social.communities.moderation.blockedTerms.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { term: "spoiler" });
|
|
198
198
|
* ```
|
|
199
199
|
*/
|
|
200
200
|
create(communityId, params, options) {
|
|
@@ -212,7 +212,7 @@ var CommunitiesModerationBlockedTermsResource = class extends APIResource {
|
|
|
212
212
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-workspaces-workspace-id-communities-community-id-moderation-blocked-terms-term
|
|
213
213
|
* @example
|
|
214
214
|
* ```ts
|
|
215
|
-
* await social.communities.moderation.blockedTerms.delete("
|
|
215
|
+
* await social.communities.moderation.blockedTerms.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "spoiler");
|
|
216
216
|
* ```
|
|
217
217
|
*/
|
|
218
218
|
delete(communityId, term, options) {
|
|
@@ -231,10 +231,10 @@ var CommunitiesModerationBlockedTermsResource = class extends APIResource {
|
|
|
231
231
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-moderation-blocked-terms
|
|
232
232
|
* @example
|
|
233
233
|
* ```ts
|
|
234
|
-
* for await (const blockedTerm of social.communities.moderation.blockedTerms.list("
|
|
234
|
+
* for await (const blockedTerm of social.communities.moderation.blockedTerms.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
235
235
|
* console.log(blockedTerm);
|
|
236
236
|
* }
|
|
237
|
-
* const page = await social.communities.moderation.blockedTerms.list("
|
|
237
|
+
* const page = await social.communities.moderation.blockedTerms.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
238
238
|
* ```
|
|
239
239
|
*/
|
|
240
240
|
list(communityId, params, options) {
|
|
@@ -256,10 +256,10 @@ var CommunitiesModerationConversationsMessagesResource = class extends APIResour
|
|
|
256
256
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-moderation-conversations-conversation-id-messages
|
|
257
257
|
* @example
|
|
258
258
|
* ```ts
|
|
259
|
-
* for await (const message of social.communities.moderation.conversations.messages.list("
|
|
259
|
+
* for await (const message of social.communities.moderation.conversations.messages.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
260
260
|
* console.log(message);
|
|
261
261
|
* }
|
|
262
|
-
* const page = await social.communities.moderation.conversations.messages.list("
|
|
262
|
+
* const page = await social.communities.moderation.conversations.messages.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
263
263
|
* ```
|
|
264
264
|
*/
|
|
265
265
|
list(communityId, conversationId, params, options) {
|
|
@@ -284,10 +284,10 @@ var CommunitiesModerationConversationsResource = class extends APIResource {
|
|
|
284
284
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-moderation-conversations
|
|
285
285
|
* @example
|
|
286
286
|
* ```ts
|
|
287
|
-
* for await (const conversation of social.communities.moderation.conversations.list("
|
|
287
|
+
* for await (const conversation of social.communities.moderation.conversations.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
288
288
|
* console.log(conversation);
|
|
289
289
|
* }
|
|
290
|
-
* const page = await social.communities.moderation.conversations.list("
|
|
290
|
+
* const page = await social.communities.moderation.conversations.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
291
291
|
* ```
|
|
292
292
|
*/
|
|
293
293
|
list(communityId, params, options) {
|
|
@@ -309,10 +309,10 @@ var CommunitiesModerationFlagsResource = class extends APIResource {
|
|
|
309
309
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-moderation-flags
|
|
310
310
|
* @example
|
|
311
311
|
* ```ts
|
|
312
|
-
* for await (const flag of social.communities.moderation.flags.list("
|
|
312
|
+
* for await (const flag of social.communities.moderation.flags.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
313
313
|
* console.log(flag);
|
|
314
314
|
* }
|
|
315
|
-
* const page = await social.communities.moderation.flags.list("
|
|
315
|
+
* const page = await social.communities.moderation.flags.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
316
316
|
* ```
|
|
317
317
|
*/
|
|
318
318
|
list(communityId, params, options) {
|
|
@@ -334,7 +334,7 @@ var CommunitiesModerationFlagsResource = class extends APIResource {
|
|
|
334
334
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-moderation-flags-flag-id-actions
|
|
335
335
|
* @example
|
|
336
336
|
* ```ts
|
|
337
|
-
* const actOnFlag = await social.communities.moderation.flags.resolve("
|
|
337
|
+
* const actOnFlag = await social.communities.moderation.flags.resolve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { action: "hide" });
|
|
338
338
|
* ```
|
|
339
339
|
*/
|
|
340
340
|
resolve(communityId, flagId, params, options) {
|
|
@@ -356,10 +356,10 @@ var CommunitiesModerationShadowBannedResource = class extends APIResource {
|
|
|
356
356
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-moderation-shadow-banned
|
|
357
357
|
* @example
|
|
358
358
|
* ```ts
|
|
359
|
-
* for await (const shadowBanned of social.communities.moderation.shadowBanned.list("
|
|
359
|
+
* for await (const shadowBanned of social.communities.moderation.shadowBanned.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
360
360
|
* console.log(shadowBanned);
|
|
361
361
|
* }
|
|
362
|
-
* const page = await social.communities.moderation.shadowBanned.list("
|
|
362
|
+
* const page = await social.communities.moderation.shadowBanned.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
363
363
|
* ```
|
|
364
364
|
*/
|
|
365
365
|
list(communityId, params, options) {
|
|
@@ -416,7 +416,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
416
416
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints
|
|
417
417
|
* @example
|
|
418
418
|
* ```ts
|
|
419
|
-
* const webhookEndpointWithSecret = await social.communities.webhooks.endpoints.create("
|
|
419
|
+
* const webhookEndpointWithSecret = await social.communities.webhooks.endpoints.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { url: "https://api.acme.com/webhooks" });
|
|
420
420
|
* ```
|
|
421
421
|
*/
|
|
422
422
|
create(communityId, params, options) {
|
|
@@ -439,7 +439,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
439
439
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints-endpoint-id
|
|
440
440
|
* @example
|
|
441
441
|
* ```ts
|
|
442
|
-
* await social.communities.webhooks.endpoints.delete("
|
|
442
|
+
* await social.communities.webhooks.endpoints.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
443
443
|
* ```
|
|
444
444
|
*/
|
|
445
445
|
delete(communityId, endpointId, options) {
|
|
@@ -461,7 +461,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
461
461
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints
|
|
462
462
|
* @example
|
|
463
463
|
* ```ts
|
|
464
|
-
* for await (const endpoint of social.communities.webhooks.endpoints.list("
|
|
464
|
+
* for await (const endpoint of social.communities.webhooks.endpoints.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
465
465
|
* console.log(endpoint);
|
|
466
466
|
* }
|
|
467
467
|
* ```
|
|
@@ -486,7 +486,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
486
486
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints-endpoint-id
|
|
487
487
|
* @example
|
|
488
488
|
* ```ts
|
|
489
|
-
* const webhookEndpoint = await social.communities.webhooks.endpoints.retrieve("
|
|
489
|
+
* const webhookEndpoint = await social.communities.webhooks.endpoints.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
490
490
|
* ```
|
|
491
491
|
*/
|
|
492
492
|
retrieve(communityId, endpointId, options) {
|
|
@@ -511,7 +511,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
511
511
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints-endpoint-id-rotate-secret
|
|
512
512
|
* @example
|
|
513
513
|
* ```ts
|
|
514
|
-
* const webhookEndpointWithSecret = await social.communities.webhooks.endpoints.rotateSecret("
|
|
514
|
+
* const webhookEndpointWithSecret = await social.communities.webhooks.endpoints.rotateSecret("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { grace_hours: 24 });
|
|
515
515
|
* ```
|
|
516
516
|
*/
|
|
517
517
|
rotateSecret(communityId, endpointId, params, options) {
|
|
@@ -536,7 +536,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
536
536
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints-endpoint-id-test
|
|
537
537
|
* @example
|
|
538
538
|
* ```ts
|
|
539
|
-
* const webhookDeliveryAttempt = await social.communities.webhooks.endpoints.test("
|
|
539
|
+
* const webhookDeliveryAttempt = await social.communities.webhooks.endpoints.test("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { event_type: "post.created" });
|
|
540
540
|
* ```
|
|
541
541
|
*/
|
|
542
542
|
test(communityId, endpointId, params, options) {
|
|
@@ -562,7 +562,7 @@ var CommunitiesWebhooksEndpointsResource = class extends APIResource {
|
|
|
562
562
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-workspaces-workspace-id-communities-community-id-webhooks-endpoints-endpoint-id
|
|
563
563
|
* @example
|
|
564
564
|
* ```ts
|
|
565
|
-
* const webhookEndpoint = await social.communities.webhooks.endpoints.update("
|
|
565
|
+
* const webhookEndpoint = await social.communities.webhooks.endpoints.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { description: "Production receiver" });
|
|
566
566
|
* ```
|
|
567
567
|
*/
|
|
568
568
|
update(communityId, endpointId, params, options) {
|
|
@@ -585,7 +585,7 @@ var CommunitiesWebhooksEventTypesResource = class extends APIResource {
|
|
|
585
585
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-webhooks-event-types
|
|
586
586
|
* @example
|
|
587
587
|
* ```ts
|
|
588
|
-
* const listWebhookEventTypes = await social.communities.webhooks.eventTypes.list("
|
|
588
|
+
* const listWebhookEventTypes = await social.communities.webhooks.eventTypes.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
589
589
|
* ```
|
|
590
590
|
*/
|
|
591
591
|
list(communityId, options) {
|
|
@@ -610,10 +610,10 @@ var CommunitiesWebhooksEventsResource = class extends APIResource {
|
|
|
610
610
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-webhooks-events
|
|
611
611
|
* @example
|
|
612
612
|
* ```ts
|
|
613
|
-
* for await (const event of social.communities.webhooks.events.list("
|
|
613
|
+
* for await (const event of social.communities.webhooks.events.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f")) {
|
|
614
614
|
* console.log(event);
|
|
615
615
|
* }
|
|
616
|
-
* const page = await social.communities.webhooks.events.list("
|
|
616
|
+
* const page = await social.communities.webhooks.events.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {}, { timeout: 5_000 });
|
|
617
617
|
* ```
|
|
618
618
|
*/
|
|
619
619
|
list(communityId, params, options) {
|
|
@@ -638,7 +638,7 @@ var CommunitiesWebhooksEventsResource = class extends APIResource {
|
|
|
638
638
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-communities-community-id-webhooks-events-event-id-replay
|
|
639
639
|
* @example
|
|
640
640
|
* ```ts
|
|
641
|
-
* const replayWebhookEvent = await social.communities.webhooks.events.replay("
|
|
641
|
+
* const replayWebhookEvent = await social.communities.webhooks.events.replay("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "evt_3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
642
642
|
* ```
|
|
643
643
|
*/
|
|
644
644
|
replay(communityId, eventId, params, options) {
|
|
@@ -661,7 +661,7 @@ var CommunitiesWebhooksEventsResource = class extends APIResource {
|
|
|
661
661
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-webhooks-events-event-id
|
|
662
662
|
* @example
|
|
663
663
|
* ```ts
|
|
664
|
-
* const webhookEventDetail = await social.communities.webhooks.events.retrieve("
|
|
664
|
+
* const webhookEventDetail = await social.communities.webhooks.events.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "evt_3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
665
665
|
* ```
|
|
666
666
|
*/
|
|
667
667
|
retrieve(communityId, eventId, options) {
|
|
@@ -707,7 +707,7 @@ var CommunitiesResource = class extends APIResource {
|
|
|
707
707
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id-analytics
|
|
708
708
|
* @example
|
|
709
709
|
* ```ts
|
|
710
|
-
* const communityAnalytics = await social.communities.analytics("
|
|
710
|
+
* const communityAnalytics = await social.communities.analytics("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
711
711
|
* ```
|
|
712
712
|
*/
|
|
713
713
|
analytics(communityId, options) {
|
|
@@ -746,7 +746,7 @@ var CommunitiesResource = class extends APIResource {
|
|
|
746
746
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-workspaces-workspace-id-communities-community-id
|
|
747
747
|
* @example
|
|
748
748
|
* ```ts
|
|
749
|
-
* await social.communities.delete("
|
|
749
|
+
* await social.communities.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
750
750
|
* ```
|
|
751
751
|
*/
|
|
752
752
|
delete(communityId, options) {
|
|
@@ -785,7 +785,7 @@ var CommunitiesResource = class extends APIResource {
|
|
|
785
785
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-communities-community-id
|
|
786
786
|
* @example
|
|
787
787
|
* ```ts
|
|
788
|
-
* const community = await social.communities.retrieve("
|
|
788
|
+
* const community = await social.communities.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
789
789
|
* ```
|
|
790
790
|
*/
|
|
791
791
|
retrieve(communityId, options) {
|
|
@@ -805,7 +805,7 @@ var CommunitiesResource = class extends APIResource {
|
|
|
805
805
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-workspaces-workspace-id-communities-community-id
|
|
806
806
|
* @example
|
|
807
807
|
* ```ts
|
|
808
|
-
* const community = await social.communities.update("
|
|
808
|
+
* const community = await social.communities.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { description: "string" });
|
|
809
809
|
* ```
|
|
810
810
|
*/
|
|
811
811
|
update(communityId, params, options) {
|
|
@@ -880,7 +880,7 @@ var WebhooksEndpointsResource = class extends APIResource {
|
|
|
880
880
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id
|
|
881
881
|
* @example
|
|
882
882
|
* ```ts
|
|
883
|
-
* await social.webhooks.endpoints.delete("
|
|
883
|
+
* await social.webhooks.endpoints.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
884
884
|
* ```
|
|
885
885
|
*/
|
|
886
886
|
delete(endpointId, options) {
|
|
@@ -925,7 +925,7 @@ var WebhooksEndpointsResource = class extends APIResource {
|
|
|
925
925
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id
|
|
926
926
|
* @example
|
|
927
927
|
* ```ts
|
|
928
|
-
* const webhookEndpoint = await social.webhooks.endpoints.retrieve("
|
|
928
|
+
* const webhookEndpoint = await social.webhooks.endpoints.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
929
929
|
* ```
|
|
930
930
|
*/
|
|
931
931
|
retrieve(endpointId, options) {
|
|
@@ -949,7 +949,7 @@ var WebhooksEndpointsResource = class extends APIResource {
|
|
|
949
949
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id-rotate-secret
|
|
950
950
|
* @example
|
|
951
951
|
* ```ts
|
|
952
|
-
* const webhookEndpointWithSecret = await social.webhooks.endpoints.rotateSecret("
|
|
952
|
+
* const webhookEndpointWithSecret = await social.webhooks.endpoints.rotateSecret("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { grace_hours: 24 });
|
|
953
953
|
* ```
|
|
954
954
|
*/
|
|
955
955
|
rotateSecret(endpointId, params, options) {
|
|
@@ -973,7 +973,7 @@ var WebhooksEndpointsResource = class extends APIResource {
|
|
|
973
973
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id-test
|
|
974
974
|
* @example
|
|
975
975
|
* ```ts
|
|
976
|
-
* const webhookDeliveryAttempt = await social.webhooks.endpoints.test("
|
|
976
|
+
* const webhookDeliveryAttempt = await social.webhooks.endpoints.test("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { event_type: "post.created" });
|
|
977
977
|
* ```
|
|
978
978
|
*/
|
|
979
979
|
test(endpointId, params, options) {
|
|
@@ -998,7 +998,7 @@ var WebhooksEndpointsResource = class extends APIResource {
|
|
|
998
998
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-workspaces-workspace-id-webhooks-endpoints-endpoint-id
|
|
999
999
|
* @example
|
|
1000
1000
|
* ```ts
|
|
1001
|
-
* const webhookEndpoint = await social.webhooks.endpoints.update("
|
|
1001
|
+
* const webhookEndpoint = await social.webhooks.endpoints.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { description: "Production receiver" });
|
|
1002
1002
|
* ```
|
|
1003
1003
|
*/
|
|
1004
1004
|
update(endpointId, params, options) {
|
|
@@ -1071,7 +1071,7 @@ var WebhooksEventsResource = class extends APIResource {
|
|
|
1071
1071
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-workspaces-workspace-id-webhooks-events-event-id-replay
|
|
1072
1072
|
* @example
|
|
1073
1073
|
* ```ts
|
|
1074
|
-
* const replayWebhookEvent = await social.webhooks.events.replay("
|
|
1074
|
+
* const replayWebhookEvent = await social.webhooks.events.replay("evt_3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
1075
1075
|
* ```
|
|
1076
1076
|
*/
|
|
1077
1077
|
replay(eventId, params, options) {
|
|
@@ -1093,7 +1093,7 @@ var WebhooksEventsResource = class extends APIResource {
|
|
|
1093
1093
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-workspaces-workspace-id-webhooks-events-event-id
|
|
1094
1094
|
* @example
|
|
1095
1095
|
* ```ts
|
|
1096
|
-
* const webhookEventDetail = await social.webhooks.events.retrieve("
|
|
1096
|
+
* const webhookEventDetail = await social.webhooks.events.retrieve("evt_3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
1097
1097
|
* ```
|
|
1098
1098
|
*/
|
|
1099
1099
|
retrieve(eventId, options) {
|
|
@@ -1123,6 +1123,16 @@ var WebhooksResource = class extends APIResource {
|
|
|
1123
1123
|
unwrap(params) {
|
|
1124
1124
|
return this._client.unwrapWebhook(params, "PRODUCTCRAFT_SOCIAL_WEBHOOK_SECRET");
|
|
1125
1125
|
}
|
|
1126
|
+
/**
|
|
1127
|
+
* Sign a test event the way ProductCraft signs deliveries (Standard Webhooks), so a handler
|
|
1128
|
+
* test can call `unwrap` without a live delivery. Returns the exact body and the headers.
|
|
1129
|
+
*
|
|
1130
|
+
* @param params - The event (an object is JSON-encoded), and optionally the secret, `id` and `timestamp`.
|
|
1131
|
+
* @throws {ConfigurationError} No secret was passed or configured.
|
|
1132
|
+
*/
|
|
1133
|
+
sign(params) {
|
|
1134
|
+
return this._client.signWebhook(params, "PRODUCTCRAFT_SOCIAL_WEBHOOK_SECRET");
|
|
1135
|
+
}
|
|
1126
1136
|
};
|
|
1127
1137
|
var SocialResources = class extends APIResource {
|
|
1128
1138
|
#communities;
|
|
@@ -1154,10 +1164,10 @@ var CommunityActorsArchivedResource = class extends APIResource {
|
|
|
1154
1164
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-archived
|
|
1155
1165
|
* @example
|
|
1156
1166
|
* ```ts
|
|
1157
|
-
* for await (const archived of social.community("
|
|
1167
|
+
* 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")) {
|
|
1158
1168
|
* console.log(archived);
|
|
1159
1169
|
* }
|
|
1160
|
-
* const page = await social.community("
|
|
1170
|
+
* 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 });
|
|
1161
1171
|
* ```
|
|
1162
1172
|
*/
|
|
1163
1173
|
list(actorId, params, options) {
|
|
@@ -1177,10 +1187,10 @@ var CommunityActorsAssetsResource = class extends APIResource {
|
|
|
1177
1187
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-assets
|
|
1178
1188
|
* @example
|
|
1179
1189
|
* ```ts
|
|
1180
|
-
* for await (const asset of social.community("
|
|
1190
|
+
* 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")) {
|
|
1181
1191
|
* console.log(asset);
|
|
1182
1192
|
* }
|
|
1183
|
-
* const page = await social.community("
|
|
1193
|
+
* 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 });
|
|
1184
1194
|
* ```
|
|
1185
1195
|
*/
|
|
1186
1196
|
list(actorId, params, options) {
|
|
@@ -1202,10 +1212,10 @@ var CommunityActorsBlocksResource = class extends APIResource {
|
|
|
1202
1212
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-blocks
|
|
1203
1213
|
* @example
|
|
1204
1214
|
* ```ts
|
|
1205
|
-
* for await (const block of social.community("
|
|
1215
|
+
* 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")) {
|
|
1206
1216
|
* console.log(block);
|
|
1207
1217
|
* }
|
|
1208
|
-
* const page = await social.community("
|
|
1218
|
+
* 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 });
|
|
1209
1219
|
* ```
|
|
1210
1220
|
*/
|
|
1211
1221
|
list(actorId, params, options) {
|
|
@@ -1228,10 +1238,10 @@ var CommunityActorsBookmarksResource = class extends APIResource {
|
|
|
1228
1238
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-bookmarks
|
|
1229
1239
|
* @example
|
|
1230
1240
|
* ```ts
|
|
1231
|
-
* for await (const bookmark of social.community("
|
|
1241
|
+
* 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")) {
|
|
1232
1242
|
* console.log(bookmark);
|
|
1233
1243
|
* }
|
|
1234
|
-
* const page = await social.community("
|
|
1244
|
+
* 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 });
|
|
1235
1245
|
* ```
|
|
1236
1246
|
*/
|
|
1237
1247
|
list(actorId, params, options) {
|
|
@@ -1252,7 +1262,7 @@ var CommunityActorsByExternalResource = class extends APIResource {
|
|
|
1252
1262
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors-by-external-batch
|
|
1253
1263
|
* @example
|
|
1254
1264
|
* ```ts
|
|
1255
|
-
* const actorsByExternalBatch = await social.community("
|
|
1265
|
+
* 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"] });
|
|
1256
1266
|
* ```
|
|
1257
1267
|
*/
|
|
1258
1268
|
batch(params, options) {
|
|
@@ -1270,7 +1280,7 @@ var CommunityActorsByExternalResource = class extends APIResource {
|
|
|
1270
1280
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-by-external-external-id
|
|
1271
1281
|
* @example
|
|
1272
1282
|
* ```ts
|
|
1273
|
-
* const actor = await social.community("
|
|
1283
|
+
* const actor = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.byExternal.retrieve("user_42");
|
|
1274
1284
|
* ```
|
|
1275
1285
|
*/
|
|
1276
1286
|
retrieve(externalId, options) {
|
|
@@ -1294,10 +1304,10 @@ var CommunityActorsCloseFriendsResource = class extends APIResource {
|
|
|
1294
1304
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-close-friends
|
|
1295
1305
|
* @example
|
|
1296
1306
|
* ```ts
|
|
1297
|
-
* for await (const closeFriend of social.community("
|
|
1307
|
+
* 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")) {
|
|
1298
1308
|
* console.log(closeFriend);
|
|
1299
1309
|
* }
|
|
1300
|
-
* const page = await social.community("
|
|
1310
|
+
* 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 });
|
|
1301
1311
|
* ```
|
|
1302
1312
|
*/
|
|
1303
1313
|
list(actorId, params, options) {
|
|
@@ -1316,10 +1326,10 @@ var CommunityActorsDismissedSuggestionsResource = class extends APIResource {
|
|
|
1316
1326
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-dismissed-suggestions
|
|
1317
1327
|
* @example
|
|
1318
1328
|
* ```ts
|
|
1319
|
-
* for await (const dismissedSuggestion of social.community("
|
|
1329
|
+
* 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")) {
|
|
1320
1330
|
* console.log(dismissedSuggestion);
|
|
1321
1331
|
* }
|
|
1322
|
-
* const page = await social.community("
|
|
1332
|
+
* 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 });
|
|
1323
1333
|
* ```
|
|
1324
1334
|
*/
|
|
1325
1335
|
list(actorId, params, options) {
|
|
@@ -1342,10 +1352,10 @@ var CommunityActorsDraftsResource = class extends APIResource {
|
|
|
1342
1352
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-drafts
|
|
1343
1353
|
* @example
|
|
1344
1354
|
* ```ts
|
|
1345
|
-
* for await (const draft of social.community("
|
|
1355
|
+
* 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")) {
|
|
1346
1356
|
* console.log(draft);
|
|
1347
1357
|
* }
|
|
1348
|
-
* const page = await social.community("
|
|
1358
|
+
* 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 });
|
|
1349
1359
|
* ```
|
|
1350
1360
|
*/
|
|
1351
1361
|
list(actorId, params, options) {
|
|
@@ -1367,10 +1377,10 @@ var CommunityActorsFeedResource = class extends APIResource {
|
|
|
1367
1377
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-feed
|
|
1368
1378
|
* @example
|
|
1369
1379
|
* ```ts
|
|
1370
|
-
* for await (const feed of social.community("
|
|
1380
|
+
* 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")) {
|
|
1371
1381
|
* console.log(feed);
|
|
1372
1382
|
* }
|
|
1373
|
-
* const page = await social.community("
|
|
1383
|
+
* 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 });
|
|
1374
1384
|
* ```
|
|
1375
1385
|
*/
|
|
1376
1386
|
list(actorId, params, options) {
|
|
@@ -1390,10 +1400,10 @@ var CommunityActorsFollowRequestsResource = class extends APIResource {
|
|
|
1390
1400
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-follow-requests
|
|
1391
1401
|
* @example
|
|
1392
1402
|
* ```ts
|
|
1393
|
-
* for await (const followRequest of social.community("
|
|
1403
|
+
* 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")) {
|
|
1394
1404
|
* console.log(followRequest);
|
|
1395
1405
|
* }
|
|
1396
|
-
* const page = await social.community("
|
|
1406
|
+
* 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 });
|
|
1397
1407
|
* ```
|
|
1398
1408
|
*/
|
|
1399
1409
|
list(actorId, params, options) {
|
|
@@ -1415,10 +1425,10 @@ var CommunityActorsFollowersResource = class extends APIResource {
|
|
|
1415
1425
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-followers
|
|
1416
1426
|
* @example
|
|
1417
1427
|
* ```ts
|
|
1418
|
-
* for await (const follower of social.community("
|
|
1428
|
+
* 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")) {
|
|
1419
1429
|
* console.log(follower);
|
|
1420
1430
|
* }
|
|
1421
|
-
* const page = await social.community("
|
|
1431
|
+
* 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 });
|
|
1422
1432
|
* ```
|
|
1423
1433
|
*/
|
|
1424
1434
|
list(actorId, params, options) {
|
|
@@ -1440,10 +1450,10 @@ var CommunityActorsFollowingResource = class extends APIResource {
|
|
|
1440
1450
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-following
|
|
1441
1451
|
* @example
|
|
1442
1452
|
* ```ts
|
|
1443
|
-
* for await (const following of social.community("
|
|
1453
|
+
* 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")) {
|
|
1444
1454
|
* console.log(following);
|
|
1445
1455
|
* }
|
|
1446
|
-
* const page = await social.community("
|
|
1456
|
+
* 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 });
|
|
1447
1457
|
* ```
|
|
1448
1458
|
*/
|
|
1449
1459
|
list(actorId, params, options) {
|
|
@@ -1466,7 +1476,7 @@ var CommunityActorsHashtagFollowsResource = class extends APIResource {
|
|
|
1466
1476
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors-actor-id-hashtag-follows
|
|
1467
1477
|
* @example
|
|
1468
1478
|
* ```ts
|
|
1469
|
-
* const hashtagFollow = await social.community("
|
|
1479
|
+
* 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" });
|
|
1470
1480
|
* ```
|
|
1471
1481
|
*/
|
|
1472
1482
|
create(actorId, params, options) {
|
|
@@ -1486,7 +1496,7 @@ var CommunityActorsHashtagFollowsResource = class extends APIResource {
|
|
|
1486
1496
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-actors-actor-id-hashtag-follows-tag
|
|
1487
1497
|
* @example
|
|
1488
1498
|
* ```ts
|
|
1489
|
-
* await social.community("
|
|
1499
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.hashtagFollows.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "launch");
|
|
1490
1500
|
* ```
|
|
1491
1501
|
*/
|
|
1492
1502
|
delete(actorId, tag, options) {
|
|
@@ -1505,10 +1515,10 @@ var CommunityActorsHashtagFollowsResource = class extends APIResource {
|
|
|
1505
1515
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-hashtag-follows
|
|
1506
1516
|
* @example
|
|
1507
1517
|
* ```ts
|
|
1508
|
-
* for await (const hashtagFollow of social.community("
|
|
1518
|
+
* 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")) {
|
|
1509
1519
|
* console.log(hashtagFollow);
|
|
1510
1520
|
* }
|
|
1511
|
-
* const page = await social.community("
|
|
1521
|
+
* 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 });
|
|
1512
1522
|
* ```
|
|
1513
1523
|
*/
|
|
1514
1524
|
list(actorId, params, options) {
|
|
@@ -1527,10 +1537,10 @@ var CommunityActorsHidesResource = class extends APIResource {
|
|
|
1527
1537
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-hides
|
|
1528
1538
|
* @example
|
|
1529
1539
|
* ```ts
|
|
1530
|
-
* for await (const hide of social.community("
|
|
1540
|
+
* 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")) {
|
|
1531
1541
|
* console.log(hide);
|
|
1532
1542
|
* }
|
|
1533
|
-
* const page = await social.community("
|
|
1543
|
+
* 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 });
|
|
1534
1544
|
* ```
|
|
1535
1545
|
*/
|
|
1536
1546
|
list(actorId, params, options) {
|
|
@@ -1553,10 +1563,10 @@ var CommunityActorsHighlightsResource = class extends APIResource {
|
|
|
1553
1563
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-owner-actor-id-highlights
|
|
1554
1564
|
* @example
|
|
1555
1565
|
* ```ts
|
|
1556
|
-
* for await (const highlight of social.community("
|
|
1566
|
+
* 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")) {
|
|
1557
1567
|
* console.log(highlight);
|
|
1558
1568
|
* }
|
|
1559
|
-
* const page = await social.community("
|
|
1569
|
+
* 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 });
|
|
1560
1570
|
* ```
|
|
1561
1571
|
*/
|
|
1562
1572
|
list(ownerActorId, params, options) {
|
|
@@ -1579,10 +1589,10 @@ var CommunityActorsMentionsResource = class extends APIResource {
|
|
|
1579
1589
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-mentions
|
|
1580
1590
|
* @example
|
|
1581
1591
|
* ```ts
|
|
1582
|
-
* for await (const mention of social.community("
|
|
1592
|
+
* 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")) {
|
|
1583
1593
|
* console.log(mention);
|
|
1584
1594
|
* }
|
|
1585
|
-
* const page = await social.community("
|
|
1595
|
+
* 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 });
|
|
1586
1596
|
* ```
|
|
1587
1597
|
*/
|
|
1588
1598
|
list(actorId, params, options) {
|
|
@@ -1605,7 +1615,7 @@ var CommunityActorsMutedTermsResource = class extends APIResource {
|
|
|
1605
1615
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors-actor-id-muted-terms
|
|
1606
1616
|
* @example
|
|
1607
1617
|
* ```ts
|
|
1608
|
-
* const mutedTerm = await social.community("
|
|
1618
|
+
* 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" });
|
|
1609
1619
|
* ```
|
|
1610
1620
|
*/
|
|
1611
1621
|
create(actorId, params, options) {
|
|
@@ -1624,7 +1634,7 @@ var CommunityActorsMutedTermsResource = class extends APIResource {
|
|
|
1624
1634
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-actors-actor-id-muted-terms-term
|
|
1625
1635
|
* @example
|
|
1626
1636
|
* ```ts
|
|
1627
|
-
* await social.community("
|
|
1637
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.mutedTerms.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "spoiler");
|
|
1628
1638
|
* ```
|
|
1629
1639
|
*/
|
|
1630
1640
|
delete(actorId, term, options) {
|
|
@@ -1643,10 +1653,10 @@ var CommunityActorsMutedTermsResource = class extends APIResource {
|
|
|
1643
1653
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-muted-terms
|
|
1644
1654
|
* @example
|
|
1645
1655
|
* ```ts
|
|
1646
|
-
* for await (const mutedTerm of social.community("
|
|
1656
|
+
* 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")) {
|
|
1647
1657
|
* console.log(mutedTerm);
|
|
1648
1658
|
* }
|
|
1649
|
-
* const page = await social.community("
|
|
1659
|
+
* 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 });
|
|
1650
1660
|
* ```
|
|
1651
1661
|
*/
|
|
1652
1662
|
list(actorId, params, options) {
|
|
@@ -1668,10 +1678,10 @@ var CommunityActorsMutesResource = class extends APIResource {
|
|
|
1668
1678
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-mutes
|
|
1669
1679
|
* @example
|
|
1670
1680
|
* ```ts
|
|
1671
|
-
* for await (const mute of social.community("
|
|
1681
|
+
* 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")) {
|
|
1672
1682
|
* console.log(mute);
|
|
1673
1683
|
* }
|
|
1674
|
-
* const page = await social.community("
|
|
1684
|
+
* 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 });
|
|
1675
1685
|
* ```
|
|
1676
1686
|
*/
|
|
1677
1687
|
list(actorId, params, options) {
|
|
@@ -1693,7 +1703,7 @@ var CommunityActorsNotificationPrefsResource = class extends APIResource {
|
|
|
1693
1703
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-notification-prefs
|
|
1694
1704
|
* @example
|
|
1695
1705
|
* ```ts
|
|
1696
|
-
* const notificationPrefList = await social.community("
|
|
1706
|
+
* const notificationPrefList = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.notificationPrefs.list("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
1697
1707
|
* ```
|
|
1698
1708
|
*/
|
|
1699
1709
|
list(actorId, options) {
|
|
@@ -1716,7 +1726,7 @@ var CommunityActorsNotificationPrefsResource = class extends APIResource {
|
|
|
1716
1726
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-actors-actor-id-notification-prefs-kind
|
|
1717
1727
|
* @example
|
|
1718
1728
|
* ```ts
|
|
1719
|
-
* const notificationPref = await social.community("
|
|
1729
|
+
* 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 });
|
|
1720
1730
|
* ```
|
|
1721
1731
|
*/
|
|
1722
1732
|
update(actorId, kind, params, options) {
|
|
@@ -1739,10 +1749,10 @@ var CommunityActorsNotificationsResource = class extends APIResource {
|
|
|
1739
1749
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-notifications
|
|
1740
1750
|
* @example
|
|
1741
1751
|
* ```ts
|
|
1742
|
-
* for await (const notification of social.community("
|
|
1752
|
+
* 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")) {
|
|
1743
1753
|
* console.log(notification);
|
|
1744
1754
|
* }
|
|
1745
|
-
* const page = await social.community("
|
|
1755
|
+
* 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 });
|
|
1746
1756
|
* ```
|
|
1747
1757
|
*/
|
|
1748
1758
|
list(actorId, params, options) {
|
|
@@ -1764,7 +1774,7 @@ var CommunityActorsNotificationsResource = class extends APIResource {
|
|
|
1764
1774
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors-actor-id-notifications-read-all
|
|
1765
1775
|
* @example
|
|
1766
1776
|
* ```ts
|
|
1767
|
-
* const result = await social.community("
|
|
1777
|
+
* 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" });
|
|
1768
1778
|
* ```
|
|
1769
1779
|
*/
|
|
1770
1780
|
markAllRead(actorId, params, options) {
|
|
@@ -1784,7 +1794,7 @@ var CommunityActorsNotificationsResource = class extends APIResource {
|
|
|
1784
1794
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-notifications-unread-count
|
|
1785
1795
|
* @example
|
|
1786
1796
|
* ```ts
|
|
1787
|
-
* const result = await social.community("
|
|
1797
|
+
* const result = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.notifications.unreadCount("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
1788
1798
|
* ```
|
|
1789
1799
|
*/
|
|
1790
1800
|
unreadCount(actorId, options) {
|
|
@@ -1807,7 +1817,7 @@ var CommunityActorsNotificationsResource = class extends APIResource {
|
|
|
1807
1817
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-actors-actor-id-notifications-notification-id
|
|
1808
1818
|
* @example
|
|
1809
1819
|
* ```ts
|
|
1810
|
-
* await social.community("
|
|
1820
|
+
* 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 });
|
|
1811
1821
|
* ```
|
|
1812
1822
|
*/
|
|
1813
1823
|
update(actorId, notificationId, params, options) {
|
|
@@ -1831,7 +1841,7 @@ var CommunityActorsRelationshipsResource = class extends APIResource {
|
|
|
1831
1841
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-src-actor-id-relationships
|
|
1832
1842
|
* @example
|
|
1833
1843
|
* ```ts
|
|
1834
|
-
* const relationshipList = await social.community("
|
|
1844
|
+
* 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" });
|
|
1835
1845
|
* ```
|
|
1836
1846
|
*/
|
|
1837
1847
|
list(srcActorId, params, options) {
|
|
@@ -1853,10 +1863,10 @@ var CommunityActorsRestrictsResource = class extends APIResource {
|
|
|
1853
1863
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-restricts
|
|
1854
1864
|
* @example
|
|
1855
1865
|
* ```ts
|
|
1856
|
-
* for await (const restrict of social.community("
|
|
1866
|
+
* 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")) {
|
|
1857
1867
|
* console.log(restrict);
|
|
1858
1868
|
* }
|
|
1859
|
-
* const page = await social.community("
|
|
1869
|
+
* 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 });
|
|
1860
1870
|
* ```
|
|
1861
1871
|
*/
|
|
1862
1872
|
list(actorId, params, options) {
|
|
@@ -1879,10 +1889,10 @@ var CommunityActorsScheduledPostsResource = class extends APIResource {
|
|
|
1879
1889
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-scheduled-posts
|
|
1880
1890
|
* @example
|
|
1881
1891
|
* ```ts
|
|
1882
|
-
* for await (const scheduledPost of social.community("
|
|
1892
|
+
* 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")) {
|
|
1883
1893
|
* console.log(scheduledPost);
|
|
1884
1894
|
* }
|
|
1885
|
-
* const page = await social.community("
|
|
1895
|
+
* 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 });
|
|
1886
1896
|
* ```
|
|
1887
1897
|
*/
|
|
1888
1898
|
list(actorId, params, options) {
|
|
@@ -1904,7 +1914,7 @@ var CommunityActorsStoryTrayResource = class extends APIResource {
|
|
|
1904
1914
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-story-tray
|
|
1905
1915
|
* @example
|
|
1906
1916
|
* ```ts
|
|
1907
|
-
* for await (const storyTray of social.community("
|
|
1917
|
+
* 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")) {
|
|
1908
1918
|
* console.log(storyTray);
|
|
1909
1919
|
* }
|
|
1910
1920
|
* ```
|
|
@@ -1929,10 +1939,10 @@ var CommunityActorsSuggestedFollowsResource = class extends APIResource {
|
|
|
1929
1939
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-suggested-follows
|
|
1930
1940
|
* @example
|
|
1931
1941
|
* ```ts
|
|
1932
|
-
* for await (const suggestedFollow of social.community("
|
|
1942
|
+
* 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")) {
|
|
1933
1943
|
* console.log(suggestedFollow);
|
|
1934
1944
|
* }
|
|
1935
|
-
* const page = await social.community("
|
|
1945
|
+
* 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 });
|
|
1936
1946
|
* ```
|
|
1937
1947
|
*/
|
|
1938
1948
|
list(actorId, params, options) {
|
|
@@ -1955,10 +1965,10 @@ var CommunityActorsTaggedResource = class extends APIResource {
|
|
|
1955
1965
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-tagged-actor-id-tagged
|
|
1956
1966
|
* @example
|
|
1957
1967
|
* ```ts
|
|
1958
|
-
* for await (const tagged of social.community("
|
|
1968
|
+
* 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")) {
|
|
1959
1969
|
* console.log(tagged);
|
|
1960
1970
|
* }
|
|
1961
|
-
* const page = await social.community("
|
|
1971
|
+
* 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 });
|
|
1962
1972
|
* ```
|
|
1963
1973
|
*/
|
|
1964
1974
|
list(taggedActorId, params, options) {
|
|
@@ -2083,7 +2093,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2083
2093
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors-batch
|
|
2084
2094
|
* @example
|
|
2085
2095
|
* ```ts
|
|
2086
|
-
* const batchActors = await social.community("
|
|
2096
|
+
* const batchActors = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.batch({ actors: [{ external_id: "user_abc123" }] });
|
|
2087
2097
|
* ```
|
|
2088
2098
|
*/
|
|
2089
2099
|
batch(params, options) {
|
|
@@ -2101,7 +2111,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2101
2111
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-counters
|
|
2102
2112
|
* @example
|
|
2103
2113
|
* ```ts
|
|
2104
|
-
* const actorCounters = await social.community("
|
|
2114
|
+
* const actorCounters = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.counters("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2105
2115
|
* ```
|
|
2106
2116
|
*/
|
|
2107
2117
|
counters(actorId, options) {
|
|
@@ -2121,7 +2131,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2121
2131
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors
|
|
2122
2132
|
* @example
|
|
2123
2133
|
* ```ts
|
|
2124
|
-
* const upsertActor = await social.community("
|
|
2134
|
+
* const upsertActor = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.create({ external_id: "user_abc123" });
|
|
2125
2135
|
* ```
|
|
2126
2136
|
*/
|
|
2127
2137
|
create(params, options) {
|
|
@@ -2139,7 +2149,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2139
2149
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-actors-actor-id
|
|
2140
2150
|
* @example
|
|
2141
2151
|
* ```ts
|
|
2142
|
-
* await social.community("
|
|
2152
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2143
2153
|
* ```
|
|
2144
2154
|
*/
|
|
2145
2155
|
delete(actorId, options) {
|
|
@@ -2159,7 +2169,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2159
2169
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id-insights
|
|
2160
2170
|
* @example
|
|
2161
2171
|
* ```ts
|
|
2162
|
-
* const actorInsights = await social.community("
|
|
2172
|
+
* const actorInsights = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.insights("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2163
2173
|
* ```
|
|
2164
2174
|
*/
|
|
2165
2175
|
insights(actorId, params, options) {
|
|
@@ -2178,10 +2188,10 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2178
2188
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors
|
|
2179
2189
|
* @example
|
|
2180
2190
|
* ```ts
|
|
2181
|
-
* for await (const actor of social.community("
|
|
2191
|
+
* for await (const actor of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.list()) {
|
|
2182
2192
|
* console.log(actor);
|
|
2183
2193
|
* }
|
|
2184
|
-
* const page = await social.community("
|
|
2194
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.list({}, { timeout: 5_000 });
|
|
2185
2195
|
* ```
|
|
2186
2196
|
*/
|
|
2187
2197
|
list(params, options) {
|
|
@@ -2203,7 +2213,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2203
2213
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-actors-actor-id-post-state
|
|
2204
2214
|
* @example
|
|
2205
2215
|
* ```ts
|
|
2206
|
-
* const postState = await social.community("
|
|
2216
|
+
* const postState = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.postState("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {
|
|
2207
2217
|
* post_ids: ["bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb", "cccccccc-cccc-cccc-cccc-cccccccccccc"],
|
|
2208
2218
|
* });
|
|
2209
2219
|
* ```
|
|
@@ -2222,7 +2232,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2222
2232
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-actors-actor-id
|
|
2223
2233
|
* @example
|
|
2224
2234
|
* ```ts
|
|
2225
|
-
* const actor = await social.community("
|
|
2235
|
+
* const actor = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").actors.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2226
2236
|
* ```
|
|
2227
2237
|
*/
|
|
2228
2238
|
retrieve(actorId, options) {
|
|
@@ -2242,7 +2252,7 @@ var CommunityActorsResource = class extends APIResource {
|
|
|
2242
2252
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-actors-actor-id
|
|
2243
2253
|
* @example
|
|
2244
2254
|
* ```ts
|
|
2245
|
-
* const actor = await social.community("
|
|
2255
|
+
* 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" });
|
|
2246
2256
|
* ```
|
|
2247
2257
|
*/
|
|
2248
2258
|
update(actorId, params, options) {
|
|
@@ -2264,7 +2274,7 @@ var CommunityAssetsResource = class extends APIResource {
|
|
|
2264
2274
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-assets-asset-id-complete
|
|
2265
2275
|
* @example
|
|
2266
2276
|
* ```ts
|
|
2267
|
-
* const uploadAsset = await social.community("
|
|
2277
|
+
* const uploadAsset = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").assets.complete("eeeeeeee-0000-0000-0000-000000000001");
|
|
2268
2278
|
* ```
|
|
2269
2279
|
*/
|
|
2270
2280
|
complete(assetId, options) {
|
|
@@ -2285,7 +2295,7 @@ var CommunityAssetsResource = class extends APIResource {
|
|
|
2285
2295
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-assets
|
|
2286
2296
|
* @example
|
|
2287
2297
|
* ```ts
|
|
2288
|
-
* const uploadAsset = await social.community("
|
|
2298
|
+
* const uploadAsset = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").assets.create();
|
|
2289
2299
|
* ```
|
|
2290
2300
|
*/
|
|
2291
2301
|
create(params, options) {
|
|
@@ -2303,7 +2313,7 @@ var CommunityAssetsResource = class extends APIResource {
|
|
|
2303
2313
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-assets-asset-id
|
|
2304
2314
|
* @example
|
|
2305
2315
|
* ```ts
|
|
2306
|
-
* await social.community("
|
|
2316
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").assets.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2307
2317
|
* ```
|
|
2308
2318
|
*/
|
|
2309
2319
|
delete(assetId, options) {
|
|
@@ -2321,7 +2331,7 @@ var CommunityAssetsResource = class extends APIResource {
|
|
|
2321
2331
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-assets-asset-id
|
|
2322
2332
|
* @example
|
|
2323
2333
|
* ```ts
|
|
2324
|
-
* const asset = await social.community("
|
|
2334
|
+
* const asset = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").assets.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2325
2335
|
* ```
|
|
2326
2336
|
*/
|
|
2327
2337
|
retrieve(assetId, options) {
|
|
@@ -2344,7 +2354,7 @@ var CommunityBlocksResource = class extends APIResource {
|
|
|
2344
2354
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-blocks
|
|
2345
2355
|
* @example
|
|
2346
2356
|
* ```ts
|
|
2347
|
-
* const createEdge = await social.community("
|
|
2357
|
+
* 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" });
|
|
2348
2358
|
* ```
|
|
2349
2359
|
*/
|
|
2350
2360
|
create(params, options) {
|
|
@@ -2363,7 +2373,7 @@ var CommunityBlocksResource = class extends APIResource {
|
|
|
2363
2373
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-blocks-src-actor-id-dst-actor-id
|
|
2364
2374
|
* @example
|
|
2365
2375
|
* ```ts
|
|
2366
|
-
* await social.community("
|
|
2376
|
+
* 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");
|
|
2367
2377
|
* ```
|
|
2368
2378
|
*/
|
|
2369
2379
|
delete(srcActorId, dstActorId, options) {
|
|
@@ -2388,7 +2398,7 @@ var CommunityCloseFriendsResource = class extends APIResource {
|
|
|
2388
2398
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-close-friends
|
|
2389
2399
|
* @example
|
|
2390
2400
|
* ```ts
|
|
2391
|
-
* await social.community("
|
|
2401
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").closeFriends.create({ member_actor_id: "aaaaaaaa-0000-0000-0000-000000000002" });
|
|
2392
2402
|
* ```
|
|
2393
2403
|
*/
|
|
2394
2404
|
create(params, options) {
|
|
@@ -2409,7 +2419,7 @@ var CommunityCloseFriendsResource = class extends APIResource {
|
|
|
2409
2419
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-close-friends-owner-actor-id-member-actor-id
|
|
2410
2420
|
* @example
|
|
2411
2421
|
* ```ts
|
|
2412
|
-
* await social.community("
|
|
2422
|
+
* 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");
|
|
2413
2423
|
* ```
|
|
2414
2424
|
*/
|
|
2415
2425
|
delete(ownerActorId, memberActorId, options) {
|
|
@@ -2431,7 +2441,7 @@ var CommunityCollectionsItemsResource = class extends APIResource {
|
|
|
2431
2441
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-collections-collection-id-items
|
|
2432
2442
|
* @example
|
|
2433
2443
|
* ```ts
|
|
2434
|
-
* const collectionItem = await social.community("
|
|
2444
|
+
* 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" });
|
|
2435
2445
|
* ```
|
|
2436
2446
|
*/
|
|
2437
2447
|
create(collectionId, params, options) {
|
|
@@ -2450,7 +2460,7 @@ var CommunityCollectionsItemsResource = class extends APIResource {
|
|
|
2450
2460
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-collections-collection-id-items-post-id
|
|
2451
2461
|
* @example
|
|
2452
2462
|
* ```ts
|
|
2453
|
-
* await social.community("
|
|
2463
|
+
* 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" });
|
|
2454
2464
|
* ```
|
|
2455
2465
|
*/
|
|
2456
2466
|
delete(collectionId, postId, params, options) {
|
|
@@ -2468,10 +2478,10 @@ var CommunityCollectionsItemsResource = class extends APIResource {
|
|
|
2468
2478
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-collections-collection-id-items
|
|
2469
2479
|
* @example
|
|
2470
2480
|
* ```ts
|
|
2471
|
-
* for await (const item of social.community("
|
|
2481
|
+
* 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")) {
|
|
2472
2482
|
* console.log(item);
|
|
2473
2483
|
* }
|
|
2474
|
-
* const page = await social.community("
|
|
2484
|
+
* 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 });
|
|
2475
2485
|
* ```
|
|
2476
2486
|
*/
|
|
2477
2487
|
list(collectionId, params, options) {
|
|
@@ -2491,7 +2501,7 @@ var CommunityCollectionsItemsResource = class extends APIResource {
|
|
|
2491
2501
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-collections-collection-id-items-post-id
|
|
2492
2502
|
* @example
|
|
2493
2503
|
* ```ts
|
|
2494
|
-
* const collectionItem = await social.community("
|
|
2504
|
+
* 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 });
|
|
2495
2505
|
* ```
|
|
2496
2506
|
*/
|
|
2497
2507
|
update(collectionId, postId, params, options) {
|
|
@@ -2518,7 +2528,7 @@ var CommunityCollectionsResource = class extends APIResource {
|
|
|
2518
2528
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-collections
|
|
2519
2529
|
* @example
|
|
2520
2530
|
* ```ts
|
|
2521
|
-
* const collection = await social.community("
|
|
2531
|
+
* const collection = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.create({ name: "Travel" });
|
|
2522
2532
|
* ```
|
|
2523
2533
|
*/
|
|
2524
2534
|
create(params, options) {
|
|
@@ -2537,7 +2547,7 @@ var CommunityCollectionsResource = class extends APIResource {
|
|
|
2537
2547
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-collections-collection-id
|
|
2538
2548
|
* @example
|
|
2539
2549
|
* ```ts
|
|
2540
|
-
* await social.community("
|
|
2550
|
+
* 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" });
|
|
2541
2551
|
* ```
|
|
2542
2552
|
*/
|
|
2543
2553
|
delete(collectionId, params, options) {
|
|
@@ -2553,10 +2563,10 @@ var CommunityCollectionsResource = class extends APIResource {
|
|
|
2553
2563
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-collections
|
|
2554
2564
|
* @example
|
|
2555
2565
|
* ```ts
|
|
2556
|
-
* for await (const collection of social.community("
|
|
2566
|
+
* for await (const collection of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.list()) {
|
|
2557
2567
|
* console.log(collection);
|
|
2558
2568
|
* }
|
|
2559
|
-
* const page = await social.community("
|
|
2569
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.list({}, { timeout: 5_000 });
|
|
2560
2570
|
* ```
|
|
2561
2571
|
*/
|
|
2562
2572
|
list(params, options) {
|
|
@@ -2574,7 +2584,7 @@ var CommunityCollectionsResource = class extends APIResource {
|
|
|
2574
2584
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-collections-collection-id
|
|
2575
2585
|
* @example
|
|
2576
2586
|
* ```ts
|
|
2577
|
-
* const collection = await social.community("
|
|
2587
|
+
* const collection = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2578
2588
|
* ```
|
|
2579
2589
|
*/
|
|
2580
2590
|
retrieve(collectionId, params, options) {
|
|
@@ -2594,7 +2604,7 @@ var CommunityCollectionsResource = class extends APIResource {
|
|
|
2594
2604
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-collections-collection-id
|
|
2595
2605
|
* @example
|
|
2596
2606
|
* ```ts
|
|
2597
|
-
* const collection = await social.community("
|
|
2607
|
+
* const collection = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").collections.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
2598
2608
|
* ```
|
|
2599
2609
|
*/
|
|
2600
2610
|
update(collectionId, params, options) {
|
|
@@ -2616,7 +2626,7 @@ var CommunityConnectionsResource = class extends APIResource {
|
|
|
2616
2626
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-connections-dst-actor-id-src-actor-id-accept
|
|
2617
2627
|
* @example
|
|
2618
2628
|
* ```ts
|
|
2619
|
-
* const connectionResult = await social.community("
|
|
2629
|
+
* 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");
|
|
2620
2630
|
* ```
|
|
2621
2631
|
*/
|
|
2622
2632
|
accept(dstActorId, srcActorId, options) {
|
|
@@ -2637,7 +2647,7 @@ var CommunityConnectionsResource = class extends APIResource {
|
|
|
2637
2647
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-connections
|
|
2638
2648
|
* @example
|
|
2639
2649
|
* ```ts
|
|
2640
|
-
* const connectionResult = await social.community("
|
|
2650
|
+
* const connectionResult = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").connections.create({
|
|
2641
2651
|
* dst_actor_id: "aaaaaaaa-0000-0000-0000-000000000002",
|
|
2642
2652
|
* src_actor_id: "aaaaaaaa-0000-0000-0000-000000000001",
|
|
2643
2653
|
* });
|
|
@@ -2660,7 +2670,7 @@ var CommunityConnectionsResource = class extends APIResource {
|
|
|
2660
2670
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-connections-actor-id-other-actor-id
|
|
2661
2671
|
* @example
|
|
2662
2672
|
* ```ts
|
|
2663
|
-
* await social.community("
|
|
2673
|
+
* 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");
|
|
2664
2674
|
* ```
|
|
2665
2675
|
*/
|
|
2666
2676
|
delete(actorId, otherActorId, options) {
|
|
@@ -2683,7 +2693,7 @@ var CommunityConversationsMembersResource = class extends APIResource {
|
|
|
2683
2693
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-conversations-conversation-id-members
|
|
2684
2694
|
* @example
|
|
2685
2695
|
* ```ts
|
|
2686
|
-
* const conversation = await social.community("
|
|
2696
|
+
* const conversation = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.members.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
2687
2697
|
* ```
|
|
2688
2698
|
*/
|
|
2689
2699
|
create(conversationId, params, options) {
|
|
@@ -2705,7 +2715,7 @@ var CommunityConversationsMembersResource = class extends APIResource {
|
|
|
2705
2715
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-conversations-conversation-id-members-member-actor-id
|
|
2706
2716
|
* @example
|
|
2707
2717
|
* ```ts
|
|
2708
|
-
* await social.community("
|
|
2718
|
+
* 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", {});
|
|
2709
2719
|
* ```
|
|
2710
2720
|
*/
|
|
2711
2721
|
delete(conversationId, memberActorId, params, options) {
|
|
@@ -2726,7 +2736,7 @@ var CommunityConversationsMembersResource = class extends APIResource {
|
|
|
2726
2736
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-conversations-conversation-id-members-member-actor-id
|
|
2727
2737
|
* @example
|
|
2728
2738
|
* ```ts
|
|
2729
|
-
* const conversation = await social.community("
|
|
2739
|
+
* 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");
|
|
2730
2740
|
* ```
|
|
2731
2741
|
*/
|
|
2732
2742
|
update(conversationId, memberActorId, params, options) {
|
|
@@ -2750,7 +2760,7 @@ var CommunityConversationsMessagesReactionsResource = class extends APIResource
|
|
|
2750
2760
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-conversations-conversation-id-messages-message-id-reactions
|
|
2751
2761
|
* @example
|
|
2752
2762
|
* ```ts
|
|
2753
|
-
* const directMessageReactionCreated = await social.community("
|
|
2763
|
+
* 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" });
|
|
2754
2764
|
* ```
|
|
2755
2765
|
*/
|
|
2756
2766
|
create(conversationId, messageId, params, options) {
|
|
@@ -2771,7 +2781,7 @@ var CommunityConversationsMessagesReactionsResource = class extends APIResource
|
|
|
2771
2781
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-conversations-conversation-id-messages-message-id-reactions-actor-id-type
|
|
2772
2782
|
* @example
|
|
2773
2783
|
* ```ts
|
|
2774
|
-
* const directMessageReactionRemoved = await social.community("
|
|
2784
|
+
* 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");
|
|
2775
2785
|
* ```
|
|
2776
2786
|
*/
|
|
2777
2787
|
delete(conversationId, messageId, actorId, type, options) {
|
|
@@ -2791,7 +2801,7 @@ var CommunityConversationsMessagesReactionsResource = class extends APIResource
|
|
|
2791
2801
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-conversations-conversation-id-messages-message-id-reactions
|
|
2792
2802
|
* @example
|
|
2793
2803
|
* ```ts
|
|
2794
|
-
* for await (const reaction of social.community("
|
|
2804
|
+
* 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", {})) {
|
|
2795
2805
|
* console.log(reaction);
|
|
2796
2806
|
* }
|
|
2797
2807
|
* ```
|
|
@@ -2820,7 +2830,7 @@ var CommunityConversationsMessagesResource = class extends APIResource {
|
|
|
2820
2830
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-conversations-conversation-id-messages
|
|
2821
2831
|
* @example
|
|
2822
2832
|
* ```ts
|
|
2823
|
-
* const directMessage = await social.community("
|
|
2833
|
+
* const directMessage = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.messages.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
2824
2834
|
* ```
|
|
2825
2835
|
*/
|
|
2826
2836
|
create(conversationId, params, options) {
|
|
@@ -2841,7 +2851,7 @@ var CommunityConversationsMessagesResource = class extends APIResource {
|
|
|
2841
2851
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-conversations-conversation-id-messages-message-id
|
|
2842
2852
|
* @example
|
|
2843
2853
|
* ```ts
|
|
2844
|
-
* await social.community("
|
|
2854
|
+
* 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", {});
|
|
2845
2855
|
* ```
|
|
2846
2856
|
*/
|
|
2847
2857
|
delete(conversationId, messageId, params, options) {
|
|
@@ -2860,7 +2870,7 @@ var CommunityConversationsMessagesResource = class extends APIResource {
|
|
|
2860
2870
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-conversations-conversation-id-messages
|
|
2861
2871
|
* @example
|
|
2862
2872
|
* ```ts
|
|
2863
|
-
* for await (const message of social.community("
|
|
2873
|
+
* 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", {})) {
|
|
2864
2874
|
* console.log(message);
|
|
2865
2875
|
* }
|
|
2866
2876
|
* ```
|
|
@@ -2882,7 +2892,7 @@ var CommunityConversationsMessagesResource = class extends APIResource {
|
|
|
2882
2892
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-conversations-conversation-id-messages-message-id
|
|
2883
2893
|
* @example
|
|
2884
2894
|
* ```ts
|
|
2885
|
-
* const directMessage = await social.community("
|
|
2895
|
+
* 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", {});
|
|
2886
2896
|
* ```
|
|
2887
2897
|
*/
|
|
2888
2898
|
retrieve(conversationId, messageId, params, options) {
|
|
@@ -2904,7 +2914,7 @@ var CommunityConversationsMessagesResource = class extends APIResource {
|
|
|
2904
2914
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-conversations-conversation-id-messages-message-id
|
|
2905
2915
|
* @example
|
|
2906
2916
|
* ```ts
|
|
2907
|
-
* const directMessage = await social.community("
|
|
2917
|
+
* 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" });
|
|
2908
2918
|
* ```
|
|
2909
2919
|
*/
|
|
2910
2920
|
update(conversationId, messageId, params, options) {
|
|
@@ -2934,7 +2944,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
2934
2944
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-conversations
|
|
2935
2945
|
* @example
|
|
2936
2946
|
* ```ts
|
|
2937
|
-
* const conversation = await social.community("
|
|
2947
|
+
* const conversation = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.create({});
|
|
2938
2948
|
* ```
|
|
2939
2949
|
*/
|
|
2940
2950
|
create(params, options) {
|
|
@@ -2954,7 +2964,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
2954
2964
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-conversations-conversation-id
|
|
2955
2965
|
* @example
|
|
2956
2966
|
* ```ts
|
|
2957
|
-
* await social.community("
|
|
2967
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
2958
2968
|
* ```
|
|
2959
2969
|
*/
|
|
2960
2970
|
delete(conversationId, params, options) {
|
|
@@ -2972,7 +2982,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
2972
2982
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-conversations
|
|
2973
2983
|
* @example
|
|
2974
2984
|
* ```ts
|
|
2975
|
-
* for await (const conversation of social.community("
|
|
2985
|
+
* for await (const conversation of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.list({})) {
|
|
2976
2986
|
* console.log(conversation);
|
|
2977
2987
|
* }
|
|
2978
2988
|
* ```
|
|
@@ -2994,7 +3004,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
2994
3004
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-conversations-conversation-id-read
|
|
2995
3005
|
* @example
|
|
2996
3006
|
* ```ts
|
|
2997
|
-
* await social.community("
|
|
3007
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.markRead("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
2998
3008
|
* ```
|
|
2999
3009
|
*/
|
|
3000
3010
|
markRead(conversationId, params, options) {
|
|
@@ -3013,7 +3023,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
3013
3023
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-conversations-conversation-id
|
|
3014
3024
|
* @example
|
|
3015
3025
|
* ```ts
|
|
3016
|
-
* const conversation = await social.community("
|
|
3026
|
+
* const conversation = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
3017
3027
|
* ```
|
|
3018
3028
|
*/
|
|
3019
3029
|
retrieve(conversationId, params, options) {
|
|
@@ -3031,7 +3041,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
3031
3041
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-conversations-unread-count
|
|
3032
3042
|
* @example
|
|
3033
3043
|
* ```ts
|
|
3034
|
-
* const unreadCount = await social.community("
|
|
3044
|
+
* const unreadCount = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.unreadCount({});
|
|
3035
3045
|
* ```
|
|
3036
3046
|
*/
|
|
3037
3047
|
unreadCount(params, options) {
|
|
@@ -3052,7 +3062,7 @@ var CommunityConversationsResource = class extends APIResource {
|
|
|
3052
3062
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-conversations-conversation-id
|
|
3053
3063
|
* @example
|
|
3054
3064
|
* ```ts
|
|
3055
|
-
* const conversation = await social.community("
|
|
3065
|
+
* const conversation = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").conversations.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
3056
3066
|
* ```
|
|
3057
3067
|
*/
|
|
3058
3068
|
update(conversationId, params, options) {
|
|
@@ -3073,7 +3083,7 @@ var CommunityCountersResource = class extends APIResource {
|
|
|
3073
3083
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-counters
|
|
3074
3084
|
* @example
|
|
3075
3085
|
* ```ts
|
|
3076
|
-
* const batchCounters = await social.community("
|
|
3086
|
+
* 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" });
|
|
3077
3087
|
* ```
|
|
3078
3088
|
*/
|
|
3079
3089
|
list(params, options) {
|
|
@@ -3093,10 +3103,10 @@ var CommunityDiscoverFeedResource = class extends APIResource {
|
|
|
3093
3103
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-discover-feed
|
|
3094
3104
|
* @example
|
|
3095
3105
|
* ```ts
|
|
3096
|
-
* for await (const discoverFeed of social.community("
|
|
3106
|
+
* for await (const discoverFeed of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").discoverFeed.list()) {
|
|
3097
3107
|
* console.log(discoverFeed);
|
|
3098
3108
|
* }
|
|
3099
|
-
* const page = await social.community("
|
|
3109
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").discoverFeed.list({}, { timeout: 5_000 });
|
|
3100
3110
|
* ```
|
|
3101
3111
|
*/
|
|
3102
3112
|
list(params, options) {
|
|
@@ -3117,7 +3127,7 @@ var CommunityDismissedSuggestionsResource = class extends APIResource {
|
|
|
3117
3127
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-dismissed-suggestions
|
|
3118
3128
|
* @example
|
|
3119
3129
|
* ```ts
|
|
3120
|
-
* const createEdge = await social.community("
|
|
3130
|
+
* 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" });
|
|
3121
3131
|
* ```
|
|
3122
3132
|
*/
|
|
3123
3133
|
create(params, options) {
|
|
@@ -3134,7 +3144,7 @@ var CommunityDismissedSuggestionsResource = class extends APIResource {
|
|
|
3134
3144
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-dismissed-suggestions-src-actor-id-dst-actor-id
|
|
3135
3145
|
* @example
|
|
3136
3146
|
* ```ts
|
|
3137
|
-
* await social.community("
|
|
3147
|
+
* 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");
|
|
3138
3148
|
* ```
|
|
3139
3149
|
*/
|
|
3140
3150
|
delete(srcActorId, dstActorId, options) {
|
|
@@ -3157,7 +3167,7 @@ var CommunityFlagsResource = class extends APIResource {
|
|
|
3157
3167
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-flags
|
|
3158
3168
|
* @example
|
|
3159
3169
|
* ```ts
|
|
3160
|
-
* const createFlag = await social.community("
|
|
3170
|
+
* 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" });
|
|
3161
3171
|
* ```
|
|
3162
3172
|
*/
|
|
3163
3173
|
create(params, options) {
|
|
@@ -3174,10 +3184,10 @@ var CommunityFlagsResource = class extends APIResource {
|
|
|
3174
3184
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-flags
|
|
3175
3185
|
* @example
|
|
3176
3186
|
* ```ts
|
|
3177
|
-
* for await (const flag of social.community("
|
|
3187
|
+
* for await (const flag of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").flags.list()) {
|
|
3178
3188
|
* console.log(flag);
|
|
3179
3189
|
* }
|
|
3180
|
-
* const page = await social.community("
|
|
3190
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").flags.list({}, { timeout: 5_000 });
|
|
3181
3191
|
* ```
|
|
3182
3192
|
*/
|
|
3183
3193
|
list(params, options) {
|
|
@@ -3197,7 +3207,7 @@ var CommunityFollowRequestsResource = class extends APIResource {
|
|
|
3197
3207
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-follow-requests-dst-actor-id-src-actor-id-approve
|
|
3198
3208
|
* @example
|
|
3199
3209
|
* ```ts
|
|
3200
|
-
* const createEdge = await social.community("
|
|
3210
|
+
* 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");
|
|
3201
3211
|
* ```
|
|
3202
3212
|
*/
|
|
3203
3213
|
approve(dstActorId, srcActorId, options) {
|
|
@@ -3215,7 +3225,7 @@ var CommunityFollowRequestsResource = class extends APIResource {
|
|
|
3215
3225
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-follow-requests-dst-actor-id-src-actor-id
|
|
3216
3226
|
* @example
|
|
3217
3227
|
* ```ts
|
|
3218
|
-
* await social.community("
|
|
3228
|
+
* 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");
|
|
3219
3229
|
* ```
|
|
3220
3230
|
*/
|
|
3221
3231
|
delete(dstActorId, srcActorId, options) {
|
|
@@ -3236,7 +3246,7 @@ var CommunityFollowsResource = class extends APIResource {
|
|
|
3236
3246
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-follows-batch
|
|
3237
3247
|
* @example
|
|
3238
3248
|
* ```ts
|
|
3239
|
-
* const batchFollows = await social.community("
|
|
3249
|
+
* const batchFollows = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").follows.batch({
|
|
3240
3250
|
* follows: [
|
|
3241
3251
|
* {
|
|
3242
3252
|
* actor_id: "aaaaaaaa-0000-0000-0000-000000000001",
|
|
@@ -3264,7 +3274,7 @@ var CommunityFollowsResource = class extends APIResource {
|
|
|
3264
3274
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-follows
|
|
3265
3275
|
* @example
|
|
3266
3276
|
* ```ts
|
|
3267
|
-
* const followResult = await social.community("
|
|
3277
|
+
* 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" });
|
|
3268
3278
|
* ```
|
|
3269
3279
|
*/
|
|
3270
3280
|
create(params, options) {
|
|
@@ -3283,7 +3293,7 @@ var CommunityFollowsResource = class extends APIResource {
|
|
|
3283
3293
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-follows-src-actor-id-dst-actor-id
|
|
3284
3294
|
* @example
|
|
3285
3295
|
* ```ts
|
|
3286
|
-
* await social.community("
|
|
3296
|
+
* 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");
|
|
3287
3297
|
* ```
|
|
3288
3298
|
*/
|
|
3289
3299
|
delete(srcActorId, dstActorId, options) {
|
|
@@ -3305,10 +3315,10 @@ var CommunityHashtagsPostsResource = class extends APIResource {
|
|
|
3305
3315
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-hashtags-tag-posts
|
|
3306
3316
|
* @example
|
|
3307
3317
|
* ```ts
|
|
3308
|
-
* for await (const post of social.community("
|
|
3318
|
+
* for await (const post of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hashtags.posts.list("launch")) {
|
|
3309
3319
|
* console.log(post);
|
|
3310
3320
|
* }
|
|
3311
|
-
* const page = await social.community("
|
|
3321
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hashtags.posts.list("launch", {}, { timeout: 5_000 });
|
|
3312
3322
|
* ```
|
|
3313
3323
|
*/
|
|
3314
3324
|
list(tag, params, options) {
|
|
@@ -3333,10 +3343,10 @@ var CommunityHashtagsResource = class extends APIResource {
|
|
|
3333
3343
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-hashtags
|
|
3334
3344
|
* @example
|
|
3335
3345
|
* ```ts
|
|
3336
|
-
* for await (const hashtag of social.community("
|
|
3346
|
+
* for await (const hashtag of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hashtags.list()) {
|
|
3337
3347
|
* console.log(hashtag);
|
|
3338
3348
|
* }
|
|
3339
|
-
* const page = await social.community("
|
|
3349
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hashtags.list({}, { timeout: 5_000 });
|
|
3340
3350
|
* ```
|
|
3341
3351
|
*/
|
|
3342
3352
|
list(params, options) {
|
|
@@ -3355,7 +3365,7 @@ var CommunityHashtagsResource = class extends APIResource {
|
|
|
3355
3365
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-hashtags-tag
|
|
3356
3366
|
* @example
|
|
3357
3367
|
* ```ts
|
|
3358
|
-
* const hashtagDetail = await social.community("
|
|
3368
|
+
* const hashtagDetail = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").hashtags.retrieve("launch");
|
|
3359
3369
|
* ```
|
|
3360
3370
|
*/
|
|
3361
3371
|
retrieve(tag, options) {
|
|
@@ -3375,7 +3385,7 @@ var CommunityHidesResource = class extends APIResource {
|
|
|
3375
3385
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-hides
|
|
3376
3386
|
* @example
|
|
3377
3387
|
* ```ts
|
|
3378
|
-
* const hideResult = await social.community("
|
|
3388
|
+
* 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" });
|
|
3379
3389
|
* ```
|
|
3380
3390
|
*/
|
|
3381
3391
|
create(params, options) {
|
|
@@ -3392,7 +3402,7 @@ var CommunityHidesResource = class extends APIResource {
|
|
|
3392
3402
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-hides-src-actor-id-post-id
|
|
3393
3403
|
* @example
|
|
3394
3404
|
* ```ts
|
|
3395
|
-
* await social.community("
|
|
3405
|
+
* 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");
|
|
3396
3406
|
* ```
|
|
3397
3407
|
*/
|
|
3398
3408
|
delete(srcActorId, postId, options) {
|
|
@@ -3414,7 +3424,7 @@ var CommunityListsFeedResource = class extends APIResource {
|
|
|
3414
3424
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-lists-list-id-feed
|
|
3415
3425
|
* @example
|
|
3416
3426
|
* ```ts
|
|
3417
|
-
* for await (const feed of social.community("
|
|
3427
|
+
* 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", {})) {
|
|
3418
3428
|
* console.log(feed);
|
|
3419
3429
|
* }
|
|
3420
3430
|
* ```
|
|
@@ -3438,7 +3448,7 @@ var CommunityListsMembersResource = class extends APIResource {
|
|
|
3438
3448
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-lists-list-id-members
|
|
3439
3449
|
* @example
|
|
3440
3450
|
* ```ts
|
|
3441
|
-
* const actorListMember = await social.community("
|
|
3451
|
+
* const actorListMember = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.members.create("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
3442
3452
|
* ```
|
|
3443
3453
|
*/
|
|
3444
3454
|
create(listId, params, options) {
|
|
@@ -3459,7 +3469,7 @@ var CommunityListsMembersResource = class extends APIResource {
|
|
|
3459
3469
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-lists-list-id-members-member-actor-id
|
|
3460
3470
|
* @example
|
|
3461
3471
|
* ```ts
|
|
3462
|
-
* await social.community("
|
|
3472
|
+
* 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", {});
|
|
3463
3473
|
* ```
|
|
3464
3474
|
*/
|
|
3465
3475
|
delete(listId, memberActorId, params, options) {
|
|
@@ -3478,10 +3488,10 @@ var CommunityListsMembersResource = class extends APIResource {
|
|
|
3478
3488
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-lists-list-id-members
|
|
3479
3489
|
* @example
|
|
3480
3490
|
* ```ts
|
|
3481
|
-
* for await (const member of social.community("
|
|
3491
|
+
* 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")) {
|
|
3482
3492
|
* console.log(member);
|
|
3483
3493
|
* }
|
|
3484
|
-
* const page = await social.community("
|
|
3494
|
+
* 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 });
|
|
3485
3495
|
* ```
|
|
3486
3496
|
*/
|
|
3487
3497
|
list(listId, params, options) {
|
|
@@ -3511,7 +3521,7 @@ var CommunityListsResource = class extends APIResource {
|
|
|
3511
3521
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-lists
|
|
3512
3522
|
* @example
|
|
3513
3523
|
* ```ts
|
|
3514
|
-
* const actorList = await social.community("
|
|
3524
|
+
* const actorList = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.create({ name: "Tech news" });
|
|
3515
3525
|
* ```
|
|
3516
3526
|
*/
|
|
3517
3527
|
create(params, options) {
|
|
@@ -3531,7 +3541,7 @@ var CommunityListsResource = class extends APIResource {
|
|
|
3531
3541
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-lists-list-id
|
|
3532
3542
|
* @example
|
|
3533
3543
|
* ```ts
|
|
3534
|
-
* await social.community("
|
|
3544
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
3535
3545
|
* ```
|
|
3536
3546
|
*/
|
|
3537
3547
|
delete(listId, params, options) {
|
|
@@ -3548,10 +3558,10 @@ var CommunityListsResource = class extends APIResource {
|
|
|
3548
3558
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-lists
|
|
3549
3559
|
* @example
|
|
3550
3560
|
* ```ts
|
|
3551
|
-
* for await (const list of social.community("
|
|
3561
|
+
* for await (const list of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.list()) {
|
|
3552
3562
|
* console.log(list);
|
|
3553
3563
|
* }
|
|
3554
|
-
* const page = await social.community("
|
|
3564
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.list({}, { timeout: 5_000 });
|
|
3555
3565
|
* ```
|
|
3556
3566
|
*/
|
|
3557
3567
|
list(params, options) {
|
|
@@ -3570,7 +3580,7 @@ var CommunityListsResource = class extends APIResource {
|
|
|
3570
3580
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-lists-list-id
|
|
3571
3581
|
* @example
|
|
3572
3582
|
* ```ts
|
|
3573
|
-
* const actorList = await social.community("
|
|
3583
|
+
* const actorList = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3574
3584
|
* ```
|
|
3575
3585
|
*/
|
|
3576
3586
|
retrieve(listId, params, options) {
|
|
@@ -3590,7 +3600,7 @@ var CommunityListsResource = class extends APIResource {
|
|
|
3590
3600
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-lists-list-id
|
|
3591
3601
|
* @example
|
|
3592
3602
|
* ```ts
|
|
3593
|
-
* const actorList = await social.community("
|
|
3603
|
+
* const actorList = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").lists.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
3594
3604
|
* ```
|
|
3595
3605
|
*/
|
|
3596
3606
|
update(listId, params, options) {
|
|
@@ -3613,7 +3623,7 @@ var CommunityMutesResource = class extends APIResource {
|
|
|
3613
3623
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-mutes
|
|
3614
3624
|
* @example
|
|
3615
3625
|
* ```ts
|
|
3616
|
-
* const createEdge = await social.community("
|
|
3626
|
+
* 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" });
|
|
3617
3627
|
* ```
|
|
3618
3628
|
*/
|
|
3619
3629
|
create(params, options) {
|
|
@@ -3632,7 +3642,7 @@ var CommunityMutesResource = class extends APIResource {
|
|
|
3632
3642
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-mutes-src-actor-id-dst-actor-id
|
|
3633
3643
|
* @example
|
|
3634
3644
|
* ```ts
|
|
3635
|
-
* await social.community("
|
|
3645
|
+
* 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");
|
|
3636
3646
|
* ```
|
|
3637
3647
|
*/
|
|
3638
3648
|
delete(srcActorId, dstActorId, options) {
|
|
@@ -3656,7 +3666,7 @@ var CommunityPostsCommentsReactionsResource = class extends APIResource {
|
|
|
3656
3666
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-comments-comment-id-reactions
|
|
3657
3667
|
* @example
|
|
3658
3668
|
* ```ts
|
|
3659
|
-
* const addCommentReaction = await social.community("
|
|
3669
|
+
* 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" });
|
|
3660
3670
|
* ```
|
|
3661
3671
|
*/
|
|
3662
3672
|
create(postId, commentId, params, options) {
|
|
@@ -3678,7 +3688,7 @@ var CommunityPostsCommentsReactionsResource = class extends APIResource {
|
|
|
3678
3688
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-comments-comment-id-reactions-src-actor-id-type
|
|
3679
3689
|
* @example
|
|
3680
3690
|
* ```ts
|
|
3681
|
-
* const commentReactionCounts = await social.community("
|
|
3691
|
+
* 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");
|
|
3682
3692
|
* ```
|
|
3683
3693
|
*/
|
|
3684
3694
|
delete(postId, commentId, srcActorId, type, options) {
|
|
@@ -3698,10 +3708,10 @@ var CommunityPostsCommentsReactionsResource = class extends APIResource {
|
|
|
3698
3708
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-comments-comment-id-reactions
|
|
3699
3709
|
* @example
|
|
3700
3710
|
* ```ts
|
|
3701
|
-
* for await (const reaction of social.community("
|
|
3711
|
+
* 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")) {
|
|
3702
3712
|
* console.log(reaction);
|
|
3703
3713
|
* }
|
|
3704
|
-
* const page = await social.community("
|
|
3714
|
+
* 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 });
|
|
3705
3715
|
* ```
|
|
3706
3716
|
*/
|
|
3707
3717
|
list(postId, commentId, params, options) {
|
|
@@ -3729,7 +3739,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3729
3739
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-comments-comment-id-approve
|
|
3730
3740
|
* @example
|
|
3731
3741
|
* ```ts
|
|
3732
|
-
* const comment = await social.community("
|
|
3742
|
+
* 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");
|
|
3733
3743
|
* ```
|
|
3734
3744
|
*/
|
|
3735
3745
|
approve(postId, commentId, params, options) {
|
|
@@ -3750,7 +3760,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3750
3760
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-comments
|
|
3751
3761
|
* @example
|
|
3752
3762
|
* ```ts
|
|
3753
|
-
* const comment = await social.community("
|
|
3763
|
+
* 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." });
|
|
3754
3764
|
* ```
|
|
3755
3765
|
*/
|
|
3756
3766
|
create(postId, params, options) {
|
|
@@ -3769,7 +3779,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3769
3779
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-comments-comment-id
|
|
3770
3780
|
* @example
|
|
3771
3781
|
* ```ts
|
|
3772
|
-
* await social.community("
|
|
3782
|
+
* 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");
|
|
3773
3783
|
* ```
|
|
3774
3784
|
*/
|
|
3775
3785
|
delete(postId, commentId, options) {
|
|
@@ -3788,10 +3798,10 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3788
3798
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-comments
|
|
3789
3799
|
* @example
|
|
3790
3800
|
* ```ts
|
|
3791
|
-
* for await (const comment of social.community("
|
|
3801
|
+
* 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")) {
|
|
3792
3802
|
* console.log(comment);
|
|
3793
3803
|
* }
|
|
3794
|
-
* const page = await social.community("
|
|
3804
|
+
* 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 });
|
|
3795
3805
|
* ```
|
|
3796
3806
|
*/
|
|
3797
3807
|
list(postId, params, options) {
|
|
@@ -3814,7 +3824,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3814
3824
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-comments-comment-id-pin
|
|
3815
3825
|
* @example
|
|
3816
3826
|
* ```ts
|
|
3817
|
-
* const comment = await social.community("
|
|
3827
|
+
* 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", {});
|
|
3818
3828
|
* ```
|
|
3819
3829
|
*/
|
|
3820
3830
|
pin(postId, commentId, params, options) {
|
|
@@ -3834,7 +3844,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3834
3844
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-comments-comment-id
|
|
3835
3845
|
* @example
|
|
3836
3846
|
* ```ts
|
|
3837
|
-
* const comment = await social.community("
|
|
3847
|
+
* 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");
|
|
3838
3848
|
* ```
|
|
3839
3849
|
*/
|
|
3840
3850
|
retrieve(postId, commentId, params, options) {
|
|
@@ -3856,7 +3866,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3856
3866
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-comments-comment-id-pin
|
|
3857
3867
|
* @example
|
|
3858
3868
|
* ```ts
|
|
3859
|
-
* const comment = await social.community("
|
|
3869
|
+
* 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", {});
|
|
3860
3870
|
* ```
|
|
3861
3871
|
*/
|
|
3862
3872
|
unpin(postId, commentId, params, options) {
|
|
@@ -3877,7 +3887,7 @@ var CommunityPostsCommentsResource = class extends APIResource {
|
|
|
3877
3887
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-posts-post-id-comments-comment-id
|
|
3878
3888
|
* @example
|
|
3879
3889
|
* ```ts
|
|
3880
|
-
* const comment = await social.community("
|
|
3890
|
+
* 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" });
|
|
3881
3891
|
* ```
|
|
3882
3892
|
*/
|
|
3883
3893
|
update(postId, commentId, params, options) {
|
|
@@ -3900,10 +3910,10 @@ var CommunityPostsQuotesResource = class extends APIResource {
|
|
|
3900
3910
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-quotes
|
|
3901
3911
|
* @example
|
|
3902
3912
|
* ```ts
|
|
3903
|
-
* for await (const quote of social.community("
|
|
3913
|
+
* 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")) {
|
|
3904
3914
|
* console.log(quote);
|
|
3905
3915
|
* }
|
|
3906
|
-
* const page = await social.community("
|
|
3916
|
+
* 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 });
|
|
3907
3917
|
* ```
|
|
3908
3918
|
*/
|
|
3909
3919
|
list(postId, params, options) {
|
|
@@ -3926,7 +3936,7 @@ var CommunityPostsReactionsResource = class extends APIResource {
|
|
|
3926
3936
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-reactions
|
|
3927
3937
|
* @example
|
|
3928
3938
|
* ```ts
|
|
3929
|
-
* const reaction = await social.community("
|
|
3939
|
+
* 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" });
|
|
3930
3940
|
* ```
|
|
3931
3941
|
*/
|
|
3932
3942
|
create(postId, params, options) {
|
|
@@ -3947,7 +3957,7 @@ var CommunityPostsReactionsResource = class extends APIResource {
|
|
|
3947
3957
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-reactions-src-actor-id-type
|
|
3948
3958
|
* @example
|
|
3949
3959
|
* ```ts
|
|
3950
|
-
* const reactionCounts = await social.community("
|
|
3960
|
+
* 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");
|
|
3951
3961
|
* ```
|
|
3952
3962
|
*/
|
|
3953
3963
|
delete(postId, srcActorId, type, options) {
|
|
@@ -3967,10 +3977,10 @@ var CommunityPostsReactionsResource = class extends APIResource {
|
|
|
3967
3977
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-reactions
|
|
3968
3978
|
* @example
|
|
3969
3979
|
* ```ts
|
|
3970
|
-
* for await (const reaction of social.community("
|
|
3980
|
+
* 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")) {
|
|
3971
3981
|
* console.log(reaction);
|
|
3972
3982
|
* }
|
|
3973
|
-
* const page = await social.community("
|
|
3983
|
+
* 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 });
|
|
3974
3984
|
* ```
|
|
3975
3985
|
*/
|
|
3976
3986
|
list(postId, params, options) {
|
|
@@ -3991,10 +4001,10 @@ var CommunityPostsRepostsResource = class extends APIResource {
|
|
|
3991
4001
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-reposts
|
|
3992
4002
|
* @example
|
|
3993
4003
|
* ```ts
|
|
3994
|
-
* for await (const repost of social.community("
|
|
4004
|
+
* 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")) {
|
|
3995
4005
|
* console.log(repost);
|
|
3996
4006
|
* }
|
|
3997
|
-
* const page = await social.community("
|
|
4007
|
+
* 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 });
|
|
3998
4008
|
* ```
|
|
3999
4009
|
*/
|
|
4000
4010
|
list(postId, params, options) {
|
|
@@ -4017,10 +4027,10 @@ var CommunityPostsRevisionsResource = class extends APIResource {
|
|
|
4017
4027
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-revisions
|
|
4018
4028
|
* @example
|
|
4019
4029
|
* ```ts
|
|
4020
|
-
* for await (const revision of social.community("
|
|
4030
|
+
* 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")) {
|
|
4021
4031
|
* console.log(revision);
|
|
4022
4032
|
* }
|
|
4023
|
-
* const page = await social.community("
|
|
4033
|
+
* 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 });
|
|
4024
4034
|
* ```
|
|
4025
4035
|
*/
|
|
4026
4036
|
list(postId, params, options) {
|
|
@@ -4045,7 +4055,7 @@ var CommunityPostsTagsResource = class extends APIResource {
|
|
|
4045
4055
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-tags-tagged-actor-id-approve
|
|
4046
4056
|
* @example
|
|
4047
4057
|
* ```ts
|
|
4048
|
-
* const postTag = await social.community("
|
|
4058
|
+
* 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", {});
|
|
4049
4059
|
* ```
|
|
4050
4060
|
*/
|
|
4051
4061
|
approve(postId, taggedActorId, params, options) {
|
|
@@ -4067,7 +4077,7 @@ var CommunityPostsTagsResource = class extends APIResource {
|
|
|
4067
4077
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-tags-tagged-actor-id-remove
|
|
4068
4078
|
* @example
|
|
4069
4079
|
* ```ts
|
|
4070
|
-
* const postTag = await social.community("
|
|
4080
|
+
* 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", {});
|
|
4071
4081
|
* ```
|
|
4072
4082
|
*/
|
|
4073
4083
|
delete(postId, taggedActorId, params, options) {
|
|
@@ -4091,7 +4101,7 @@ var CommunityPostsViewersResource = class extends APIResource {
|
|
|
4091
4101
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-viewers
|
|
4092
4102
|
* @example
|
|
4093
4103
|
* ```ts
|
|
4094
|
-
* for await (const viewer of social.community("
|
|
4104
|
+
* 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", {})) {
|
|
4095
4105
|
* console.log(viewer);
|
|
4096
4106
|
* }
|
|
4097
4107
|
* ```
|
|
@@ -4117,7 +4127,7 @@ var CommunityPostsVotersResource = class extends APIResource {
|
|
|
4117
4127
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-voters
|
|
4118
4128
|
* @example
|
|
4119
4129
|
* ```ts
|
|
4120
|
-
* for await (const voter of social.community("
|
|
4130
|
+
* 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", {})) {
|
|
4121
4131
|
* console.log(voter);
|
|
4122
4132
|
* }
|
|
4123
4133
|
* ```
|
|
@@ -4145,7 +4155,7 @@ var CommunityPostsVotesResource = class extends APIResource {
|
|
|
4145
4155
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-votes
|
|
4146
4156
|
* @example
|
|
4147
4157
|
* ```ts
|
|
4148
|
-
* await social.community("
|
|
4158
|
+
* 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 });
|
|
4149
4159
|
* ```
|
|
4150
4160
|
*/
|
|
4151
4161
|
create(postId, params, options) {
|
|
@@ -4166,7 +4176,7 @@ var CommunityPostsVotesResource = class extends APIResource {
|
|
|
4166
4176
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-votes-actor-id
|
|
4167
4177
|
* @example
|
|
4168
4178
|
* ```ts
|
|
4169
|
-
* await social.community("
|
|
4179
|
+
* 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");
|
|
4170
4180
|
* ```
|
|
4171
4181
|
*/
|
|
4172
4182
|
delete(postId, actorId, options) {
|
|
@@ -4187,7 +4197,7 @@ var CommunityPostsVotesResource = class extends APIResource {
|
|
|
4187
4197
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-votes-actor-id
|
|
4188
4198
|
* @example
|
|
4189
4199
|
* ```ts
|
|
4190
|
-
* const result = await social.community("
|
|
4200
|
+
* 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");
|
|
4191
4201
|
* ```
|
|
4192
4202
|
*/
|
|
4193
4203
|
retrieve(postId, actorId, options) {
|
|
@@ -4247,7 +4257,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4247
4257
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-bookmark
|
|
4248
4258
|
* @example
|
|
4249
4259
|
* ```ts
|
|
4250
|
-
* const bookmarkToggle = await social.community("
|
|
4260
|
+
* const bookmarkToggle = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.bookmark("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
4251
4261
|
* ```
|
|
4252
4262
|
*/
|
|
4253
4263
|
bookmark(postId, params, options) {
|
|
@@ -4268,7 +4278,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4268
4278
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts
|
|
4269
4279
|
* @example
|
|
4270
4280
|
* ```ts
|
|
4271
|
-
* const post = await social.community("
|
|
4281
|
+
* const post = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.create({});
|
|
4272
4282
|
* ```
|
|
4273
4283
|
*/
|
|
4274
4284
|
create(params, options) {
|
|
@@ -4286,7 +4296,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4286
4296
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id
|
|
4287
4297
|
* @example
|
|
4288
4298
|
* ```ts
|
|
4289
|
-
* await social.community("
|
|
4299
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4290
4300
|
* ```
|
|
4291
4301
|
*/
|
|
4292
4302
|
delete(postId, options) {
|
|
@@ -4306,7 +4316,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4306
4316
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-insights
|
|
4307
4317
|
* @example
|
|
4308
4318
|
* ```ts
|
|
4309
|
-
* const postInsights = await social.community("
|
|
4319
|
+
* const postInsights = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.insights("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4310
4320
|
* ```
|
|
4311
4321
|
*/
|
|
4312
4322
|
insights(postId, params, options) {
|
|
@@ -4324,10 +4334,10 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4324
4334
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts
|
|
4325
4335
|
* @example
|
|
4326
4336
|
* ```ts
|
|
4327
|
-
* for await (const post of social.community("
|
|
4337
|
+
* for await (const post of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.list()) {
|
|
4328
4338
|
* console.log(post);
|
|
4329
4339
|
* }
|
|
4330
|
-
* const page = await social.community("
|
|
4340
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.list({}, { timeout: 5_000 });
|
|
4331
4341
|
* ```
|
|
4332
4342
|
*/
|
|
4333
4343
|
list(params, options) {
|
|
@@ -4348,7 +4358,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4348
4358
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id-poll-results
|
|
4349
4359
|
* @example
|
|
4350
4360
|
* ```ts
|
|
4351
|
-
* const result = await social.community("
|
|
4361
|
+
* const result = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.pollResults("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4352
4362
|
* ```
|
|
4353
4363
|
*/
|
|
4354
4364
|
pollResults(postId, options) {
|
|
@@ -4366,7 +4376,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4366
4376
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-impressions
|
|
4367
4377
|
* @example
|
|
4368
4378
|
* ```ts
|
|
4369
|
-
* await social.community("
|
|
4379
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.recordImpressions({
|
|
4370
4380
|
* post_ids: ["bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb", "cccccccc-cccc-cccc-cccc-cccccccccccc"],
|
|
4371
4381
|
* });
|
|
4372
4382
|
* ```
|
|
@@ -4391,7 +4401,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4391
4401
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-views
|
|
4392
4402
|
* @example
|
|
4393
4403
|
* ```ts
|
|
4394
|
-
* await social.community("
|
|
4404
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.recordView("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
4395
4405
|
* ```
|
|
4396
4406
|
*/
|
|
4397
4407
|
recordView(postId, params, options) {
|
|
@@ -4414,7 +4424,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4414
4424
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-posts-post-id-repost
|
|
4415
4425
|
* @example
|
|
4416
4426
|
* ```ts
|
|
4417
|
-
* const createRepost = await social.community("
|
|
4427
|
+
* const createRepost = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.repost("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
4418
4428
|
* ```
|
|
4419
4429
|
*/
|
|
4420
4430
|
repost(postId, params, options) {
|
|
@@ -4435,7 +4445,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4435
4445
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-posts-post-id
|
|
4436
4446
|
* @example
|
|
4437
4447
|
* ```ts
|
|
4438
|
-
* const post = await social.community("
|
|
4448
|
+
* const post = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4439
4449
|
* ```
|
|
4440
4450
|
*/
|
|
4441
4451
|
retrieve(postId, params, options) {
|
|
@@ -4455,7 +4465,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4455
4465
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-bookmark
|
|
4456
4466
|
* @example
|
|
4457
4467
|
* ```ts
|
|
4458
|
-
* await social.community("
|
|
4468
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.unbookmark("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
4459
4469
|
* ```
|
|
4460
4470
|
*/
|
|
4461
4471
|
unbookmark(postId, params, options) {
|
|
@@ -4475,7 +4485,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4475
4485
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-posts-post-id-repost
|
|
4476
4486
|
* @example
|
|
4477
4487
|
* ```ts
|
|
4478
|
-
* await social.community("
|
|
4488
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.unrepost("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", {});
|
|
4479
4489
|
* ```
|
|
4480
4490
|
*/
|
|
4481
4491
|
unrepost(postId, params, options) {
|
|
@@ -4496,7 +4506,7 @@ var CommunityPostsResource = class extends APIResource {
|
|
|
4496
4506
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-posts-post-id
|
|
4497
4507
|
* @example
|
|
4498
4508
|
* ```ts
|
|
4499
|
-
* const post = await social.community("
|
|
4509
|
+
* const post = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").posts.update("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", { attributes: {} });
|
|
4500
4510
|
* ```
|
|
4501
4511
|
*/
|
|
4502
4512
|
update(postId, params, options) {
|
|
@@ -4519,7 +4529,7 @@ var CommunityRestrictsResource = class extends APIResource {
|
|
|
4519
4529
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-restricts
|
|
4520
4530
|
* @example
|
|
4521
4531
|
* ```ts
|
|
4522
|
-
* const createEdge = await social.community("
|
|
4532
|
+
* 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" });
|
|
4523
4533
|
* ```
|
|
4524
4534
|
*/
|
|
4525
4535
|
create(params, options) {
|
|
@@ -4538,7 +4548,7 @@ var CommunityRestrictsResource = class extends APIResource {
|
|
|
4538
4548
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-restricts-src-actor-id-dst-actor-id
|
|
4539
4549
|
* @example
|
|
4540
4550
|
* ```ts
|
|
4541
|
-
* await social.community("
|
|
4551
|
+
* 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");
|
|
4542
4552
|
* ```
|
|
4543
4553
|
*/
|
|
4544
4554
|
delete(srcActorId, dstActorId, options) {
|
|
@@ -4561,7 +4571,7 @@ var CommunitySearchActorsResource = class extends APIResource {
|
|
|
4561
4571
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-search-actors
|
|
4562
4572
|
* @example
|
|
4563
4573
|
* ```ts
|
|
4564
|
-
* for await (const actor of social.community("
|
|
4574
|
+
* for await (const actor of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").search.actors.list({ q: "onboarding" })) {
|
|
4565
4575
|
* console.log(actor);
|
|
4566
4576
|
* }
|
|
4567
4577
|
* ```
|
|
@@ -4586,7 +4596,7 @@ var CommunitySearchHashtagsResource = class extends APIResource {
|
|
|
4586
4596
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-search-hashtags
|
|
4587
4597
|
* @example
|
|
4588
4598
|
* ```ts
|
|
4589
|
-
* for await (const hashtag of social.community("
|
|
4599
|
+
* for await (const hashtag of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").search.hashtags.list({ q: "onboarding" })) {
|
|
4590
4600
|
* console.log(hashtag);
|
|
4591
4601
|
* }
|
|
4592
4602
|
* ```
|
|
@@ -4611,7 +4621,7 @@ var CommunitySearchPostsResource = class extends APIResource {
|
|
|
4611
4621
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-search-posts
|
|
4612
4622
|
* @example
|
|
4613
4623
|
* ```ts
|
|
4614
|
-
* for await (const post of social.community("
|
|
4624
|
+
* for await (const post of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").search.posts.list({ q: "onboarding" })) {
|
|
4615
4625
|
* console.log(post);
|
|
4616
4626
|
* }
|
|
4617
4627
|
* ```
|
|
@@ -4653,7 +4663,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4653
4663
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-webhooks-endpoints
|
|
4654
4664
|
* @example
|
|
4655
4665
|
* ```ts
|
|
4656
|
-
* const webhookEndpointWithSecret = await social.community("
|
|
4666
|
+
* 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" });
|
|
4657
4667
|
* ```
|
|
4658
4668
|
*/
|
|
4659
4669
|
create(params, options) {
|
|
@@ -4675,7 +4685,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4675
4685
|
* @see https://productcraft.co/docs/social/api-reference#delete-v1-communities-community-id-webhooks-endpoints-endpoint-id
|
|
4676
4686
|
* @example
|
|
4677
4687
|
* ```ts
|
|
4678
|
-
* await social.community("
|
|
4688
|
+
* await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.endpoints.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4679
4689
|
* ```
|
|
4680
4690
|
*/
|
|
4681
4691
|
delete(endpointId, options) {
|
|
@@ -4696,7 +4706,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4696
4706
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-webhooks-endpoints
|
|
4697
4707
|
* @example
|
|
4698
4708
|
* ```ts
|
|
4699
|
-
* for await (const endpoint of social.community("
|
|
4709
|
+
* for await (const endpoint of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.endpoints.list()) {
|
|
4700
4710
|
* console.log(endpoint);
|
|
4701
4711
|
* }
|
|
4702
4712
|
* ```
|
|
@@ -4720,7 +4730,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4720
4730
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-webhooks-endpoints-endpoint-id
|
|
4721
4731
|
* @example
|
|
4722
4732
|
* ```ts
|
|
4723
|
-
* const webhookEndpoint = await social.community("
|
|
4733
|
+
* const webhookEndpoint = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.endpoints.retrieve("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");
|
|
4724
4734
|
* ```
|
|
4725
4735
|
*/
|
|
4726
4736
|
retrieve(endpointId, options) {
|
|
@@ -4744,7 +4754,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4744
4754
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-webhooks-endpoints-endpoint-id-rotate-secret
|
|
4745
4755
|
* @example
|
|
4746
4756
|
* ```ts
|
|
4747
|
-
* const webhookEndpointWithSecret = await social.community("
|
|
4757
|
+
* 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 });
|
|
4748
4758
|
* ```
|
|
4749
4759
|
*/
|
|
4750
4760
|
rotateSecret(endpointId, params, options) {
|
|
@@ -4768,7 +4778,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4768
4778
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-webhooks-endpoints-endpoint-id-test
|
|
4769
4779
|
* @example
|
|
4770
4780
|
* ```ts
|
|
4771
|
-
* const webhookDeliveryAttempt = await social.community("
|
|
4781
|
+
* 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" });
|
|
4772
4782
|
* ```
|
|
4773
4783
|
*/
|
|
4774
4784
|
test(endpointId, params, options) {
|
|
@@ -4793,7 +4803,7 @@ var CommunityWebhooksEndpointsResource = class extends APIResource {
|
|
|
4793
4803
|
* @see https://productcraft.co/docs/social/api-reference#patch-v1-communities-community-id-webhooks-endpoints-endpoint-id
|
|
4794
4804
|
* @example
|
|
4795
4805
|
* ```ts
|
|
4796
|
-
* const webhookEndpoint = await social.community("
|
|
4806
|
+
* 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" });
|
|
4797
4807
|
* ```
|
|
4798
4808
|
*/
|
|
4799
4809
|
update(endpointId, params, options) {
|
|
@@ -4815,7 +4825,7 @@ var CommunityWebhooksEventTypesResource = class extends APIResource {
|
|
|
4815
4825
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-webhooks-event-types
|
|
4816
4826
|
* @example
|
|
4817
4827
|
* ```ts
|
|
4818
|
-
* const listWebhookEventTypes = await social.community("
|
|
4828
|
+
* const listWebhookEventTypes = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.eventTypes.list();
|
|
4819
4829
|
* ```
|
|
4820
4830
|
*/
|
|
4821
4831
|
list(options) {
|
|
@@ -4839,10 +4849,10 @@ var CommunityWebhooksEventsResource = class extends APIResource {
|
|
|
4839
4849
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-webhooks-events
|
|
4840
4850
|
* @example
|
|
4841
4851
|
* ```ts
|
|
4842
|
-
* for await (const event of social.community("
|
|
4852
|
+
* for await (const event of social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.events.list()) {
|
|
4843
4853
|
* console.log(event);
|
|
4844
4854
|
* }
|
|
4845
|
-
* const page = await social.community("
|
|
4855
|
+
* const page = await social.community("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f").as("7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d").webhooks.events.list({}, { timeout: 5_000 });
|
|
4846
4856
|
* ```
|
|
4847
4857
|
*/
|
|
4848
4858
|
list(params, options) {
|
|
@@ -4866,7 +4876,7 @@ var CommunityWebhooksEventsResource = class extends APIResource {
|
|
|
4866
4876
|
* @see https://productcraft.co/docs/social/api-reference#post-v1-communities-community-id-webhooks-events-event-id-replay
|
|
4867
4877
|
* @example
|
|
4868
4878
|
* ```ts
|
|
4869
|
-
* const replayWebhookEvent = await social.community("
|
|
4879
|
+
* 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");
|
|
4870
4880
|
* ```
|
|
4871
4881
|
*/
|
|
4872
4882
|
replay(eventId, params, options) {
|
|
@@ -4888,7 +4898,7 @@ var CommunityWebhooksEventsResource = class extends APIResource {
|
|
|
4888
4898
|
* @see https://productcraft.co/docs/social/api-reference#get-v1-communities-community-id-webhooks-events-event-id
|
|
4889
4899
|
* @example
|
|
4890
4900
|
* ```ts
|
|
4891
|
-
* const webhookEventDetail = await social.community("
|
|
4901
|
+
* 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");
|
|
4892
4902
|
* ```
|
|
4893
4903
|
*/
|
|
4894
4904
|
retrieve(eventId, options) {
|
|
@@ -5046,7 +5056,7 @@ var WebhookEventStatus = { values: ["pending", "delivered", "failed", "not_sent"
|
|
|
5046
5056
|
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"] };
|
|
5047
5057
|
|
|
5048
5058
|
// src/_generated/client.ts
|
|
5049
|
-
var VERSION = "1.
|
|
5059
|
+
var VERSION = "1.2.0" ;
|
|
5050
5060
|
var Social = class extends SocialResources {
|
|
5051
5061
|
#openapi;
|
|
5052
5062
|
constructor(options = {}) {
|