@insurance-broker/api-client 1.44.0 → 1.46.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 +490 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -4756,6 +4756,126 @@ export interface paths {
4756
4756
  patch?: never;
4757
4757
  trace?: never;
4758
4758
  };
4759
+ "/api/v1/platform/outbox-messages": {
4760
+ parameters: {
4761
+ query?: never;
4762
+ header?: never;
4763
+ path?: never;
4764
+ cookie?: never;
4765
+ };
4766
+ /**
4767
+ * What has not been published, and what the platform has given up on
4768
+ * @description Every module's outbox in one walk, oldest first, paged by an opaque cursor with no total count. Filter by state (abandoned, failing or pending), by module and by broker. Machinery only: the message payload is deliberately not returned.
4769
+ */
4770
+ get: operations["ListOutboxMessages"];
4771
+ put?: never;
4772
+ post?: never;
4773
+ delete?: never;
4774
+ options?: never;
4775
+ head?: never;
4776
+ patch?: never;
4777
+ trace?: never;
4778
+ };
4779
+ "/api/v1/platform/outbox-messages/{moduleName}/{id}/resumption": {
4780
+ parameters: {
4781
+ query?: never;
4782
+ header?: never;
4783
+ path?: never;
4784
+ cookie?: never;
4785
+ };
4786
+ get?: never;
4787
+ put?: never;
4788
+ /**
4789
+ * Put a message the publisher gave up on back in front of it
4790
+ * @description Clears the terminal state and the backoff, so the next drain pass picks the row up. The attempt count is kept on purpose, so a message that still cannot publish returns to this list rather than spending another full budget failing quietly. Permitted for a suspended broker: resuming completes work that has already committed.
4791
+ */
4792
+ post: operations["ResumeOutboxMessage"];
4793
+ delete?: never;
4794
+ options?: never;
4795
+ head?: never;
4796
+ patch?: never;
4797
+ trace?: never;
4798
+ };
4799
+ "/api/v1/platform/dead-letters": {
4800
+ parameters: {
4801
+ query?: never;
4802
+ header?: never;
4803
+ path?: never;
4804
+ cookie?: never;
4805
+ };
4806
+ /**
4807
+ * Deliveries the dispatcher gave up on
4808
+ * @description The platform's index of its own dead-lettered deliveries, newest first, paged by an opaque cursor with no total count. It names the queue the message is sitting in and never returns its body — a payload is a broker's business data and stays where ADR-0019 put it.
4809
+ */
4810
+ get: operations["ListDeadLetters"];
4811
+ put?: never;
4812
+ post?: never;
4813
+ delete?: never;
4814
+ options?: never;
4815
+ head?: never;
4816
+ patch?: never;
4817
+ trace?: never;
4818
+ };
4819
+ "/api/v1/dashboards/leads": {
4820
+ parameters: {
4821
+ query?: never;
4822
+ header?: never;
4823
+ path?: never;
4824
+ cookie?: never;
4825
+ };
4826
+ /**
4827
+ * How many enquiries arrived, how many nobody has taken, and where they came from
4828
+ * @description The lead funnel, read from phase 10's read model rather than from the module that owns leads (ADR-0047). Filter by a period and by a source; the response echoes both, so a figure carries its own question. Every response reports an as-at, which is the oldest projection instant among the rows counted: a read model is written when the Worker consumes an event, so a figure from one is about a recent past, and a count is only as current as its least-current row. A count of nil has no as-at, because it lags nothing. RPT-001 names eleven subjects and this is the only one with a read model behind it: the rest wait on the modules that own those facts publishing the lifecycle events to feed one, and a dashboard built over their tables instead would be the cross-module join the platform forbids everywhere else.
4829
+ */
4830
+ get: operations["ReadLeadFunnelDashboard"];
4831
+ put?: never;
4832
+ post?: never;
4833
+ delete?: never;
4834
+ options?: never;
4835
+ head?: never;
4836
+ patch?: never;
4837
+ trace?: never;
4838
+ };
4839
+ "/api/v1/dashboards/leads/entries": {
4840
+ parameters: {
4841
+ query?: never;
4842
+ header?: never;
4843
+ path?: never;
4844
+ cookie?: never;
4845
+ };
4846
+ /**
4847
+ * The leads behind a figure on the funnel dashboard
4848
+ * @description The rows the dashboard counted, newest first, paged by an opaque cursor. The filters are the dashboard's own plus 'assigned', which is how the unassigned figure is traced to its rows. Identifiers and dates only: a lead's name and contact details stay in the module that owns them, so this projection never becomes a second copy of personal data somebody has to find at erasure time (ADR-0047 section 6). There is no branch filter and no staff-member filter: the read model carries neither a branch nor a person, and resolving either would be a read of another module's tables.
4849
+ */
4850
+ get: operations["ListLeadFunnelEntries"];
4851
+ put?: never;
4852
+ post?: never;
4853
+ delete?: never;
4854
+ options?: never;
4855
+ head?: never;
4856
+ patch?: never;
4857
+ trace?: never;
4858
+ };
4859
+ "/api/v1/notifications": {
4860
+ parameters: {
4861
+ query?: never;
4862
+ header?: never;
4863
+ path?: never;
4864
+ cookie?: never;
4865
+ };
4866
+ /**
4867
+ * What this broker's platform tried to tell somebody
4868
+ * @description Newest first, paged by an opaque cursor with no total count. Filter by status — the one worth opening this for is Undeliverable, which means the platform raised a notification and had nobody to send it to. The message body is not returned; the kind, the reference and the subject say what it was about.
4869
+ */
4870
+ get: operations["ListNotifications"];
4871
+ put?: never;
4872
+ post?: never;
4873
+ delete?: never;
4874
+ options?: never;
4875
+ head?: never;
4876
+ patch?: never;
4877
+ trace?: never;
4878
+ };
4759
4879
  }
