@lshay-provider/stripe 0.0.0-stage → 0.3.1

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 (283) hide show
  1. package/README.md +3 -3
  2. package/bin/applePayDomain.d.ts +72 -0
  3. package/bin/applePayDomain.d.ts.map +1 -0
  4. package/bin/applePayDomain.js +91 -0
  5. package/bin/applePayDomain.js.map +1 -0
  6. package/bin/appsInstall.d.ts +201 -0
  7. package/bin/appsInstall.d.ts.map +1 -0
  8. package/bin/appsInstall.js +121 -0
  9. package/bin/appsInstall.js.map +1 -0
  10. package/bin/billingAlert.d.ts +107 -0
  11. package/bin/billingAlert.d.ts.map +1 -0
  12. package/bin/billingAlert.js +98 -0
  13. package/bin/billingAlert.js.map +1 -0
  14. package/bin/billingCreditGrant.d.ts +203 -0
  15. package/bin/billingCreditGrant.d.ts.map +1 -0
  16. package/bin/billingCreditGrant.js +118 -0
  17. package/bin/billingCreditGrant.js.map +1 -0
  18. package/bin/billingFeedbackOption.d.ts +85 -0
  19. package/bin/billingFeedbackOption.d.ts.map +1 -0
  20. package/bin/billingFeedbackOption.js +93 -0
  21. package/bin/billingFeedbackOption.js.map +1 -0
  22. package/bin/billingMeter.d.ts +134 -0
  23. package/bin/billingMeter.d.ts.map +1 -0
  24. package/bin/billingMeter.js +110 -0
  25. package/bin/billingMeter.js.map +1 -0
  26. package/bin/billingPortalConfiguration.d.ts +150 -0
  27. package/bin/billingPortalConfiguration.d.ts.map +1 -0
  28. package/bin/billingPortalConfiguration.js +107 -0
  29. package/bin/billingPortalConfiguration.js.map +1 -0
  30. package/bin/charge.d.ts +496 -0
  31. package/bin/charge.d.ts.map +1 -0
  32. package/bin/charge.js +176 -0
  33. package/bin/charge.js.map +1 -0
  34. package/bin/climateOrder.d.ts +247 -0
  35. package/bin/climateOrder.d.ts.map +1 -0
  36. package/bin/climateOrder.js +129 -0
  37. package/bin/climateOrder.js.map +1 -0
  38. package/bin/config/index.d.ts +2 -0
  39. package/bin/config/index.d.ts.map +1 -0
  40. package/bin/config/index.js +21 -0
  41. package/bin/config/index.js.map +1 -0
  42. package/bin/config/vars.d.ts +9 -0
  43. package/bin/config/vars.d.ts.map +1 -0
  44. package/bin/config/vars.js +42 -0
  45. package/bin/config/vars.js.map +1 -0
  46. package/bin/coupon.d.ts +228 -0
  47. package/bin/coupon.d.ts.map +1 -0
  48. package/bin/coupon.js +114 -0
  49. package/bin/coupon.js.map +1 -0
  50. package/bin/creditNote.d.ts +374 -0
  51. package/bin/creditNote.d.ts.map +1 -0
  52. package/bin/creditNote.js +151 -0
  53. package/bin/creditNote.js.map +1 -0
  54. package/bin/customer.d.ts +384 -0
  55. package/bin/customer.d.ts.map +1 -0
  56. package/bin/customer.js +144 -0
  57. package/bin/customer.js.map +1 -0
  58. package/bin/customerBalanceTransaction.d.ts +175 -0
  59. package/bin/customerBalanceTransaction.d.ts.map +1 -0
  60. package/bin/customerBalanceTransaction.js +115 -0
  61. package/bin/customerBalanceTransaction.js.map +1 -0
  62. package/bin/entitlementsFeature.d.ts +111 -0
  63. package/bin/entitlementsFeature.d.ts.map +1 -0
  64. package/bin/entitlementsFeature.js +95 -0
  65. package/bin/entitlementsFeature.js.map +1 -0
  66. package/bin/file.d.ts +153 -0
  67. package/bin/file.d.ts.map +1 -0
  68. package/bin/file.js +110 -0
  69. package/bin/file.js.map +1 -0
  70. package/bin/fileLink.d.ts +127 -0
  71. package/bin/fileLink.d.ts.map +1 -0
  72. package/bin/fileLink.js +99 -0
  73. package/bin/fileLink.js.map +1 -0
  74. package/bin/index.d.ts +191 -0
  75. package/bin/index.d.ts.map +1 -0
  76. package/bin/index.js +370 -0
  77. package/bin/index.js.map +1 -0
  78. package/bin/invoice.d.ts +795 -0
  79. package/bin/invoice.d.ts.map +1 -0
  80. package/bin/invoice.js +242 -0
  81. package/bin/invoice.js.map +1 -0
  82. package/bin/invoiceItem.d.ts +354 -0
  83. package/bin/invoiceItem.d.ts.map +1 -0
  84. package/bin/invoiceItem.js +136 -0
  85. package/bin/invoiceItem.js.map +1 -0
  86. package/bin/issuingCard.d.ts +313 -0
  87. package/bin/issuingCard.d.ts.map +1 -0
  88. package/bin/issuingCard.js +138 -0
  89. package/bin/issuingCard.js.map +1 -0
  90. package/bin/issuingCardholder.d.ts +205 -0
  91. package/bin/issuingCardholder.d.ts.map +1 -0
  92. package/bin/issuingCardholder.js +113 -0
  93. package/bin/issuingCardholder.js.map +1 -0
  94. package/bin/issuingDispute.d.ts +152 -0
  95. package/bin/issuingDispute.d.ts.map +1 -0
  96. package/bin/issuingDispute.js +102 -0
  97. package/bin/issuingDispute.js.map +1 -0
  98. package/bin/issuingPersonalizationDesign.d.ts +177 -0
  99. package/bin/issuingPersonalizationDesign.d.ts.map +1 -0
  100. package/bin/issuingPersonalizationDesign.js +111 -0
  101. package/bin/issuingPersonalizationDesign.js.map +1 -0
  102. package/bin/package.json +34 -0
  103. package/bin/paymentIntent.d.ts +670 -0
  104. package/bin/paymentIntent.d.ts.map +1 -0
  105. package/bin/paymentIntent.js +194 -0
  106. package/bin/paymentIntent.js.map +1 -0
  107. package/bin/paymentLink.d.ts +415 -0
  108. package/bin/paymentLink.d.ts.map +1 -0
  109. package/bin/paymentLink.js +155 -0
  110. package/bin/paymentLink.js.map +1 -0
  111. package/bin/paymentMethod.d.ts +232 -0
  112. package/bin/paymentMethod.d.ts.map +1 -0
  113. package/bin/paymentMethod.js +154 -0
  114. package/bin/paymentMethod.js.map +1 -0
  115. package/bin/paymentMethodConfiguration.d.ts +310 -0
  116. package/bin/paymentMethodConfiguration.d.ts.map +1 -0
  117. package/bin/paymentMethodConfiguration.js +218 -0
  118. package/bin/paymentMethodConfiguration.js.map +1 -0
  119. package/bin/paymentMethodDomain.d.ts +143 -0
  120. package/bin/paymentMethodDomain.d.ts.map +1 -0
  121. package/bin/paymentMethodDomain.js +105 -0
  122. package/bin/paymentMethodDomain.js.map +1 -0
  123. package/bin/person.d.ts +436 -0
  124. package/bin/person.d.ts.map +1 -0
  125. package/bin/person.js +157 -0
  126. package/bin/person.js.map +1 -0
  127. package/bin/plan.d.ts +281 -0
  128. package/bin/plan.d.ts.map +1 -0
  129. package/bin/plan.js +126 -0
  130. package/bin/plan.js.map +1 -0
  131. package/bin/price.d.ts +304 -0
  132. package/bin/price.d.ts.map +1 -0
  133. package/bin/price.js +129 -0
  134. package/bin/price.js.map +1 -0
  135. package/bin/product.d.ts +285 -0
  136. package/bin/product.d.ts.map +1 -0
  137. package/bin/product.js +122 -0
  138. package/bin/product.js.map +1 -0
  139. package/bin/productCatalogTrialOffer.d.ts +105 -0
  140. package/bin/productCatalogTrialOffer.d.ts.map +1 -0
  141. package/bin/productCatalogTrialOffer.js +103 -0
  142. package/bin/productCatalogTrialOffer.js.map +1 -0
  143. package/bin/productFeature.d.ts +88 -0
  144. package/bin/productFeature.d.ts.map +1 -0
  145. package/bin/productFeature.js +94 -0
  146. package/bin/productFeature.js.map +1 -0
  147. package/bin/promotionCode.d.ts +175 -0
  148. package/bin/promotionCode.d.ts.map +1 -0
  149. package/bin/promotionCode.js +106 -0
  150. package/bin/promotionCode.js.map +1 -0
  151. package/bin/provider.d.ts +60 -0
  152. package/bin/provider.d.ts.map +1 -0
  153. package/bin/provider.js +80 -0
  154. package/bin/provider.js.map +1 -0
  155. package/bin/quote.d.ts +350 -0
  156. package/bin/quote.d.ts.map +1 -0
  157. package/bin/quote.js +144 -0
  158. package/bin/quote.js.map +1 -0
  159. package/bin/radarValueList.d.ts +131 -0
  160. package/bin/radarValueList.d.ts.map +1 -0
  161. package/bin/radarValueList.js +99 -0
  162. package/bin/radarValueList.js.map +1 -0
  163. package/bin/radarValueListItem.d.ts +101 -0
  164. package/bin/radarValueListItem.d.ts.map +1 -0
  165. package/bin/radarValueListItem.js +98 -0
  166. package/bin/radarValueListItem.js.map +1 -0
  167. package/bin/setupIntent.d.ts +492 -0
  168. package/bin/setupIntent.d.ts.map +1 -0
  169. package/bin/setupIntent.js +154 -0
  170. package/bin/setupIntent.js.map +1 -0
  171. package/bin/shippingRate.d.ts +164 -0
  172. package/bin/shippingRate.d.ts.map +1 -0
  173. package/bin/shippingRate.js +105 -0
  174. package/bin/shippingRate.js.map +1 -0
  175. package/bin/source.d.ts +303 -0
  176. package/bin/source.d.ts.map +1 -0
  177. package/bin/source.js +164 -0
  178. package/bin/source.js.map +1 -0
  179. package/bin/subscription.d.ts +650 -0
  180. package/bin/subscription.d.ts.map +1 -0
  181. package/bin/subscription.js +190 -0
  182. package/bin/subscription.js.map +1 -0
  183. package/bin/subscriptionItem.d.ts +297 -0
  184. package/bin/subscriptionItem.d.ts.map +1 -0
  185. package/bin/subscriptionItem.js +121 -0
  186. package/bin/subscriptionItem.js.map +1 -0
  187. package/bin/subscriptionSchedule.d.ts +263 -0
  188. package/bin/subscriptionSchedule.d.ts.map +1 -0
  189. package/bin/subscriptionSchedule.js +126 -0
  190. package/bin/subscriptionSchedule.js.map +1 -0
  191. package/bin/taxId.d.ts +139 -0
  192. package/bin/taxId.d.ts.map +1 -0
  193. package/bin/taxId.js +109 -0
  194. package/bin/taxId.js.map +1 -0
  195. package/bin/taxLocation.d.ts +90 -0
  196. package/bin/taxLocation.d.ts.map +1 -0
  197. package/bin/taxLocation.js +96 -0
  198. package/bin/taxLocation.js.map +1 -0
  199. package/bin/taxRate.d.ts +233 -0
  200. package/bin/taxRate.d.ts.map +1 -0
  201. package/bin/taxRate.js +123 -0
  202. package/bin/taxRate.js.map +1 -0
  203. package/bin/taxRegistration.d.ts +118 -0
  204. package/bin/taxRegistration.d.ts.map +1 -0
  205. package/bin/taxRegistration.js +105 -0
  206. package/bin/taxRegistration.js.map +1 -0
  207. package/bin/terminalConfiguration.d.ts +131 -0
  208. package/bin/terminalConfiguration.d.ts.map +1 -0
  209. package/bin/terminalConfiguration.js +120 -0
  210. package/bin/terminalConfiguration.js.map +1 -0
  211. package/bin/terminalLocation.d.ts +147 -0
  212. package/bin/terminalLocation.d.ts.map +1 -0
  213. package/bin/terminalLocation.js +100 -0
  214. package/bin/terminalLocation.js.map +1 -0
  215. package/bin/terminalReader.d.ts +168 -0
  216. package/bin/terminalReader.d.ts.map +1 -0
  217. package/bin/terminalReader.js +109 -0
  218. package/bin/terminalReader.js.map +1 -0
  219. package/bin/threeDSecureAuthentication.d.ts +297 -0
  220. package/bin/threeDSecureAuthentication.d.ts.map +1 -0
  221. package/bin/threeDSecureAuthentication.js +132 -0
  222. package/bin/threeDSecureAuthentication.js.map +1 -0
  223. package/bin/treasuryFinancialAccount.d.ts +203 -0
  224. package/bin/treasuryFinancialAccount.d.ts.map +1 -0
  225. package/bin/treasuryFinancialAccount.js +119 -0
  226. package/bin/treasuryFinancialAccount.js.map +1 -0
  227. package/bin/types/index.d.ts +4 -0
  228. package/bin/types/index.d.ts.map +1 -0
  229. package/bin/types/index.js +34 -0
  230. package/bin/types/index.js.map +1 -0
  231. package/bin/types/input.d.ts +18743 -0
  232. package/bin/types/input.d.ts.map +1 -0
  233. package/bin/types/input.js +5 -0
  234. package/bin/types/input.js.map +1 -0
  235. package/bin/types/output.d.ts +18742 -0
  236. package/bin/types/output.d.ts.map +1 -0
  237. package/bin/types/output.js +5 -0
  238. package/bin/types/output.js.map +1 -0
  239. package/bin/utilities.d.ts +6 -0
  240. package/bin/utilities.d.ts.map +1 -0
  241. package/bin/utilities.js +125 -0
  242. package/bin/utilities.js.map +1 -0
  243. package/bin/v2coreEventDestination.d.ts +260 -0
  244. package/bin/v2coreEventDestination.d.ts.map +1 -0
  245. package/bin/v2coreEventDestination.js +127 -0
  246. package/bin/v2coreEventDestination.js.map +1 -0
  247. package/bin/v2coreVaultGbBankAccount.d.ts +182 -0
  248. package/bin/v2coreVaultGbBankAccount.d.ts.map +1 -0
  249. package/bin/v2coreVaultGbBankAccount.js +111 -0
  250. package/bin/v2coreVaultGbBankAccount.js.map +1 -0
  251. package/bin/v2coreVaultUsBankAccount.d.ts +193 -0
  252. package/bin/v2coreVaultUsBankAccount.d.ts.map +1 -0
  253. package/bin/v2coreVaultUsBankAccount.js +118 -0
  254. package/bin/v2coreVaultUsBankAccount.js.map +1 -0
  255. package/bin/v2moneyManagementFinancialAddress.d.ts +117 -0
  256. package/bin/v2moneyManagementFinancialAddress.d.ts.map +1 -0
  257. package/bin/v2moneyManagementFinancialAddress.js +102 -0
  258. package/bin/v2moneyManagementFinancialAddress.js.map +1 -0
  259. package/bin/v2moneyManagementInboundTransfer.d.ts +127 -0
  260. package/bin/v2moneyManagementInboundTransfer.d.ts.map +1 -0
  261. package/bin/v2moneyManagementInboundTransfer.js +105 -0
  262. package/bin/v2moneyManagementInboundTransfer.js.map +1 -0
  263. package/bin/v2moneyManagementOutboundPayment.d.ts +237 -0
  264. package/bin/v2moneyManagementOutboundPayment.d.ts.map +1 -0
  265. package/bin/v2moneyManagementOutboundPayment.js +125 -0
  266. package/bin/v2moneyManagementOutboundPayment.js.map +1 -0
  267. package/bin/v2moneyManagementOutboundSetupIntent.d.ts +121 -0
  268. package/bin/v2moneyManagementOutboundSetupIntent.d.ts.map +1 -0
  269. package/bin/v2moneyManagementOutboundSetupIntent.js +96 -0
  270. package/bin/v2moneyManagementOutboundSetupIntent.js.map +1 -0
  271. package/bin/v2moneyManagementPayoutIntent.d.ts +246 -0
  272. package/bin/v2moneyManagementPayoutIntent.d.ts.map +1 -0
  273. package/bin/v2moneyManagementPayoutIntent.js +127 -0
  274. package/bin/v2moneyManagementPayoutIntent.js.map +1 -0
  275. package/bin/v2moneyManagementRecipientVerification.d.ts +155 -0
  276. package/bin/v2moneyManagementRecipientVerification.d.ts.map +1 -0
  277. package/bin/v2moneyManagementRecipientVerification.js +107 -0
  278. package/bin/v2moneyManagementRecipientVerification.js.map +1 -0
  279. package/bin/webhookEndpoint.d.ts +171 -0
  280. package/bin/webhookEndpoint.d.ts.map +1 -0
  281. package/bin/webhookEndpoint.js +112 -0
  282. package/bin/webhookEndpoint.js.map +1 -0
  283. package/package.json +31 -3
