@epilot/customer-portal-client 0.40.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/openapi.d.ts CHANGED
@@ -13,6 +13,9 @@ declare namespace Components {
13
13
  * Error message
14
14
  */
15
15
  message?: string;
16
+ /**
17
+ * Machine-readable cause, when the API can name one. `PORTAL_USER_PENDING_ACTIVATION` means the portal user is authenticated but not mapped to a contact yet, so re-authenticating will not help.
18
+ */
16
19
  reason: "invalid_token";
17
20
  }
18
21
  export type Conflict = Schemas.ErrorResp;
@@ -31,6 +34,9 @@ declare namespace Components {
31
34
  export type InternalServerError = Schemas.ErrorResp;
32
35
  export type InvalidRequest = Schemas.ErrorResp;
33
36
  export type InvalidRequestCreateMeterReading = {
37
+ /**
38
+ * Machine-readable cause, when the API can name one. `PORTAL_USER_PENDING_ACTIVATION` means the portal user is authenticated but not mapped to a contact yet, so re-authenticating will not help.
39
+ */
34
40
  reason?: "plausibility_check_failed" | "contract_period" | "no_counter" | "no_direction" | "timestamp_future" | "less_than_previous" | "greater_than_subsequent" | "meter_decommissioned" | "plausibility_check_failed";
35
41
  upper_limit: number;
36
42
  lower_limit: number;
@@ -2947,6 +2953,22 @@ declare namespace Components {
2947
2953
  */
2948
2954
  auto_create_cognito_user?: boolean;
2949
2955
  }
2956
+ /**
2957
+ * Linearized portal workflows of a single entity
2958
+ */
2959
+ export interface EntityPortalWorkflows {
2960
+ entity_id: string;
2961
+ /**
2962
+ * Empty when the entity has no portal-relevant workflow
2963
+ */
2964
+ portal_workflows: /**
2965
+ * A portal-facing projection of a workflow execution (V1 or V2), with the execution
2966
+ * graph already linearized by the Workflows API into a flat, ordered list of
2967
+ * portal-visible tasks.
2968
+ *
2969
+ */
2970
+ PortalWorkflow[];
2971
+ }
2950
2972
  /**
2951
2973
  * Response for entity get request
2952
2974
  */
@@ -3299,6 +3321,10 @@ declare namespace Components {
3299
3321
  * Error message
3300
3322
  */
3301
3323
  message?: string;
3324
+ /**
3325
+ * Machine-readable cause, when the API can name one. `PORTAL_USER_PENDING_ACTIVATION` means the portal user is authenticated but not mapped to a contact yet, so re-authenticating will not help.
3326
+ */
3327
+ reason?: string;
3302
3328
  }
3303
3329
  /**
3304
3330
  * example:
@@ -4716,6 +4742,20 @@ declare namespace Components {
4716
4742
  */
4717
4743
  is_new?: boolean;
4718
4744
  }
4745
+ export interface FilePreviewResult {
4746
+ /**
4747
+ * What kind of preview (if any) is available. "pdf" covers both native PDFs and Office documents that were converted to PDF server-side. "unsupported" means no preview is available and the caller should fall back to download.
4748
+ */
4749
+ kind: "pdf" | "image" | "unsupported";
4750
+ /**
4751
+ * A Content-Disposition: inline URL to render in a preview viewer. Present only when kind is "pdf" or "image". Short-lived — do not cache across dialog opens.
4752
+ */
4753
+ url?: string; // uri
4754
+ /**
4755
+ * Optional download URL for the file, returned for any kind — including "unsupported" — whenever the file entity exposes one. It is only a Content-Disposition: attachment URL for files with access_control "private", where it is a short-lived signed URL; for any other access level it is the file entity's plain public/CDN object URL, which carries no attachment disposition and may render inline in the browser. Absent when the file entity exposes no usable URL, so clients must handle it being missing.
4756
+ */
4757
+ download_url?: string; // uri
4758
+ }
4719
4759
  export interface Grant {
4720
4760
  /**
4721
4761
  * Action for granting permission
@@ -6581,9 +6621,10 @@ declare namespace Components {
6581
6621
  * providers not in the list are deleted. Omit the field to leave SSO
6582
6622
  * configuration unchanged; send an empty array to remove all providers.
6583
6623
  *
6584
- * Each provider is persisted verbatim — `oidc_config.client_secret` is stored
6585
- * as sent. Customers are encouraged to reference an org env secret via
6586
- * `{{ env.VAR }}` rather than embed raw values.
6624
+ * Secrets: a provider sent without `oidc_config.client_secret` keeps the
6625
+ * stored secret for the same slug; an explicit empty string clears it.
6626
+ * `getPortalConfigV3` returns providers with raw secrets redacted;
6627
+ * `{{ env.VAR }}` references pass through.
6587
6628
  *
6588
6629
  */
6589
6630
  identity_providers?: ProviderPublicConfig[];
@@ -8101,7 +8142,10 @@ declare namespace Components {
8101
8142
  use_case_slug: string;
8102
8143
  }
8103
8144
  export type Source = "ECP" | "ERP" | "360" | "journey-submission";
8104
- export type SwappableConfig = "all" | "domain" | "users" | "email_templates";
8145
+ /**
8146
+ * Optional configuration item that a portal swap can additionally include. The swap always transfers the pages and the functional experience config that keep the portal working. These items are opt-in on top of that and are OFF by default. Domain and access/security settings (domain, cognito_details, auth_settings) can never be swapped and are therefore not part of this enum.
8147
+ */
8148
+ export type SwappableConfig = "email_templates";
8105
8149
  export type TariffType = "ht" | "nt";
8106
8150
  export interface TeaserWidget {
8107
8151
  id: string;
@@ -8199,9 +8243,10 @@ declare namespace Components {
8199
8243
  * providers not in the list are deleted. Omit the field to leave SSO
8200
8244
  * configuration unchanged; send an empty array to remove all providers.
8201
8245
  *
8202
- * Each provider is persisted verbatim — `oidc_config.client_secret` is stored
8203
- * as sent. Customers are encouraged to reference an org env secret via
8204
- * `{{ env.VAR }}` rather than embed raw values.
8246
+ * Secrets: a provider sent without `oidc_config.client_secret` keeps the
8247
+ * stored secret for the same slug; an explicit empty string clears it.
8248
+ * `getPortalConfigV3` returns providers with raw secrets redacted;
8249
+ * `{{ env.VAR }}` references pass through.
8205
8250
  *
8206
8251
  */
8207
8252
  identity_providers?: /**
@@ -8267,9 +8312,10 @@ declare namespace Components {
8267
8312
  * providers not in the list are deleted. Omit the field to leave SSO
8268
8313
  * configuration unchanged; send an empty array to remove all providers.
8269
8314
  *
8270
- * Each provider is persisted verbatim — `oidc_config.client_secret` is stored
8271
- * as sent. Customers are encouraged to reference an org env secret via
8272
- * `{{ env.VAR }}` rather than embed raw values.
8315
+ * Secrets: a provider sent without `oidc_config.client_secret` keeps the
8316
+ * stored secret for the same slug; an explicit empty string clears it.
8317
+ * `getPortalConfigV3` returns providers with raw secrets redacted;
8318
+ * `{{ env.VAR }}` references pass through.
8273
8319
  *
8274
8320
  */
8275
8321
  identity_providers?: /**
@@ -8854,9 +8900,10 @@ declare namespace Components {
8854
8900
  * providers not in the list are deleted. Omit the field to leave SSO
8855
8901
  * configuration unchanged; send an empty array to remove all providers.
8856
8902
  *
8857
- * Each provider is persisted verbatim — `oidc_config.client_secret` is stored
8858
- * as sent. Customers are encouraged to reference an org env secret via
8859
- * `{{ env.VAR }}` rather than embed raw values.
8903
+ * Secrets: a provider sent without `oidc_config.client_secret` keeps the
8904
+ * stored secret for the same slug; an explicit empty string clears it.
8905
+ * `getPortalConfigV3` returns providers with raw secrets redacted;
8906
+ * `{{ env.VAR }}` references pass through.
8860
8907
  *
8861
8908
  */
8862
8909
  identity_providers?: /**
@@ -11743,6 +11790,621 @@ declare namespace Paths {
11743
11790
  export type $500 = Components.Responses.InternalServerError;
11744
11791
  }
11745
11792
  }
11793
+ namespace GetEntityPortalWorkflowsBatch {
11794
+ export interface RequestBody {
11795
+ entities: [
11796
+ {
11797
+ /**
11798
+ * ID of the entity
11799
+ */
11800
+ id: string;
11801
+ /**
11802
+ * Schema slug of the entity
11803
+ * example:
11804
+ * order
11805
+ */
11806
+ slug: string;
11807
+ },
11808
+ {
11809
+ /**
11810
+ * ID of the entity
11811
+ */
11812
+ id: string;
11813
+ /**
11814
+ * Schema slug of the entity
11815
+ * example:
11816
+ * order
11817
+ */
11818
+ slug: string;
11819
+ }?,
11820
+ {
11821
+ /**
11822
+ * ID of the entity
11823
+ */
11824
+ id: string;
11825
+ /**
11826
+ * Schema slug of the entity
11827
+ * example:
11828
+ * order
11829
+ */
11830
+ slug: string;
11831
+ }?,
11832
+ {
11833
+ /**
11834
+ * ID of the entity
11835
+ */
11836
+ id: string;
11837
+ /**
11838
+ * Schema slug of the entity
11839
+ * example:
11840
+ * order
11841
+ */
11842
+ slug: string;
11843
+ }?,
11844
+ {
11845
+ /**
11846
+ * ID of the entity
11847
+ */
11848
+ id: string;
11849
+ /**
11850
+ * Schema slug of the entity
11851
+ * example:
11852
+ * order
11853
+ */
11854
+ slug: string;
11855
+ }?,
11856
+ {
11857
+ /**
11858
+ * ID of the entity
11859
+ */
11860
+ id: string;
11861
+ /**
11862
+ * Schema slug of the entity
11863
+ * example:
11864
+ * order
11865
+ */
11866
+ slug: string;
11867
+ }?,
11868
+ {
11869
+ /**
11870
+ * ID of the entity
11871
+ */
11872
+ id: string;
11873
+ /**
11874
+ * Schema slug of the entity
11875
+ * example:
11876
+ * order
11877
+ */
11878
+ slug: string;
11879
+ }?,
11880
+ {
11881
+ /**
11882
+ * ID of the entity
11883
+ */
11884
+ id: string;
11885
+ /**
11886
+ * Schema slug of the entity
11887
+ * example:
11888
+ * order
11889
+ */
11890
+ slug: string;
11891
+ }?,
11892
+ {
11893
+ /**
11894
+ * ID of the entity
11895
+ */
11896
+ id: string;
11897
+ /**
11898
+ * Schema slug of the entity
11899
+ * example:
11900
+ * order
11901
+ */
11902
+ slug: string;
11903
+ }?,
11904
+ {
11905
+ /**
11906
+ * ID of the entity
11907
+ */
11908
+ id: string;
11909
+ /**
11910
+ * Schema slug of the entity
11911
+ * example:
11912
+ * order
11913
+ */
11914
+ slug: string;
11915
+ }?,
11916
+ {
11917
+ /**
11918
+ * ID of the entity
11919
+ */
11920
+ id: string;
11921
+ /**
11922
+ * Schema slug of the entity
11923
+ * example:
11924
+ * order
11925
+ */
11926
+ slug: string;
11927
+ }?,
11928
+ {
11929
+ /**
11930
+ * ID of the entity
11931
+ */
11932
+ id: string;
11933
+ /**
11934
+ * Schema slug of the entity
11935
+ * example:
11936
+ * order
11937
+ */
11938
+ slug: string;
11939
+ }?,
11940
+ {
11941
+ /**
11942
+ * ID of the entity
11943
+ */
11944
+ id: string;
11945
+ /**
11946
+ * Schema slug of the entity
11947
+ * example:
11948
+ * order
11949
+ */
11950
+ slug: string;
11951
+ }?,
11952
+ {
11953
+ /**
11954
+ * ID of the entity
11955
+ */
11956
+ id: string;
11957
+ /**
11958
+ * Schema slug of the entity
11959
+ * example:
11960
+ * order
11961
+ */
11962
+ slug: string;
11963
+ }?,
11964
+ {
11965
+ /**
11966
+ * ID of the entity
11967
+ */
11968
+ id: string;
11969
+ /**
11970
+ * Schema slug of the entity
11971
+ * example:
11972
+ * order
11973
+ */
11974
+ slug: string;
11975
+ }?,
11976
+ {
11977
+ /**
11978
+ * ID of the entity
11979
+ */
11980
+ id: string;
11981
+ /**
11982
+ * Schema slug of the entity
11983
+ * example:
11984
+ * order
11985
+ */
11986
+ slug: string;
11987
+ }?,
11988
+ {
11989
+ /**
11990
+ * ID of the entity
11991
+ */
11992
+ id: string;
11993
+ /**
11994
+ * Schema slug of the entity
11995
+ * example:
11996
+ * order
11997
+ */
11998
+ slug: string;
11999
+ }?,
12000
+ {
12001
+ /**
12002
+ * ID of the entity
12003
+ */
12004
+ id: string;
12005
+ /**
12006
+ * Schema slug of the entity
12007
+ * example:
12008
+ * order
12009
+ */
12010
+ slug: string;
12011
+ }?,
12012
+ {
12013
+ /**
12014
+ * ID of the entity
12015
+ */
12016
+ id: string;
12017
+ /**
12018
+ * Schema slug of the entity
12019
+ * example:
12020
+ * order
12021
+ */
12022
+ slug: string;
12023
+ }?,
12024
+ {
12025
+ /**
12026
+ * ID of the entity
12027
+ */
12028
+ id: string;
12029
+ /**
12030
+ * Schema slug of the entity
12031
+ * example:
12032
+ * order
12033
+ */
12034
+ slug: string;
12035
+ }?,
12036
+ {
12037
+ /**
12038
+ * ID of the entity
12039
+ */
12040
+ id: string;
12041
+ /**
12042
+ * Schema slug of the entity
12043
+ * example:
12044
+ * order
12045
+ */
12046
+ slug: string;
12047
+ }?,
12048
+ {
12049
+ /**
12050
+ * ID of the entity
12051
+ */
12052
+ id: string;
12053
+ /**
12054
+ * Schema slug of the entity
12055
+ * example:
12056
+ * order
12057
+ */
12058
+ slug: string;
12059
+ }?,
12060
+ {
12061
+ /**
12062
+ * ID of the entity
12063
+ */
12064
+ id: string;
12065
+ /**
12066
+ * Schema slug of the entity
12067
+ * example:
12068
+ * order
12069
+ */
12070
+ slug: string;
12071
+ }?,
12072
+ {
12073
+ /**
12074
+ * ID of the entity
12075
+ */
12076
+ id: string;
12077
+ /**
12078
+ * Schema slug of the entity
12079
+ * example:
12080
+ * order
12081
+ */
12082
+ slug: string;
12083
+ }?,
12084
+ {
12085
+ /**
12086
+ * ID of the entity
12087
+ */
12088
+ id: string;
12089
+ /**
12090
+ * Schema slug of the entity
12091
+ * example:
12092
+ * order
12093
+ */
12094
+ slug: string;
12095
+ }?,
12096
+ {
12097
+ /**
12098
+ * ID of the entity
12099
+ */
12100
+ id: string;
12101
+ /**
12102
+ * Schema slug of the entity
12103
+ * example:
12104
+ * order
12105
+ */
12106
+ slug: string;
12107
+ }?,
12108
+ {
12109
+ /**
12110
+ * ID of the entity
12111
+ */
12112
+ id: string;
12113
+ /**
12114
+ * Schema slug of the entity
12115
+ * example:
12116
+ * order
12117
+ */
12118
+ slug: string;
12119
+ }?,
12120
+ {
12121
+ /**
12122
+ * ID of the entity
12123
+ */
12124
+ id: string;
12125
+ /**
12126
+ * Schema slug of the entity
12127
+ * example:
12128
+ * order
12129
+ */
12130
+ slug: string;
12131
+ }?,
12132
+ {
12133
+ /**
12134
+ * ID of the entity
12135
+ */
12136
+ id: string;
12137
+ /**
12138
+ * Schema slug of the entity
12139
+ * example:
12140
+ * order
12141
+ */
12142
+ slug: string;
12143
+ }?,
12144
+ {
12145
+ /**
12146
+ * ID of the entity
12147
+ */
12148
+ id: string;
12149
+ /**
12150
+ * Schema slug of the entity
12151
+ * example:
12152
+ * order
12153
+ */
12154
+ slug: string;
12155
+ }?,
12156
+ {
12157
+ /**
12158
+ * ID of the entity
12159
+ */
12160
+ id: string;
12161
+ /**
12162
+ * Schema slug of the entity
12163
+ * example:
12164
+ * order
12165
+ */
12166
+ slug: string;
12167
+ }?,
12168
+ {
12169
+ /**
12170
+ * ID of the entity
12171
+ */
12172
+ id: string;
12173
+ /**
12174
+ * Schema slug of the entity
12175
+ * example:
12176
+ * order
12177
+ */
12178
+ slug: string;
12179
+ }?,
12180
+ {
12181
+ /**
12182
+ * ID of the entity
12183
+ */
12184
+ id: string;
12185
+ /**
12186
+ * Schema slug of the entity
12187
+ * example:
12188
+ * order
12189
+ */
12190
+ slug: string;
12191
+ }?,
12192
+ {
12193
+ /**
12194
+ * ID of the entity
12195
+ */
12196
+ id: string;
12197
+ /**
12198
+ * Schema slug of the entity
12199
+ * example:
12200
+ * order
12201
+ */
12202
+ slug: string;
12203
+ }?,
12204
+ {
12205
+ /**
12206
+ * ID of the entity
12207
+ */
12208
+ id: string;
12209
+ /**
12210
+ * Schema slug of the entity
12211
+ * example:
12212
+ * order
12213
+ */
12214
+ slug: string;
12215
+ }?,
12216
+ {
12217
+ /**
12218
+ * ID of the entity
12219
+ */
12220
+ id: string;
12221
+ /**
12222
+ * Schema slug of the entity
12223
+ * example:
12224
+ * order
12225
+ */
12226
+ slug: string;
12227
+ }?,
12228
+ {
12229
+ /**
12230
+ * ID of the entity
12231
+ */
12232
+ id: string;
12233
+ /**
12234
+ * Schema slug of the entity
12235
+ * example:
12236
+ * order
12237
+ */
12238
+ slug: string;
12239
+ }?,
12240
+ {
12241
+ /**
12242
+ * ID of the entity
12243
+ */
12244
+ id: string;
12245
+ /**
12246
+ * Schema slug of the entity
12247
+ * example:
12248
+ * order
12249
+ */
12250
+ slug: string;
12251
+ }?,
12252
+ {
12253
+ /**
12254
+ * ID of the entity
12255
+ */
12256
+ id: string;
12257
+ /**
12258
+ * Schema slug of the entity
12259
+ * example:
12260
+ * order
12261
+ */
12262
+ slug: string;
12263
+ }?,
12264
+ {
12265
+ /**
12266
+ * ID of the entity
12267
+ */
12268
+ id: string;
12269
+ /**
12270
+ * Schema slug of the entity
12271
+ * example:
12272
+ * order
12273
+ */
12274
+ slug: string;
12275
+ }?,
12276
+ {
12277
+ /**
12278
+ * ID of the entity
12279
+ */
12280
+ id: string;
12281
+ /**
12282
+ * Schema slug of the entity
12283
+ * example:
12284
+ * order
12285
+ */
12286
+ slug: string;
12287
+ }?,
12288
+ {
12289
+ /**
12290
+ * ID of the entity
12291
+ */
12292
+ id: string;
12293
+ /**
12294
+ * Schema slug of the entity
12295
+ * example:
12296
+ * order
12297
+ */
12298
+ slug: string;
12299
+ }?,
12300
+ {
12301
+ /**
12302
+ * ID of the entity
12303
+ */
12304
+ id: string;
12305
+ /**
12306
+ * Schema slug of the entity
12307
+ * example:
12308
+ * order
12309
+ */
12310
+ slug: string;
12311
+ }?,
12312
+ {
12313
+ /**
12314
+ * ID of the entity
12315
+ */
12316
+ id: string;
12317
+ /**
12318
+ * Schema slug of the entity
12319
+ * example:
12320
+ * order
12321
+ */
12322
+ slug: string;
12323
+ }?,
12324
+ {
12325
+ /**
12326
+ * ID of the entity
12327
+ */
12328
+ id: string;
12329
+ /**
12330
+ * Schema slug of the entity
12331
+ * example:
12332
+ * order
12333
+ */
12334
+ slug: string;
12335
+ }?,
12336
+ {
12337
+ /**
12338
+ * ID of the entity
12339
+ */
12340
+ id: string;
12341
+ /**
12342
+ * Schema slug of the entity
12343
+ * example:
12344
+ * order
12345
+ */
12346
+ slug: string;
12347
+ }?,
12348
+ {
12349
+ /**
12350
+ * ID of the entity
12351
+ */
12352
+ id: string;
12353
+ /**
12354
+ * Schema slug of the entity
12355
+ * example:
12356
+ * order
12357
+ */
12358
+ slug: string;
12359
+ }?,
12360
+ {
12361
+ /**
12362
+ * ID of the entity
12363
+ */
12364
+ id: string;
12365
+ /**
12366
+ * Schema slug of the entity
12367
+ * example:
12368
+ * order
12369
+ */
12370
+ slug: string;
12371
+ }?,
12372
+ {
12373
+ /**
12374
+ * ID of the entity
12375
+ */
12376
+ id: string;
12377
+ /**
12378
+ * Schema slug of the entity
12379
+ * example:
12380
+ * order
12381
+ */
12382
+ slug: string;
12383
+ }?,
12384
+ {
12385
+ /**
12386
+ * ID of the entity
12387
+ */
12388
+ id: string;
12389
+ /**
12390
+ * Schema slug of the entity
12391
+ * example:
12392
+ * order
12393
+ */
12394
+ slug: string;
12395
+ }?
12396
+ ];
12397
+ }
12398
+ namespace Responses {
12399
+ export interface $200 {
12400
+ results?: /* Linearized portal workflows of a single entity */ Components.Schemas.EntityPortalWorkflows[];
12401
+ }
12402
+ export type $400 = Components.Responses.InvalidRequest;
12403
+ export type $401 = Components.Responses.Unauthorized;
12404
+ export type $403 = Components.Responses.Forbidden;
12405
+ export type $500 = Components.Responses.InternalServerError;
12406
+ }
12407
+ }
11746
12408
  namespace GetEntityWorkflows {
11747
12409
  namespace Parameters {
11748
12410
  /**
@@ -11919,6 +12581,26 @@ declare namespace Paths {
11919
12581
  export type $500 = Components.Responses.InternalServerError;
11920
12582
  }
11921
12583
  }
12584
+ namespace GetFilePreview {
12585
+ namespace Parameters {
12586
+ export type Id = /**
12587
+ * Entity ID
12588
+ * example:
12589
+ * 5da0a718-c822-403d-9f5d-20d4584e0528
12590
+ */
12591
+ Components.Schemas.EntityId /* uuid */;
12592
+ }
12593
+ export interface PathParameters {
12594
+ id: Parameters.Id;
12595
+ }
12596
+ namespace Responses {
12597
+ export type $200 = Components.Schemas.FilePreviewResult;
12598
+ export type $401 = Components.Responses.Unauthorized;
12599
+ export type $403 = Components.Responses.Forbidden;
12600
+ export type $404 = Components.Responses.NotFound;
12601
+ export type $500 = Components.Responses.InternalServerError;
12602
+ }
12603
+ }
11922
12604
  namespace GetFilesCountByEntity {
11923
12605
  namespace Responses {
11924
12606
  export type $200 = Components.Schemas.EntityFileCount[];
@@ -15006,6 +15688,10 @@ declare namespace Paths {
15006
15688
  * The email address registered in the journey's Login & Registration block
15007
15689
  */
15008
15690
  journey_registration_email?: string;
15691
+ /**
15692
+ * The portal selected on the journey's Login & Registration block, used to target the registration link to that portal
15693
+ */
15694
+ journey_registration_portal_id?: string;
15009
15695
  };
15010
15696
  };
15011
15697
  }
