@insurance-broker/api-client 1.4.0 → 1.6.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 +366 -2
  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,91 @@ 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
+ };
752
+ "/api/v1/document-classifications": {
753
+ parameters: {
754
+ query?: never;
755
+ header?: never;
756
+ path?: never;
757
+ cookie?: never;
758
+ };
759
+ /** The sensitivity labels a document may be uploaded with. */
760
+ get: operations["ListDataClassifications"];
761
+ put?: never;
762
+ post?: never;
763
+ delete?: never;
764
+ options?: never;
765
+ head?: never;
766
+ patch?: never;
767
+ trace?: never;
768
+ };
769
+ "/api/v1/customer/document-classifications": {
770
+ parameters: {
771
+ query?: never;
772
+ header?: never;
773
+ path?: never;
774
+ cookie?: never;
775
+ };
776
+ /** The sensitivity labels a document may be uploaded with. */
777
+ get: operations["ListCustomerDataClassifications"];
778
+ put?: never;
779
+ post?: never;
780
+ delete?: never;
781
+ options?: never;
782
+ head?: never;
783
+ patch?: never;
784
+ trace?: never;
785
+ };
667
786
  "/api/v1/customer/products": {
668
787
  parameters: {
669
788
  query?: never;
@@ -1997,6 +2116,13 @@ export interface components {
1997
2116
  /** Format: date-time */
1998
2117
  updatedAtUtc: string;
1999
2118
  };
2119
+ DataClassificationResponse: {
2120
+ key: string;
2121
+ name: string;
2122
+ description: null | string;
2123
+ /** Format: int32 */
2124
+ sortOrder: number | string;
2125
+ };
2000
2126
  DeclareFormDefinitionRequest: {
2001
2127
  /** Format: uuid */
2002
2128
  productId: null | string;
@@ -2640,6 +2766,11 @@ export interface components {
2640
2766
  quoteRequestId: null | string;
2641
2767
  options: null | components["schemas"]["PresentedOptionRequest"][];
2642
2768
  };
2769
+ SubmissionAttachmentDownloadLinkResponse: {
2770
+ url: string;
2771
+ /** Format: date-time */
2772
+ expiresAtUtc: string;
2773
+ };
2643
2774
  SubmissionAttachmentResponse: {
2644
2775
  /** Format: uuid */
2645
2776
  id: string;
@@ -2655,6 +2786,7 @@ export interface components {
2655
2786
  scanVerdict: string;
2656
2787
  /** Format: date-time */
2657
2788
  scannedAtUtc: null | string;
2789
+ classification: null | string;
2658
2790
  };
2659
2791
  SubmissionAttachmentUpload: {
2660
2792
  file: components["schemas"]["IFormFile"];
@@ -4502,7 +4634,9 @@ export interface operations {
4502
4634
  UploadSubmissionAttachment: {
4503
4635
  parameters: {
4504
4636
  query?: never;
4505
- header?: never;
4637
+ header?: {
4638
+ "X-Document-Classification"?: string;
4639
+ };
4506
4640
  path: {
4507
4641
  id: string;
4508
4642
  evidenceKey: string;
@@ -4626,10 +4760,88 @@ export interface operations {
4626
4760
  };
4627
4761
  };
4628
4762
  };
4629
- UploadCustomerSubmissionAttachment: {
4763
+ DownloadSubmissionAttachment: {
4764
+ parameters: {
4765
+ query?: never;
4766
+ header?: never;
4767
+ path: {
4768
+ id: string;
4769
+ attachmentId: string;
4770
+ };
4771
+ cookie?: never;
4772
+ };
4773
+ requestBody?: never;
4774
+ responses: {
4775
+ /** @description OK */
4776
+ 200: {
4777
+ headers: {
4778
+ [name: string]: unknown;
4779
+ };
4780
+ content?: never;
4781
+ };
4782
+ /** @description Not Found */
4783
+ 404: {
4784
+ headers: {
4785
+ [name: string]: unknown;
4786
+ };
4787
+ content?: never;
4788
+ };
4789
+ /** @description Conflict */
4790
+ 409: {
4791
+ headers: {
4792
+ [name: string]: unknown;
4793
+ };
4794
+ content: {
4795
+ "application/problem+json": components["schemas"]["ProblemDetails"];
4796
+ };
4797
+ };
4798
+ };
4799
+ };
4800
+ MintSubmissionAttachmentDownloadLink: {
4630
4801
  parameters: {
4631
4802
  query?: never;
4632
4803
  header?: never;
4804
+ path: {
4805
+ id: string;
4806
+ attachmentId: string;
4807
+ };
4808
+ cookie?: never;
4809
+ };
4810
+ requestBody?: never;
4811
+ responses: {
4812
+ /** @description Created */
4813
+ 201: {
4814
+ headers: {
4815
+ [name: string]: unknown;
4816
+ };
4817
+ content: {
4818
+ "application/json": components["schemas"]["SubmissionAttachmentDownloadLinkResponse"];
4819
+ };
4820
+ };
4821
+ /** @description Not Found */
4822
+ 404: {
4823
+ headers: {
4824
+ [name: string]: unknown;
4825
+ };
4826
+ content?: never;
4827
+ };
4828
+ /** @description Conflict */
4829
+ 409: {
4830
+ headers: {
4831
+ [name: string]: unknown;
4832
+ };
4833
+ content: {
4834
+ "application/problem+json": components["schemas"]["ProblemDetails"];
4835
+ };
4836
+ };
4837
+ };
4838
+ };
4839
+ UploadCustomerSubmissionAttachment: {
4840
+ parameters: {
4841
+ query?: never;
4842
+ header?: {
4843
+ "X-Document-Classification"?: string;
4844
+ };
4633
4845
  path: {
4634
4846
  id: string;
4635
4847
  evidenceKey: string;
@@ -4753,6 +4965,158 @@ export interface operations {
4753
4965
  };
4754
4966
  };
4755
4967
  };
4968
+ DownloadCustomerSubmissionAttachment: {
4969
+ parameters: {
4970
+ query?: never;
4971
+ header?: never;
4972
+ path: {
4973
+ id: string;
4974
+ attachmentId: string;
4975
+ };
4976
+ cookie?: never;
4977
+ };
4978
+ requestBody?: never;
4979
+ responses: {
4980
+ /** @description OK */
4981
+ 200: {
4982
+ headers: {
4983
+ [name: string]: unknown;
4984
+ };
4985
+ content?: never;
4986
+ };
4987
+ /** @description Not Found */
4988
+ 404: {
4989
+ headers: {
4990
+ [name: string]: unknown;
4991
+ };
4992
+ content?: never;
4993
+ };
4994
+ /** @description Conflict */
4995
+ 409: {
4996
+ headers: {
4997
+ [name: string]: unknown;
4998
+ };
4999
+ content: {
5000
+ "application/problem+json": components["schemas"]["ProblemDetails"];
5001
+ };
5002
+ };
5003
+ };
5004
+ };
5005
+ MintCustomerSubmissionAttachmentDownloadLink: {
5006
+ parameters: {
5007
+ query?: never;
5008
+ header?: never;
5009
+ path: {
5010
+ id: string;
5011
+ attachmentId: string;
5012
+ };
5013
+ cookie?: never;
5014
+ };
5015
+ requestBody?: never;
5016
+ responses: {
5017
+ /** @description Created */
5018
+ 201: {
5019
+ headers: {
5020
+ [name: string]: unknown;
5021
+ };
5022
+ content: {
5023
+ "application/json": components["schemas"]["SubmissionAttachmentDownloadLinkResponse"];
5024
+ };
5025
+ };
5026
+ /** @description Not Found */
5027
+ 404: {
5028
+ headers: {
5029
+ [name: string]: unknown;
5030
+ };
5031
+ content?: never;
5032
+ };
5033
+ /** @description Conflict */
5034
+ 409: {
5035
+ headers: {
5036
+ [name: string]: unknown;
5037
+ };
5038
+ content: {
5039
+ "application/problem+json": components["schemas"]["ProblemDetails"];
5040
+ };
5041
+ };
5042
+ };
5043
+ };
5044
+ RedeemSubmissionAttachmentDownloadLink: {
5045
+ parameters: {
5046
+ query?: never;
5047
+ header?: never;
5048
+ path: {
5049
+ token: string;
5050
+ };
5051
+ cookie?: never;
5052
+ };
5053
+ requestBody?: never;
5054
+ responses: {
5055
+ /** @description OK */
5056
+ 200: {
5057
+ headers: {
5058
+ [name: string]: unknown;
5059
+ };
5060
+ content?: never;
5061
+ };
5062
+ /** @description Not Found */
5063
+ 404: {
5064
+ headers: {
5065
+ [name: string]: unknown;
5066
+ };
5067
+ content?: never;
5068
+ };
5069
+ /** @description Conflict */
5070
+ 409: {
5071
+ headers: {
5072
+ [name: string]: unknown;
5073
+ };
5074
+ content: {
5075
+ "application/problem+json": components["schemas"]["ProblemDetails"];
5076
+ };
5077
+ };
5078
+ };
5079
+ };
5080
+ ListDataClassifications: {
5081
+ parameters: {
5082
+ query?: never;
5083
+ header?: never;
5084
+ path?: never;
5085
+ cookie?: never;
5086
+ };
5087
+ requestBody?: never;
5088
+ responses: {
5089
+ /** @description OK */
5090
+ 200: {
5091
+ headers: {
5092
+ [name: string]: unknown;
5093
+ };
5094
+ content: {
5095
+ "application/json": components["schemas"]["DataClassificationResponse"][];
5096
+ };
5097
+ };
5098
+ };
5099
+ };
5100
+ ListCustomerDataClassifications: {
5101
+ parameters: {
5102
+ query?: never;
5103
+ header?: never;
5104
+ path?: never;
5105
+ cookie?: never;
5106
+ };
5107
+ requestBody?: never;
5108
+ responses: {
5109
+ /** @description OK */
5110
+ 200: {
5111
+ headers: {
5112
+ [name: string]: unknown;
5113
+ };
5114
+ content: {
5115
+ "application/json": components["schemas"]["DataClassificationResponse"][];
5116
+ };
5117
+ };
5118
+ };
5119
+ };
4756
5120
  SearchOfferedProducts: {
4757
5121
  parameters: {
4758
5122
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insurance-broker/api-client",
3
- "version": "1.4.0",
3
+ "version": "1.6.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,