package/bin/file.d.ts ADDED
@@ -0,0 +1,153 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ export declare class File extends pulumi.CustomResource {
5
+ /**
6
+ * Get an existing File resource's state with the given name, ID, and optional extra
7
+ * properties used to qualify the lookup.
8
+ *
9
+ * @param name The _unique_ name of the resulting resource.
10
+ * @param id The _unique_ provider ID of the resource to lookup.
11
+ * @param state Any extra arguments used during the lookup.
12
+ * @param opts Optional settings to control the behavior of the CustomResource.
13
+ */
14
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FileState, opts?: pulumi.CustomResourceOptions): File;
15
+ /**
16
+ * Check whether an existing File resource with the given ID exists.
17
+ *
18
+ * @param id The _unique_ provider ID of the resource to check.
19
+ * @param state Any extra arguments used during the lookup.
20
+ * @param opts Optional settings to control the behavior of the CustomResource.
21
+ */
22
+ static exists(id: pulumi.Input<string>, state?: FileState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
23
+ /**
24
+ * Returns true if the given object is an instance of File. This is designed to work even
25
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
26
+ */
27
+ static isInstance(obj: any): obj is File;
28
+ /**
29
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
30
+ */
31
+ readonly created: pulumi.Output<number>;
32
+ /**
33
+ * The file expires and isn't available at this time in epoch seconds.
34
+ */
35
+ readonly expiresAt: pulumi.Output<number>;
36
+ /**
37
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
38
+ * A file to upload. Make sure that the specifications follow RFC 2388, which defines file transfers for the `multipart/form-data` protocol.
39
+ */
40
+ readonly file: pulumi.Output<string>;
41
+ /**
42
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
43
+ * Optional parameters that automatically create a [file link](https://docs.stripe.com/api#file_links) for the newly created file.
44
+ */
45
+ readonly fileLinkData: pulumi.Output<outputs.FileFileLinkData | undefined>;
46
+ /**
47
+ * The suitable name for saving the file to a filesystem.
48
+ */
49
+ readonly filename: pulumi.Output<string>;
50
+ /**
51
+ * String representing the object's type. Objects of the same type share the same value.
52
+ */
53
+ readonly object: pulumi.Output<string>;
54
+ /**
55
+ * The [purpose](https://docs.stripe.com/file-upload#uploading-a-file) of the uploaded file.
56
+ */
57
+ readonly purpose: pulumi.Output<string>;
58
+ /**
59
+ * The size of the file object in bytes.
60
+ */
61
+ readonly size: pulumi.Output<number>;
62
+ /**
63
+ * A suitable title for the document.
64
+ */
65
+ readonly title: pulumi.Output<string>;
66
+ /**
67
+ * The returned file type (for example, <span pulumi-lang-nodejs="`csv`" pulumi-lang-dotnet="`Csv`" pulumi-lang-go="`csv`" pulumi-lang-python="`csv`" pulumi-lang-yaml="`csv`" pulumi-lang-java="`csv`" pulumi-lang-hcl="`csv`">`csv`</span>, <span pulumi-lang-nodejs="`pdf`" pulumi-lang-dotnet="`Pdf`" pulumi-lang-go="`pdf`" pulumi-lang-python="`pdf`" pulumi-lang-yaml="`pdf`" pulumi-lang-java="`pdf`" pulumi-lang-hcl="`pdf`">`pdf`</span>, <span pulumi-lang-nodejs="`jpg`" pulumi-lang-dotnet="`Jpg`" pulumi-lang-go="`jpg`" pulumi-lang-python="`jpg`" pulumi-lang-yaml="`jpg`" pulumi-lang-java="`jpg`" pulumi-lang-hcl="`jpg`">`jpg`</span>, or <span pulumi-lang-nodejs="`png`" pulumi-lang-dotnet="`Png`" pulumi-lang-go="`png`" pulumi-lang-python="`png`" pulumi-lang-yaml="`png`" pulumi-lang-java="`png`" pulumi-lang-hcl="`png`">`png`</span>).
68
+ */
69
+ readonly type: pulumi.Output<string>;
70
+ /**
71
+ * Use your live secret API key to download the file from this URL.
72
+ */
73
+ readonly url: pulumi.Output<string>;
74
+ /**
75
+ * Create a File resource with the given unique name, arguments, and options.
76
+ *
77
+ * @param name The _unique_ name of the resource.
78
+ * @param args The arguments to use to populate this resource's properties.
79
+ * @param opts A bag of options that control this resource's behavior.
80
+ */
81
+ constructor(name: string, args: FileArgs, opts?: pulumi.CustomResourceOptions);
82
+ }
83
+ /**
84
+ * Input properties used for looking up and filtering File resources.
85
+ */
86
+ export interface FileState {
87
+ /**
88
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
89
+ */
90
+ created?: pulumi.Input<number | undefined>;
91
+ /**
92
+ * The file expires and isn't available at this time in epoch seconds.
93
+ */
94
+ expiresAt?: pulumi.Input<number | undefined>;
95
+ /**
96
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
97
+ * A file to upload. Make sure that the specifications follow RFC 2388, which defines file transfers for the `multipart/form-data` protocol.
98
+ */
99
+ file?: pulumi.Input<string | undefined>;
100
+ /**
101
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
102
+ * Optional parameters that automatically create a [file link](https://docs.stripe.com/api#file_links) for the newly created file.
103
+ */
104
+ fileLinkData?: pulumi.Input<inputs.FileFileLinkData | undefined>;
105
+ /**
106
+ * The suitable name for saving the file to a filesystem.
107
+ */
108
+ filename?: pulumi.Input<string | undefined>;
109
+ /**
110
+ * String representing the object's type. Objects of the same type share the same value.
111
+ */
112
+ object?: pulumi.Input<string | undefined>;
113
+ /**
114
+ * The [purpose](https://docs.stripe.com/file-upload#uploading-a-file) of the uploaded file.
115
+ */
116
+ purpose?: pulumi.Input<string | undefined>;
117
+ /**
118
+ * The size of the file object in bytes.
119
+ */
120
+ size?: pulumi.Input<number | undefined>;
121
+ /**
122
+ * A suitable title for the document.
123
+ */
124
+ title?: pulumi.Input<string | undefined>;
125
+ /**
126
+ * The returned file type (for example, <span pulumi-lang-nodejs="`csv`" pulumi-lang-dotnet="`Csv`" pulumi-lang-go="`csv`" pulumi-lang-python="`csv`" pulumi-lang-yaml="`csv`" pulumi-lang-java="`csv`" pulumi-lang-hcl="`csv`">`csv`</span>, <span pulumi-lang-nodejs="`pdf`" pulumi-lang-dotnet="`Pdf`" pulumi-lang-go="`pdf`" pulumi-lang-python="`pdf`" pulumi-lang-yaml="`pdf`" pulumi-lang-java="`pdf`" pulumi-lang-hcl="`pdf`">`pdf`</span>, <span pulumi-lang-nodejs="`jpg`" pulumi-lang-dotnet="`Jpg`" pulumi-lang-go="`jpg`" pulumi-lang-python="`jpg`" pulumi-lang-yaml="`jpg`" pulumi-lang-java="`jpg`" pulumi-lang-hcl="`jpg`">`jpg`</span>, or <span pulumi-lang-nodejs="`png`" pulumi-lang-dotnet="`Png`" pulumi-lang-go="`png`" pulumi-lang-python="`png`" pulumi-lang-yaml="`png`" pulumi-lang-java="`png`" pulumi-lang-hcl="`png`">`png`</span>).
127
+ */
128
+ type?: pulumi.Input<string | undefined>;
129
+ /**
130
+ * Use your live secret API key to download the file from this URL.
131
+ */
132
+ url?: pulumi.Input<string | undefined>;
133
+ }
134
+ /**
135
+ * The set of arguments for constructing a File resource.
136
+ */
137
+ export interface FileArgs {
138
+ /**
139
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
140
+ * A file to upload. Make sure that the specifications follow RFC 2388, which defines file transfers for the `multipart/form-data` protocol.
141
+ */
142
+ file: pulumi.Input<string>;
143
+ /**
144
+ * **NOTE:** This field is write-only and its value will not be updated in state as part of read operations.
145
+ * Optional parameters that automatically create a [file link](https://docs.stripe.com/api#file_links) for the newly created file.
146
+ */
147
+ fileLinkData?: pulumi.Input<inputs.FileFileLinkData | undefined>;
148
+ /**
149
+ * The [purpose](https://docs.stripe.com/file-upload#uploading-a-file) of the uploaded file.
150
+ */
151
+ purpose: pulumi.Input<string>;
152
+ }
153
+ //# sourceMappingURL=file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../file.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C,qBAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE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E,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;IACjE;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;CACjC"}
package/bin/file.js ADDED
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.File = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ class File extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing File resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name, id, state, opts) {
42
+ return new File(name, state, { ...opts, id: id });
43
+ }
44
+ /**
45
+ * Check whether an existing File resource with the given ID exists.
46
+ *
47
+ * @param id The _unique_ provider ID of the resource to check.
48
+ * @param state Any extra arguments used during the lookup.
49
+ * @param opts Optional settings to control the behavior of the CustomResource.
50
+ */
51
+ static exists(id, state, opts) {
52
+ return pulumi.runtime.existsResource("stripe:index/file:File", id, state || {}, { ...opts }, utilities.getPackage());
53
+ }
54
+ /** @internal */
55
+ static __pulumiType = 'stripe:index/file:File';
56
+ /**
57
+ * Returns true if the given object is an instance of File. This is designed to work even
58
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
+ */
60
+ static isInstance(obj) {
61
+ if (obj === undefined || obj === null) {
62
+ return false;
63
+ }
64
+ return obj['__pulumiType'] === File.__pulumiType;
65
+ }
66
+ constructor(name, argsOrState, opts) {
67
+ let resourceInputs = {};
68
+ opts = opts || {};
69
+ if (opts.id) {
70
+ const state = argsOrState;
71
+ resourceInputs["created"] = state?.created;
72
+ resourceInputs["expiresAt"] = state?.expiresAt;
73
+ resourceInputs["file"] = state?.file;
74
+ resourceInputs["fileLinkData"] = state?.fileLinkData;
75
+ resourceInputs["filename"] = state?.filename;
76
+ resourceInputs["object"] = state?.object;
77
+ resourceInputs["purpose"] = state?.purpose;
78
+ resourceInputs["size"] = state?.size;
79
+ resourceInputs["title"] = state?.title;
80
+ resourceInputs["type"] = state?.type;
81
+ resourceInputs["url"] = state?.url;
82
+ }
83
+ else {
84
+ const args = argsOrState;
85
+ if (args?.file === undefined && !opts.urn) {
86
+ throw new Error("Missing required property 'file'");
87
+ }
88
+ if (args?.purpose === undefined && !opts.urn) {
89
+ throw new Error("Missing required property 'purpose'");
90
+ }
91
+ resourceInputs["file"] = args?.file ? pulumi.secret(args.file) : undefined;
92
+ resourceInputs["fileLinkData"] = args?.fileLinkData ? pulumi.secret(args.fileLinkData) : undefined;
93
+ resourceInputs["purpose"] = args?.purpose;
94
+ resourceInputs["created"] = undefined /*out*/;
95
+ resourceInputs["expiresAt"] = undefined /*out*/;
96
+ resourceInputs["filename"] = undefined /*out*/;
97
+ resourceInputs["object"] = undefined /*out*/;
98
+ resourceInputs["size"] = undefined /*out*/;
99
+ resourceInputs["title"] = undefined /*out*/;
100
+ resourceInputs["type"] = undefined /*out*/;
101
+ resourceInputs["url"] = undefined /*out*/;
102
+ }
103
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
104
+ const secretOpts = { additionalSecretOutputs: ["file", "fileLinkData"] };
105
+ opts = pulumi.mergeOptions(opts, secretOpts);
106
+ super(File.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
107
+ }
108
+ }
109
+ exports.File = File;
110
+ //# sourceMappingURL=file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.js","sourceRoot":"","sources":["../file.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAC3C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAM,CAAC,EAAwB,EAAE,KAAiB,EAAE,IAAmC;QAC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AAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,EAAE,CAAC;QACzE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IACvG,CAAC;;AAtIL,oBAuIC"}
@@ -0,0 +1,127 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ export declare class FileLink extends pulumi.CustomResource {
3
+ /**
4
+ * Get an existing FileLink resource's state with the given name, ID, and optional extra
5
+ * properties used to qualify the lookup.
6
+ *
7
+ * @param name The _unique_ name of the resulting resource.
8
+ * @param id The _unique_ provider ID of the resource to lookup.
9
+ * @param state Any extra arguments used during the lookup.
10
+ * @param opts Optional settings to control the behavior of the CustomResource.
11
+ */
12
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FileLinkState, opts?: pulumi.CustomResourceOptions): FileLink;
13
+ /**
14
+ * Check whether an existing FileLink resource with the given ID exists.
15
+ *
16
+ * @param id The _unique_ provider ID of the resource to check.
17
+ * @param state Any extra arguments used during the lookup.
18
+ * @param opts Optional settings to control the behavior of the CustomResource.
19
+ */
20
+ static exists(id: pulumi.Input<string>, state?: FileLinkState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
21
+ /**
22
+ * Returns true if the given object is an instance of FileLink. This is designed to work even
23
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
24
+ */
25
+ static isInstance(obj: any): obj is FileLink;
26
+ /**
27
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
28
+ */
29
+ readonly created: pulumi.Output<number>;
30
+ /**
31
+ * Returns if the link is already expired.
32
+ */
33
+ readonly expired: pulumi.Output<boolean>;
34
+ /**
35
+ * Time that the link expires.
36
+ */
37
+ readonly expiresAt: pulumi.Output<number>;
38
+ /**
39
+ * The file object this link points to.
40
+ */
41
+ readonly file: pulumi.Output<string>;
42
+ /**
43
+ * If the object exists in live mode, the value is <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`" pulumi-lang-hcl="`true`">`true`</span>. If the object exists in test mode, the value is <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`" pulumi-lang-hcl="`false`">`false`</span>.
44
+ */
45
+ readonly livemode: pulumi.Output<boolean>;
46
+ /**
47
+ * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
48
+ */
49
+ readonly metadata: pulumi.Output<{
50
+ [key: string]: string;
51
+ }>;
52
+ /**
53
+ * String representing the object's type. Objects of the same type share the same value.
54
+ */
55
+ readonly object: pulumi.Output<string>;
56
+ /**
57
+ * The publicly accessible URL to download the file.
58
+ */
59
+ readonly url: pulumi.Output<string>;
60
+ /**
61
+ * Create a FileLink resource with the given unique name, arguments, and options.
62
+ *
63
+ * @param name The _unique_ name of the resource.
64
+ * @param args The arguments to use to populate this resource's properties.
65
+ * @param opts A bag of options that control this resource's behavior.
66
+ */
67
+ constructor(name: string, args: FileLinkArgs, opts?: pulumi.CustomResourceOptions);
68
+ }
69
+ /**
70
+ * Input properties used for looking up and filtering FileLink resources.
71
+ */
72
+ export interface FileLinkState {
73
+ /**
74
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
75
+ */
76
+ created?: pulumi.Input<number | undefined>;
77
+ /**
78
+ * Returns if the link is already expired.
79
+ */
80
+ expired?: pulumi.Input<boolean | undefined>;
81
+ /**
82
+ * Time that the link expires.
83
+ */
84
+ expiresAt?: pulumi.Input<number | undefined>;
85
+ /**
86
+ * The file object this link points to.
87
+ */
88
+ file?: pulumi.Input<string | undefined>;
89
+ /**
90
+ * If the object exists in live mode, the value is <span pulumi-lang-nodejs="`true`" pulumi-lang-dotnet="`True`" pulumi-lang-go="`true`" pulumi-lang-python="`true`" pulumi-lang-yaml="`true`" pulumi-lang-java="`true`" pulumi-lang-hcl="`true`">`true`</span>. If the object exists in test mode, the value is <span pulumi-lang-nodejs="`false`" pulumi-lang-dotnet="`False`" pulumi-lang-go="`false`" pulumi-lang-python="`false`" pulumi-lang-yaml="`false`" pulumi-lang-java="`false`" pulumi-lang-hcl="`false`">`false`</span>.
91
+ */
92
+ livemode?: pulumi.Input<boolean | undefined>;
93
+ /**
94
+ * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
95
+ */
96
+ metadata?: pulumi.Input<{
97
+ [key: string]: pulumi.Input<string>;
98
+ } | undefined>;
99
+ /**
100
+ * String representing the object's type. Objects of the same type share the same value.
101
+ */
102
+ object?: pulumi.Input<string | undefined>;
103
+ /**
104
+ * The publicly accessible URL to download the file.
105
+ */
106
+ url?: pulumi.Input<string | undefined>;
107
+ }
108
+ /**
109
+ * The set of arguments for constructing a FileLink resource.
110
+ */
111
+ export interface FileLinkArgs {
112
+ /**
113
+ * Time that the link expires.
114
+ */
115
+ expiresAt?: pulumi.Input<number | undefined>;
116
+ /**
117
+ * The file object this link points to.
118
+ */
119
+ file: pulumi.Input<string>;
120
+ /**
121
+ * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
122
+ */
123
+ metadata?: pulumi.Input<{
124
+ [key: string]: pulumi.Input<string>;
125
+ } | undefined>;
126
+ }
127
+ //# sourceMappingURL=fileLink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version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CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;KAAC,GAAG,SAAS,CAAC,CAAC;CAC9E"}
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
17
+ }) : function(o, v) {
18
+ o["default"] = v;
19
+ });
20
+ var __importStar = (this && this.__importStar) || function (mod) {
21
+ if (mod && mod.__esModule) return mod;
22
+ var result = {};
23
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
+ __setModuleDefault(result, mod);
25
+ return result;
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.FileLink = void 0;
29
+ const pulumi = __importStar(require("@pulumi/pulumi"));
30
+ const utilities = __importStar(require("./utilities"));
31
+ class FileLink extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing FileLink resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name, id, state, opts) {
42
+ return new FileLink(name, state, { ...opts, id: id });
43
+ }
44
+ /**
45
+ * Check whether an existing FileLink resource with the given ID exists.
46
+ *
47
+ * @param id The _unique_ provider ID of the resource to check.
48
+ * @param state Any extra arguments used during the lookup.
49
+ * @param opts Optional settings to control the behavior of the CustomResource.
50
+ */
51
+ static exists(id, state, opts) {
52
+ return pulumi.runtime.existsResource("stripe:index/fileLink:FileLink", id, state || {}, { ...opts }, utilities.getPackage());
53
+ }
54
+ /** @internal */
55
+ static __pulumiType = 'stripe:index/fileLink:FileLink';
56
+ /**
57
+ * Returns true if the given object is an instance of FileLink. This is designed to work even
58
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
59
+ */
60
+ static isInstance(obj) {
61
+ if (obj === undefined || obj === null) {
62
+ return false;
63
+ }
64
+ return obj['__pulumiType'] === FileLink.__pulumiType;
65
+ }
66
+ constructor(name, argsOrState, opts) {
67
+ let resourceInputs = {};
68
+ opts = opts || {};
69
+ if (opts.id) {
70
+ const state = argsOrState;
71
+ resourceInputs["created"] = state?.created;
72
+ resourceInputs["expired"] = state?.expired;
73
+ resourceInputs["expiresAt"] = state?.expiresAt;
74
+ resourceInputs["file"] = state?.file;
75
+ resourceInputs["livemode"] = state?.livemode;
76
+ resourceInputs["metadata"] = state?.metadata;
77
+ resourceInputs["object"] = state?.object;
78
+ resourceInputs["url"] = state?.url;
79
+ }
80
+ else {
81
+ const args = argsOrState;
82
+ if (args?.file === undefined && !opts.urn) {
83
+ throw new Error("Missing required property 'file'");
84
+ }
85
+ resourceInputs["expiresAt"] = args?.expiresAt;
86
+ resourceInputs["file"] = args?.file;
87
+ resourceInputs["metadata"] = args?.metadata;
88
+ resourceInputs["created"] = undefined /*out*/;
89
+ resourceInputs["expired"] = undefined /*out*/;
90
+ resourceInputs["livemode"] = undefined /*out*/;
91
+ resourceInputs["object"] = undefined /*out*/;
92
+ resourceInputs["url"] = undefined /*out*/;
93
+ }
94
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
95
+ super(FileLink.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
96
+ }
97
+ }
98
+ exports.FileLink = FileLink;
99
+ //# sourceMappingURL=fileLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileLink.js","sourceRoot":"","sources":["../fileLink.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AACzC,uDAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAM,CAAC,EAAwB,EAAE,KAAqB,EAAE,IAAmC;QACrG,OAAO,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,gCAAgC,EAAE,EAAE,EAAO,KAAK,IAAI,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IACtI,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,gCAAgC,CAAC;IAEvE;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IA2CD,YAAY,IAAY,EA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