@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.
package/dist/index.cjs CHANGED
@@ -141,6 +141,7 @@ __export(exports_sdk_gen, {
141
141
  inboxUnreadCount: () => inboxUnreadCount,
142
142
  integrationsBlueskySession: () => integrationsBlueskySession,
143
143
  integrationsConnectionStatus: () => integrationsConnectionStatus,
144
+ integrationsDelete: () => integrationsDelete,
144
145
  integrationsDisconnect: () => integrationsDisconnect,
145
146
  integrationsGetAccount: () => integrationsGetAccount,
146
147
  integrationsGetInstagramAudio: () => integrationsGetInstagramAudio,
@@ -881,6 +882,7 @@ var AUDIT_ACTIONS = [
881
882
  "account.connected",
882
883
  "account.reconnected",
883
884
  "account.disconnected",
885
+ "account.deleted",
884
886
  "account.enabled",
885
887
  "account.disabled",
886
888
  "account.moved",
@@ -1068,6 +1070,10 @@ var actionDefinitions = {
1068
1070
  targetKind: "integration_connection",
1069
1071
  description: "Provider connection disconnected and credentials cleared."
1070
1072
  },
1073
+ "account.deleted": {
1074
+ targetKind: "integration_connection",
1075
+ description: "Disconnected provider grant permanently deleted with its accounts and their publishing, ads, inbox, and analytics records."
1076
+ },
1071
1077
  "account.enabled": {
1072
1078
  targetKind: "provider_account",
1073
1079
  description: "Connected publishing destination enabled."
@@ -2170,6 +2176,8 @@ var ProviderAccount = import_effect16.Schema.Struct({
2170
2176
  accountKind: AccountKind,
2171
2177
  parentAccountId: import_effect16.Schema.NullOr(AccountId),
2172
2178
  name: import_effect16.Schema.String,
2179
+ platformUserId: import_effect16.Schema.String,
2180
+ avatarUrl: import_effect16.Schema.NullOr(import_effect16.Schema.String),
2173
2181
  enabled: import_effect16.Schema.Boolean,
2174
2182
  available: import_effect16.Schema.Boolean,
2175
2183
  details: AccountDetails,
@@ -2221,6 +2229,9 @@ var ConnectionStatus = import_effect17.Schema.Union([
2221
2229
  var ConnectionDisconnected = import_effect17.Schema.Struct({
2222
2230
  disconnected: import_effect17.Schema.Literal(true)
2223
2231
  });
2232
+ var ConnectionDeleted = import_effect17.Schema.Struct({
2233
+ deleted: import_effect17.Schema.Literal(true)
2234
+ });
2224
2235
  var BlueskyConnect = import_effect17.Schema.Struct({
2225
2236
  handle: import_effect17.Schema.Trim.check(import_effect17.Schema.isMinLength(1), import_effect17.Schema.isMaxLength(253)),
2226
2237
  appPassword: import_effect17.Schema.Trim.check(import_effect17.Schema.isMinLength(1), import_effect17.Schema.isMaxLength(256)),
@@ -6166,7 +6177,7 @@ var import_http = require("effect/http");
6166
6177
  // package.json
6167
6178
  var package_default = {
6168
6179
  name: "@pubnio/sdk",
6169
- version: "0.2.11",
6180
+ version: "0.2.12",
6170
6181
  description: "JavaScript and TypeScript client for the PubNio API",
6171
6182
  type: "module",
6172
6183
  exports: {
@@ -7404,6 +7415,11 @@ var integrationsDisconnect = (options) => (options.client ?? client).delete({
7404
7415
  url: "/api/v1/integrations/connections/{connectionId}",
7405
7416
  ...options
7406
7417
  });
7418
+ var integrationsDelete = (options) => (options.client ?? client).delete({
7419
+ security: [{ scheme: "bearer", type: "http" }],
7420
+ url: "/api/v1/integrations/connections/{connectionId}/permanent",
7421
+ ...options
7422
+ });
7407
7423
  var profilesList = (options) => (options.client ?? client).get({
7408
7424
  security: [{ scheme: "bearer", type: "http" }],
7409
7425
  url: "/api/v1/profiles",
@@ -9542,6 +9558,12 @@ function createPubNioClient({
9542
9558
  query: { workspaceId },
9543
9559
  ...transport()
9544
9560
  })),
9561
+ delete: (connectionId) => decode(ConnectionDeleted, integrationsDelete({
9562
+ client,
9563
+ path: { connectionId },
9564
+ query: { workspaceId },
9565
+ ...transport()
9566
+ })),
9545
9567
  instagramPublishingLimit: (accountId) => decode(InstagramPublishingLimit, integrationsInstagramPublishingLimit({
9546
9568
  client,
9547
9569
  path: { accountId },
package/dist/index.d.cts CHANGED
@@ -503,6 +503,7 @@ export declare const AuditAction: Schema.Literals<readonly [
503
503
  "account.connected",
504
504
  "account.reconnected",
505
505
  "account.disconnected",
506
+ "account.deleted",
506
507
  "account.enabled",
507
508
  "account.disabled",
508
509
  "account.moved",
@@ -598,6 +599,7 @@ export declare const AuditEvent: Schema.Struct<{
598
599
  "account.connected",
599
600
  "account.reconnected",
600
601
  "account.disconnected",
602
+ "account.deleted",
601
603
  "account.enabled",
602
604
  "account.disabled",
603
605
  "account.moved",
@@ -679,6 +681,7 @@ export declare const AuditEventList: Schema.Struct<{
679
681
  "account.connected",
680
682
  "account.reconnected",
681
683
  "account.disconnected",
684
+ "account.deleted",
682
685
  "account.enabled",
683
686
  "account.disabled",
684
687
  "account.moved",
@@ -741,6 +744,7 @@ export declare const AuditActionCatalogEntry: Schema.Struct<{
741
744
  "account.connected",
742
745
  "account.reconnected",
743
746
  "account.disconnected",
747
+ "account.deleted",
744
748
  "account.enabled",
745
749
  "account.disabled",
746
750
  "account.moved",
@@ -802,6 +806,7 @@ export declare const AuditActionCatalog: Schema.Struct<{
802
806
  "account.connected",
803
807
  "account.reconnected",
804
808
  "account.disconnected",
809
+ "account.deleted",
805
810
  "account.enabled",
806
811
  "account.disabled",
807
812
  "account.moved",
@@ -2271,6 +2276,8 @@ export declare const ProviderAccount: Schema.Struct<{
2271
2276
  ]>;
2272
2277
  readonly parentAccountId: Schema.NullOr<Schema.brand<Schema.String, "AccountId">>;
2273
2278
  readonly name: Schema.String;
2279
+ readonly platformUserId: Schema.String;
2280
+ readonly avatarUrl: Schema.NullOr<Schema.String>;
2274
2281
  readonly enabled: Schema.Boolean;
2275
2282
  readonly available: Schema.Boolean;
2276
2283
  readonly details: Schema.Union<readonly [
@@ -2590,6 +2597,8 @@ declare const IntegrationList: Schema.Struct<{
2590
2597
  ]>;
2591
2598
  readonly parentAccountId: Schema.NullOr<Schema.brand<Schema.String, "AccountId">>;
2592
2599
  readonly name: Schema.String;
2600
+ readonly platformUserId: Schema.String;
2601
+ readonly avatarUrl: Schema.NullOr<Schema.String>;
2593
2602
  readonly enabled: Schema.Boolean;
2594
2603
  readonly available: Schema.Boolean;
2595
2604
  readonly details: Schema.Union<readonly [
@@ -2985,6 +2994,10 @@ declare const ConnectionDisconnected: Schema.Struct<{
2985
2994
  readonly disconnected: Schema.Literal<true>;
2986
2995
  }>;
2987
2996
  type ConnectionDisconnected = typeof ConnectionDisconnected.Type;
2997
+ declare const ConnectionDeleted: Schema.Struct<{
2998
+ readonly deleted: Schema.Literal<true>;
2999
+ }>;
3000
+ type ConnectionDeleted = typeof ConnectionDeleted.Type;
2988
3001
  export declare const InstagramPublishingLimit: Schema.Struct<{
2989
3002
  readonly used: Schema.Int;
2990
3003
  readonly limit: Schema.Int;
@@ -16389,6 +16402,7 @@ export interface AccountsClient {
16389
16402
  connectionStatus(attemptId: string): Promise<ConnectionStatus>;
16390
16403
  reconnect(accountId: AccountId, loginMethod?: InstagramLoginMethod): Promise<ConnectionLaunch>;
16391
16404
  disconnect(connectionId: string): Promise<ConnectionDisconnected>;
16405
+ delete(connectionId: string): Promise<ConnectionDeleted>;
16392
16406
  instagramPublishingLimit(accountId: AccountId): Promise<InstagramPublishingLimit>;
16393
16407
  searchInstagramAudio(accountId: AccountId, params: InstagramAudioSearchQuery): Promise<InstagramAudioSearch>;
16394
16408
  getInstagramAudio(accountId: AccountId, audioId: string): Promise<InstagramAudio>;
package/dist/index.d.ts CHANGED
@@ -503,6 +503,7 @@ export declare const AuditAction: Schema.Literals<readonly [
503
503
  "account.connected",
504
504
  "account.reconnected",
505
505
  "account.disconnected",
506
+ "account.deleted",
506
507
  "account.enabled",
507
508
  "account.disabled",
508
509
  "account.moved",
@@ -598,6 +599,7 @@ export declare const AuditEvent: Schema.Struct<{
598
599
  "account.connected",
599
600
  "account.reconnected",
600
601
  "account.disconnected",
602
+ "account.deleted",
601
603
  "account.enabled",
602
604
  "account.disabled",
603
605
  "account.moved",
@@ -679,6 +681,7 @@ export declare const AuditEventList: Schema.Struct<{
679
681
  "account.connected",
680
682
  "account.reconnected",
681
683
  "account.disconnected",
684
+ "account.deleted",
682
685
  "account.enabled",
683
686
  "account.disabled",
684
687
  "account.moved",
@@ -741,6 +744,7 @@ export declare const AuditActionCatalogEntry: Schema.Struct<{
741
744
  "account.connected",
742
745
  "account.reconnected",
743
746
  "account.disconnected",
747
+ "account.deleted",
744
748
  "account.enabled",
745
749
  "account.disabled",
746
750
  "account.moved",
@@ -802,6 +806,7 @@ export declare const AuditActionCatalog: Schema.Struct<{
802
806
  "account.connected",
803
807
  "account.reconnected",
804
808
  "account.disconnected",
809
+ "account.deleted",
805
810
  "account.enabled",
806
811
  "account.disabled",
807
812
  "account.moved",
@@ -2271,6 +2276,8 @@ export declare const ProviderAccount: Schema.Struct<{
2271
2276
  ]>;
2272
2277
  readonly parentAccountId: Schema.NullOr<Schema.brand<Schema.String, "AccountId">>;
2273
2278
  readonly name: Schema.String;
2279
+ readonly platformUserId: Schema.String;
2280
+ readonly avatarUrl: Schema.NullOr<Schema.String>;
2274
2281
  readonly enabled: Schema.Boolean;
2275
2282
  readonly available: Schema.Boolean;
2276
2283
  readonly details: Schema.Union<readonly [
@@ -2590,6 +2597,8 @@ declare const IntegrationList: Schema.Struct<{
2590
2597
  ]>;
2591
2598
  readonly parentAccountId: Schema.NullOr<Schema.brand<Schema.String, "AccountId">>;
2592
2599
  readonly name: Schema.String;
2600
+ readonly platformUserId: Schema.String;
2601
+ readonly avatarUrl: Schema.NullOr<Schema.String>;
2593
2602
  readonly enabled: Schema.Boolean;
2594
2603
  readonly available: Schema.Boolean;
2595
2604
  readonly details: Schema.Union<readonly [
@@ -2985,6 +2994,10 @@ declare const ConnectionDisconnected: Schema.Struct<{
2985
2994
  readonly disconnected: Schema.Literal<true>;
2986
2995
  }>;
2987
2996
  type ConnectionDisconnected = typeof ConnectionDisconnected.Type;
2997
+ declare const ConnectionDeleted: Schema.Struct<{
2998
+ readonly deleted: Schema.Literal<true>;
2999
+ }>;
3000
+ type ConnectionDeleted = typeof ConnectionDeleted.Type;
2988
3001
  export declare const InstagramPublishingLimit: Schema.Struct<{
2989
3002
  readonly used: Schema.Int;
2990
3003
  readonly limit: Schema.Int;
@@ -16389,6 +16402,7 @@ export interface AccountsClient {
16389
16402
  connectionStatus(attemptId: string): Promise<ConnectionStatus>;
16390
16403
  reconnect(accountId: AccountId, loginMethod?: InstagramLoginMethod): Promise<ConnectionLaunch>;
16391
16404
  disconnect(connectionId: string): Promise<ConnectionDisconnected>;
16405
+ delete(connectionId: string): Promise<ConnectionDeleted>;
16392
16406
  instagramPublishingLimit(accountId: AccountId): Promise<InstagramPublishingLimit>;
16393
16407
  searchInstagramAudio(accountId: AccountId, params: InstagramAudioSearchQuery): Promise<InstagramAudioSearch>;
16394
16408
  getInstagramAudio(accountId: AccountId, audioId: string): Promise<InstagramAudio>;
package/dist/index.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/internal.cjs CHANGED
@@ -149,6 +149,7 @@ __export(exports_sdk_gen, {
149
149
  inboxUnreadCount: () => inboxUnreadCount,
150
150
  integrationsBlueskySession: () => integrationsBlueskySession,
151
151
  integrationsConnectionStatus: () => integrationsConnectionStatus,
152
+ integrationsDelete: () => integrationsDelete,
152
153
  integrationsDisconnect: () => integrationsDisconnect,
153
154
  integrationsGetAccount: () => integrationsGetAccount,
154
155
  integrationsGetInstagramAudio: () => integrationsGetInstagramAudio,
@@ -889,6 +890,7 @@ var AUDIT_ACTIONS = [
889
890
  "account.connected",
890
891
  "account.reconnected",
891
892
  "account.disconnected",
893
+ "account.deleted",
892
894
  "account.enabled",
893
895
  "account.disabled",
894
896
  "account.moved",
@@ -1076,6 +1078,10 @@ var actionDefinitions = {
1076
1078
  targetKind: "integration_connection",
1077
1079
  description: "Provider connection disconnected and credentials cleared."
1078
1080
  },
1081
+ "account.deleted": {
1082
+ targetKind: "integration_connection",
1083
+ description: "Disconnected provider grant permanently deleted with its accounts and their publishing, ads, inbox, and analytics records."
1084
+ },
1079
1085
  "account.enabled": {
1080
1086
  targetKind: "provider_account",
1081
1087
  description: "Connected publishing destination enabled."
@@ -2178,6 +2184,8 @@ var ProviderAccount = import_effect16.Schema.Struct({
2178
2184
  accountKind: AccountKind,
2179
2185
  parentAccountId: import_effect16.Schema.NullOr(AccountId),
2180
2186
  name: import_effect16.Schema.String,
2187
+ platformUserId: import_effect16.Schema.String,
2188
+ avatarUrl: import_effect16.Schema.NullOr(import_effect16.Schema.String),
2181
2189
  enabled: import_effect16.Schema.Boolean,
2182
2190
  available: import_effect16.Schema.Boolean,
2183
2191
  details: AccountDetails,
@@ -2229,6 +2237,9 @@ var ConnectionStatus = import_effect17.Schema.Union([
2229
2237
  var ConnectionDisconnected = import_effect17.Schema.Struct({
2230
2238
  disconnected: import_effect17.Schema.Literal(true)
2231
2239
  });
2240
+ var ConnectionDeleted = import_effect17.Schema.Struct({
2241
+ deleted: import_effect17.Schema.Literal(true)
2242
+ });
2232
2243
  var BlueskyConnect = import_effect17.Schema.Struct({
2233
2244
  handle: import_effect17.Schema.Trim.check(import_effect17.Schema.isMinLength(1), import_effect17.Schema.isMaxLength(253)),
2234
2245
  appPassword: import_effect17.Schema.Trim.check(import_effect17.Schema.isMinLength(1), import_effect17.Schema.isMaxLength(256)),
@@ -6174,7 +6185,7 @@ var import_http = require("effect/http");
6174
6185
  // package.json
6175
6186
  var package_default = {
6176
6187
  name: "@pubnio/sdk",
6177
- version: "0.2.11",
6188
+ version: "0.2.12",
6178
6189
  description: "JavaScript and TypeScript client for the PubNio API",
6179
6190
  type: "module",
6180
6191
  exports: {
@@ -7412,6 +7423,11 @@ var integrationsDisconnect = (options) => (options.client ?? client).delete({
7412
7423
  url: "/api/v1/integrations/connections/{connectionId}",
7413
7424
  ...options
7414
7425
  });
7426
+ var integrationsDelete = (options) => (options.client ?? client).delete({
7427
+ security: [{ scheme: "bearer", type: "http" }],
7428
+ url: "/api/v1/integrations/connections/{connectionId}/permanent",
7429
+ ...options
7430
+ });
7415
7431
  var profilesList = (options) => (options.client ?? client).get({
7416
7432
  security: [{ scheme: "bearer", type: "http" }],
7417
7433
  url: "/api/v1/profiles",
@@ -9550,6 +9566,12 @@ function createPubNioClient({
9550
9566
  query: { workspaceId },
9551
9567
  ...transport()
9552
9568
  })),
9569
+ delete: (connectionId) => decode(ConnectionDeleted, integrationsDelete({
9570
+ client,
9571
+ path: { connectionId },
9572
+ query: { workspaceId },
9573
+ ...transport()
9574
+ })),
9553
9575
  instagramPublishingLimit: (accountId) => decode(InstagramPublishingLimit, integrationsInstagramPublishingLimit({
9554
9576
  client,
9555
9577
  path: { accountId },
@@ -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 {