@tangle-network/agent-integrations 0.53.45 → 0.53.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalog.js +4 -4
- package/dist/{chunk-GSAD45W7.js → chunk-AGXTCR34.js} +306 -309
- package/dist/{chunk-GSAD45W7.js.map → chunk-AGXTCR34.js.map} +1 -1
- package/dist/{chunk-C6GOX5GZ.js → chunk-C7SE5X44.js} +4 -4
- package/dist/{chunk-HXUURUQ7.js → chunk-DHF5EXLO.js} +2 -2
- package/dist/{chunk-CWZWP7WN.js → chunk-U36WHHML.js} +2 -2
- package/dist/connectors/adapters/index.d.ts +6 -1
- package/dist/connectors/adapters/index.js +3 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +4 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -4
- package/dist/mcp.js +4 -4
- package/dist/registry.js +4 -4
- package/dist/runtime.js +4 -4
- package/dist/specs.js +3 -3
- package/docs/integration-execution-audit.md +4 -4
- package/package.json +1 -1
- /package/dist/{chunk-C6GOX5GZ.js.map → chunk-C7SE5X44.js.map} +0 -0
- /package/dist/{chunk-HXUURUQ7.js.map → chunk-DHF5EXLO.js.map} +0 -0
- /package/dist/{chunk-CWZWP7WN.js.map → chunk-U36WHHML.js.map} +0 -0
|
@@ -182,6 +182,7 @@ __export(adapters_exports, {
|
|
|
182
182
|
copyAiConnector: () => copyAiConnector,
|
|
183
183
|
couchbaseConnector: () => couchbaseConnector,
|
|
184
184
|
createKafkaConnector: () => createKafkaConnector,
|
|
185
|
+
createLinkedinConnector: () => createLinkedinConnector,
|
|
185
186
|
createMongoDbConnector: () => createMongoDbConnector,
|
|
186
187
|
createMySqlConnector: () => createMySqlConnector,
|
|
187
188
|
createPostgresConnector: () => createPostgresConnector,
|
|
@@ -26816,19 +26817,6 @@ var calendlyConnector = declarativeRestConnector({
|
|
|
26816
26817
|
},
|
|
26817
26818
|
cas: "native-idempotency"
|
|
26818
26819
|
},
|
|
26819
|
-
{
|
|
26820
|
-
name: "scheduling-links.delete",
|
|
26821
|
-
class: "mutation",
|
|
26822
|
-
description: "Delete a single-use scheduling link by uuid.",
|
|
26823
|
-
parameters: {
|
|
26824
|
-
type: "object",
|
|
26825
|
-
properties: { uuid: { type: "string" } },
|
|
26826
|
-
required: ["uuid"]
|
|
26827
|
-
},
|
|
26828
|
-
request: { method: "DELETE", path: "/scheduling_links/{uuid}" },
|
|
26829
|
-
cas: "native-idempotency",
|
|
26830
|
-
externalEffect: true
|
|
26831
|
-
},
|
|
26832
26820
|
{
|
|
26833
26821
|
name: "webhooks.create",
|
|
26834
26822
|
class: "mutation",
|
|
@@ -48407,327 +48395,335 @@ var linearConnector = declarativeRestConnector({
|
|
|
48407
48395
|
});
|
|
48408
48396
|
|
|
48409
48397
|
// src/connectors/adapters/linkedin.ts
|
|
48410
|
-
var
|
|
48411
|
-
|
|
48412
|
-
|
|
48413
|
-
|
|
48414
|
-
|
|
48415
|
-
|
|
48416
|
-
|
|
48417
|
-
|
|
48418
|
-
|
|
48419
|
-
|
|
48420
|
-
|
|
48421
|
-
|
|
48422
|
-
|
|
48423
|
-
|
|
48424
|
-
|
|
48425
|
-
"
|
|
48426
|
-
|
|
48427
|
-
|
|
48428
|
-
|
|
48429
|
-
|
|
48430
|
-
|
|
48431
|
-
defaultConsistencyModel: "advisory",
|
|
48432
|
-
baseUrl: "https://api.linkedin.com",
|
|
48433
|
-
defaultHeaders: {
|
|
48434
|
-
"LinkedIn-Version": "202405",
|
|
48435
|
-
"X-Restli-Protocol-Version": "2.0.0"
|
|
48436
|
-
},
|
|
48437
|
-
test: { method: "GET", path: "/v2/userinfo" },
|
|
48438
|
-
capabilities: [
|
|
48439
|
-
{
|
|
48440
|
-
name: "userinfo",
|
|
48441
|
-
class: "read",
|
|
48442
|
-
description: "Return the OpenID-Connect userinfo for the connected LinkedIn member (sub, name, given_name, family_name, picture, email, email_verified, locale).",
|
|
48443
|
-
parameters: { type: "object", properties: {} },
|
|
48444
|
-
request: { method: "GET", path: "/v2/userinfo" },
|
|
48445
|
-
requiredScopes: ["openid", "profile"]
|
|
48398
|
+
var MEMBER_SCOPES = ["openid", "profile", "email", "w_member_social"];
|
|
48399
|
+
var ORGANIZATION_SCOPES = [
|
|
48400
|
+
"r_organization_social",
|
|
48401
|
+
"w_organization_social",
|
|
48402
|
+
"rw_organization_admin"
|
|
48403
|
+
];
|
|
48404
|
+
var ORGANIZATION_SCOPE_SET = new Set(ORGANIZATION_SCOPES);
|
|
48405
|
+
function createLinkedinConnector(options = {}) {
|
|
48406
|
+
const organizationAccess = options.organizationAccess === true;
|
|
48407
|
+
const postScope = organizationAccess ? "w_organization_social" : "w_member_social";
|
|
48408
|
+
return declarativeRestConnector({
|
|
48409
|
+
kind: "linkedin",
|
|
48410
|
+
displayName: "LinkedIn",
|
|
48411
|
+
description: organizationAccess ? "Read the connected LinkedIn member profile and administered organizations, and create / read / delete organization posts and comments via the LinkedIn REST API." : "Read the connected LinkedIn member profile and create / delete member posts and comments via the LinkedIn REST API.",
|
|
48412
|
+
auth: {
|
|
48413
|
+
kind: "oauth2",
|
|
48414
|
+
authorizationUrl: "https://www.linkedin.com/oauth/v2/authorization",
|
|
48415
|
+
tokenUrl: "https://www.linkedin.com/oauth/v2/accessToken",
|
|
48416
|
+
scopes: organizationAccess ? [...MEMBER_SCOPES, ...ORGANIZATION_SCOPES] : [...MEMBER_SCOPES],
|
|
48417
|
+
clientIdEnv: "LINKEDIN_OAUTH_CLIENT_ID",
|
|
48418
|
+
clientSecretEnv: "LINKEDIN_OAUTH_CLIENT_SECRET"
|
|
48446
48419
|
},
|
|
48447
|
-
|
|
48448
|
-
|
|
48449
|
-
|
|
48450
|
-
|
|
48451
|
-
|
|
48452
|
-
|
|
48453
|
-
properties: { organizationId: { type: "string" } },
|
|
48454
|
-
required: ["organizationId"]
|
|
48455
|
-
},
|
|
48456
|
-
request: { method: "GET", path: "/v2/organizations/{organizationId}" },
|
|
48457
|
-
requiredScopes: ["r_organization_social"]
|
|
48420
|
+
category: "comms",
|
|
48421
|
+
defaultConsistencyModel: "advisory",
|
|
48422
|
+
baseUrl: "https://api.linkedin.com",
|
|
48423
|
+
defaultHeaders: {
|
|
48424
|
+
"LinkedIn-Version": "202405",
|
|
48425
|
+
"X-Restli-Protocol-Version": "2.0.0"
|
|
48458
48426
|
},
|
|
48459
|
-
{
|
|
48460
|
-
|
|
48461
|
-
|
|
48462
|
-
|
|
48463
|
-
|
|
48464
|
-
|
|
48465
|
-
properties: {
|
|
48466
|
-
|
|
48467
|
-
|
|
48468
|
-
enum: ["ADMINISTRATOR", "DIRECT_SPONSORED_CONTENT_POSTER", "RECRUITING_POSTER"],
|
|
48469
|
-
default: "ADMINISTRATOR"
|
|
48470
|
-
},
|
|
48471
|
-
state: {
|
|
48472
|
-
type: "string",
|
|
48473
|
-
enum: ["APPROVED", "REQUESTED", "REJECTED", "REVOKED"],
|
|
48474
|
-
default: "APPROVED"
|
|
48475
|
-
},
|
|
48476
|
-
count: { type: "integer", minimum: 1, maximum: 100, default: 100 },
|
|
48477
|
-
start: { type: "integer", minimum: 0, default: 0 }
|
|
48478
|
-
}
|
|
48479
|
-
},
|
|
48480
|
-
request: {
|
|
48481
|
-
method: "GET",
|
|
48482
|
-
path: "/v2/organizationAcls",
|
|
48483
|
-
query: {
|
|
48484
|
-
q: "roleAssignee",
|
|
48485
|
-
role: "{role}",
|
|
48486
|
-
state: "{state}",
|
|
48487
|
-
count: "{count}",
|
|
48488
|
-
start: "{start}"
|
|
48489
|
-
}
|
|
48427
|
+
test: { method: "GET", path: "/v2/userinfo" },
|
|
48428
|
+
capabilities: [
|
|
48429
|
+
{
|
|
48430
|
+
name: "userinfo",
|
|
48431
|
+
class: "read",
|
|
48432
|
+
description: "Return the OpenID-Connect userinfo for the connected LinkedIn member (sub, name, given_name, family_name, picture, email, email_verified, locale).",
|
|
48433
|
+
parameters: { type: "object", properties: {} },
|
|
48434
|
+
request: { method: "GET", path: "/v2/userinfo" },
|
|
48435
|
+
requiredScopes: ["openid", "profile", "email"]
|
|
48490
48436
|
},
|
|
48491
|
-
|
|
48492
|
-
|
|
48493
|
-
|
|
48494
|
-
|
|
48495
|
-
|
|
48496
|
-
|
|
48497
|
-
|
|
48498
|
-
|
|
48499
|
-
properties: {
|
|
48500
|
-
author: {
|
|
48501
|
-
type: "string",
|
|
48502
|
-
description: "URN of the post author (urn:li:person:{sub} or urn:li:organization:{id})."
|
|
48503
|
-
},
|
|
48504
|
-
commentary: { type: "string", description: "Post text body." },
|
|
48505
|
-
visibility: {
|
|
48506
|
-
type: "string",
|
|
48507
|
-
enum: ["PUBLIC", "CONNECTIONS", "LOGGED_IN", "CONTAINER"],
|
|
48508
|
-
default: "PUBLIC"
|
|
48509
|
-
},
|
|
48510
|
-
distribution: {
|
|
48511
|
-
type: "object",
|
|
48512
|
-
description: 'Distribution policy. Defaults to { feedDistribution: "MAIN_FEED", targetEntities: [], thirdPartyDistributionChannels: [] }.'
|
|
48513
|
-
},
|
|
48514
|
-
content: {
|
|
48515
|
-
type: "object",
|
|
48516
|
-
description: "Optional rich-media content block ({ article: {...} } | { media: {...} } | { multiImage: {...} } | { poll: {...} } | { carousel: {...} })."
|
|
48517
|
-
},
|
|
48518
|
-
lifecycleState: {
|
|
48519
|
-
type: "string",
|
|
48520
|
-
enum: ["PUBLISHED", "DRAFT"],
|
|
48521
|
-
default: "PUBLISHED"
|
|
48522
|
-
},
|
|
48523
|
-
isReshareDisabledByAuthor: { type: "boolean", default: false }
|
|
48437
|
+
{
|
|
48438
|
+
name: "organizations.get",
|
|
48439
|
+
class: "read",
|
|
48440
|
+
description: "Read a single LinkedIn organization (company page) by numeric id. The connected member must be an administrator of the organization.",
|
|
48441
|
+
parameters: {
|
|
48442
|
+
type: "object",
|
|
48443
|
+
properties: { organizationId: { type: "string" } },
|
|
48444
|
+
required: ["organizationId"]
|
|
48524
48445
|
},
|
|
48525
|
-
|
|
48446
|
+
request: { method: "GET", path: "/v2/organizations/{organizationId}" },
|
|
48447
|
+
requiredScopes: ["r_organization_social"]
|
|
48526
48448
|
},
|
|
48527
|
-
|
|
48528
|
-
|
|
48529
|
-
|
|
48530
|
-
|
|
48531
|
-
|
|
48532
|
-
|
|
48533
|
-
|
|
48534
|
-
|
|
48535
|
-
|
|
48536
|
-
|
|
48537
|
-
|
|
48538
|
-
|
|
48539
|
-
|
|
48540
|
-
|
|
48541
|
-
|
|
48542
|
-
|
|
48543
|
-
|
|
48544
|
-
|
|
48545
|
-
|
|
48546
|
-
|
|
48547
|
-
|
|
48548
|
-
|
|
48549
|
-
|
|
48550
|
-
|
|
48551
|
-
|
|
48552
|
-
|
|
48553
|
-
|
|
48449
|
+
{
|
|
48450
|
+
name: "organizations.acls.list",
|
|
48451
|
+
class: "read",
|
|
48452
|
+
description: "List the organizations (and roles) for which the connected member has an ACL \u2014 i.e. the company pages they can read or post on behalf of.",
|
|
48453
|
+
parameters: {
|
|
48454
|
+
type: "object",
|
|
48455
|
+
properties: {
|
|
48456
|
+
role: {
|
|
48457
|
+
type: "string",
|
|
48458
|
+
enum: ["ADMINISTRATOR", "DIRECT_SPONSORED_CONTENT_POSTER", "RECRUITING_POSTER"],
|
|
48459
|
+
default: "ADMINISTRATOR"
|
|
48460
|
+
},
|
|
48461
|
+
state: {
|
|
48462
|
+
type: "string",
|
|
48463
|
+
enum: ["APPROVED", "REQUESTED", "REJECTED", "REVOKED"],
|
|
48464
|
+
default: "APPROVED"
|
|
48465
|
+
},
|
|
48466
|
+
count: { type: "integer", minimum: 1, maximum: 100, default: 100 },
|
|
48467
|
+
start: { type: "integer", minimum: 0, default: 0 }
|
|
48468
|
+
}
|
|
48469
|
+
},
|
|
48470
|
+
request: {
|
|
48471
|
+
method: "GET",
|
|
48472
|
+
path: "/v2/organizationAcls",
|
|
48473
|
+
query: {
|
|
48474
|
+
q: "roleAssignee",
|
|
48475
|
+
role: "{role}",
|
|
48476
|
+
state: "{state}",
|
|
48477
|
+
count: "{count}",
|
|
48478
|
+
start: "{start}"
|
|
48554
48479
|
}
|
|
48555
48480
|
},
|
|
48556
|
-
|
|
48481
|
+
requiredScopes: ["r_organization_social", "rw_organization_admin"]
|
|
48557
48482
|
},
|
|
48558
|
-
|
|
48559
|
-
|
|
48560
|
-
|
|
48561
|
-
|
|
48562
|
-
|
|
48563
|
-
|
|
48564
|
-
|
|
48565
|
-
|
|
48566
|
-
|
|
48567
|
-
|
|
48568
|
-
|
|
48569
|
-
type: "string",
|
|
48570
|
-
|
|
48483
|
+
{
|
|
48484
|
+
name: "posts.create",
|
|
48485
|
+
class: "mutation",
|
|
48486
|
+
description: organizationAccess ? "Create a LinkedIn organization post on the REST Posts API. `author` is an organization URN (e.g. `urn:li:organization:{id}`). `commentary` is the post text; `distribution.feedDistribution` defaults to `MAIN_FEED`; `lifecycleState` defaults to `PUBLISHED`. Append-only \u2014 caller owns dedupe via idempotencyKey." : "Create a LinkedIn member post on the REST Posts API. `author` is the connected member URN (e.g. `urn:li:person:{sub}`). `commentary` is the post text; `distribution.feedDistribution` defaults to `MAIN_FEED`; `lifecycleState` defaults to `PUBLISHED`. Append-only \u2014 caller owns dedupe via idempotencyKey.",
|
|
48487
|
+
parameters: {
|
|
48488
|
+
type: "object",
|
|
48489
|
+
properties: {
|
|
48490
|
+
author: {
|
|
48491
|
+
type: "string",
|
|
48492
|
+
description: organizationAccess ? "URN of the organization post author (urn:li:organization:{id})." : "URN of the connected member post author (urn:li:person:{sub})."
|
|
48493
|
+
},
|
|
48494
|
+
commentary: { type: "string", description: "Post text body." },
|
|
48495
|
+
visibility: {
|
|
48496
|
+
type: "string",
|
|
48497
|
+
enum: ["PUBLIC", "CONNECTIONS", "LOGGED_IN", "CONTAINER"],
|
|
48498
|
+
default: "PUBLIC"
|
|
48499
|
+
},
|
|
48500
|
+
distribution: {
|
|
48501
|
+
type: "object",
|
|
48502
|
+
description: 'Distribution policy. Defaults to { feedDistribution: "MAIN_FEED", targetEntities: [], thirdPartyDistributionChannels: [] }.'
|
|
48503
|
+
},
|
|
48504
|
+
content: {
|
|
48505
|
+
type: "object",
|
|
48506
|
+
description: "Optional rich-media content block ({ article: {...} } | { media: {...} } | { multiImage: {...} } | { poll: {...} } | { carousel: {...} })."
|
|
48507
|
+
},
|
|
48508
|
+
lifecycleState: {
|
|
48509
|
+
type: "string",
|
|
48510
|
+
enum: ["PUBLISHED", "DRAFT"],
|
|
48511
|
+
default: "PUBLISHED"
|
|
48512
|
+
},
|
|
48513
|
+
isReshareDisabledByAuthor: { type: "boolean", default: false }
|
|
48571
48514
|
},
|
|
48572
|
-
|
|
48573
|
-
|
|
48574
|
-
|
|
48575
|
-
|
|
48576
|
-
|
|
48577
|
-
|
|
48515
|
+
required: ["author", "commentary"]
|
|
48516
|
+
},
|
|
48517
|
+
request: {
|
|
48518
|
+
method: "POST",
|
|
48519
|
+
path: "/rest/posts",
|
|
48520
|
+
body: {
|
|
48521
|
+
author: "{author}",
|
|
48522
|
+
commentary: "{commentary}",
|
|
48523
|
+
visibility: "{visibility}",
|
|
48524
|
+
distribution: "{distribution}",
|
|
48525
|
+
content: "{content}",
|
|
48526
|
+
lifecycleState: "{lifecycleState}",
|
|
48527
|
+
isReshareDisabledByAuthor: "{isReshareDisabledByAuthor}"
|
|
48578
48528
|
}
|
|
48579
48529
|
},
|
|
48580
|
-
|
|
48581
|
-
|
|
48582
|
-
|
|
48583
|
-
method: "GET",
|
|
48584
|
-
path: "/rest/posts",
|
|
48585
|
-
query: {
|
|
48586
|
-
q: "author",
|
|
48587
|
-
author: "{author}",
|
|
48588
|
-
count: "{count}",
|
|
48589
|
-
start: "{start}",
|
|
48590
|
-
sortBy: "{sortBy}"
|
|
48591
|
-
}
|
|
48530
|
+
cas: "none",
|
|
48531
|
+
externalEffect: true,
|
|
48532
|
+
requiredScopes: [postScope]
|
|
48592
48533
|
},
|
|
48593
|
-
|
|
48594
|
-
|
|
48595
|
-
|
|
48596
|
-
|
|
48597
|
-
|
|
48598
|
-
|
|
48599
|
-
|
|
48600
|
-
|
|
48601
|
-
|
|
48602
|
-
|
|
48534
|
+
{
|
|
48535
|
+
name: "posts.get",
|
|
48536
|
+
class: "read",
|
|
48537
|
+
description: "Read a single post by its URN (e.g. `urn:li:share:1234567890` or `urn:li:ugcPost:1234567890`). The URN must be URL-encoded by the caller.",
|
|
48538
|
+
parameters: {
|
|
48539
|
+
type: "object",
|
|
48540
|
+
properties: {
|
|
48541
|
+
postUrn: {
|
|
48542
|
+
type: "string",
|
|
48543
|
+
description: "URL-encoded URN of the post (urn:li:share:* or urn:li:ugcPost:*)."
|
|
48544
|
+
}
|
|
48545
|
+
},
|
|
48546
|
+
required: ["postUrn"]
|
|
48603
48547
|
},
|
|
48604
|
-
|
|
48548
|
+
request: { method: "GET", path: "/rest/posts/{postUrn}" },
|
|
48549
|
+
requiredScopes: ["r_organization_social"]
|
|
48605
48550
|
},
|
|
48606
|
-
|
|
48607
|
-
|
|
48608
|
-
|
|
48609
|
-
|
|
48610
|
-
|
|
48611
|
-
|
|
48612
|
-
|
|
48613
|
-
|
|
48614
|
-
|
|
48615
|
-
|
|
48616
|
-
|
|
48617
|
-
|
|
48618
|
-
|
|
48619
|
-
|
|
48620
|
-
|
|
48551
|
+
{
|
|
48552
|
+
name: "posts.list.byAuthor",
|
|
48553
|
+
class: "read",
|
|
48554
|
+
description: "List posts authored by a given URN (member or organization). Uses the Posts API finder `q=author`.",
|
|
48555
|
+
parameters: {
|
|
48556
|
+
type: "object",
|
|
48557
|
+
properties: {
|
|
48558
|
+
author: {
|
|
48559
|
+
type: "string",
|
|
48560
|
+
description: "URN of the author to list posts for."
|
|
48561
|
+
},
|
|
48562
|
+
count: { type: "integer", minimum: 1, maximum: 100, default: 20 },
|
|
48563
|
+
start: { type: "integer", minimum: 0, default: 0 },
|
|
48564
|
+
sortBy: {
|
|
48565
|
+
type: "string",
|
|
48566
|
+
enum: ["CREATED", "LAST_MODIFIED"],
|
|
48567
|
+
default: "CREATED"
|
|
48568
|
+
}
|
|
48569
|
+
},
|
|
48570
|
+
required: ["author"]
|
|
48621
48571
|
},
|
|
48622
|
-
|
|
48623
|
-
|
|
48624
|
-
|
|
48625
|
-
|
|
48626
|
-
|
|
48627
|
-
|
|
48572
|
+
request: {
|
|
48573
|
+
method: "GET",
|
|
48574
|
+
path: "/rest/posts",
|
|
48575
|
+
query: {
|
|
48576
|
+
q: "author",
|
|
48577
|
+
author: "{author}",
|
|
48578
|
+
count: "{count}",
|
|
48579
|
+
start: "{start}",
|
|
48580
|
+
sortBy: "{sortBy}"
|
|
48581
|
+
}
|
|
48582
|
+
},
|
|
48583
|
+
requiredScopes: ["r_organization_social"]
|
|
48628
48584
|
},
|
|
48629
|
-
|
|
48630
|
-
|
|
48631
|
-
|
|
48632
|
-
|
|
48633
|
-
|
|
48634
|
-
|
|
48635
|
-
|
|
48636
|
-
|
|
48637
|
-
properties: {
|
|
48638
|
-
shareUrn: {
|
|
48639
|
-
type: "string",
|
|
48640
|
-
description: "URL-encoded URN of the parent share (urn:li:share:* or urn:li:ugcPost:*)."
|
|
48585
|
+
{
|
|
48586
|
+
name: "posts.delete",
|
|
48587
|
+
class: "mutation",
|
|
48588
|
+
description: "Delete a post by its URL-encoded URN. Idempotent on the URN \u2014 replays after success return 404 and the engine maps that to a no-op.",
|
|
48589
|
+
parameters: {
|
|
48590
|
+
type: "object",
|
|
48591
|
+
properties: {
|
|
48592
|
+
postUrn: { type: "string" }
|
|
48641
48593
|
},
|
|
48642
|
-
|
|
48643
|
-
|
|
48644
|
-
|
|
48594
|
+
required: ["postUrn"]
|
|
48595
|
+
},
|
|
48596
|
+
request: { method: "DELETE", path: "/rest/posts/{postUrn}" },
|
|
48597
|
+
cas: "native-idempotency",
|
|
48598
|
+
externalEffect: true,
|
|
48599
|
+
requiredScopes: [postScope]
|
|
48600
|
+
},
|
|
48601
|
+
{
|
|
48602
|
+
name: "comments.list",
|
|
48603
|
+
class: "read",
|
|
48604
|
+
description: "List comments on a share / post. `shareUrn` is the URL-encoded URN of the parent share (urn:li:share:* or urn:li:ugcPost:*).",
|
|
48605
|
+
parameters: {
|
|
48606
|
+
type: "object",
|
|
48607
|
+
properties: {
|
|
48608
|
+
shareUrn: { type: "string" },
|
|
48609
|
+
count: { type: "integer", minimum: 1, maximum: 100, default: 50 },
|
|
48610
|
+
start: { type: "integer", minimum: 0, default: 0 }
|
|
48645
48611
|
},
|
|
48646
|
-
|
|
48647
|
-
|
|
48648
|
-
|
|
48612
|
+
required: ["shareUrn"]
|
|
48613
|
+
},
|
|
48614
|
+
request: {
|
|
48615
|
+
method: "GET",
|
|
48616
|
+
path: "/rest/socialActions/{shareUrn}/comments",
|
|
48617
|
+
query: { count: "{count}", start: "{start}" }
|
|
48618
|
+
},
|
|
48619
|
+
requiredScopes: ["r_organization_social"]
|
|
48620
|
+
},
|
|
48621
|
+
{
|
|
48622
|
+
name: "comments.create",
|
|
48623
|
+
class: "mutation",
|
|
48624
|
+
description: organizationAccess ? "Create a top-level comment on an organization share / post. `actor` is the organization URN posting the comment; `message.text` is the comment text. Append-only \u2014 caller owns dedupe via idempotencyKey." : "Create a top-level comment on a share / post as the connected member. `actor` is the member URN posting the comment; `message.text` is the comment text. Append-only \u2014 caller owns dedupe via idempotencyKey.",
|
|
48625
|
+
parameters: {
|
|
48626
|
+
type: "object",
|
|
48627
|
+
properties: {
|
|
48628
|
+
shareUrn: {
|
|
48629
|
+
type: "string",
|
|
48630
|
+
description: "URL-encoded URN of the parent share (urn:li:share:* or urn:li:ugcPost:*)."
|
|
48631
|
+
},
|
|
48632
|
+
actor: {
|
|
48633
|
+
type: "string",
|
|
48634
|
+
description: organizationAccess ? "URN of the commenting organization." : "URN of the commenting member."
|
|
48635
|
+
},
|
|
48636
|
+
message: {
|
|
48637
|
+
type: "object",
|
|
48638
|
+
description: "Comment body `{ text: string, attributes?: [...] }`."
|
|
48639
|
+
},
|
|
48640
|
+
parentComment: {
|
|
48641
|
+
type: "string",
|
|
48642
|
+
description: "Optional URN of a parent comment for threaded replies."
|
|
48643
|
+
}
|
|
48649
48644
|
},
|
|
48650
|
-
|
|
48651
|
-
|
|
48652
|
-
|
|
48645
|
+
required: ["shareUrn", "actor", "message"]
|
|
48646
|
+
},
|
|
48647
|
+
request: {
|
|
48648
|
+
method: "POST",
|
|
48649
|
+
path: "/rest/socialActions/{shareUrn}/comments",
|
|
48650
|
+
body: {
|
|
48651
|
+
actor: "{actor}",
|
|
48652
|
+
object: "{shareUrn}",
|
|
48653
|
+
message: "{message}",
|
|
48654
|
+
parentComment: "{parentComment}"
|
|
48653
48655
|
}
|
|
48654
48656
|
},
|
|
48655
|
-
|
|
48656
|
-
|
|
48657
|
-
|
|
48658
|
-
method: "POST",
|
|
48659
|
-
path: "/rest/socialActions/{shareUrn}/comments",
|
|
48660
|
-
body: {
|
|
48661
|
-
actor: "{actor}",
|
|
48662
|
-
object: "{shareUrn}",
|
|
48663
|
-
message: "{message}",
|
|
48664
|
-
parentComment: "{parentComment}"
|
|
48665
|
-
}
|
|
48657
|
+
cas: "none",
|
|
48658
|
+
externalEffect: true,
|
|
48659
|
+
requiredScopes: [postScope]
|
|
48666
48660
|
},
|
|
48667
|
-
|
|
48668
|
-
|
|
48669
|
-
|
|
48670
|
-
|
|
48671
|
-
|
|
48672
|
-
|
|
48673
|
-
|
|
48674
|
-
|
|
48675
|
-
|
|
48676
|
-
|
|
48677
|
-
|
|
48678
|
-
|
|
48679
|
-
|
|
48680
|
-
actor: { type: "string" },
|
|
48681
|
-
message: { type: "object" }
|
|
48661
|
+
{
|
|
48662
|
+
name: "comments.update",
|
|
48663
|
+
class: "mutation",
|
|
48664
|
+
description: "Edit the text of an existing comment by its URN. Only the original comment actor can edit. Verified via read-after-write because LinkedIn returns no ETag.",
|
|
48665
|
+
parameters: {
|
|
48666
|
+
type: "object",
|
|
48667
|
+
properties: {
|
|
48668
|
+
shareUrn: { type: "string" },
|
|
48669
|
+
commentUrn: { type: "string", description: "URL-encoded URN of the comment to update." },
|
|
48670
|
+
actor: { type: "string" },
|
|
48671
|
+
message: { type: "object" }
|
|
48672
|
+
},
|
|
48673
|
+
required: ["shareUrn", "commentUrn", "actor", "message"]
|
|
48682
48674
|
},
|
|
48683
|
-
|
|
48684
|
-
|
|
48685
|
-
|
|
48686
|
-
|
|
48687
|
-
|
|
48688
|
-
headers: { "X-RestLi-Method": "PARTIAL_UPDATE" },
|
|
48689
|
-
body: { actor: "{actor}", message: "{message}" }
|
|
48690
|
-
},
|
|
48691
|
-
cas: "optimistic-read-verify",
|
|
48692
|
-
externalEffect: true,
|
|
48693
|
-
requiredScopes: ["w_member_social"]
|
|
48694
|
-
},
|
|
48695
|
-
{
|
|
48696
|
-
name: "comments.delete",
|
|
48697
|
-
class: "mutation",
|
|
48698
|
-
description: "Delete a comment by URN. `actor` must be the comment author. Idempotent on the URN.",
|
|
48699
|
-
parameters: {
|
|
48700
|
-
type: "object",
|
|
48701
|
-
properties: {
|
|
48702
|
-
shareUrn: { type: "string" },
|
|
48703
|
-
commentUrn: { type: "string" },
|
|
48704
|
-
actor: { type: "string" }
|
|
48675
|
+
request: {
|
|
48676
|
+
method: "POST",
|
|
48677
|
+
path: "/rest/socialActions/{shareUrn}/comments/{commentUrn}",
|
|
48678
|
+
headers: { "X-RestLi-Method": "PARTIAL_UPDATE" },
|
|
48679
|
+
body: { actor: "{actor}", message: "{message}" }
|
|
48705
48680
|
},
|
|
48706
|
-
|
|
48707
|
-
|
|
48708
|
-
|
|
48709
|
-
method: "DELETE",
|
|
48710
|
-
path: "/rest/socialActions/{shareUrn}/comments/{commentUrn}",
|
|
48711
|
-
query: { actor: "{actor}" }
|
|
48681
|
+
cas: "optimistic-read-verify",
|
|
48682
|
+
externalEffect: true,
|
|
48683
|
+
requiredScopes: [postScope]
|
|
48712
48684
|
},
|
|
48713
|
-
|
|
48714
|
-
|
|
48715
|
-
|
|
48716
|
-
|
|
48717
|
-
|
|
48718
|
-
|
|
48719
|
-
|
|
48720
|
-
|
|
48721
|
-
|
|
48722
|
-
|
|
48723
|
-
|
|
48724
|
-
|
|
48685
|
+
{
|
|
48686
|
+
name: "comments.delete",
|
|
48687
|
+
class: "mutation",
|
|
48688
|
+
description: "Delete a comment by URN. `actor` must be the comment author. Idempotent on the URN.",
|
|
48689
|
+
parameters: {
|
|
48690
|
+
type: "object",
|
|
48691
|
+
properties: {
|
|
48692
|
+
shareUrn: { type: "string" },
|
|
48693
|
+
commentUrn: { type: "string" },
|
|
48694
|
+
actor: { type: "string" }
|
|
48695
|
+
},
|
|
48696
|
+
required: ["shareUrn", "commentUrn", "actor"]
|
|
48697
|
+
},
|
|
48698
|
+
request: {
|
|
48699
|
+
method: "DELETE",
|
|
48700
|
+
path: "/rest/socialActions/{shareUrn}/comments/{commentUrn}",
|
|
48701
|
+
query: { actor: "{actor}" }
|
|
48702
|
+
},
|
|
48703
|
+
cas: "native-idempotency",
|
|
48704
|
+
externalEffect: true,
|
|
48705
|
+
requiredScopes: [postScope]
|
|
48725
48706
|
},
|
|
48726
|
-
|
|
48727
|
-
|
|
48728
|
-
|
|
48729
|
-
|
|
48730
|
-
|
|
48707
|
+
{
|
|
48708
|
+
name: "socialActions.get",
|
|
48709
|
+
class: "read",
|
|
48710
|
+
description: "Read the aggregate social-action counts (likes, comments) for a share / post URN.",
|
|
48711
|
+
parameters: {
|
|
48712
|
+
type: "object",
|
|
48713
|
+
properties: { shareUrn: { type: "string" } },
|
|
48714
|
+
required: ["shareUrn"]
|
|
48715
|
+
},
|
|
48716
|
+
request: { method: "GET", path: "/rest/socialActions/{shareUrn}" },
|
|
48717
|
+
requiredScopes: ["r_organization_social"]
|
|
48718
|
+
}
|
|
48719
|
+
].filter(
|
|
48720
|
+
// Organization-gated capabilities are not part of the self-serve grant.
|
|
48721
|
+
// Keep them absent from the default manifest so discovery cannot advertise them.
|
|
48722
|
+
({ requiredScopes }) => organizationAccess || !(requiredScopes ?? []).some((scope) => ORGANIZATION_SCOPE_SET.has(scope))
|
|
48723
|
+
)
|
|
48724
|
+
});
|
|
48725
|
+
}
|
|
48726
|
+
var linkedinConnector = createLinkedinConnector();
|
|
48731
48727
|
|
|
48732
48728
|
// src/connectors/adapters/make.ts
|
|
48733
48729
|
var makeConnector = declarativeRestConnector({
|
|
@@ -146655,6 +146651,7 @@ export {
|
|
|
146655
146651
|
leadConnectorConnector,
|
|
146656
146652
|
lemonSqueezyConnector,
|
|
146657
146653
|
linearConnector,
|
|
146654
|
+
createLinkedinConnector,
|
|
146658
146655
|
linkedinConnector,
|
|
146659
146656
|
makeConnector,
|
|
146660
146657
|
microsoft365PeopleConnector,
|
|
@@ -147113,4 +147110,4 @@ export {
|
|
|
147113
147110
|
getresponseConnector,
|
|
147114
147111
|
adapters_exports
|
|
147115
147112
|
};
|
|
147116
|
-
//# sourceMappingURL=chunk-
|
|
147113
|
+
//# sourceMappingURL=chunk-AGXTCR34.js.map
|