4760
4880
  export type webhooks = Record<string, never>;
4761
4881
  export interface components {
@@ -5255,6 +5375,30 @@ export interface components {
5255
5375
  /** Format: int32 */
5256
5376
  sortOrder: number | string;
5257
5377
  };
5378
+ DeadLetterPage: {
5379
+ items: components["schemas"]["DeadLetterResponse"][];
5380
+ nextCursor: null | string;
5381
+ };
5382
+ DeadLetterResponse: {
5383
+ /** Format: uuid */
5384
+ id: string;
5385
+ /** Format: date-time */
5386
+ deadLetteredAtUtc: string;
5387
+ queue: string;
5388
+ deadLetterQueue: string;
5389
+ eventType: string;
5390
+ consumerName: string;
5391
+ /** Format: uuid */
5392
+ messageId: null | string;
5393
+ tenantKey: null | string;
5394
+ /** Format: int32 */
5395
+ attempts: number | string;
5396
+ cause: string;
5397
+ error: string;
5398
+ /** Format: date-time */
5399
+ occurredAtUtc: null | string;
5400
+ correlationId: null | string;
5401
+ };
5258
5402
  DeclareDocumentTemplateRequest: {
5259
5403
  kind: null | string;
5260
5404
  key: null | string;
@@ -5723,6 +5867,49 @@ export interface components {
5723
5867
  integrationName: null | string;
5724
5868
  };
5725
5869
  JsonElement: unknown;
5870
+ LeadFunnelDashboard: {
5871
+ /** Format: date-time */
5872
+ from: null | string;
5873
+ /** Format: date-time */
5874
+ to: null | string;
5875
+ source: null | string;
5876
+ /** Format: int32 */
5877
+ arrived: number | string;
5878
+ /** Format: int32 */
5879
+ unassigned: number | string;
5880
+ /** Format: int32 */
5881
+ assigned: number | string;
5882
+ bySource: components["schemas"]["LeadFunnelSourceRow"][];
5883
+ /** Format: date-time */
5884
+ asAtUtc: null | string;
5885
+ };
5886
+ LeadFunnelEntryPage: {
5887
+ items: components["schemas"]["LeadFunnelEntryResponse"][];
5888
+ nextCursor: null | string;
5889
+ /** Format: date-time */
5890
+ asAtUtc: null | string;
5891
+ };
5892
+ LeadFunnelEntryResponse: {
5893
+ /** Format: uuid */
5894
+ leadId: string;
5895
+ source: string;
5896
+ /** Format: date-time */
5897
+ createdAtUtc: string;
5898
+ assignedToSubjectId: null | string;
5899
+ /** Format: date-time */
5900
+ assignedAtUtc: null | string;
5901
+ /** Format: date-time */
5902
+ projectedAtUtc: string;
5903
+ };
5904
+ LeadFunnelSourceRow: {
5905
+ source: string;
5906
+ /** Format: int32 */
5907
+ arrived: number | string;
5908
+ /** Format: int32 */
5909
+ unassigned: number | string;
5910
+ /** Format: int32 */
5911
+ assigned: number | string;
5912
+ };
5726
5913
  LeadResponse: {
5727
5914
  /** Format: uuid */
5728
5915
  id: string;
@@ -5768,6 +5955,24 @@ export interface components {
5768
5955
  /** Format: date-time */
5769
5956
  publishedAtUtc: string;
5770
5957
  };
5958
+ NotificationPage: {
5959
+ items: components["schemas"]["NotificationResponse"][];
5960
+ nextCursor: null | string;
5961
+ };
5962
+ NotificationResponse: {
5963
+ /** Format: uuid */
5964
+ id: string;
5965
+ kind: string;
5966
+ reference: null | string;
5967
+ subject: string;
5968
+ status: string;
5969
+ intendedAudience: null | string;
5970
+ recipientSubjectId: null | string;
5971
+ /** Format: date-time */
5972
+ createdAtUtc: string;
5973
+ /** Format: date-time */
5974
+ sentAtUtc: null | string;
5975
+ };
5771
5976
  NotifyClaimRequest: {
5772
5977
  /** Format: uuid */
5773
5978
  policyId: string;
@@ -5895,6 +6100,39 @@ export interface components {
5895
6100
  /** Format: date-time */
5896
6101
  updatedAtUtc: string;
5897
6102
  };
6103
+ OutboxMessagePage: {
6104
+ items: components["schemas"]["OutboxMessageResponse"][];
6105
+ nextCursor: null | string;
6106
+ };
6107
+ OutboxMessageResponse: {
6108
+ module: string;
6109
+ /** Format: uuid */
6110
+ id: string;
6111
+ /** Format: uuid */
6112
+ tenantId: string;
6113
+ eventType: string;
6114
+ /** Format: int32 */
6115
+ eventVersion: number | string;
6116
+ /** Format: date-time */
6117
+ occurredAtUtc: string;
6118
+ /** Format: int32 */
6119
+ attempts: number | string;
6120
+ lastError: null | string;
6121
+ /** Format: date-time */
6122
+ nextAttemptAtUtc: null | string;
6123
+ /** Format: date-time */
6124
+ abandonedAtUtc: null | string;
6125
+ correlationId: null | string;
6126
+ };
6127
+ OutboxResumptionResponse: {
6128
+ module: string;
6129
+ /** Format: uuid */
6130
+ id: string;
6131
+ tenantKey: null | string;
6132
+ eventType: string;
6133
+ /** Format: int32 */
6134
+ attempts: number | string;
6135
+ };
5898
6136
  OverrideEntitlementRequest: {
5899
6137
  featureKey: null | string;
5900
6138
  value: null | string;
@@ -18807,4 +19045,256 @@ export interface operations {
18807
19045
  };
18808
19046
  };
18809
19047
  };
19048
+ ListOutboxMessages: {
19049
+ parameters: {
19050
+ query?: {
19051
+ state?: string;
19052
+ module?: string;
19053
+ tenantKey?: string;
19054
+ cursor?: string;
19055
+ limit?: number | string;
19056
+ };
19057
+ header?: never;
19058
+ path?: never;
19059
+ cookie?: never;
19060
+ };
19061
+ requestBody?: never;
19062
+ responses: {
19063
+ /** @description OK */
19064
+ 200: {
19065
+ headers: {
19066
+ [name: string]: unknown;
19067
+ };
19068
+ content: {
19069
+ "application/json": components["schemas"]["OutboxMessagePage"];
19070
+ };
19071
+ };
19072
+ /** @description Bad Request */
19073
+ 400: {
19074
+ headers: {
19075
+ [name: string]: unknown;
19076
+ };
19077
+ content: {
19078
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
19079
+ };
19080
+ };
19081
+ /** @description Forbidden */
19082
+ 403: {
19083
+ headers: {
19084
+ [name: string]: unknown;
19085
+ };
19086
+ content?: never;
19087
+ };
19088
+ /** @description Not Found */
19089
+ 404: {
19090
+ headers: {
19091
+ [name: string]: unknown;
19092
+ };
19093
+ content?: never;
19094
+ };
19095
+ };
19096
+ };
19097
+ ResumeOutboxMessage: {
19098
+ parameters: {
19099
+ query?: never;
19100
+ header?: never;
19101
+ path: {
19102
+ moduleName: string;
19103
+ id: string;
19104
+ };
19105
+ cookie?: never;
19106
+ };
19107
+ requestBody?: never;
19108
+ responses: {
19109
+ /** @description OK */
19110
+ 200: {
19111
+ headers: {
19112
+ [name: string]: unknown;
19113
+ };
19114
+ content: {
19115
+ "application/json": components["schemas"]["OutboxResumptionResponse"];
19116
+ };
19117
+ };
19118
+ /** @description Forbidden */
19119
+ 403: {
19120
+ headers: {
19121
+ [name: string]: unknown;
19122
+ };
19123
+ content?: never;
19124
+ };
19125
+ /** @description Not Found */
19126
+ 404: {
19127
+ headers: {
19128
+ [name: string]: unknown;
19129
+ };
19130
+ content?: never;
19131
+ };
19132
+ /** @description Conflict */
19133
+ 409: {
19134
+ headers: {
19135
+ [name: string]: unknown;
19136
+ };
19137
+ content?: never;
19138
+ };
19139
+ };
19140
+ };
19141
+ ListDeadLetters: {
19142
+ parameters: {
19143
+ query?: {
19144
+ queue?: string;
19145
+ tenantKey?: string;
19146
+ cause?: string;
19147
+ cursor?: string;
19148
+ limit?: number | string;
19149
+ };
19150
+ header?: never;
19151
+ path?: never;
19152
+ cookie?: never;
19153
+ };
19154
+ requestBody?: never;
19155
+ responses: {
19156
+ /** @description OK */
19157
+ 200: {
19158
+ headers: {
19159
+ [name: string]: unknown;
19160
+ };
19161
+ content: {
19162
+ "application/json": components["schemas"]["DeadLetterPage"];
19163
+ };
19164
+ };
19165
+ /** @description Bad Request */
19166
+ 400: {
19167
+ headers: {
19168
+ [name: string]: unknown;
19169
+ };
19170
+ content: {
19171
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
19172
+ };
19173
+ };
19174
+ /** @description Forbidden */
19175
+ 403: {
19176
+ headers: {
19177
+ [name: string]: unknown;
19178
+ };
19179
+ content?: never;
19180
+ };
19181
+ /** @description Not Found */
19182
+ 404: {
19183
+ headers: {
19184
+ [name: string]: unknown;
19185
+ };
19186
+ content?: never;
19187
+ };
19188
+ };
19189
+ };
19190
+ ReadLeadFunnelDashboard: {
19191
+ parameters: {
19192
+ query?: {
19193
+ from?: string;
19194
+ to?: string;
19195
+ source?: string;
19196
+ };
19197
+ header?: never;
19198
+ path?: never;
19199
+ cookie?: never;
19200
+ };
19201
+ requestBody?: never;
19202
+ responses: {
19203
+ /** @description OK */
19204
+ 200: {
19205
+ headers: {
19206
+ [name: string]: unknown;
19207
+ };
19208
+ content: {
19209
+ "application/json": components["schemas"]["LeadFunnelDashboard"];
19210
+ };
19211
+ };
19212
+ /** @description Bad Request */
19213
+ 400: {
19214
+ headers: {
19215
+ [name: string]: unknown;
19216
+ };
19217
+ content: {
19218
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
19219
+ };
19220
+ };
19221
+ };
19222
+ };
19223
+ ListLeadFunnelEntries: {
19224
+ parameters: {
19225
+ query?: {
19226
+ from?: string;
19227
+ to?: string;
19228
+ source?: string;
19229
+ assigned?: boolean;
19230
+ cursor?: string;
19231
+ limit?: number | string;
19232
+ };
19233
+ header?: never;
19234
+ path?: never;
19235
+ cookie?: never;
19236
+ };
19237
+ requestBody?: never;
19238
+ responses: {
19239
+ /** @description OK */
19240
+ 200: {
19241
+ headers: {
19242
+ [name: string]: unknown;
19243
+ };
19244
+ content: {
19245
+ "application/json": components["schemas"]["LeadFunnelEntryPage"];
19246
+ };
19247
+ };
19248
+ /** @description Bad Request */
19249
+ 400: {
19250
+ headers: {
19251
+ [name: string]: unknown;
19252
+ };
19253
+ content: {
19254
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
19255
+ };
19256
+ };
19257
+ };
19258
+ };
19259
+ ListNotifications: {
19260
+ parameters: {
19261
+ query?: {
19262
+ status?: string;
19263
+ kind?: string;
19264
+ cursor?: string;
19265
+ limit?: number | string;
19266
+ };
19267
+ header?: never;
19268
+ path?: never;
19269
+ cookie?: never;
19270
+ };
19271
+ requestBody?: never;
19272
+ responses: {
19273
+ /** @description OK */
19274
+ 200: {
19275
+ headers: {
19276
+ [name: string]: unknown;
19277
+ };
19278
+ content: {
19279
+ "application/json": components["schemas"]["NotificationPage"];
19280
+ };
19281
+ };
19282
+ /** @description Bad Request */
19283
+ 400: {
19284
+ headers: {
19285
+ [name: string]: unknown;
19286
+ };
19287
+ content: {
19288
+ "application/problem+json": components["schemas"]["HttpValidationProblemDetails"];
19289
+ };
19290
+ };
19291
+ /** @description Forbidden */
19292
+ 403: {
19293
+ headers: {
19294
+ [name: string]: unknown;
19295
+ };
19296
+ content?: never;
19297
+ };
19298
+ };
19299
+ };
18810
19300
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.44.0",
3
+ "version": "1.46.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,