@pubnio/sdk 0.2.11 → 0.2.12

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.
@@ -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,
@@ -2181,6 +2189,9 @@ var ConnectionStatus = Schema17.Union([
2181
2189
  var ConnectionDisconnected = Schema17.Struct({
2182
2190
  disconnected: Schema17.Literal(true)
2183
2191
  });
2192
+ var ConnectionDeleted = Schema17.Struct({
2193
+ deleted: Schema17.Literal(true)
2194
+ });
2184
2195
  var BlueskyConnect = Schema17.Struct({
2185
2196
  handle: Schema17.Trim.check(Schema17.isMinLength(1), Schema17.isMaxLength(253)),
2186
2197
  appPassword: Schema17.Trim.check(Schema17.isMinLength(1), Schema17.isMaxLength(256)),
@@ -6126,7 +6137,7 @@ import { ProblemDetails } from "effect/http";
6126
6137
  // package.json
6127
6138
  var package_default = {
6128
6139
  name: "@pubnio/sdk",
6129
- version: "0.2.11",
6140
+ version: "0.2.12",
6130
6141
  description: "JavaScript and TypeScript client for the PubNio API",
6131
6142
  type: "module",
6132
6143
  exports: {
@@ -7364,6 +7375,11 @@ var integrationsDisconnect = (options) => (options.client ?? client).delete({
7364
7375
  url: "/api/v1/integrations/connections/{connectionId}",
7365
7376
  ...options
7366
7377
  });
7378
+ var integrationsDelete = (options) => (options.client ?? client).delete({
7379
+ security: [{ scheme: "bearer", type: "http" }],
7380
+ url: "/api/v1/integrations/connections/{connectionId}/permanent",
7381
+ ...options
7382
+ });
7367
7383
  var profilesList = (options) => (options.client ?? client).get({
7368
7384
  security: [{ scheme: "bearer", type: "http" }],
7369
7385
  url: "/api/v1/profiles",
@@ -9502,6 +9518,12 @@ function createPubNioClient({
9502
9518
  query: { workspaceId },
9503
9519
  ...transport()
9504
9520
  })),
9521
+ delete: (connectionId) => decode(ConnectionDeleted, integrationsDelete({
9522
+ client,
9523
+ path: { connectionId },
9524
+ query: { workspaceId },
9525
+ ...transport()
9526
+ })),
9505
9527
  instagramPublishingLimit: (accountId) => decode(InstagramPublishingLimit, integrationsInstagramPublishingLimit({
9506
9528
  client,
9507
9529
  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,
@@ -2378,6 +2387,9 @@ var ConnectionStatus = import_effect17.Schema.Union([
2378
2387
  var ConnectionDisconnected = import_effect17.Schema.Struct({
2379
2388
  disconnected: import_effect17.Schema.Literal(true)
2380
2389
  });
2390
+ var ConnectionDeleted = import_effect17.Schema.Struct({
2391
+ deleted: import_effect17.Schema.Literal(true)
2392
+ });
2381
2393
  var BlueskyConnect = import_effect17.Schema.Struct({
2382
2394
  handle: import_effect17.Schema.Trim.check(import_effect17.Schema.isMinLength(1), import_effect17.Schema.isMaxLength(253)),
2383
2395
  appPassword: import_effect17.Schema.Trim.check(import_effect17.Schema.isMinLength(1), import_effect17.Schema.isMaxLength(256)),
@@ -6323,7 +6335,7 @@ var import_http = require("effect/http");
6323
6335
  // package.json
6324
6336
  var package_default = {
6325
6337
  name: "@pubnio/sdk",
6326
- version: "0.2.11",
6338
+ version: "0.2.12",
6327
6339
  description: "JavaScript and TypeScript client for the PubNio API",
6328
6340
  type: "module",
6329
6341
  exports: {
@@ -7561,6 +7573,11 @@ var integrationsDisconnect = (options) => (options.client ?? client).delete({
7561
7573
  url: "/api/v1/integrations/connections/{connectionId}",
7562
7574
  ...options
7563
7575
  });
7576
+ var integrationsDelete = (options) => (options.client ?? client).delete({
7577
+ security: [{ scheme: "bearer", type: "http" }],
7578
+ url: "/api/v1/integrations/connections/{connectionId}/permanent",
7579
+ ...options
7580
+ });
7564
7581
  var profilesList = (options) => (options.client ?? client).get({
7565
7582
  security: [{ scheme: "bearer", type: "http" }],
7566
7583
  url: "/api/v1/profiles",
@@ -9699,6 +9716,12 @@ function createPubNioClient({
9699
9716
  query: { workspaceId },
9700
9717
  ...transport()
9701
9718
  })),
9719
+ delete: (connectionId) => decode(ConnectionDeleted, integrationsDelete({
9720
+ client,
9721
+ path: { connectionId },
9722
+ query: { workspaceId },
9723
+ ...transport()
9724
+ })),
9702
9725
  instagramPublishingLimit: (accountId) => decode(InstagramPublishingLimit, integrationsInstagramPublishingLimit({
9703
9726
  client,
9704
9727
  path: { accountId },
@@ -10869,6 +10892,16 @@ function accountsConnectMutation(workspace) {
10869
10892
  mutationFn: (input) => workspace.accounts.prepareConnection(input.provider, input.loginMethod)
10870
10893
  });
10871
10894
  }
10895
+ function accountsDeleteMutation(workspace) {
10896
+ return import_solid_query.mutationOptions({
10897
+ mutationFn: (connectionId) => workspace.accounts.delete(connectionId),
10898
+ onSuccess: (_data, _input, _result, { client: queryClient }) => {
10899
+ queryClient.invalidateQueries({
10900
+ queryKey: accountsKey(workspace.workspaceId)
10901
+ });
10902
+ }
10903
+ });
10904
+ }
10872
10905
  function accountsDisconnectMutation(workspace) {
10873
10906
  return import_solid_query.mutationOptions({
10874
10907
  mutationFn: (connectionId) => workspace.accounts.disconnect(connectionId),