@pubnio/sdk 0.2.11 → 0.2.13
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/index.cjs +29 -1
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +29 -1
- package/dist/internal.cjs +29 -1
- package/dist/internal.d.cts +83 -2
- package/dist/internal.d.ts +83 -2
- package/dist/internal.js +29 -1
- package/dist/solid.cjs +40 -1
- package/dist/solid.d.cts +60 -20
- package/dist/solid.d.ts +60 -20
- package/dist/solid.js +40 -1
- package/package.json +1 -1
package/dist/internal.d.ts
CHANGED
|
@@ -354,6 +354,7 @@ declare const AuditAction: Schema.Literals<readonly [
|
|
|
354
354
|
"account.connected",
|
|
355
355
|
"account.reconnected",
|
|
356
356
|
"account.disconnected",
|
|
357
|
+
"account.deleted",
|
|
357
358
|
"account.enabled",
|
|
358
359
|
"account.disabled",
|
|
359
360
|
"account.moved",
|
|
@@ -434,6 +435,7 @@ declare const AuditEvent: Schema.Struct<{
|
|
|
434
435
|
"account.connected",
|
|
435
436
|
"account.reconnected",
|
|
436
437
|
"account.disconnected",
|
|
438
|
+
"account.deleted",
|
|
437
439
|
"account.enabled",
|
|
438
440
|
"account.disabled",
|
|
439
441
|
"account.moved",
|
|
@@ -515,6 +517,7 @@ declare const AuditEventList: Schema.Struct<{
|
|
|
515
517
|
"account.connected",
|
|
516
518
|
"account.reconnected",
|
|
517
519
|
"account.disconnected",
|
|
520
|
+
"account.deleted",
|
|
518
521
|
"account.enabled",
|
|
519
522
|
"account.disabled",
|
|
520
523
|
"account.moved",
|
|
@@ -578,6 +581,7 @@ declare const AuditActionCatalog: Schema.Struct<{
|
|
|
578
581
|
"account.connected",
|
|
579
582
|
"account.reconnected",
|
|
580
583
|
"account.disconnected",
|
|
584
|
+
"account.deleted",
|
|
581
585
|
"account.enabled",
|
|
582
586
|
"account.disabled",
|
|
583
587
|
"account.moved",
|
|
@@ -1895,6 +1899,8 @@ declare const ProviderAccount: Schema.Struct<{
|
|
|
1895
1899
|
]>;
|
|
1896
1900
|
readonly parentAccountId: Schema.NullOr<Schema.brand<Schema.String, "AccountId">>;
|
|
1897
1901
|
readonly name: Schema.String;
|
|
1902
|
+
readonly platformUserId: Schema.String;
|
|
1903
|
+
readonly avatarUrl: Schema.NullOr<Schema.String>;
|
|
1898
1904
|
readonly enabled: Schema.Boolean;
|
|
1899
1905
|
readonly available: Schema.Boolean;
|
|
1900
1906
|
readonly details: Schema.Union<readonly [
|
|
@@ -2214,6 +2220,8 @@ declare const IntegrationList: Schema.Struct<{
|
|
|
2214
2220
|
]>;
|
|
2215
2221
|
readonly parentAccountId: Schema.NullOr<Schema.brand<Schema.String, "AccountId">>;
|
|
2216
2222
|
readonly name: Schema.String;
|
|
2223
|
+
readonly platformUserId: Schema.String;
|
|
2224
|
+
readonly avatarUrl: Schema.NullOr<Schema.String>;
|
|
2217
2225
|
readonly enabled: Schema.Boolean;
|
|
2218
2226
|
readonly available: Schema.Boolean;
|
|
2219
2227
|
readonly details: Schema.Union<readonly [
|
|
@@ -2609,6 +2617,10 @@ declare const ConnectionDisconnected: Schema.Struct<{
|
|
|
2609
2617
|
readonly disconnected: Schema.Literal<true>;
|
|
2610
2618
|
}>;
|
|
2611
2619
|
type ConnectionDisconnected = typeof ConnectionDisconnected.Type;
|
|
2620
|
+
declare const ConnectionDeleted: Schema.Struct<{
|
|
2621
|
+
readonly deleted: Schema.Literal<true>;
|
|
2622
|
+
}>;
|
|
2623
|
+
type ConnectionDeleted = typeof ConnectionDeleted.Type;
|
|
2612
2624
|
declare const InstagramPublishingLimit: Schema.Struct<{
|
|
2613
2625
|
readonly used: Schema.Int;
|
|
2614
2626
|
readonly limit: Schema.Int;
|
|
@@ -11559,6 +11571,7 @@ interface AccountsClient {
|
|
|
11559
11571
|
connectionStatus(attemptId: string): Promise<ConnectionStatus>;
|
|
11560
11572
|
reconnect(accountId: AccountId, loginMethod?: InstagramLoginMethod): Promise<ConnectionLaunch>;
|
|
11561
11573
|
disconnect(connectionId: string): Promise<ConnectionDisconnected>;
|
|
11574
|
+
delete(connectionId: string): Promise<ConnectionDeleted>;
|
|
11562
11575
|
instagramPublishingLimit(accountId: AccountId): Promise<InstagramPublishingLimit>;
|
|
11563
11576
|
searchInstagramAudio(accountId: AccountId, params: InstagramAudioSearchQuery): Promise<InstagramAudioSearch>;
|
|
11564
11577
|
getInstagramAudio(accountId: AccountId, audioId: string): Promise<InstagramAudio>;
|
|
@@ -12136,7 +12149,7 @@ export type AuditActionCatalogEntry = {
|
|
|
12136
12149
|
description: string;
|
|
12137
12150
|
retentionDays: number;
|
|
12138
12151
|
};
|
|
12139
|
-
type AuditAction$1 = "workspace.updated" | "workspace.archived" | "workspace.member.role_updated" | "workspace.member.removed" | "workspace.invite.created" | "workspace.invite.resent" | "workspace.invite.revoked" | "workspace.invite.accepted" | "workspace.invite.declined" | "api_key.created" | "api_key.updated" | "api_key.revoked" | "webhook.endpoint.created" | "webhook.endpoint.updated" | "webhook.endpoint.deleted" | "webhook.delivery.replayed" | "account.connected" | "account.reconnected" | "account.disconnected" | "account.enabled" | "account.disabled" | "account.moved" | "profile.created" | "profile.updated" | "profile.archived" | "queue.created" | "queue.updated" | "queue.paused" | "queue.resumed" | "queue.archived" | "queue.slots.replaced" | "queue.skip.created" | "queue.skip.deleted" | "queue.blackout.created" | "queue.blackout.deleted" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.spend_controls.updated";
|
|
12152
|
+
type AuditAction$1 = "workspace.updated" | "workspace.archived" | "workspace.member.role_updated" | "workspace.member.removed" | "workspace.invite.created" | "workspace.invite.resent" | "workspace.invite.revoked" | "workspace.invite.accepted" | "workspace.invite.declined" | "api_key.created" | "api_key.updated" | "api_key.revoked" | "webhook.endpoint.created" | "webhook.endpoint.updated" | "webhook.endpoint.deleted" | "webhook.delivery.replayed" | "account.connected" | "account.reconnected" | "account.disconnected" | "account.deleted" | "account.enabled" | "account.disabled" | "account.moved" | "profile.created" | "profile.updated" | "profile.archived" | "queue.created" | "queue.updated" | "queue.paused" | "queue.resumed" | "queue.archived" | "queue.slots.replaced" | "queue.skip.created" | "queue.skip.deleted" | "queue.blackout.created" | "queue.blackout.deleted" | "billing.subscription.updated" | "billing.credit.topped_up" | "billing.spend_controls.updated";
|
|
12140
12153
|
type BillingPlanList$1 = {
|
|
12141
12154
|
data: Array<BillingPlan>;
|
|
12142
12155
|
};
|
|
@@ -14957,6 +14970,8 @@ type ProviderAccount$1 = {
|
|
|
14957
14970
|
accountKind: "social_page" | "social_account" | "social_board" | "social_channel" | "ad_account";
|
|
14958
14971
|
parentAccountId: string | null;
|
|
14959
14972
|
name: string;
|
|
14973
|
+
platformUserId: string;
|
|
14974
|
+
avatarUrl: string | null;
|
|
14960
14975
|
enabled: boolean;
|
|
14961
14976
|
available: boolean;
|
|
14962
14977
|
details: {
|
|
@@ -17351,6 +17366,64 @@ export type IntegrationsDisconnectResponses = {
|
|
|
17351
17366
|
};
|
|
17352
17367
|
};
|
|
17353
17368
|
export type IntegrationsDisconnectResponse = IntegrationsDisconnectResponses[keyof IntegrationsDisconnectResponses];
|
|
17369
|
+
export type IntegrationsDeleteData = {
|
|
17370
|
+
body?: never;
|
|
17371
|
+
path: {
|
|
17372
|
+
connectionId: string;
|
|
17373
|
+
};
|
|
17374
|
+
query: {
|
|
17375
|
+
workspaceId: string;
|
|
17376
|
+
};
|
|
17377
|
+
url: "/api/v1/integrations/connections/{connectionId}/permanent";
|
|
17378
|
+
};
|
|
17379
|
+
export type IntegrationsDeleteErrors = {
|
|
17380
|
+
/**
|
|
17381
|
+
* Invalid cursor | Unsupported API version | Bad Request
|
|
17382
|
+
*/
|
|
17383
|
+
400: InvalidCursorEncoded | UnsupportedApiVersionEncoded | BadRequestProblemEncoded;
|
|
17384
|
+
/**
|
|
17385
|
+
* Unauthorized
|
|
17386
|
+
*/
|
|
17387
|
+
401: AuthenticationRequiredEncoded;
|
|
17388
|
+
/**
|
|
17389
|
+
* Provider permission required | Forbidden | Human actor required | Owner permission required
|
|
17390
|
+
*/
|
|
17391
|
+
403: ProviderPermissionRequiredEncoded | ForbiddenEncoded | HumanActorRequiredEncoded | OwnerRequiredEncoded;
|
|
17392
|
+
/**
|
|
17393
|
+
* Not Found | Queue not found
|
|
17394
|
+
*/
|
|
17395
|
+
404: NotFoundEncoded | QueueNotFoundEncoded;
|
|
17396
|
+
/**
|
|
17397
|
+
* Conflict | Provider reconnect required | Capability unverified | Queue already exists | Queue default required | Queue version changed | Queue unavailable | Queue capacity reached | No queue slot available | Queue slot conflict
|
|
17398
|
+
*/
|
|
17399
|
+
409: ConflictEncoded | ProviderReconnectRequiredEncoded | CapabilityUnverifiedEncoded | QueueAlreadyExistsEncoded | QueueDefaultRequiredEncoded | QueueVersionConflictEncoded | QueueUnavailableEncoded | QueueCapacityReachedEncoded | QueueNoSlotAvailableEncoded | QueueSlotConflictEncoded;
|
|
17400
|
+
/**
|
|
17401
|
+
* Capability unsupported | Invalid queue | Schedule range too wide
|
|
17402
|
+
*/
|
|
17403
|
+
422: CapabilityUnsupportedEncoded | InvalidQueueEncoded | ScheduleRangeTooWideEncoded;
|
|
17404
|
+
/**
|
|
17405
|
+
* Provider rate limited
|
|
17406
|
+
*/
|
|
17407
|
+
429: ProviderRateLimitedEncoded;
|
|
17408
|
+
/**
|
|
17409
|
+
* Internal Server Error
|
|
17410
|
+
*/
|
|
17411
|
+
500: InternalFailureEncoded | InternalServerErrorProblemEncoded;
|
|
17412
|
+
/**
|
|
17413
|
+
* Service Unavailable | Provider unavailable
|
|
17414
|
+
*/
|
|
17415
|
+
503: UnavailableEncoded | ProviderUnavailableEncoded;
|
|
17416
|
+
};
|
|
17417
|
+
export type IntegrationsDeleteError = IntegrationsDeleteErrors[keyof IntegrationsDeleteErrors];
|
|
17418
|
+
export type IntegrationsDeleteResponses = {
|
|
17419
|
+
/**
|
|
17420
|
+
* Success
|
|
17421
|
+
*/
|
|
17422
|
+
200: {
|
|
17423
|
+
deleted: true;
|
|
17424
|
+
};
|
|
17425
|
+
};
|
|
17426
|
+
export type IntegrationsDeleteResponse = IntegrationsDeleteResponses[keyof IntegrationsDeleteResponses];
|
|
17354
17427
|
export type ProfilesListData = {
|
|
17355
17428
|
body?: never;
|
|
17356
17429
|
path?: never;
|
|
@@ -25596,6 +25669,14 @@ declare const integrationsGetInstagramAudio: <ThrowOnError extends boolean = fal
|
|
|
25596
25669
|
* Requires a signed-in workspace owner; API keys are not accepted.
|
|
25597
25670
|
*/
|
|
25598
25671
|
declare const integrationsDisconnect: <ThrowOnError extends boolean = false>(options: Options$1<IntegrationsDisconnectData, ThrowOnError>) => RequestResult<IntegrationsDisconnectResponses, IntegrationsDisconnectErrors, ThrowOnError>;
|
|
25672
|
+
/**
|
|
25673
|
+
* Permanently delete a disconnected social grant
|
|
25674
|
+
*
|
|
25675
|
+
* Delete a disconnected grant with its accounts, publishing destinations, ads, inbox, and analytics. Posts left with no destination are deleted. Irreversible.
|
|
25676
|
+
*
|
|
25677
|
+
* Requires a signed-in workspace owner; API keys are not accepted.
|
|
25678
|
+
*/
|
|
25679
|
+
declare const integrationsDelete: <ThrowOnError extends boolean = false>(options: Options$1<IntegrationsDeleteData, ThrowOnError>) => RequestResult<IntegrationsDeleteResponses, IntegrationsDeleteErrors, ThrowOnError>;
|
|
25599
25680
|
/**
|
|
25600
25681
|
* List workspace profiles
|
|
25601
25682
|
*
|
|
@@ -26577,7 +26658,7 @@ export declare function createRawClient(options: PubNioClientOptions): {
|
|
|
26577
26658
|
};
|
|
26578
26659
|
|
|
26579
26660
|
declare namespace operations {
|
|
26580
|
-
export { Options$1 as Options, adsActivateCampaign, adsArchiveCampaign, adsAttachAd, adsConnectAccount, adsConnectApiKeyAccount, adsCreateAdGroup, adsCreateBoost, adsCreateCampaignPlan, adsCreateCreative, adsDisconnectAccount, adsDuplicateCampaign, adsGetAd, adsGetCampaignPlan, adsGetCreative, adsGetOperation, adsGetSpendPolicy, adsGetTree, adsListAccounts, adsListAdGroups, adsListAds, adsListCampaignPlans, adsListCampaigns, adsListCreatives, adsListInsights, adsListWorkspaceCampaigns, adsListWorkspaceInsights, adsPauseCampaign, adsRefreshInsights, adsSelectAccount, adsSetAdGroupBudget, adsSetAdGroupStatus, adsSetAdStatus, adsSetCampaignBudget, adsSetKillSwitch, adsUpdateSpendPolicy, adsValidateBoost, adsValidateCampaignPlan, analyticsAccountsGet, analyticsAccountsList, analyticsCapabilitiesGet, analyticsPostsGet, analyticsPostsSeries, analyticsRefreshesCreate, analyticsRefreshesGet, apiKeysCreate, apiKeysGet, apiKeysList, apiKeysRevoke, apiKeysUpdate, auditActionsList, auditGet, auditList, billingCheckoutCreate, billingGet, billingLedgerList, billingPlansList, billingPortalCreate, billingSpendControlsUpdate, billingUsageGet, capabilitiesCatalog, capabilitiesGet, capabilitiesList, commentsCreate, inboxAttachmentsGet, inboxCapabilitiesGet, inboxCommentsDelete, inboxCommentsGet, inboxCommentsList, inboxCommentsModerate, inboxCommentsReply, inboxConversationsGet, inboxConversationsList, inboxConversationsUpdate, inboxMentionsList, inboxMentionsReply, inboxMessagesList, inboxMessagesSend, inboxReviewsGet, inboxReviewsList, inboxReviewsReply, inboxSyncGet, inboxSyncStart, inboxUnreadCount, integrationsBlueskySession, integrationsConnectionStatus, integrationsDisconnect, integrationsGetAccount, integrationsGetInstagramAudio, integrationsInstagramPublishingLimit, integrationsList, integrationsMoveAccount, integrationsPrepareConnection, integrationsReconnect, integrationsSearchInstagramAudio, integrationsSetEnabled, limitsGet, meInvitesAccept, meInvitesDecline, meInvitesList, mediaCompleteUpload, mediaDelete, mediaDownload, mediaGet, mediaImport, mediaList, mediaStartUpload, mediaStatus, mediaUpload, mediaUploadInline, mediaUploadPart, notificationsPreferencesGet, notificationsPreferencesUpdate, postsAttempts, postsCreate, postsDelete, postsGet, postsList, postsPublish, postsReconcile, postsRetry, postsUpdate, postsValidate, profileDeactivate, profileGet, profileUpdate, profilesArchive, profilesCreate, profilesGet, profilesList, profilesUpdate, queuesArchive, queuesBlackoutsCreate, queuesBlackoutsDelete, queuesBlackoutsList, queuesCreate, queuesGet, queuesList, queuesSkipsCreate, queuesSkipsDelete, queuesSkipsList, queuesSlotsNext, queuesSlotsPreview, queuesSlotsReplace, queuesUpdate, scheduleChange, scheduleList, webhooksCreate, webhooksDelete, webhooksEventTypes, webhooksGet, webhooksGetDelivery, webhooksList, webhooksListDeliveries, webhooksReplayDelivery, webhooksTest, webhooksUpdate, workspacesArchive, workspacesCreate, workspacesGet, workspacesInvitesCreate, workspacesInvitesList, workspacesInvitesResend, workspacesInvitesRevoke, workspacesList, workspacesMembersList, workspacesMembersRemove, workspacesMembersUpdateRole, workspacesUpdate };
|
|
26661
|
+
export { Options$1 as Options, adsActivateCampaign, adsArchiveCampaign, adsAttachAd, adsConnectAccount, adsConnectApiKeyAccount, adsCreateAdGroup, adsCreateBoost, adsCreateCampaignPlan, adsCreateCreative, adsDisconnectAccount, adsDuplicateCampaign, adsGetAd, adsGetCampaignPlan, adsGetCreative, adsGetOperation, adsGetSpendPolicy, adsGetTree, adsListAccounts, adsListAdGroups, adsListAds, adsListCampaignPlans, adsListCampaigns, adsListCreatives, adsListInsights, adsListWorkspaceCampaigns, adsListWorkspaceInsights, adsPauseCampaign, adsRefreshInsights, adsSelectAccount, adsSetAdGroupBudget, adsSetAdGroupStatus, adsSetAdStatus, adsSetCampaignBudget, adsSetKillSwitch, adsUpdateSpendPolicy, adsValidateBoost, adsValidateCampaignPlan, analyticsAccountsGet, analyticsAccountsList, analyticsCapabilitiesGet, analyticsPostsGet, analyticsPostsSeries, analyticsRefreshesCreate, analyticsRefreshesGet, apiKeysCreate, apiKeysGet, apiKeysList, apiKeysRevoke, apiKeysUpdate, auditActionsList, auditGet, auditList, billingCheckoutCreate, billingGet, billingLedgerList, billingPlansList, billingPortalCreate, billingSpendControlsUpdate, billingUsageGet, capabilitiesCatalog, capabilitiesGet, capabilitiesList, commentsCreate, inboxAttachmentsGet, inboxCapabilitiesGet, inboxCommentsDelete, inboxCommentsGet, inboxCommentsList, inboxCommentsModerate, inboxCommentsReply, inboxConversationsGet, inboxConversationsList, inboxConversationsUpdate, inboxMentionsList, inboxMentionsReply, inboxMessagesList, inboxMessagesSend, inboxReviewsGet, inboxReviewsList, inboxReviewsReply, inboxSyncGet, inboxSyncStart, inboxUnreadCount, integrationsBlueskySession, integrationsConnectionStatus, integrationsDelete, integrationsDisconnect, integrationsGetAccount, integrationsGetInstagramAudio, integrationsInstagramPublishingLimit, integrationsList, integrationsMoveAccount, integrationsPrepareConnection, integrationsReconnect, integrationsSearchInstagramAudio, integrationsSetEnabled, limitsGet, meInvitesAccept, meInvitesDecline, meInvitesList, mediaCompleteUpload, mediaDelete, mediaDownload, mediaGet, mediaImport, mediaList, mediaStartUpload, mediaStatus, mediaUpload, mediaUploadInline, mediaUploadPart, notificationsPreferencesGet, notificationsPreferencesUpdate, postsAttempts, postsCreate, postsDelete, postsGet, postsList, postsPublish, postsReconcile, postsRetry, postsUpdate, postsValidate, profileDeactivate, profileGet, profileUpdate, profilesArchive, profilesCreate, profilesGet, profilesList, profilesUpdate, queuesArchive, queuesBlackoutsCreate, queuesBlackoutsDelete, queuesBlackoutsList, queuesCreate, queuesGet, queuesList, queuesSkipsCreate, queuesSkipsDelete, queuesSkipsList, queuesSlotsNext, queuesSlotsPreview, queuesSlotsReplace, queuesUpdate, scheduleChange, scheduleList, webhooksCreate, webhooksDelete, webhooksEventTypes, webhooksGet, webhooksGetDelivery, webhooksList, webhooksListDeliveries, webhooksReplayDelivery, webhooksTest, webhooksUpdate, workspacesArchive, workspacesCreate, workspacesGet, workspacesInvitesCreate, workspacesInvitesList, workspacesInvitesResend, workspacesInvitesRevoke, workspacesList, workspacesMembersList, workspacesMembersRemove, workspacesMembersUpdateRole, workspacesUpdate };
|
|
26581
26662
|
}
|
|
26582
26663
|
|
|
26583
26664
|
export {
|
package/dist/internal.js
CHANGED
|
@@ -101,6 +101,7 @@ __export(exports_sdk_gen, {
|
|
|
101
101
|
inboxUnreadCount: () => inboxUnreadCount,
|
|
102
102
|
integrationsBlueskySession: () => integrationsBlueskySession,
|
|
103
103
|
integrationsConnectionStatus: () => integrationsConnectionStatus,
|
|
104
|
+
integrationsDelete: () => integrationsDelete,
|
|
104
105
|
integrationsDisconnect: () => integrationsDisconnect,
|
|
105
106
|
integrationsGetAccount: () => integrationsGetAccount,
|
|
106
107
|
integrationsGetInstagramAudio: () => integrationsGetInstagramAudio,
|
|
@@ -841,6 +842,7 @@ var AUDIT_ACTIONS = [
|
|
|
841
842
|
"account.connected",
|
|
842
843
|
"account.reconnected",
|
|
843
844
|
"account.disconnected",
|
|
845
|
+
"account.deleted",
|
|
844
846
|
"account.enabled",
|
|
845
847
|
"account.disabled",
|
|
846
848
|
"account.moved",
|
|
@@ -1028,6 +1030,10 @@ var actionDefinitions = {
|
|
|
1028
1030
|
targetKind: "integration_connection",
|
|
1029
1031
|
description: "Provider connection disconnected and credentials cleared."
|
|
1030
1032
|
},
|
|
1033
|
+
"account.deleted": {
|
|
1034
|
+
targetKind: "integration_connection",
|
|
1035
|
+
description: "Disconnected provider grant permanently deleted with its accounts and their publishing, ads, inbox, and analytics records."
|
|
1036
|
+
},
|
|
1031
1037
|
"account.enabled": {
|
|
1032
1038
|
targetKind: "provider_account",
|
|
1033
1039
|
description: "Connected publishing destination enabled."
|
|
@@ -2130,6 +2136,8 @@ var ProviderAccount = Schema16.Struct({
|
|
|
2130
2136
|
accountKind: AccountKind,
|
|
2131
2137
|
parentAccountId: Schema16.NullOr(AccountId),
|
|
2132
2138
|
name: Schema16.String,
|
|
2139
|
+
platformUserId: Schema16.String,
|
|
2140
|
+
avatarUrl: Schema16.NullOr(Schema16.String),
|
|
2133
2141
|
enabled: Schema16.Boolean,
|
|
2134
2142
|
available: Schema16.Boolean,
|
|
2135
2143
|
details: AccountDetails,
|
|
@@ -2161,6 +2169,12 @@ var OAuthFailureReason = Schema17.Literals([
|
|
|
2161
2169
|
"connection_changed",
|
|
2162
2170
|
"connection_failed"
|
|
2163
2171
|
]);
|
|
2172
|
+
var ConnectionEmptyReason = Schema17.Literals([
|
|
2173
|
+
"pages_permission_declined",
|
|
2174
|
+
"no_pages",
|
|
2175
|
+
"granted_pages_not_listed",
|
|
2176
|
+
"business_assets_unavailable"
|
|
2177
|
+
]);
|
|
2164
2178
|
var attempt2 = { attemptId: uuid3, provider: AccountProvider };
|
|
2165
2179
|
var ConnectionStatus = Schema17.Union([
|
|
2166
2180
|
Schema17.Struct({
|
|
@@ -2181,6 +2195,9 @@ var ConnectionStatus = Schema17.Union([
|
|
|
2181
2195
|
var ConnectionDisconnected = Schema17.Struct({
|
|
2182
2196
|
disconnected: Schema17.Literal(true)
|
|
2183
2197
|
});
|
|
2198
|
+
var ConnectionDeleted = Schema17.Struct({
|
|
2199
|
+
deleted: Schema17.Literal(true)
|
|
2200
|
+
});
|
|
2184
2201
|
var BlueskyConnect = Schema17.Struct({
|
|
2185
2202
|
handle: Schema17.Trim.check(Schema17.isMinLength(1), Schema17.isMaxLength(253)),
|
|
2186
2203
|
appPassword: Schema17.Trim.check(Schema17.isMinLength(1), Schema17.isMaxLength(256)),
|
|
@@ -6126,7 +6143,7 @@ import { ProblemDetails } from "effect/http";
|
|
|
6126
6143
|
// package.json
|
|
6127
6144
|
var package_default = {
|
|
6128
6145
|
name: "@pubnio/sdk",
|
|
6129
|
-
version: "0.2.
|
|
6146
|
+
version: "0.2.13",
|
|
6130
6147
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6131
6148
|
type: "module",
|
|
6132
6149
|
exports: {
|
|
@@ -7364,6 +7381,11 @@ var integrationsDisconnect = (options) => (options.client ?? client).delete({
|
|
|
7364
7381
|
url: "/api/v1/integrations/connections/{connectionId}",
|
|
7365
7382
|
...options
|
|
7366
7383
|
});
|
|
7384
|
+
var integrationsDelete = (options) => (options.client ?? client).delete({
|
|
7385
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
7386
|
+
url: "/api/v1/integrations/connections/{connectionId}/permanent",
|
|
7387
|
+
...options
|
|
7388
|
+
});
|
|
7367
7389
|
var profilesList = (options) => (options.client ?? client).get({
|
|
7368
7390
|
security: [{ scheme: "bearer", type: "http" }],
|
|
7369
7391
|
url: "/api/v1/profiles",
|
|
@@ -9502,6 +9524,12 @@ function createPubNioClient({
|
|
|
9502
9524
|
query: { workspaceId },
|
|
9503
9525
|
...transport()
|
|
9504
9526
|
})),
|
|
9527
|
+
delete: (connectionId) => decode(ConnectionDeleted, integrationsDelete({
|
|
9528
|
+
client,
|
|
9529
|
+
path: { connectionId },
|
|
9530
|
+
query: { workspaceId },
|
|
9531
|
+
...transport()
|
|
9532
|
+
})),
|
|
9505
9533
|
instagramPublishingLimit: (accountId) => decode(InstagramPublishingLimit, integrationsInstagramPublishingLimit({
|
|
9506
9534
|
client,
|
|
9507
9535
|
path: { accountId },
|
package/dist/solid.cjs
CHANGED
|
@@ -40,6 +40,7 @@ var __export = (target, all) => {
|
|
|
40
40
|
var exports_solid = {};
|
|
41
41
|
__export(exports_solid, {
|
|
42
42
|
accountsConnectMutation: () => accountsConnectMutation,
|
|
43
|
+
accountsDeleteMutation: () => accountsDeleteMutation,
|
|
43
44
|
accountsDisconnectMutation: () => accountsDisconnectMutation,
|
|
44
45
|
accountsGetOptions: () => accountsGetOptions,
|
|
45
46
|
accountsListOptions: () => accountsListOptions,
|
|
@@ -295,6 +296,7 @@ __export(exports_sdk_gen, {
|
|
|
295
296
|
inboxUnreadCount: () => inboxUnreadCount,
|
|
296
297
|
integrationsBlueskySession: () => integrationsBlueskySession,
|
|
297
298
|
integrationsConnectionStatus: () => integrationsConnectionStatus,
|
|
299
|
+
integrationsDelete: () => integrationsDelete,
|
|
298
300
|
integrationsDisconnect: () => integrationsDisconnect,
|
|
299
301
|
integrationsGetAccount: () => integrationsGetAccount,
|
|
300
302
|
integrationsGetInstagramAudio: () => integrationsGetInstagramAudio,
|
|
@@ -1038,6 +1040,7 @@ var AUDIT_ACTIONS = [
|
|
|
1038
1040
|
"account.connected",
|
|
1039
1041
|
"account.reconnected",
|
|
1040
1042
|
"account.disconnected",
|
|
1043
|
+
"account.deleted",
|
|
1041
1044
|
"account.enabled",
|
|
1042
1045
|
"account.disabled",
|
|
1043
1046
|
"account.moved",
|
|
@@ -1225,6 +1228,10 @@ var actionDefinitions = {
|
|
|
1225
1228
|
targetKind: "integration_connection",
|
|
1226
1229
|
description: "Provider connection disconnected and credentials cleared."
|
|
1227
1230
|
},
|
|
1231
|
+
"account.deleted": {
|
|
1232
|
+
targetKind: "integration_connection",
|
|
1233
|
+
description: "Disconnected provider grant permanently deleted with its accounts and their publishing, ads, inbox, and analytics records."
|
|
1234
|
+
},
|
|
1228
1235
|
"account.enabled": {
|
|
1229
1236
|
targetKind: "provider_account",
|
|
1230
1237
|
description: "Connected publishing destination enabled."
|
|
@@ -2327,6 +2334,8 @@ var ProviderAccount = import_effect16.Schema.Struct({
|
|
|
2327
2334
|
accountKind: AccountKind,
|
|
2328
2335
|
parentAccountId: import_effect16.Schema.NullOr(AccountId),
|
|
2329
2336
|
name: import_effect16.Schema.String,
|
|
2337
|
+
platformUserId: import_effect16.Schema.String,
|
|
2338
|
+
avatarUrl: import_effect16.Schema.NullOr(import_effect16.Schema.String),
|
|
2330
2339
|
enabled: import_effect16.Schema.Boolean,
|
|
2331
2340
|
available: import_effect16.Schema.Boolean,
|
|
2332
2341
|
details: AccountDetails,
|
|
@@ -2358,6 +2367,12 @@ var OAuthFailureReason = import_effect17.Schema.Literals([
|
|
|
2358
2367
|
"connection_changed",
|
|
2359
2368
|
"connection_failed"
|
|
2360
2369
|
]);
|
|
2370
|
+
var ConnectionEmptyReason = import_effect17.Schema.Literals([
|
|
2371
|
+
"pages_permission_declined",
|
|
2372
|
+
"no_pages",
|
|
2373
|
+
"granted_pages_not_listed",
|
|
2374
|
+
"business_assets_unavailable"
|
|
2375
|
+
]);
|
|
2361
2376
|
var attempt2 = { attemptId: uuid3, provider: AccountProvider };
|
|
2362
2377
|
var ConnectionStatus = import_effect17.Schema.Union([
|
|
2363
2378
|
import_effect17.Schema.Struct({
|
|
@@ -2378,6 +2393,9 @@ var ConnectionStatus = import_effect17.Schema.Union([
|
|
|
2378
2393
|
var ConnectionDisconnected = import_effect17.Schema.Struct({
|
|
2379
2394
|
disconnected: import_effect17.Schema.Literal(true)
|
|
2380
2395
|
});
|
|
2396
|
+
var ConnectionDeleted = import_effect17.Schema.Struct({
|
|
2397
|
+
deleted: import_effect17.Schema.Literal(true)
|
|
2398
|
+
});
|
|
2381
2399
|
var BlueskyConnect = import_effect17.Schema.Struct({
|
|
2382
2400
|
handle: import_effect17.Schema.Trim.check(import_effect17.Schema.isMinLength(1), import_effect17.Schema.isMaxLength(253)),
|
|
2383
2401
|
appPassword: import_effect17.Schema.Trim.check(import_effect17.Schema.isMinLength(1), import_effect17.Schema.isMaxLength(256)),
|
|
@@ -6323,7 +6341,7 @@ var import_http = require("effect/http");
|
|
|
6323
6341
|
// package.json
|
|
6324
6342
|
var package_default = {
|
|
6325
6343
|
name: "@pubnio/sdk",
|
|
6326
|
-
version: "0.2.
|
|
6344
|
+
version: "0.2.13",
|
|
6327
6345
|
description: "JavaScript and TypeScript client for the PubNio API",
|
|
6328
6346
|
type: "module",
|
|
6329
6347
|
exports: {
|
|
@@ -7561,6 +7579,11 @@ var integrationsDisconnect = (options) => (options.client ?? client).delete({
|
|
|
7561
7579
|
url: "/api/v1/integrations/connections/{connectionId}",
|
|
7562
7580
|
...options
|
|
7563
7581
|
});
|
|
7582
|
+
var integrationsDelete = (options) => (options.client ?? client).delete({
|
|
7583
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
7584
|
+
url: "/api/v1/integrations/connections/{connectionId}/permanent",
|
|
7585
|
+
...options
|
|
7586
|
+
});
|
|
7564
7587
|
var profilesList = (options) => (options.client ?? client).get({
|
|
7565
7588
|
security: [{ scheme: "bearer", type: "http" }],
|
|
7566
7589
|
url: "/api/v1/profiles",
|
|
@@ -9699,6 +9722,12 @@ function createPubNioClient({
|
|
|
9699
9722
|
query: { workspaceId },
|
|
9700
9723
|
...transport()
|
|
9701
9724
|
})),
|
|
9725
|
+
delete: (connectionId) => decode(ConnectionDeleted, integrationsDelete({
|
|
9726
|
+
client,
|
|
9727
|
+
path: { connectionId },
|
|
9728
|
+
query: { workspaceId },
|
|
9729
|
+
...transport()
|
|
9730
|
+
})),
|
|
9702
9731
|
instagramPublishingLimit: (accountId) => decode(InstagramPublishingLimit, integrationsInstagramPublishingLimit({
|
|
9703
9732
|
client,
|
|
9704
9733
|
path: { accountId },
|
|
@@ -10869,6 +10898,16 @@ function accountsConnectMutation(workspace) {
|
|
|
10869
10898
|
mutationFn: (input) => workspace.accounts.prepareConnection(input.provider, input.loginMethod)
|
|
10870
10899
|
});
|
|
10871
10900
|
}
|
|
10901
|
+
function accountsDeleteMutation(workspace) {
|
|
10902
|
+
return import_solid_query.mutationOptions({
|
|
10903
|
+
mutationFn: (connectionId) => workspace.accounts.delete(connectionId),
|
|
10904
|
+
onSuccess: (_data, _input, _result, { client: queryClient }) => {
|
|
10905
|
+
queryClient.invalidateQueries({
|
|
10906
|
+
queryKey: accountsKey(workspace.workspaceId)
|
|
10907
|
+
});
|
|
10908
|
+
}
|
|
10909
|
+
});
|
|
10910
|
+
}
|
|
10872
10911
|
function accountsDisconnectMutation(workspace) {
|
|
10873
10912
|
return import_solid_query.mutationOptions({
|
|
10874
10913
|
mutationFn: (connectionId) => workspace.accounts.disconnect(connectionId),
|