@insurance-broker/api-client 1.3.0 → 1.5.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 +281 -0
  2. package/package.json +1 -1
package/dist/schema.d.ts CHANGED
@@ -613,6 +613,40 @@ export interface paths {
613
613
  patch?: never;
614
614
  trace?: never;
615
615
  };
616
+ "/api/v1/form-submissions/{id}/attachments/{attachmentId}/content": {
617
+ parameters: {
618
+ query?: never;
619
+ header?: never;
620
+ path?: never;
621
+ cookie?: never;
622
+ };
623
+ /** Streams the file back, if the malware scan cleared it. */
624
+ get: operations["DownloadSubmissionAttachment"];
625
+ put?: never;
626
+ post?: never;
627
+ delete?: never;
628
+ options?: never;
629
+ head?: never;
630
+ patch?: never;
631
+ trace?: never;
632
+ };
633
+ "/api/v1/form-submissions/{id}/attachments/{attachmentId}/download-links": {
634
+ parameters: {
635
+ query?: never;
636
+ header?: never;
637
+ path?: never;
638
+ cookie?: never;
639
+ };
640
+ get?: never;
641
+ put?: never;
642
+ /** Mints a short-lived, single-use URL for a client that cannot send a header. */
643
+ post: operations["MintSubmissionAttachmentDownloadLink"];
644
+ delete?: never;
645
+ options?: never;
646
+ head?: never;
647
+ patch?: never;
648
+ trace?: never;
649
+ };
616
650
  "/api/v1/customer/form-submissions/{id}/attachments/{evidenceKey}": {
617
651
  parameters: {
618
652
  query?: never;
@@ -664,6 +698,57 @@ export interface paths {
664
698
  patch?: never;
665
699
  trace?: never;
666
700
  };
701
+ "/api/v1/customer/form-submissions/{id}/attachments/{attachmentId}/content": {
702
+ parameters: {
703
+ query?: never;
704
+ header?: never;
705
+ path?: never;
706
+ cookie?: never;
707
+ };
708
+ /** Streams the file back, if the malware scan cleared it. */
709
+ get: operations["DownloadCustomerSubmissionAttachment"];
710
+ put?: never;
711
+ post?: never;
712
+ delete?: never;
713
+ options?: never;
714
+ head?: never;
715
+ patch?: never;
716
+ trace?: never;
717
+ };
718
+ "/api/v1/customer/form-submissions/{id}/attachments/{attachmentId}/download-links": {
719
+ parameters: {
720
+ query?: never;
721
+ header?: never;
722
+ path?: never;
723
+ cookie?: never;
724
+ };
725
+ get?: never;
726
+ put?: never;
727
+ /** Mints a short-lived, single-use URL for a client that cannot send a header. */
728
+ post: operations["MintCustomerSubmissionAttachmentDownloadLink"];
729
+ delete?: never;
730
+ options?: never;
731
+ head?: never;
732
+ patch?: never;
733
+ trace?: never;
734
+ };
735
+ "/api/v1/form-submission-attachments/download-links/{token}": {
736
+ parameters: {
737
+ query?: never;
738
+ header?: never;
739
+ path?: never;
740
+ cookie?: never;
741
+ };
742
+ /** Redeems a short-lived download link and streams the document it names. */
743
+ get: operations["RedeemSubmissionAttachmentDownloadLink"];
744
+ put?: never;
745
+ post?: never;
746
+ delete?: never;
747
+ options?: never;
748
+ head?: never;
749
+ patch?: never;
750
+ trace?: never;
751
+ };
667
752
  "/api/v1/customer/products": {
668
753
  parameters: {
669
754
  query?: never;
@@ -2640,6 +2725,11 @@ export interface components {
2640
2725
  quoteRequestId: null | string;
2641
2726
  options: null | components["schemas"]["PresentedOptionRequest"][];
2642
2727
  };
2728
+ SubmissionAttachmentDownloadLinkResponse: {
2729
+ url: string;
2730
+ /** Format: date-time */
2731
+ expiresAtUtc: string;
2732
+ };
2643
2733
  SubmissionAttachmentResponse: {
2644
2734
  /** Format: uuid */
2645
2735
  id: string;
@@ -2652,6 +2742,9 @@ export interface components {
2652
2742
  /** Format: date-time */
2653
2743
  uploadedAtUtc: string;
2654
2744
  uploadedBySubjectId: string;
2745
+ scanVerdict: string;
2746
+ /** Format: date-time */
2747
+ scannedAtUtc: null | string;
2655
2748
  };
2656
2749
  SubmissionAttachmentUpload: {
2657
2750
  file: components["schemas"]["IFormFile"];
@@ -4623,6 +4716,82 @@ export interface operations {
4623
4716
  };
4624
4717
  };
4625
4718
  };
4719
+ DownloadSubmissionAttachment: {
4720
+ parameters: {
4721
+ query?: never;
4722
+ header?: never;
4723
+ path: {
4724
+ id: string;
4725
+ attachmentId: string;
4726
+ };
4727
+ cookie?: never;
4728
+ };
4729
+ requestBody?: never;
4730
+ responses: {
4731
+ /** @description OK */
4732
+ 200: {
4733
+ headers: {
4734
+ [name: string]: unknown;
4735
+ };
4736
+ content?: never;
4737
+ };
4738
+ /** @description Not Found */
4739
+ 404: {
4740
+ headers: {
4741
+ [name: string]: unknown;
4742
+ };
4743
+ content?: never;
4744
+ };
4745
+ /** @description Conflict */
4746
+ 409: {
4747
+ headers: {
4748
+ [name: string]: unknown;
4749
+ };
4750
+ content: {
4751
+ "application/problem+json": components["schemas"]["ProblemDetails"];
4752
+ };
4753
+ };
4754
+ };
4755
+ };
4756
+ MintSubmissionAttachmentDownloadLink: {
4757
+ parameters: {
4758
+ query?: never;
4759
+ header?: never;
4760
+ path: {
4761
+ id: string;
4762
+ attachmentId: string;
4763
+ };
4764
+ cookie?: never;
4765
+ };
4766
+ requestBody?: never;
4767
+ responses: {
4768
+ /** @description Created */
4769
+ 201: {
4770
+ headers: {
4771
+ [name: string]: unknown;
4772
+ };
4773
+ content: {
4774
+ "application/json": components["schemas"]["SubmissionAttachmentDownloadLinkResponse"];
4775
+ };
4776
+ };
4777
+ /** @description Not Found */
4778
+ 404: {
4779
+ headers: {
4780
+ [name: string]: unknown;
4781
+ };
4782
+ content?: never;
4783
+ };
4784
+ /** @description Conflict */
4785
+ 409: {
4786
+ headers: {
4787
+ [name: string]: unknown;
4788
+ };
4789
+ content: {
4790
+ "application/problem+json": components["schemas"]["ProblemDetails"];
4791
+ };
4792
+ };
4793
+ };
4794
+ };
4626
4795
  UploadCustomerSubmissionAttachment: {
4627
4796
  parameters: {
4628
4797
  query?: never;
@@ -4750,6 +4919,118 @@ export interface operations {
4750
4919
  };
4751
4920
  };
4752
4921
  };
4922
+ DownloadCustomerSubmissionAttachment: {
4923
+ parameters: {
4924
+ query?: never;
4925
+ header?: never;
4926
+ path: {
4927
+ id: string;
4928
+ attachmentId: string;
4929
+ };
4930
+ cookie?: never;
4931
+ };
4932
+ requestBody?: never;
4933
+ responses: {
4934
+ /** @description OK */
4935
+ 200: {
4936
+ headers: {
4937
+ [name: string]: unknown;
4938
+ };
4939
+ content?: never;
4940
+ };
4941
+ /** @description Not Found */
4942
+ 404: {
4943
+ headers: {
4944
+ [name: string]: unknown;
4945
+ };
4946
+ content?: never;
4947
+ };
4948
+ /** @description Conflict */
4949
+ 409: {
4950
+ headers: {
4951
+ [name: string]: unknown;
4952
+ };
4953
+ content: {
4954
+ "application/problem+json": components["schemas"]["ProblemDetails"];
4955
+ };
4956
+ };
4957
+ };
4958
+ };
4959
+ MintCustomerSubmissionAttachmentDownloadLink: {
4960
+ parameters: {
4961
+ query?: never;
4962
+ header?: never;
4963
+ path: {
4964
+ id: string;
4965
+ attachmentId: string;
4966
+ };
4967
+ cookie?: never;
4968
+ };
4969
+ requestBody?: never;
4970
+ responses: {
4971
+ /** @description Created */
4972
+ 201: {
4973
+ headers: {
4974
+ [name: string]: unknown;
4975
+ };
4976
+ content: {
4977
+ "application/json": components["schemas"]["SubmissionAttachmentDownloadLinkResponse"];
4978
+ };
4979
+ };
4980
+ /** @description Not Found */
4981
+ 404: {
4982
+ headers: {
4983
+ [name: string]: unknown;
4984
+ };
4985
+ content?: never;
4986
+ };
4987
+ /** @description Conflict */
4988
+ 409: {
4989
+ headers: {
4990
+ [name: string]: unknown;
4991
+ };
4992
+ content: {
4993
+ "application/problem+json": components["schemas"]["ProblemDetails"];
4994
+ };
4995
+ };
4996
+ };
4997
+ };
4998
+ RedeemSubmissionAttachmentDownloadLink: {
4999
+ parameters: {
5000
+ query?: never;
5001
+ header?: never;
5002
+ path: {
5003
+ token: string;
5004
+ };
5005
+ cookie?: never;
5006
+ };
5007
+ requestBody?: never;
5008
+ responses: {
5009
+ /** @description OK */
5010
+ 200: {
5011
+ headers: {
5012
+ [name: string]: unknown;
5013
+ };
5014
+ content?: never;
5015
+ };
5016
+ /** @description Not Found */
5017
+ 404: {
5018
+ headers: {
5019
+ [name: string]: unknown;
5020
+ };
5021
+ content?: never;
5022
+ };
5023
+ /** @description Conflict */
5024
+ 409: {
5025
+ headers: {
5026
+ [name: string]: unknown;
5027
+ };
5028
+ content: {
5029
+ "application/problem+json": components["schemas"]["ProblemDetails"];
5030
+ };
5031
+ };
5032
+ };
5033
+ };
4753
5034
  SearchOfferedProducts: {
4754
5035
  parameters: {
4755
5036
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.3.0",
3
+ "version": "1.5.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,