@insurance-broker/api-client 1.42.0 → 1.44.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.
Files changed (2) hide show
  1. package/dist/schema.d.ts +832 -14
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -3186,6 +3186,132 @@ export interface paths {
3186
3186
  patch?: never;
3187
3187
  trace?: never;
3188
3188
  };
3189
+ "/api/v1/platform/plans": {
3190
+ parameters: {
3191
+ query?: never;
3192
+ header?: never;
3193
+ path?: never;
3194
+ cookie?: never;
3195
+ };
3196
+ /**
3197
+ * Every plan in the catalogue and what each one grants.
3198
+ * @description TEN-005. Retired plans included: a plan withdrawn from sale still has brokers on it, and the question this list answers is usually "what is that broker actually on?"
3199
+ *
3200
+ * **A feature absent from a plan is not the same as one granted `false`.** An absent feature falls through to the feature's own default; a granted `false` is the plan saying no. Both appear here as they are.
3201
+ */
3202
+ get: operations["ListPlans"];
3203
+ put?: never;
3204
+ post?: never;
3205
+ delete?: never;
3206
+ options?: never;
3207
+ head?: never;
3208
+ patch?: never;
3209
+ trace?: never;
3210
+ };
3211
+ "/api/v1/platform/plans/{planCode}/features": {
3212
+ parameters: {
3213
+ query?: never;
3214
+ header?: never;
3215
+ path?: never;
3216
+ cookie?: never;
3217
+ };
3218
+ get?: never;
3219
+ put?: never;
3220
+ /**
3221
+ * Make a plan carry a feature, or change what it grants.
3222
+ * @description TEN-005, and the repair path issue #281 was opened for. Creates the `platform_tenancy_plan_features` row that seeding cannot create on a database whose plan predates the feature key.
3223
+ *
3224
+ * **One route for both granting and repricing**, because the caller cannot know which it is without a read it would then race. `201` says the plan did not carry the feature before; `200` says the value moved. The audit entry records which, and from what.
3225
+ *
3226
+ * **Nothing here defines a feature.** A key that is not already in the catalogue is refused: which features exist is configuration, and a surface that could mint one would create keys no gate reads.
3227
+ *
3228
+ * **Every broker on this plan is affected**, including ones nobody named. This is the route on the platform with the widest blast radius per request, which is why it has a permission of its own rather than sharing tenant provisioning's.
3229
+ */
3230
+ post: operations["GrantPlanFeature"];
3231
+ delete?: never;
3232
+ options?: never;
3233
+ head?: never;
3234
+ patch?: never;
3235
+ trace?: never;
3236
+ };
3237
+ "/api/v1/platform/plans/{planCode}/features/{featureKey}/withdrawal": {
3238
+ parameters: {
3239
+ query?: never;
3240
+ header?: never;
3241
+ path?: never;
3242
+ cookie?: never;
3243
+ };
3244
+ get?: never;
3245
+ put?: never;
3246
+ /**
3247
+ * Stop a plan carrying a feature.
3248
+ * @description Removes the grant, so brokers on this plan fall back to the feature's own default.
3249
+ *
3250
+ * **This is not the same as granting `false`**, and choosing the wrong one is how a withdrawal silently grants. If the feature's default is `true` — which is how a capability that shipped before its gate is kept working on existing deployments — removing the row leaves every broker on this plan entitled. Grant `false` to mean "this plan does not include it".
3251
+ *
3252
+ * A plan that does not carry the feature answers `404`: there was nothing to withdraw, and reporting success would tell an operator a decision was taken that was not.
3253
+ */
3254
+ post: operations["WithdrawPlanFeature"];
3255
+ delete?: never;
3256
+ options?: never;
3257
+ head?: never;
3258
+ patch?: never;
3259
+ trace?: never;
3260
+ };
3261
+ "/api/v1/platform/tenants/{tenantKey}/entitlements": {
3262
+ parameters: {
3263
+ query?: never;
3264
+ header?: never;
3265
+ path?: never;
3266
+ cookie?: never;
3267
+ };
3268
+ /**
3269
+ * What one broker is on, and every override it carries.
3270
+ * @description TEN-005. The plan the broker is currently on, and the overrides that take precedence over it.
3271
+ *
3272
+ * **Expired overrides are listed too**, marked `isEffective: false`. "Why did this broker lose a feature overnight?" is answerable only if the row that stopped applying is still visible.
3273
+ */
3274
+ get: operations["ListTenantEntitlements"];
3275
+ put?: never;
3276
+ /**
3277
+ * Give one broker terms its plan does not express.
3278
+ * @description TEN-005. Takes precedence over the broker's plan for this one feature, and over nothing else.
3279
+ *
3280
+ * **`false` is a deliberate denial**, and a different state from having no override: it refuses the feature whatever the plan grants. Withdrawing the override is how a broker goes back to what its plan says.
3281
+ *
3282
+ * **An expiry must be in the future.** An override that had already expired would look like something was granted when nothing was.
3283
+ *
3284
+ * `201` says the override is new; `200` says an existing one was restated. The whole row is restated rather than patched, because a value, a reason and an expiry only make sense together — a patched value under an old reason describes a decision that has since changed.
3285
+ */
3286
+ post: operations["OverrideTenantEntitlement"];
3287
+ delete?: never;
3288
+ options?: never;
3289
+ head?: never;
3290
+ patch?: never;
3291
+ trace?: never;
3292
+ };
3293
+ "/api/v1/platform/tenants/{tenantKey}/entitlements/{featureKey}/withdrawal": {
3294
+ parameters: {
3295
+ query?: never;
3296
+ header?: never;
3297
+ path?: never;
3298
+ cookie?: never;
3299
+ };
3300
+ get?: never;
3301
+ put?: never;
3302
+ /**
3303
+ * Remove a broker's override so it falls back to its plan.
3304
+ * @description The override is deleted rather than expired: an expiry says "stop applying later", and an operator withdrawing one means now. A broker with no override for a feature is answered by its plan, and by the feature's default if the plan is silent.
3305
+ *
3306
+ * A broker with no override for that feature answers `404`.
3307
+ */
3308
+ post: operations["WithdrawTenantEntitlement"];
3309
+ delete?: never;
3310
+ options?: never;
3311
+ head?: never;
3312
+ patch?: never;
3313
+ trace?: never;
3314
+ };
3189
3315
  "/api/v1/public/branding": {
3190
3316
  parameters: {
3191
3317
  query?: never;
@@ -4510,6 +4636,126 @@ export interface paths {
4510
4636
  patch?: never;
4511
4637
  trace?: never;
4512
4638
  };
4639
+ "/api/v1/audit-entries": {
4640
+ parameters: {
4641
+ query?: never;
4642
+ header?: never;
4643
+ path?: never;
4644
+ cookie?: never;
4645
+ };
4646
+ /**
4647
+ * What happened to this broker's records, and who did it
4648
+ * @description NFR-012's question — reconstruct who changed a sensitive record — over this broker's own trail and no one else's. Newest first, paged by an opaque cursor, with no total count. Filter by action, actor, entity, correlation identifier, outcome and period; every filter has an index behind it. An action this platform does not record is refused rather than answered with an empty page.
4649
+ */
4650
+ get: operations["SearchAuditTrail"];
4651
+ put?: never;
4652
+ post?: never;
4653
+ delete?: never;
4654
+ options?: never;
4655
+ head?: never;
4656
+ patch?: never;
4657
+ trace?: never;
4658
+ };
4659
+ "/api/v1/audit-entries/actions": {
4660
+ parameters: {
4661
+ query?: never;
4662
+ header?: never;
4663
+ path?: never;
4664
+ cookie?: never;
4665
+ };
4666
+ /**
4667
+ * The values the action filter accepts
4668
+ * @description Built from the platform's audit action inventory rather than from a seeded catalogue (ADR-0014). The same list on every deployment. It is six values short while issue #313 is open, which the response says rather than leaves to be inferred.
4669
+ */
4670
+ get: operations["ListAuditTrailActions"];
4671
+ put?: never;
4672
+ post?: never;
4673
+ delete?: never;
4674
+ options?: never;
4675
+ head?: never;
4676
+ patch?: never;
4677
+ trace?: never;
4678
+ };
4679
+ "/api/v1/platform/audit-entries": {
4680
+ parameters: {
4681
+ query?: never;
4682
+ header?: never;
4683
+ path?: never;
4684
+ cookie?: never;
4685
+ };
4686
+ /**
4687
+ * What platform operations did, and who did it
4688
+ * @description The platform's record of itself: credentials issued, rotated and revoked, administrators granted and withdrawn, and every cross-tenant read of a broker's trail. Newest first, paged by an opaque cursor, with no total count. Filter by action, operator, entity, correlation identifier, outcome, period and the broker an entry was about.
4689
+ */
4690
+ get: operations["SearchPlatformAuditTrail"];
4691
+ put?: never;
4692
+ post?: never;
4693
+ delete?: never;
4694
+ options?: never;
4695
+ head?: never;
4696
+ patch?: never;
4697
+ trace?: never;
4698
+ };
4699
+ "/api/v1/platform/audit-entries/actions": {
4700
+ parameters: {
4701
+ query?: never;
4702
+ header?: never;
4703
+ path?: never;
4704
+ cookie?: never;
4705
+ };
4706
+ /**
4707
+ * The values the action filter accepts
4708
+ * @description Built from the platform's audit action inventory rather than from a seeded catalogue (ADR-0014). One list for both trails, because both carry one vocabulary and one check constraint. It is six values short while issue #313 is open.
4709
+ */
4710
+ get: operations["ListPlatformAuditTrailActions"];
4711
+ put?: never;
4712
+ post?: never;
4713
+ delete?: never;
4714
+ options?: never;
4715
+ head?: never;
4716
+ patch?: never;
4717
+ trace?: never;
4718
+ };
4719
+ "/api/v1/platform/tenants/{tenantKey}/audit-entries": {
4720
+ parameters: {
4721
+ query?: never;
4722
+ header?: never;
4723
+ path?: never;
4724
+ cookie?: never;
4725
+ };
4726
+ /**
4727
+ * What a named broker's staff did, read from platform scope
4728
+ * @description The question support is asked after an incident and cannot otherwise answer. Every invocation writes a platform audit entry naming the broker read, the operator who read it and what they filtered for — ADR-0010's accountability rests on that entry, so the read is refused if it cannot be recorded. Newest first, paged by an opaque cursor, with no total count.
4729
+ */
4730
+ get: operations["SearchTenantAuditTrail"];
4731
+ put?: never;
4732
+ post?: never;
4733
+ delete?: never;
4734
+ options?: never;
4735
+ head?: never;
4736
+ patch?: never;
4737
+ trace?: never;
4738
+ };
4739
+ "/api/v1/platform/tenants/{tenantKey}/audit-entries/actions": {
4740
+ parameters: {
4741
+ query?: never;
4742
+ header?: never;
4743
+ path?: never;
4744
+ cookie?: never;
4745
+ };
4746
+ /**
4747
+ * The values the action filter accepts
4748
+ * @description Built from the platform's audit action inventory rather than from a seeded catalogue (ADR-0014). It discloses nothing about the broker named in the path — the vocabulary is a property of the software — so unlike the listing beside it, this route records no audit entry. It is six values short while issue #313 is open.
4749
+ */
4750
+ get: operations["ListTenantAuditTrailActions"];
4751
+ put?: never;
4752
+ post?: never;
4753
+ delete?: never;
4754
+ options?: never;
4755
+ head?: never;
4756
+ patch?: never;
4757
+ trace?: never;
4758
+ };
4513
4759
  }
4514
4760
  export type webhooks = Record<string, never>;
4515
4761
  export interface components {
@@ -4591,6 +4837,39 @@ export interface components {
4591
4837
  /** Format: uuid */
4592
4838
  insurerId: null | string;
4593
4839
  };
4840
+ AuditActionsResponse: {
4841
+ actions: string[];
4842
+ incomplete: boolean;
4843
+ };
4844
+ AuditChangeResponse: {
4845
+ property: string;
4846
+ from: null | string;
4847
+ to: null | string;
4848
+ };
4849
+ AuditEntryPage: {
4850
+ items: components["schemas"]["AuditEntryResponse"][];
4851
+ nextCursor: null | string;
4852
+ };
4853
+ AuditEntryResponse: {
4854
+ /** Format: uuid */
4855
+ id: string;
4856
+ /** Format: date-time */
4857
+ occurredAtUtc: string;
4858
+ action: string;
4859
+ outcome: string;
4860
+ entityType: string;
4861
+ entityId: string;
4862
+ reference: null | string;
4863
+ actorSubjectId: null | string;
4864
+ /** Format: uuid */
4865
+ actingPartyId: null | string;
4866
+ source: string;
4867
+ correlationId: null | string;
4868
+ clientIpAddress: null | string;
4869
+ clientUserAgent: null | string;
4870
+ detail: null | string;
4871
+ changes: components["schemas"]["AuditChangeResponse"][];
4872
+ };
4594
4873
  BranchResponse: {
4595
4874
  /** Format: uuid */
4596
4875
  id: string;
@@ -5185,6 +5464,10 @@ export interface components {
5185
5464
  GenerateDocumentRequest: {
5186
5465
  format: null | string;
5187
5466
  };
5467
+ GrantPlanFeatureRequest: {
5468
+ featureKey: null | string;
5469
+ value: null | string;
5470
+ };
5188
5471
  GrantPlatformAdministratorRequest: {
5189
5472
  subjectId: null | string;
5190
5473
  displayName: null | string;
@@ -5612,6 +5895,13 @@ export interface components {
5612
5895
  /** Format: date-time */
5613
5896
  updatedAtUtc: string;
5614
5897
  };
5898
+ OverrideEntitlementRequest: {
5899
+ featureKey: null | string;
5900
+ value: null | string;
5901
+ reason: null | string;
5902
+ /** Format: date-time */
5903
+ expiresAtUtc: null | string;
5904
+ };
5615
5905
  OwnCustomerAccountResponse: {
5616
5906
  /** Format: uuid */
5617
5907
  customerId: string;
@@ -5791,6 +6081,45 @@ export interface components {
5791
6081
  /** Format: date-time */
5792
6082
  updatedAtUtc: string;
5793
6083
  };
6084
+ PlatformAuditEntryPage: {
6085
+ items: components["schemas"]["PlatformAuditEntryResponse"][];
6086
+ nextCursor: null | string;
6087
+ };
6088
+ PlatformAuditEntryResponse: {
6089
+ /** Format: uuid */
6090
+ id: string;
6091
+ /** Format: date-time */
6092
+ occurredAtUtc: string;
6093
+ action: string;
6094
+ outcome: string;
6095
+ entityType: string;
6096
+ entityId: string;
6097
+ reference: null | string;
6098
+ /** Format: uuid */
6099
+ affectedTenantId: null | string;
6100
+ affectedTenantKey: null | string;
6101
+ actorSubjectId: null | string;
6102
+ source: string;
6103
+ correlationId: null | string;
6104
+ clientIpAddress: null | string;
6105
+ clientUserAgent: null | string;
6106
+ detail: null | string;
6107
+ changes: components["schemas"]["AuditChangeResponse"][];
6108
+ };
6109
+ PlatformPlanFeatureResponse: {
6110
+ featureKey: string;
6111
+ value: string;
6112
+ valueKind: string;
6113
+ };
6114
+ PlatformPlanResponse: {
6115
+ code: string;
6116
+ name: string;
6117
+ description: null | string;
6118
+ isPubliclyAvailable: boolean;
6119
+ /** Format: int32 */
6120
+ sortOrder: number | string;
6121
+ features: components["schemas"]["PlatformPlanFeatureResponse"][];
6122
+ };
5794
6123
  PolicyDocumentResponse: {
5795
6124
  /** Format: uuid */
5796
6125
  id: string;
@@ -6647,6 +6976,19 @@ export interface components {
6647
6976
  supportPhone: null | string;
6648
6977
  websiteUrl: null | string;
6649
6978
  };
6979
+ TenantEntitlementResponse: {
6980
+ featureKey: string;
6981
+ value: string;
6982
+ reason: null | string;
6983
+ /** Format: date-time */
6984
+ expiresAtUtc: null | string;
6985
+ isEffective: boolean;
6986
+ };
6987
+ TenantEntitlementsResponse: {
6988
+ tenantKey: string;
6989
+ planCode: null | string;
6990
+ entitlements: components["schemas"]["TenantEntitlementResponse"][];
6991
+ };
6650
6992
  TenantProfileResponse: {
6651
6993
  regulatorName: null | string;
6652
6994
  licenceNumber: null | string;
@@ -14426,7 +14768,7 @@ export interface operations {
14426
14768
  };
14427
14769
  };
14428
14770
  };
14429
- GetPublicBranding: {
14771
+ ListPlans: {
14430
14772
  parameters: {
14431
14773
  query?: never;
14432
14774
  header?: never;
@@ -14441,18 +14783,11 @@ export interface operations {
14441
14783
  [name: string]: unknown;
14442
14784
  };
14443
14785
  content: {
14444
- "application/json": components["schemas"]["PublicBrandingResponse"];
14786
+ "application/json": components["schemas"]["PlatformPlanResponse"][];
14445
14787
  };
14446
14788
  };
14447
- /** @description Not Found */
14448
- 404: {
14449
- headers: {
14450
- [name: string]: unknown;
14451
- };
14452
- content?: never;
14453
- };
14454
- /** @description Too Many Requests */
14455
- 429: {
14789
+ /** @description Forbidden */
14790
+ 403: {
14456
14791
  headers: {
14457
14792
  [name: string]: unknown;
14458
14793
  };
@@ -14460,16 +14795,272 @@ export interface operations {
14460
14795
  };
14461
14796
  };
14462
14797
  };
14463
- OpenPolicy: {
14798
+ GrantPlanFeature: {
14464
14799
  parameters: {
14465
14800
  query?: never;
14466
14801
  header?: never;
14467
- path?: never;
14802
+ path: {
14803
+ planCode: string;
14804
+ };
14468
14805
  cookie?: never;
14469
14806
  };
14470
14807
  requestBody: {
14471
14808
  content: {
14472
- "application/json": components["schemas"]["OpenPolicyRequest"];
14809
+ "application/json": components["schemas"]["GrantPlanFeatureRequest"];
14810
+ };
14811
+ };
14812
+ responses: {
14813
+ /** @description OK */
14814
+ 200: {
14815
+ headers: {
14816
+ [name: string]: unknown;
14817
+ };
14818
+ content: {
14819
+ "application/json": components["schemas"]["PlatformPlanFeatureResponse"];
14820
+ };
14821
+ };
14822
+ /** @description Created */
14823
+ 201: {
14824
+ headers: {
14825
+ [name: string]: unknown;
14826
+ };
14827
+ content: {
14828
+ "application/json": components["schemas"]["PlatformPlanFeatureResponse"];
14829
+ };
14830
+ };
14831
+ /** @description Bad Request */
14832
+ 400: {
14833
+ headers: {
14834
+ [name: string]: unknown;
14835
+ };
14836
+ content: {
14837
+ "application/problem+json": components["schemas"]["ProblemDetails"];
14838
+ };
14839
+ };
14840
+ /** @description Forbidden */
14841
+ 403: {
14842
+ headers: {
14843
+ [name: string]: unknown;
14844
+ };
14845
+ content?: never;
14846
+ };
14847
+ /** @description Not Found */
14848
+ 404: {
14849
+ headers: {
14850
+ [name: string]: unknown;
14851
+ };
14852
+ content?: never;
14853
+ };
14854
+ };
14855
+ };
14856
+ WithdrawPlanFeature: {
14857
+ parameters: {
14858
+ query?: never;
14859
+ header?: never;
14860
+ path: {
14861
+ planCode: string;
14862
+ featureKey: string;
14863
+ };
14864
+ cookie?: never;
14865
+ };
14866
+ requestBody?: never;
14867
+ responses: {
14868
+ /** @description No Content */
14869
+ 204: {
14870
+ headers: {
14871
+ [name: string]: unknown;
14872
+ };
14873
+ content?: never;
14874
+ };
14875
+ /** @description Forbidden */
14876
+ 403: {
14877
+ headers: {
14878
+ [name: string]: unknown;
14879
+ };
14880
+ content?: never;
14881
+ };
14882
+ /** @description Not Found */
14883
+ 404: {
14884
+ headers: {
14885
+ [name: string]: unknown;
14886
+ };
14887
+ content?: never;
14888
+ };
14889
+ };
14890
+ };
14891
+ ListTenantEntitlements: {
14892
+ parameters: {
14893
+ query?: never;
14894
+ header?: never;
14895
+ path: {
14896
+ tenantKey: string;
14897
+ };
14898
+ cookie?: never;
14899
+ };
14900
+ requestBody?: never;
14901
+ responses: {
14902
+ /** @description OK */
14903
+ 200: {
14904
+ headers: {
14905
+ [name: string]: unknown;
14906
+ };
14907
+ content: {
14908
+ "application/json": components["schemas"]["TenantEntitlementsResponse"];
14909
+ };
14910
+ };
14911
+ /** @description Forbidden */
14912
+ 403: {
14913
+ headers: {
14914
+ [name: string]: unknown;
14915
+ };
14916
+ content?: never;
14917
+ };
14918
+ /** @description Not Found */
14919
+ 404: {
14920
+ headers: {
14921
+ [name: string]: unknown;
14922
+ };
14923
+ content?: never;
14924
+ };
14925
+ };
14926
+ };
14927
+ OverrideTenantEntitlement: {
14928
+ parameters: {
14929
+ query?: never;
14930
+ header?: never;
14931
+ path: {
14932
+ tenantKey: string;
14933
+ };
14934
+ cookie?: never;
14935
+ };
14936
+ requestBody: {
14937
+ content: {
14938
+ "application/json": components["schemas"]["OverrideEntitlementRequest"];
14939
+ };
14940
+ };
14941
+ responses: {
14942
+ /** @description OK */
14943
+ 200: {
14944
+ headers: {
14945
+ [name: string]: unknown;
14946
+ };
14947
+ content: {
14948
+ "application/json": components["schemas"]["TenantEntitlementResponse"];
14949
+ };
14950
+ };
14951
+ /** @description Created */
14952
+ 201: {
14953
+ headers: {
14954
+ [name: string]: unknown;
14955
+ };
14956
+ content: {
14957
+ "application/json": components["schemas"]["TenantEntitlementResponse"];
14958
+ };
14959
+ };
14960
+ /** @description Bad Request */
14961
+ 400: {
14962
+ headers: {
14963
+ [name: string]: unknown;
14964
+ };
14965
+ content: {
14966
+ "application/problem+json": components["schemas"]["ProblemDetails"];
14967
+ };
14968
+ };
14969
+ /** @description Forbidden */
14970
+ 403: {
14971
+ headers: {
14972
+ [name: string]: unknown;
14973
+ };
14974
+ content?: never;
14975
+ };
14976
+ /** @description Not Found */
14977
+ 404: {
14978
+ headers: {
14979
+ [name: string]: unknown;
14980
+ };
14981
+ content?: never;
14982
+ };
14983
+ };
14984
+ };
14985
+ WithdrawTenantEntitlement: {
14986
+ parameters: {
14987
+ query?: never;
14988
+ header?: never;
14989
+ path: {
14990
+ tenantKey: string;
14991
+ featureKey: string;
14992
+ };
14993
+ cookie?: never;
14994
+ };
14995
+ requestBody?: never;
14996
+ responses: {
14997
+ /** @description No Content */
14998
+ 204: {
14999
+ headers: {
15000
+ [name: string]: unknown;
15001
+ };
15002
+ content?: never;
15003
+ };
15004
+ /** @description Forbidden */
15005
+ 403: {
15006
+ headers: {
15007
+ [name: string]: unknown;
15008
+ };
15009
+ content?: never;
15010
+ };
15011
+ /** @description Not Found */
15012
+ 404: {
15013
+ headers: {
15014
+ [name: string]: unknown;
15015
+ };
15016
+ content?: never;
15017
+ };
15018
+ };
15019
+ };
15020
+ GetPublicBranding: {
15021
+ parameters: {
15022
+ query?: never;
15023
+ header?: never;
15024
+ path?: never;
15025
+ cookie?: never;
15026
+ };
15027
+ requestBody?: never;
15028
+ responses: {
15029
+ /** @description OK */
15030
+ 200: {
15031
+ headers: {
15032
+ [name: string]: unknown;
15033
+ };
15034
+ content: {
15035
+ "application/json": components["schemas"]["PublicBrandingResponse"];
15036
+ };
15037
+ };
15038
+ /** @description Not Found */
15039
+ 404: {
15040
+ headers: {
15041
+ [name: string]: unknown;
15042
+ };
15043
+ content?: never;
15044
+ };
15045
+ /** @description Too Many Requests */
15046
+ 429: {
15047
+ headers: {
15048
+ [name: string]: unknown;
15049
+ };
15050
+ content?: never;
15051
+ };
15052
+ };
15053
+ };
15054
+ OpenPolicy: {
15055
+ parameters: {
15056
+ query?: never;
15057
+ header?: never;
15058
+ path?: never;
15059
+ cookie?: never;
15060
+ };
15061
+ requestBody: {
15062
+ content: {
15063
+ "application/json": components["schemas"]["OpenPolicyRequest"];
14473
15064
  };
14474
15065
  };
14475
15066
  responses: {
@@ -17989,4 +18580,231 @@ export interface operations {
17989
18580
  };
17990
18581
  };
17991
18582
  };
18583
+ SearchAuditTrail: {
18584
+ parameters: {
18585
+ query?: {
18586
+ action?: string;
18587
+ actor?: string;
18588
+ entityType?: string;
18589
+ entityId?: string;
18590
+ correlationId?: string;
18591
+ outcome?: string;
18592
+ from?: string;
18593
+ to?: string;
18594
+ cursor?: string;
18595
+ limit?: number | string;
18596
+ };
18597
+ header?: never;
18598
+ path?: never;
18599
+ cookie?: never;
18600
+ };
18601
+ requestBody?: never;
18602
+ responses: {
18603
+ /** @description OK */
18604
+ 200: {
18605
+ headers: {
18606
+ [name: string]: unknown;
18607
+ };
18608
+ content: {
18609
+ "application/json": components["schemas"]["AuditEntryPage"];
18610
+ };
18611
+ };
18612
+ /** @description Bad Request */
18613
+ 400: {
18614
+ headers: {
18615
+ [name: string]: unknown;
18616
+ };
18617
+ content: {
18618
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
18619
+ };
18620
+ };
18621
+ };
18622
+ };
18623
+ ListAuditTrailActions: {
18624
+ parameters: {
18625
+ query?: never;
18626
+ header?: never;
18627
+ path?: never;
18628
+ cookie?: never;
18629
+ };
18630
+ requestBody?: never;
18631
+ responses: {
18632
+ /** @description OK */
18633
+ 200: {
18634
+ headers: {
18635
+ [name: string]: unknown;
18636
+ };
18637
+ content: {
18638
+ "application/json": components["schemas"]["AuditActionsResponse"];
18639
+ };
18640
+ };
18641
+ };
18642
+ };
18643
+ SearchPlatformAuditTrail: {
18644
+ parameters: {
18645
+ query?: {
18646
+ action?: string;
18647
+ actor?: string;
18648
+ entityType?: string;
18649
+ entityId?: string;
18650
+ correlationId?: string;
18651
+ outcome?: string;
18652
+ from?: string;
18653
+ to?: string;
18654
+ affectedTenant?: string;
18655
+ cursor?: string;
18656
+ limit?: number | string;
18657
+ };
18658
+ header?: never;
18659
+ path?: never;
18660
+ cookie?: never;
18661
+ };
18662
+ requestBody?: never;
18663
+ responses: {
18664
+ /** @description OK */
18665
+ 200: {
18666
+ headers: {
18667
+ [name: string]: unknown;
18668
+ };
18669
+ content: {
18670
+ "application/json": components["schemas"]["PlatformAuditEntryPage"];
18671
+ };
18672
+ };
18673
+ /** @description Bad Request */
18674
+ 400: {
18675
+ headers: {
18676
+ [name: string]: unknown;
18677
+ };
18678
+ content: {
18679
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
18680
+ };
18681
+ };
18682
+ /** @description Forbidden */
18683
+ 403: {
18684
+ headers: {
18685
+ [name: string]: unknown;
18686
+ };
18687
+ content?: never;
18688
+ };
18689
+ };
18690
+ };
18691
+ ListPlatformAuditTrailActions: {
18692
+ parameters: {
18693
+ query?: never;
18694
+ header?: never;
18695
+ path?: never;
18696
+ cookie?: never;
18697
+ };
18698
+ requestBody?: never;
18699
+ responses: {
18700
+ /** @description OK */
18701
+ 200: {
18702
+ headers: {
18703
+ [name: string]: unknown;
18704
+ };
18705
+ content: {
18706
+ "application/json": components["schemas"]["AuditActionsResponse"];
18707
+ };
18708
+ };
18709
+ /** @description Forbidden */
18710
+ 403: {
18711
+ headers: {
18712
+ [name: string]: unknown;
18713
+ };
18714
+ content?: never;
18715
+ };
18716
+ };
18717
+ };
18718
+ SearchTenantAuditTrail: {
18719
+ parameters: {
18720
+ query?: {
18721
+ action?: string;
18722
+ actor?: string;
18723
+ entityType?: string;
18724
+ entityId?: string;
18725
+ correlationId?: string;
18726
+ outcome?: string;
18727
+ from?: string;
18728
+ to?: string;
18729
+ cursor?: string;
18730
+ limit?: number | string;
18731
+ };
18732
+ header?: never;
18733
+ path: {
18734
+ tenantKey: string;
18735
+ };
18736
+ cookie?: never;
18737
+ };
18738
+ requestBody?: never;
18739
+ responses: {
18740
+ /** @description OK */
18741
+ 200: {
18742
+ headers: {
18743
+ [name: string]: unknown;
18744
+ };
18745
+ content: {
18746
+ "application/json": components["schemas"]["AuditEntryPage"];
18747
+ };
18748
+ };
18749
+ /** @description Bad Request */
18750
+ 400: {
18751
+ headers: {
18752
+ [name: string]: unknown;
18753
+ };
18754
+ content: {
18755
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
18756
+ };
18757
+ };
18758
+ /** @description Forbidden */
18759
+ 403: {
18760
+ headers: {
18761
+ [name: string]: unknown;
18762
+ };
18763
+ content?: never;
18764
+ };
18765
+ /** @description Not Found */
18766
+ 404: {
18767
+ headers: {
18768
+ [name: string]: unknown;
18769
+ };
18770
+ content?: never;
18771
+ };
18772
+ };
18773
+ };
18774
+ ListTenantAuditTrailActions: {
18775
+ parameters: {
18776
+ query?: never;
18777
+ header?: never;
18778
+ path: {
18779
+ tenantKey: string;
18780
+ };
18781
+ cookie?: never;
18782
+ };
18783
+ requestBody?: never;
18784
+ responses: {
18785
+ /** @description OK */
18786
+ 200: {
18787
+ headers: {
18788
+ [name: string]: unknown;
18789
+ };
18790
+ content: {
18791
+ "application/json": components["schemas"]["AuditActionsResponse"];
18792
+ };
18793
+ };
18794
+ /** @description Forbidden */
18795
+ 403: {
18796
+ headers: {
18797
+ [name: string]: unknown;
18798
+ };
18799
+ content?: never;
18800
+ };
18801
+ /** @description Not Found */
18802
+ 404: {
18803
+ headers: {
18804
+ [name: string]: unknown;
18805
+ };
18806
+ content?: never;
18807
+ };
18808
+ };
18809
+ };
17992
18810
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.42.0",
3
+ "version": "1.44.0",
4
4
  "description": "Generated TypeScript client for the Insurance Broker Platform API. Do not edit by hand: regenerate with scripts/update-api-contract.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,