@@ -15439,9 +16125,9 @@ declare namespace Paths {
15439
16125
  */
15440
16126
  Components.Schemas.PortalId;
15441
16127
  /**
15442
- * Items to swap
16128
+ * Optional, opt-in configuration items to additionally swap on top of the always-swapped pages and functional config. Defaults to an empty list (nothing extra swapped). Domain and access/security settings can never be swapped.
15443
16129
  */
15444
- items_to_swap?: Components.Schemas.SwappableConfig[];
16130
+ items_to_swap?: /* Optional configuration item that a portal swap can additionally include. The swap always transfers the pages and the functional experience config that keep the portal working. These items are opt-in on top of that and are OFF by default. Domain and access/security settings (domain, cognito_details, auth_settings) can never be swapped and are therefore not part of this enum. */ Components.Schemas.SwappableConfig[];
15445
16131
  }
15446
16132
  namespace Responses {
15447
16133
  export interface $200 {
@@ -16434,7 +17120,7 @@ export interface OperationMethods {
16434
17120
  config?: AxiosRequestConfig
16435
17121
  ): OperationResponse<Paths.GetPublicPortalExtensionDetailsV3.Responses.$200>
16436
17122
  /**
16437
- * getConsumption - Get Consumption
17123
+ * getConsumption - getConsumption
16438
17124
  *
16439
17125
  * Get energy consumption data between a given time period.
16440
17126
  */
@@ -16444,7 +17130,7 @@ export interface OperationMethods {
16444
17130
  config?: AxiosRequestConfig
16445
17131
  ): OperationResponse<Paths.GetConsumption.Responses.$200>
16446
17132
  /**
16447
- * prepareVisualizationExport - Prepare Visualization Export
17133
+ * prepareVisualizationExport - prepareVisualizationExport
16448
17134
  *
16449
17135
  * Asks an installed App to prepare a downloadable export of a visualization (consumption chart, dynamic tariff chart, etc.). The export is produced by the third-party App via a configured portal extension hook of type `dataExport` — this endpoint does not generate the file itself, it forwards the request to the configured hook and returns the descriptor the App provides (typically a `download_url`).
16450
17136
  *
@@ -16455,7 +17141,7 @@ export interface OperationMethods {
16455
17141
  config?: AxiosRequestConfig
16456
17142
  ): OperationResponse<Paths.PrepareVisualizationExport.Responses.$200>
16457
17143
  /**
16458
- * getVisualizationMetadata - Get Visualization Metadata
17144
+ * getVisualizationMetadata - getVisualizationMetadata
16459
17145
  *
16460
17146
  * Returns runtime metadata describing how a visualization (consumption / price / cost chart) should be rendered for a given portal context (meter, contract, etc). Resolves the extension's `visualizationMetadata` hook implicitly from `app_id` + `extensionId` and invokes it. Supplies the response as a structured payload that the portal uses to configure type/aggregation options, supported intervals, and the available data range.
16461
17147
  *
@@ -16466,7 +17152,7 @@ export interface OperationMethods {
16466
17152
  config?: AxiosRequestConfig
16467
17153
  ): OperationResponse<Paths.GetVisualizationMetadata.Responses.$200>
16468
17154
  /**
16469
- * getCosts - Get Costs
17155
+ * getCosts - getCosts
16470
17156
  *
16471
17157
  * Get energy cost data between a given time period.
16472
17158
  */
@@ -16476,7 +17162,7 @@ export interface OperationMethods {
16476
17162
  config?: AxiosRequestConfig
16477
17163
  ): OperationResponse<Paths.GetCosts.Responses.$200>
16478
17164
  /**
16479
- * getPrices - Get Prices
17165
+ * getPrices - getPrices
16480
17166
  *
16481
17167
  * Get energy prices data between a given time period.
16482
17168
  */
@@ -17312,6 +17998,16 @@ export interface OperationMethods {
17312
17998
  data?: any,
17313
17999
  config?: AxiosRequestConfig
17314
18000
  ): OperationResponse<Paths.GetFileById.Responses.$200>
18001
+ /**
18002
+ * getFilePreview - getFilePreview
18003
+ *
18004
+ * resolves an in-portal preview for a file. Returns a Content-Disposition: inline URL for directly-previewable files (PDF, common image formats), or a document-api PDF conversion result for the Office formats it currently supports (docx/xls/xlsx/xlsm) -- NOT doc/csv/pptx, which document-api's conversion does not cover today. Returns { kind: "unsupported" } (no url) for anything else, so the caller can fall back to the existing download flow. An optional `download_url` is returned for all kinds — including "unsupported" — whenever the file entity exposes one, so the client can render a real anchor for its Download action; it is only a Content-Disposition: attachment URL for private files, and for other access levels it is the plain object URL, which may render inline. The previewability decision is made server-side from the file's own filename/mime_type — never trust a client-supplied kind for anything security-sensitive.
18005
+ */
18006
+ 'getFilePreview'(
18007
+ parameters?: Parameters<Paths.GetFilePreview.PathParameters> | null,
18008
+ data?: any,
18009
+ config?: AxiosRequestConfig
18010
+ ): OperationResponse<Paths.GetFilePreview.Responses.$200>
17315
18011
  /**
17316
18012
  * trackFileDownloaded - trackFileDownloaded
17317
18013
  *
@@ -17323,7 +18019,7 @@ export interface OperationMethods {
17323
18019
  config?: AxiosRequestConfig
17324
18020
  ): OperationResponse<Paths.TrackFileDownloaded.Responses.$200>
17325
18021
  /**
17326
- * getFilesCountByEntity - getFileCountByEntity
18022
+ * getFilesCountByEntity - getFilesCountByEntity
17327
18023
  *
17328
18024
  * Fetch file counts for all ECP user related entities
17329
18025
  */
@@ -17477,7 +18173,7 @@ export interface OperationMethods {
17477
18173
  config?: AxiosRequestConfig
17478
18174
  ): OperationResponse<Paths.UpdateWorkflowStepAsDone.Responses.$200>
17479
18175
  /**
17480
- * getEntityWorkflows - Get workflows for an entity
18176
+ * getEntityWorkflows - getEntityWorkflows
17481
18177
  *
17482
18178
  * Get all workflows associated with an entity (requires access to the entity)
17483
18179
  */
@@ -17487,7 +18183,7 @@ export interface OperationMethods {
17487
18183
  config?: AxiosRequestConfig
17488
18184
  ): OperationResponse<Paths.GetEntityWorkflows.Responses.$200>
17489
18185
  /**
17490
- * getEntityPortalWorkflows - Get linearized workflows for an entity
18186
+ * getEntityPortalWorkflows - getEntityPortalWorkflows
17491
18187
  *
17492
18188
  * Get all portal-relevant workflows associated with an entity (requires access to the entity),
17493
18189
  * linearized by the Workflows API into a flat, ordered list of portal-visible tasks.
@@ -17507,7 +18203,25 @@ export interface OperationMethods {
17507
18203
  config?: AxiosRequestConfig
17508
18204
  ): OperationResponse<Paths.GetEntityPortalWorkflows.Responses.$200>
17509
18205
  /**
17510
- * uploadMeterReadingPhoto - Upload Meter Reading Photo
18206
+ * getEntityPortalWorkflowsBatch - getEntityPortalWorkflowsBatch
18207
+ *
18208
+ * Batch variant of `getEntityPortalWorkflows`: returns portal-relevant workflows for
18209
+ * up to 50 entities — schemas may differ — in a single call, each already linearized
18210
+ * by the Workflows API into a flat, ordered list of portal-visible tasks.
18211
+ *
18212
+ * Intended for portal list views (e.g. an entity list where every card shows its
18213
+ * workflow progress). Entities the portal user cannot access are omitted from the
18214
+ * response; an entry with an empty task list means the entity has no portal-relevant
18215
+ * workflow.
18216
+ *
18217
+ */
18218
+ 'getEntityPortalWorkflowsBatch'(
18219
+ parameters?: Parameters<UnknownParamsObject> | null,
18220
+ data?: Paths.GetEntityPortalWorkflowsBatch.RequestBody,
18221
+ config?: AxiosRequestConfig
18222
+ ): OperationResponse<Paths.GetEntityPortalWorkflowsBatch.Responses.$200>
18223
+ /**
18224
+ * uploadMeterReadingPhoto - uploadMeterReadingPhoto
17511
18225
  *
17512
18226
  * Uploads a Meter Reading photo and - if enabled - gives back data extracted from the photo.
17513
18227
  */
@@ -17517,7 +18231,7 @@ export interface OperationMethods {
17517
18231
  config?: AxiosRequestConfig
17518
18232
  ): OperationResponse<Paths.UploadMeterReadingPhoto.Responses.$200>
17519
18233
  /**
17520
- * createMeterReading - Create Meter Reading
18234
+ * createMeterReading - createMeterReading
17521
18235
  *
17522
18236
  * Inserts a new meter reading.
17523
18237
  */
@@ -17527,7 +18241,9 @@ export interface OperationMethods {
17527
18241
  config?: AxiosRequestConfig
17528
18242
  ): OperationResponse<Paths.CreateMeterReading.Responses.$200>
17529
18243
  /**
17530
- * getAllowedMeterReadingRange - Get allowed reading range for all counters of a meter from the configured
18244
+ * getAllowedMeterReadingRange - getAllowedMeterReadingRange
18245
+ *
18246
+ * Get allowed reading range for all counters of a meter from the configured
17531
18247
  * third-party plausibility check hook using 'range' mode. This endpoint requires
17532
18248
  * a plausibility check hook to be configured for the portal.
17533
18249
  *
@@ -17538,7 +18254,7 @@ export interface OperationMethods {
17538
18254
  config?: AxiosRequestConfig
17539
18255
  ): OperationResponse<Paths.GetAllowedMeterReadingRange.Responses.$200>
17540
18256
  /**
17541
- * getMeterReadings - Get meter readings with optional template resolution
18257
+ * getMeterReadings - getMeterReadings
17542
18258
  *
17543
18259
  * Fetches meter readings for a counter and optionally resolves Handlebars
17544
18260
  * template strings against each reading object using @epilot/variables.
@@ -17785,7 +18501,7 @@ export interface OperationMethods {
17785
18501
  config?: AxiosRequestConfig
17786
18502
  ): OperationResponse<Paths.GetUserEntryPoint.Responses.$200>
17787
18503
  /**
17788
- * updateCampaignPortalBlockStatus - Update Campaign Portal Block Status
18504
+ * updateCampaignPortalBlockStatus - updateCampaignPortalBlockStatus
17789
18505
  *
17790
18506
  * Updates the status of a campaign portal block for multiple recipients.
17791
18507
  */
@@ -18179,7 +18895,7 @@ export interface PathsDictionary {
18179
18895
  }
18180
18896
  ['/v2/portal/consumption']: {
18181
18897
  /**
18182
- * getConsumption - Get Consumption
18898
+ * getConsumption - getConsumption
18183
18899
  *
18184
18900
  * Get energy consumption data between a given time period.
18185
18901
  */
@@ -18191,7 +18907,7 @@ export interface PathsDictionary {
18191
18907
  }
18192
18908
  ['/v2/portal/visualization:export']: {
18193
18909
  /**
18194
- * prepareVisualizationExport - Prepare Visualization Export
18910
+ * prepareVisualizationExport - prepareVisualizationExport
18195
18911
  *
18196
18912
  * Asks an installed App to prepare a downloadable export of a visualization (consumption chart, dynamic tariff chart, etc.). The export is produced by the third-party App via a configured portal extension hook of type `dataExport` — this endpoint does not generate the file itself, it forwards the request to the configured hook and returns the descriptor the App provides (typically a `download_url`).
18197
18913
  *
@@ -18204,7 +18920,7 @@ export interface PathsDictionary {
18204
18920
  }
18205
18921
  ['/v2/portal/visualization/metadata']: {
18206
18922
  /**
18207
- * getVisualizationMetadata - Get Visualization Metadata
18923
+ * getVisualizationMetadata - getVisualizationMetadata
18208
18924
  *
18209
18925
  * Returns runtime metadata describing how a visualization (consumption / price / cost chart) should be rendered for a given portal context (meter, contract, etc). Resolves the extension's `visualizationMetadata` hook implicitly from `app_id` + `extensionId` and invokes it. Supplies the response as a structured payload that the portal uses to configure type/aggregation options, supported intervals, and the available data range.
18210
18926
  *
@@ -18217,7 +18933,7 @@ export interface PathsDictionary {
18217
18933
  }
18218
18934
  ['/v2/portal/costs']: {
18219
18935
  /**
18220
- * getCosts - Get Costs
18936
+ * getCosts - getCosts
18221
18937
  *
18222
18938
  * Get energy cost data between a given time period.
18223
18939
  */
@@ -18229,7 +18945,7 @@ export interface PathsDictionary {
18229
18945
  }
18230
18946
  ['/v2/portal/prices']: {
18231
18947
  /**
18232
- * getPrices - Get Prices
18948
+ * getPrices - getPrices
18233
18949
  *
18234
18950
  * Get energy prices data between a given time period.
18235
18951
  */
@@ -19202,6 +19918,18 @@ export interface PathsDictionary {
19202
19918
  config?: AxiosRequestConfig
19203
19919
  ): OperationResponse<Paths.GetFileById.Responses.$200>
19204
19920
  }
19921
+ ['/v2/portal/user/file/{id}/preview']: {
19922
+ /**
19923
+ * getFilePreview - getFilePreview
19924
+ *
19925
+ * resolves an in-portal preview for a file. Returns a Content-Disposition: inline URL for directly-previewable files (PDF, common image formats), or a document-api PDF conversion result for the Office formats it currently supports (docx/xls/xlsx/xlsm) -- NOT doc/csv/pptx, which document-api's conversion does not cover today. Returns { kind: "unsupported" } (no url) for anything else, so the caller can fall back to the existing download flow. An optional `download_url` is returned for all kinds — including "unsupported" — whenever the file entity exposes one, so the client can render a real anchor for its Download action; it is only a Content-Disposition: attachment URL for private files, and for other access levels it is the plain object URL, which may render inline. The previewability decision is made server-side from the file's own filename/mime_type — never trust a client-supplied kind for anything security-sensitive.
19926
+ */
19927
+ 'get'(
19928
+ parameters?: Parameters<Paths.GetFilePreview.PathParameters> | null,
19929
+ data?: any,
19930
+ config?: AxiosRequestConfig
19931
+ ): OperationResponse<Paths.GetFilePreview.Responses.$200>
19932
+ }
19205
19933
  ['/v2/portal/user/file/{id}/downloaded']: {
19206
19934
  /**
19207
19935
  * trackFileDownloaded - trackFileDownloaded
@@ -19216,7 +19944,7 @@ export interface PathsDictionary {
19216
19944
  }
19217
19945
  ['/v2/portal/user/files/count-by-entity']: {
19218
19946
  /**
19219
- * getFilesCountByEntity - getFileCountByEntity
19947
+ * getFilesCountByEntity - getFilesCountByEntity
19220
19948
  *
19221
19949
  * Fetch file counts for all ECP user related entities
19222
19950
  */
@@ -19398,7 +20126,7 @@ export interface PathsDictionary {
19398
20126
  }
19399
20127
  ['/v2/portal/entity/{slug}/{id}/workflows']: {
19400
20128
  /**
19401
- * getEntityWorkflows - Get workflows for an entity
20129
+ * getEntityWorkflows - getEntityWorkflows
19402
20130
  *
19403
20131
  * Get all workflows associated with an entity (requires access to the entity)
19404
20132
  */
@@ -19410,7 +20138,7 @@ export interface PathsDictionary {
19410
20138
  }
19411
20139
  ['/v2/portal/entity/{slug}/{id}/workflows/linearized']: {
19412
20140
  /**
19413
- * getEntityPortalWorkflows - Get linearized workflows for an entity
20141
+ * getEntityPortalWorkflows - getEntityPortalWorkflows
19414
20142
  *
19415
20143
  * Get all portal-relevant workflows associated with an entity (requires access to the entity),
19416
20144
  * linearized by the Workflows API into a flat, ordered list of portal-visible tasks.
@@ -19430,9 +20158,29 @@ export interface PathsDictionary {
19430
20158
  config?: AxiosRequestConfig
19431
20159
  ): OperationResponse<Paths.GetEntityPortalWorkflows.Responses.$200>
19432
20160
  }
20161
+ ['/v2/portal/entities/workflows/linearized/batch']: {
20162
+ /**
20163
+ * getEntityPortalWorkflowsBatch - getEntityPortalWorkflowsBatch
20164
+ *
20165
+ * Batch variant of `getEntityPortalWorkflows`: returns portal-relevant workflows for
20166
+ * up to 50 entities — schemas may differ — in a single call, each already linearized
20167
+ * by the Workflows API into a flat, ordered list of portal-visible tasks.
20168
+ *
20169
+ * Intended for portal list views (e.g. an entity list where every card shows its
20170
+ * workflow progress). Entities the portal user cannot access are omitted from the
20171
+ * response; an entry with an empty task list means the entity has no portal-relevant
20172
+ * workflow.
20173
+ *
20174
+ */
20175
+ 'post'(
20176
+ parameters?: Parameters<UnknownParamsObject> | null,
20177
+ data?: Paths.GetEntityPortalWorkflowsBatch.RequestBody,
20178
+ config?: AxiosRequestConfig
20179
+ ): OperationResponse<Paths.GetEntityPortalWorkflowsBatch.Responses.$200>
20180
+ }
19433
20181
  ['/v2/portal/metering/reading/photo']: {
19434
20182
  /**
19435
- * uploadMeterReadingPhoto - Upload Meter Reading Photo
20183
+ * uploadMeterReadingPhoto - uploadMeterReadingPhoto
19436
20184
  *
19437
20185
  * Uploads a Meter Reading photo and - if enabled - gives back data extracted from the photo.
19438
20186
  */
@@ -19444,7 +20192,7 @@ export interface PathsDictionary {
19444
20192
  }
19445
20193
  ['/v2/portal/metering/reading']: {
19446
20194
  /**
19447
- * createMeterReading - Create Meter Reading
20195
+ * createMeterReading - createMeterReading
19448
20196
  *
19449
20197
  * Inserts a new meter reading.
19450
20198
  */
@@ -19456,7 +20204,9 @@ export interface PathsDictionary {
19456
20204
  }
19457
20205
  ['/v2/portal/metering/reading/allowed-range/{meter_id}']: {
19458
20206
  /**
19459
- * getAllowedMeterReadingRange - Get allowed reading range for all counters of a meter from the configured
20207
+ * getAllowedMeterReadingRange - getAllowedMeterReadingRange
20208
+ *
20209
+ * Get allowed reading range for all counters of a meter from the configured
19460
20210
  * third-party plausibility check hook using 'range' mode. This endpoint requires
19461
20211
  * a plausibility check hook to be configured for the portal.
19462
20212
  *
@@ -19469,7 +20219,7 @@ export interface PathsDictionary {
19469
20219
  }
19470
20220
  ['/v2/portal/metering/readings']: {
19471
20221
  /**
19472
- * getMeterReadings - Get meter readings with optional template resolution
20222
+ * getMeterReadings - getMeterReadings
19473
20223
  *
19474
20224
  * Fetches meter readings for a counter and optionally resolves Handlebars
19475
20225
  * template strings against each reading object using @epilot/variables.
@@ -19746,7 +20496,7 @@ export interface PathsDictionary {
19746
20496
  }
19747
20497
  ['/v2/portal/campaign/{campaign_id}/entity:status']: {
19748
20498
  /**
19749
- * updateCampaignPortalBlockStatus - Update Campaign Portal Block Status
20499
+ * updateCampaignPortalBlockStatus - updateCampaignPortalBlockStatus
19750
20500
  *
19751
20501
  * Updates the status of a campaign portal block for multiple recipients.
19752
20502
  */
@@ -20050,6 +20800,7 @@ export type EntityGetParams = Components.Schemas.EntityGetParams;
20050
20800
  export type EntityId = Components.Schemas.EntityId;
20051
20801
  export type EntityItem = Components.Schemas.EntityItem;
20052
20802
  export type EntityMatchingConfig = Components.Schemas.EntityMatchingConfig;
20803
+ export type EntityPortalWorkflows = Components.Schemas.EntityPortalWorkflows;
20053
20804
  export type EntityResponse = Components.Schemas.EntityResponse;
20054
20805
  export type EntityResponseGroupedWithHits = Components.Schemas.EntityResponseGroupedWithHits;
20055
20806
  export type EntityResponseWithHits = Components.Schemas.EntityResponseWithHits;
@@ -20082,6 +20833,7 @@ export type ExtraSchemaAttributes = Components.Schemas.ExtraSchemaAttributes;
20082
20833
  export type FailedRuleErrorResp = Components.Schemas.FailedRuleErrorResp;
20083
20834
  export type File = Components.Schemas.File;
20084
20835
  export type FileItem = Components.Schemas.FileItem;
20836
+ export type FilePreviewResult = Components.Schemas.FilePreviewResult;
20085
20837
  export type Grant = Components.Schemas.Grant;
20086
20838
  export type IdentifierAttribute = Components.Schemas.IdentifierAttribute;
20087
20839
  export type InstallmentEvent = Components.Schemas.InstallmentEvent;