@apideck/unify 0.29.7 → 0.29.8
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.
- package/README.md +10 -0
- package/docs/sdks/connectionconsent/README.md +100 -0
- package/docs/sdks/connectionconsents/README.md +92 -0
- package/docs/sdks/expenses/README.md +8 -0
- package/examples/package-lock.json +1 -1
- package/funcs/accountingAttachmentsList.js +3 -0
- package/funcs/accountingAttachmentsList.js.map +1 -1
- package/funcs/accountingBankFeedAccountsList.js +3 -0
- package/funcs/accountingBankFeedAccountsList.js.map +1 -1
- package/funcs/accountingBankFeedStatementsList.js +3 -0
- package/funcs/accountingBankFeedStatementsList.js.map +1 -1
- package/funcs/accountingBillPaymentsList.js +3 -0
- package/funcs/accountingBillPaymentsList.js.map +1 -1
- package/funcs/accountingBillsList.js +3 -0
- package/funcs/accountingBillsList.js.map +1 -1
- package/funcs/accountingCategoriesList.js +3 -0
- package/funcs/accountingCategoriesList.js.map +1 -1
- package/funcs/accountingCreditNotesList.js +3 -0
- package/funcs/accountingCreditNotesList.js.map +1 -1
- package/funcs/accountingCustomersList.js +3 -0
- package/funcs/accountingCustomersList.js.map +1 -1
- package/funcs/accountingDepartmentsList.js +3 -0
- package/funcs/accountingDepartmentsList.js.map +1 -1
- package/funcs/accountingExpensesList.d.ts.map +1 -1
- package/funcs/accountingExpensesList.js +7 -2
- package/funcs/accountingExpensesList.js.map +1 -1
- package/funcs/accountingInvoiceItemsList.js +3 -0
- package/funcs/accountingInvoiceItemsList.js.map +1 -1
- package/funcs/accountingInvoicesList.js +3 -0
- package/funcs/accountingInvoicesList.js.map +1 -1
- package/funcs/accountingJournalEntriesList.js +3 -0
- package/funcs/accountingJournalEntriesList.js.map +1 -1
- package/funcs/accountingLedgerAccountsList.js +3 -0
- package/funcs/accountingLedgerAccountsList.js.map +1 -1
- package/funcs/accountingLocationsList.js +3 -0
- package/funcs/accountingLocationsList.js.map +1 -1
- package/funcs/accountingPaymentsList.js +3 -0
- package/funcs/accountingPaymentsList.js.map +1 -1
- package/funcs/accountingPurchaseOrdersList.js +3 -0
- package/funcs/accountingPurchaseOrdersList.js.map +1 -1
- package/funcs/accountingQuotesList.js +3 -0
- package/funcs/accountingQuotesList.js.map +1 -1
- package/funcs/accountingSubsidiariesList.js +3 -0
- package/funcs/accountingSubsidiariesList.js.map +1 -1
- package/funcs/accountingSuppliersList.js +3 -0
- package/funcs/accountingSuppliersList.js.map +1 -1
- package/funcs/accountingTaxRatesList.js +3 -0
- package/funcs/accountingTaxRatesList.js.map +1 -1
- package/funcs/accountingTrackingCategoriesList.js +3 -0
- package/funcs/accountingTrackingCategoriesList.js.map +1 -1
- package/funcs/atsApplicantsList.js +3 -0
- package/funcs/atsApplicantsList.js.map +1 -1
- package/funcs/atsApplicationsList.js +3 -0
- package/funcs/atsApplicationsList.js.map +1 -1
- package/funcs/atsJobsList.js +3 -0
- package/funcs/atsJobsList.js.map +1 -1
- package/funcs/connectorApisList.js +3 -0
- package/funcs/connectorApisList.js.map +1 -1
- package/funcs/connectorConnectorsList.js +3 -0
- package/funcs/connectorConnectorsList.js.map +1 -1
- package/funcs/crmActivitiesList.js +3 -0
- package/funcs/crmActivitiesList.js.map +1 -1
- package/funcs/crmCompaniesList.js +3 -0
- package/funcs/crmCompaniesList.js.map +1 -1
- package/funcs/crmContactsList.js +3 -0
- package/funcs/crmContactsList.js.map +1 -1
- package/funcs/crmCustomObjectSchemasList.js +3 -0
- package/funcs/crmCustomObjectSchemasList.js.map +1 -1
- package/funcs/crmCustomObjectsList.js +3 -0
- package/funcs/crmCustomObjectsList.js.map +1 -1
- package/funcs/crmLeadsList.js +3 -0
- package/funcs/crmLeadsList.js.map +1 -1
- package/funcs/crmNotesList.js +3 -0
- package/funcs/crmNotesList.js.map +1 -1
- package/funcs/crmOpportunitiesList.js +3 -0
- package/funcs/crmOpportunitiesList.js.map +1 -1
- package/funcs/crmPipelinesList.js +3 -0
- package/funcs/crmPipelinesList.js.map +1 -1
- package/funcs/crmUsersList.js +3 -0
- package/funcs/crmUsersList.js.map +1 -1
- package/funcs/ecommerceCustomersList.js +3 -0
- package/funcs/ecommerceCustomersList.js.map +1 -1
- package/funcs/ecommerceOrdersList.js +3 -0
- package/funcs/ecommerceOrdersList.js.map +1 -1
- package/funcs/ecommerceProductsList.js +3 -0
- package/funcs/ecommerceProductsList.js.map +1 -1
- package/funcs/fileStorageDriveGroupsList.js +3 -0
- package/funcs/fileStorageDriveGroupsList.js.map +1 -1
- package/funcs/fileStorageDrivesList.js +3 -0
- package/funcs/fileStorageDrivesList.js.map +1 -1
- package/funcs/fileStorageFilesList.js +3 -0
- package/funcs/fileStorageFilesList.js.map +1 -1
- package/funcs/fileStorageSharedLinksList.js +3 -0
- package/funcs/fileStorageSharedLinksList.js.map +1 -1
- package/funcs/hrisCompaniesList.js +3 -0
- package/funcs/hrisCompaniesList.js.map +1 -1
- package/funcs/hrisDepartmentsList.js +3 -0
- package/funcs/hrisDepartmentsList.js.map +1 -1
- package/funcs/hrisEmployeesList.js +3 -0
- package/funcs/hrisEmployeesList.js.map +1 -1
- package/funcs/hrisTimeOffRequestsList.js +3 -0
- package/funcs/hrisTimeOffRequestsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTagsList.js +3 -0
- package/funcs/issueTrackingCollectionTagsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsGet.js +3 -0
- package/funcs/issueTrackingCollectionTicketCommentsGet.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketCommentsList.js +3 -0
- package/funcs/issueTrackingCollectionTicketCommentsList.js.map +1 -1
- package/funcs/issueTrackingCollectionTicketsList.js +3 -0
- package/funcs/issueTrackingCollectionTicketsList.js.map +1 -1
- package/funcs/issueTrackingCollectionUsersList.js +3 -0
- package/funcs/issueTrackingCollectionUsersList.js.map +1 -1
- package/funcs/issueTrackingCollectionsList.js +3 -0
- package/funcs/issueTrackingCollectionsList.js.map +1 -1
- package/funcs/smsMessagesList.js +3 -0
- package/funcs/smsMessagesList.js.map +1 -1
- package/funcs/vaultConnectionConsentUpdate.d.ts +18 -0
- package/funcs/vaultConnectionConsentUpdate.d.ts.map +1 -0
- package/funcs/vaultConnectionConsentUpdate.js +144 -0
- package/funcs/vaultConnectionConsentUpdate.js.map +1 -0
- package/funcs/vaultConnectionConsentsList.d.ts +18 -0
- package/funcs/vaultConnectionConsentsList.d.ts.map +1 -0
- package/funcs/vaultConnectionConsentsList.js +141 -0
- package/funcs/vaultConnectionConsentsList.js.map +1 -0
- package/funcs/vaultConsumersList.js +3 -0
- package/funcs/vaultConsumersList.js.map +1 -1
- package/funcs/vaultLogsList.js +3 -0
- package/funcs/vaultLogsList.js.map +1 -1
- package/funcs/webhookEventLogsList.js +3 -0
- package/funcs/webhookEventLogsList.js.map +1 -1
- package/funcs/webhookWebhooksList.js +3 -0
- package/funcs/webhookWebhooksList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/companyinfo.d.ts +42 -0
- package/models/components/companyinfo.d.ts.map +1 -1
- package/models/components/companyinfo.js +29 -1
- package/models/components/companyinfo.js.map +1 -1
- package/models/components/connection.d.ts +28 -0
- package/models/components/connection.d.ts.map +1 -1
- package/models/components/connection.js +31 -0
- package/models/components/connection.js.map +1 -1
- package/models/components/consentrecord.d.ts +48 -0
- package/models/components/consentrecord.d.ts.map +1 -0
- package/models/components/consentrecord.js +85 -0
- package/models/components/consentrecord.js.map +1 -0
- package/models/components/consentrecordinput.d.ts +38 -0
- package/models/components/consentrecordinput.d.ts.map +1 -0
- package/models/components/consentrecordinput.js +72 -0
- package/models/components/consentrecordinput.js.map +1 -0
- package/models/components/consentstate.d.ts +46 -0
- package/models/components/consentstate.d.ts.map +1 -0
- package/models/components/consentstate.js +67 -0
- package/models/components/consentstate.js.map +1 -0
- package/models/components/datascopes.d.ts +43 -0
- package/models/components/datascopes.d.ts.map +1 -0
- package/models/components/datascopes.js +83 -0
- package/models/components/datascopes.js.map +1 -0
- package/models/components/datascopesinput.d.ts +38 -0
- package/models/components/datascopesinput.d.ts.map +1 -0
- package/models/components/datascopesinput.js +72 -0
- package/models/components/datascopesinput.js.map +1 -0
- package/models/components/datascopesresources.d.ts +98 -0
- package/models/components/datascopesresources.d.ts.map +1 -0
- package/models/components/datascopesresources.js +121 -0
- package/models/components/datascopesresources.js.map +1 -0
- package/models/components/expense.d.ts +41 -0
- package/models/components/expense.d.ts.map +1 -1
- package/models/components/expense.js +27 -1
- package/models/components/expense.js.map +1 -1
- package/models/components/expensesfilter.d.ts +75 -0
- package/models/components/expensesfilter.d.ts.map +1 -0
- package/models/components/expensesfilter.js +105 -0
- package/models/components/expensesfilter.js.map +1 -0
- package/models/components/formfield.d.ts +3 -0
- package/models/components/formfield.d.ts.map +1 -1
- package/models/components/formfield.js +1 -0
- package/models/components/formfield.js.map +1 -1
- package/models/components/getconsentrecordsresponse.d.ts +52 -0
- package/models/components/getconsentrecordsresponse.d.ts.map +1 -0
- package/models/components/getconsentrecordsresponse.js +87 -0
- package/models/components/getconsentrecordsresponse.js.map +1 -0
- package/models/components/index.d.ts +10 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +10 -0
- package/models/components/index.js.map +1 -1
- package/models/components/journalentriesfilter.d.ts +46 -0
- package/models/components/journalentriesfilter.d.ts.map +1 -1
- package/models/components/journalentriesfilter.js +28 -1
- package/models/components/journalentriesfilter.js.map +1 -1
- package/models/components/trackingcategory.d.ts +10 -0
- package/models/components/trackingcategory.d.ts.map +1 -1
- package/models/components/trackingcategory.js +8 -0
- package/models/components/trackingcategory.js.map +1 -1
- package/models/components/updateconsentrequest.d.ts +133 -0
- package/models/components/updateconsentrequest.d.ts.map +1 -0
- package/models/components/updateconsentrequest.js +158 -0
- package/models/components/updateconsentrequest.js.map +1 -0
- package/models/components/updateconsentresponse.d.ts +52 -0
- package/models/components/updateconsentresponse.d.ts.map +1 -0
- package/models/components/updateconsentresponse.js +87 -0
- package/models/components/updateconsentresponse.js.map +1 -0
- package/models/components/webhookeventtype.d.ts +6 -6
- package/models/components/webhookeventtype.js +2 -2
- package/models/components/webhookeventtype.js.map +1 -1
- package/models/operations/accountingexpensesall.d.ts +5 -0
- package/models/operations/accountingexpensesall.d.ts.map +1 -1
- package/models/operations/accountingexpensesall.js +2 -0
- package/models/operations/accountingexpensesall.js.map +1 -1
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/vaultconnectionconsentsall.d.ts +116 -0
- package/models/operations/vaultconnectionconsentsall.d.ts.map +1 -0
- package/models/operations/vaultconnectionconsentsall.js +163 -0
- package/models/operations/vaultconnectionconsentsall.js.map +1 -0
- package/models/operations/vaultconnectionconsentupdate.d.ts +121 -0
- package/models/operations/vaultconnectionconsentupdate.d.ts.map +1 -0
- package/models/operations/vaultconnectionconsentupdate.js +167 -0
- package/models/operations/vaultconnectionconsentupdate.js.map +1 -0
- package/package.json +1 -1
- package/sdk/connectionconsent.d.ts +12 -0
- package/sdk/connectionconsent.d.ts.map +1 -0
- package/sdk/connectionconsent.js +22 -0
- package/sdk/connectionconsent.js.map +1 -0
- package/sdk/connectionconsents.d.ts +12 -0
- package/sdk/connectionconsents.d.ts.map +1 -0
- package/sdk/connectionconsents.js +22 -0
- package/sdk/connectionconsents.js.map +1 -0
- package/sdk/vault.d.ts +6 -0
- package/sdk/vault.d.ts.map +1 -1
- package/sdk/vault.js +8 -0
- package/sdk/vault.js.map +1 -1
- package/src/__tests__/connectionconsent.test.ts +89 -0
- package/src/__tests__/connectionconsents.test.ts +31 -0
- package/src/funcs/accountingAttachmentsList.ts +3 -0
- package/src/funcs/accountingBankFeedAccountsList.ts +3 -0
- package/src/funcs/accountingBankFeedStatementsList.ts +3 -0
- package/src/funcs/accountingBillPaymentsList.ts +3 -0
- package/src/funcs/accountingBillsList.ts +3 -0
- package/src/funcs/accountingCategoriesList.ts +3 -0
- package/src/funcs/accountingCreditNotesList.ts +3 -0
- package/src/funcs/accountingCustomersList.ts +3 -0
- package/src/funcs/accountingDepartmentsList.ts +3 -0
- package/src/funcs/accountingExpensesList.ts +19 -6
- package/src/funcs/accountingInvoiceItemsList.ts +3 -0
- package/src/funcs/accountingInvoicesList.ts +3 -0
- package/src/funcs/accountingJournalEntriesList.ts +3 -0
- package/src/funcs/accountingLedgerAccountsList.ts +3 -0
- package/src/funcs/accountingLocationsList.ts +3 -0
- package/src/funcs/accountingPaymentsList.ts +3 -0
- package/src/funcs/accountingPurchaseOrdersList.ts +3 -0
- package/src/funcs/accountingQuotesList.ts +3 -0
- package/src/funcs/accountingSubsidiariesList.ts +3 -0
- package/src/funcs/accountingSuppliersList.ts +3 -0
- package/src/funcs/accountingTaxRatesList.ts +3 -0
- package/src/funcs/accountingTrackingCategoriesList.ts +3 -0
- package/src/funcs/atsApplicantsList.ts +3 -0
- package/src/funcs/atsApplicationsList.ts +3 -0
- package/src/funcs/atsJobsList.ts +3 -0
- package/src/funcs/connectorApisList.ts +3 -0
- package/src/funcs/connectorConnectorsList.ts +3 -0
- package/src/funcs/crmActivitiesList.ts +3 -0
- package/src/funcs/crmCompaniesList.ts +3 -0
- package/src/funcs/crmContactsList.ts +3 -0
- package/src/funcs/crmCustomObjectSchemasList.ts +3 -0
- package/src/funcs/crmCustomObjectsList.ts +3 -0
- package/src/funcs/crmLeadsList.ts +3 -0
- package/src/funcs/crmNotesList.ts +3 -0
- package/src/funcs/crmOpportunitiesList.ts +3 -0
- package/src/funcs/crmPipelinesList.ts +3 -0
- package/src/funcs/crmUsersList.ts +3 -0
- package/src/funcs/ecommerceCustomersList.ts +3 -0
- package/src/funcs/ecommerceOrdersList.ts +3 -0
- package/src/funcs/ecommerceProductsList.ts +3 -0
- package/src/funcs/fileStorageDriveGroupsList.ts +3 -0
- package/src/funcs/fileStorageDrivesList.ts +3 -0
- package/src/funcs/fileStorageFilesList.ts +3 -0
- package/src/funcs/fileStorageSharedLinksList.ts +3 -0
- package/src/funcs/hrisCompaniesList.ts +3 -0
- package/src/funcs/hrisDepartmentsList.ts +3 -0
- package/src/funcs/hrisEmployeesList.ts +3 -0
- package/src/funcs/hrisTimeOffRequestsList.ts +3 -0
- package/src/funcs/issueTrackingCollectionTagsList.ts +3 -0
- package/src/funcs/issueTrackingCollectionTicketCommentsGet.ts +3 -0
- package/src/funcs/issueTrackingCollectionTicketCommentsList.ts +3 -0
- package/src/funcs/issueTrackingCollectionTicketsList.ts +3 -0
- package/src/funcs/issueTrackingCollectionUsersList.ts +3 -0
- package/src/funcs/issueTrackingCollectionsList.ts +3 -0
- package/src/funcs/smsMessagesList.ts +3 -0
- package/src/funcs/vaultConnectionConsentUpdate.ts +230 -0
- package/src/funcs/vaultConnectionConsentsList.ts +225 -0
- package/src/funcs/vaultConsumersList.ts +3 -0
- package/src/funcs/vaultLogsList.ts +3 -0
- package/src/funcs/webhookEventLogsList.ts +3 -0
- package/src/funcs/webhookWebhooksList.ts +3 -0
- package/src/lib/config.ts +4 -4
- package/src/models/components/companyinfo.ts +44 -0
- package/src/models/components/connection.ts +78 -0
- package/src/models/components/consentrecord.ts +101 -0
- package/src/models/components/consentrecordinput.ts +82 -0
- package/src/models/components/consentstate.ts +41 -0
- package/src/models/components/datascopes.ts +94 -0
- package/src/models/components/datascopesinput.ts +80 -0
- package/src/models/components/datascopesresources.ts +172 -0
- package/src/models/components/expense.ts +47 -0
- package/src/models/components/expensesfilter.ts +111 -0
- package/src/models/components/formfield.ts +1 -0
- package/src/models/components/getconsentrecordsresponse.ts +107 -0
- package/src/models/components/index.ts +10 -0
- package/src/models/components/journalentriesfilter.ts +40 -0
- package/src/models/components/trackingcategory.ts +18 -0
- package/src/models/components/updateconsentrequest.ts +229 -0
- package/src/models/components/updateconsentresponse.ts +107 -0
- package/src/models/components/webhookeventtype.ts +2 -2
- package/src/models/operations/accountingexpensesall.ts +7 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/vaultconnectionconsentsall.ts +272 -0
- package/src/models/operations/vaultconnectionconsentupdate.ts +284 -0
- package/src/sdk/connectionconsent.ts +27 -0
- package/src/sdk/connectionconsents.ts +27 -0
- package/src/sdk/vault.ts +12 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type VaultConnectionConsentsAllGlobals = {
|
|
13
|
+
/**
|
|
14
|
+
* ID of the consumer which you want to get or push data from
|
|
15
|
+
*/
|
|
16
|
+
consumerId?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The ID of your Unify application
|
|
19
|
+
*/
|
|
20
|
+
appId?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type VaultConnectionConsentsAllRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* ID of the consumer which you want to get or push data from
|
|
26
|
+
*/
|
|
27
|
+
consumerId?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The ID of your Unify application
|
|
30
|
+
*/
|
|
31
|
+
appId?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Service ID of the resource to return
|
|
34
|
+
*/
|
|
35
|
+
serviceId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Unified API
|
|
38
|
+
*/
|
|
39
|
+
unifiedApi: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export type VaultConnectionConsentsAllResponse = {
|
|
43
|
+
httpMeta: components.HTTPMetadata;
|
|
44
|
+
/**
|
|
45
|
+
* Consent records
|
|
46
|
+
*/
|
|
47
|
+
getConsentRecordsResponse?: components.GetConsentRecordsResponse | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Unexpected error
|
|
50
|
+
*/
|
|
51
|
+
unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const VaultConnectionConsentsAllGlobals$inboundSchema: z.ZodType<
|
|
56
|
+
VaultConnectionConsentsAllGlobals,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
consumerId: z.string().optional(),
|
|
61
|
+
appId: z.string().optional(),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export type VaultConnectionConsentsAllGlobals$Outbound = {
|
|
66
|
+
consumerId?: string | undefined;
|
|
67
|
+
appId?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const VaultConnectionConsentsAllGlobals$outboundSchema: z.ZodType<
|
|
72
|
+
VaultConnectionConsentsAllGlobals$Outbound,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
VaultConnectionConsentsAllGlobals
|
|
75
|
+
> = z.object({
|
|
76
|
+
consumerId: z.string().optional(),
|
|
77
|
+
appId: z.string().optional(),
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @internal
|
|
82
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
+
*/
|
|
84
|
+
export namespace VaultConnectionConsentsAllGlobals$ {
|
|
85
|
+
/** @deprecated use `VaultConnectionConsentsAllGlobals$inboundSchema` instead. */
|
|
86
|
+
export const inboundSchema = VaultConnectionConsentsAllGlobals$inboundSchema;
|
|
87
|
+
/** @deprecated use `VaultConnectionConsentsAllGlobals$outboundSchema` instead. */
|
|
88
|
+
export const outboundSchema =
|
|
89
|
+
VaultConnectionConsentsAllGlobals$outboundSchema;
|
|
90
|
+
/** @deprecated use `VaultConnectionConsentsAllGlobals$Outbound` instead. */
|
|
91
|
+
export type Outbound = VaultConnectionConsentsAllGlobals$Outbound;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function vaultConnectionConsentsAllGlobalsToJSON(
|
|
95
|
+
vaultConnectionConsentsAllGlobals: VaultConnectionConsentsAllGlobals,
|
|
96
|
+
): string {
|
|
97
|
+
return JSON.stringify(
|
|
98
|
+
VaultConnectionConsentsAllGlobals$outboundSchema.parse(
|
|
99
|
+
vaultConnectionConsentsAllGlobals,
|
|
100
|
+
),
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function vaultConnectionConsentsAllGlobalsFromJSON(
|
|
105
|
+
jsonString: string,
|
|
106
|
+
): SafeParseResult<VaultConnectionConsentsAllGlobals, SDKValidationError> {
|
|
107
|
+
return safeParse(
|
|
108
|
+
jsonString,
|
|
109
|
+
(x) => VaultConnectionConsentsAllGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
110
|
+
`Failed to parse 'VaultConnectionConsentsAllGlobals' from JSON`,
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const VaultConnectionConsentsAllRequest$inboundSchema: z.ZodType<
|
|
116
|
+
VaultConnectionConsentsAllRequest,
|
|
117
|
+
z.ZodTypeDef,
|
|
118
|
+
unknown
|
|
119
|
+
> = z.object({
|
|
120
|
+
consumerId: z.string().optional(),
|
|
121
|
+
appId: z.string().optional(),
|
|
122
|
+
service_id: z.string(),
|
|
123
|
+
unified_api: z.string(),
|
|
124
|
+
}).transform((v) => {
|
|
125
|
+
return remap$(v, {
|
|
126
|
+
"service_id": "serviceId",
|
|
127
|
+
"unified_api": "unifiedApi",
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export type VaultConnectionConsentsAllRequest$Outbound = {
|
|
133
|
+
consumerId?: string | undefined;
|
|
134
|
+
appId?: string | undefined;
|
|
135
|
+
service_id: string;
|
|
136
|
+
unified_api: string;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/** @internal */
|
|
140
|
+
export const VaultConnectionConsentsAllRequest$outboundSchema: z.ZodType<
|
|
141
|
+
VaultConnectionConsentsAllRequest$Outbound,
|
|
142
|
+
z.ZodTypeDef,
|
|
143
|
+
VaultConnectionConsentsAllRequest
|
|
144
|
+
> = z.object({
|
|
145
|
+
consumerId: z.string().optional(),
|
|
146
|
+
appId: z.string().optional(),
|
|
147
|
+
serviceId: z.string(),
|
|
148
|
+
unifiedApi: z.string(),
|
|
149
|
+
}).transform((v) => {
|
|
150
|
+
return remap$(v, {
|
|
151
|
+
serviceId: "service_id",
|
|
152
|
+
unifiedApi: "unified_api",
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @internal
|
|
158
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
159
|
+
*/
|
|
160
|
+
export namespace VaultConnectionConsentsAllRequest$ {
|
|
161
|
+
/** @deprecated use `VaultConnectionConsentsAllRequest$inboundSchema` instead. */
|
|
162
|
+
export const inboundSchema = VaultConnectionConsentsAllRequest$inboundSchema;
|
|
163
|
+
/** @deprecated use `VaultConnectionConsentsAllRequest$outboundSchema` instead. */
|
|
164
|
+
export const outboundSchema =
|
|
165
|
+
VaultConnectionConsentsAllRequest$outboundSchema;
|
|
166
|
+
/** @deprecated use `VaultConnectionConsentsAllRequest$Outbound` instead. */
|
|
167
|
+
export type Outbound = VaultConnectionConsentsAllRequest$Outbound;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export function vaultConnectionConsentsAllRequestToJSON(
|
|
171
|
+
vaultConnectionConsentsAllRequest: VaultConnectionConsentsAllRequest,
|
|
172
|
+
): string {
|
|
173
|
+
return JSON.stringify(
|
|
174
|
+
VaultConnectionConsentsAllRequest$outboundSchema.parse(
|
|
175
|
+
vaultConnectionConsentsAllRequest,
|
|
176
|
+
),
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function vaultConnectionConsentsAllRequestFromJSON(
|
|
181
|
+
jsonString: string,
|
|
182
|
+
): SafeParseResult<VaultConnectionConsentsAllRequest, SDKValidationError> {
|
|
183
|
+
return safeParse(
|
|
184
|
+
jsonString,
|
|
185
|
+
(x) => VaultConnectionConsentsAllRequest$inboundSchema.parse(JSON.parse(x)),
|
|
186
|
+
`Failed to parse 'VaultConnectionConsentsAllRequest' from JSON`,
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/** @internal */
|
|
191
|
+
export const VaultConnectionConsentsAllResponse$inboundSchema: z.ZodType<
|
|
192
|
+
VaultConnectionConsentsAllResponse,
|
|
193
|
+
z.ZodTypeDef,
|
|
194
|
+
unknown
|
|
195
|
+
> = z.object({
|
|
196
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
197
|
+
GetConsentRecordsResponse: components.GetConsentRecordsResponse$inboundSchema
|
|
198
|
+
.optional(),
|
|
199
|
+
UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema
|
|
200
|
+
.optional(),
|
|
201
|
+
}).transform((v) => {
|
|
202
|
+
return remap$(v, {
|
|
203
|
+
"HttpMeta": "httpMeta",
|
|
204
|
+
"GetConsentRecordsResponse": "getConsentRecordsResponse",
|
|
205
|
+
"UnexpectedErrorResponse": "unexpectedErrorResponse",
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
/** @internal */
|
|
210
|
+
export type VaultConnectionConsentsAllResponse$Outbound = {
|
|
211
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
212
|
+
GetConsentRecordsResponse?:
|
|
213
|
+
| components.GetConsentRecordsResponse$Outbound
|
|
214
|
+
| undefined;
|
|
215
|
+
UnexpectedErrorResponse?:
|
|
216
|
+
| components.UnexpectedErrorResponse$Outbound
|
|
217
|
+
| undefined;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/** @internal */
|
|
221
|
+
export const VaultConnectionConsentsAllResponse$outboundSchema: z.ZodType<
|
|
222
|
+
VaultConnectionConsentsAllResponse$Outbound,
|
|
223
|
+
z.ZodTypeDef,
|
|
224
|
+
VaultConnectionConsentsAllResponse
|
|
225
|
+
> = z.object({
|
|
226
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
227
|
+
getConsentRecordsResponse: components.GetConsentRecordsResponse$outboundSchema
|
|
228
|
+
.optional(),
|
|
229
|
+
unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema
|
|
230
|
+
.optional(),
|
|
231
|
+
}).transform((v) => {
|
|
232
|
+
return remap$(v, {
|
|
233
|
+
httpMeta: "HttpMeta",
|
|
234
|
+
getConsentRecordsResponse: "GetConsentRecordsResponse",
|
|
235
|
+
unexpectedErrorResponse: "UnexpectedErrorResponse",
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* @internal
|
|
241
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
242
|
+
*/
|
|
243
|
+
export namespace VaultConnectionConsentsAllResponse$ {
|
|
244
|
+
/** @deprecated use `VaultConnectionConsentsAllResponse$inboundSchema` instead. */
|
|
245
|
+
export const inboundSchema = VaultConnectionConsentsAllResponse$inboundSchema;
|
|
246
|
+
/** @deprecated use `VaultConnectionConsentsAllResponse$outboundSchema` instead. */
|
|
247
|
+
export const outboundSchema =
|
|
248
|
+
VaultConnectionConsentsAllResponse$outboundSchema;
|
|
249
|
+
/** @deprecated use `VaultConnectionConsentsAllResponse$Outbound` instead. */
|
|
250
|
+
export type Outbound = VaultConnectionConsentsAllResponse$Outbound;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export function vaultConnectionConsentsAllResponseToJSON(
|
|
254
|
+
vaultConnectionConsentsAllResponse: VaultConnectionConsentsAllResponse,
|
|
255
|
+
): string {
|
|
256
|
+
return JSON.stringify(
|
|
257
|
+
VaultConnectionConsentsAllResponse$outboundSchema.parse(
|
|
258
|
+
vaultConnectionConsentsAllResponse,
|
|
259
|
+
),
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export function vaultConnectionConsentsAllResponseFromJSON(
|
|
264
|
+
jsonString: string,
|
|
265
|
+
): SafeParseResult<VaultConnectionConsentsAllResponse, SDKValidationError> {
|
|
266
|
+
return safeParse(
|
|
267
|
+
jsonString,
|
|
268
|
+
(x) =>
|
|
269
|
+
VaultConnectionConsentsAllResponse$inboundSchema.parse(JSON.parse(x)),
|
|
270
|
+
`Failed to parse 'VaultConnectionConsentsAllResponse' from JSON`,
|
|
271
|
+
);
|
|
272
|
+
}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type VaultConnectionConsentUpdateGlobals = {
|
|
13
|
+
/**
|
|
14
|
+
* ID of the consumer which you want to get or push data from
|
|
15
|
+
*/
|
|
16
|
+
consumerId?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The ID of your Unify application
|
|
19
|
+
*/
|
|
20
|
+
appId?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type VaultConnectionConsentUpdateRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* ID of the consumer which you want to get or push data from
|
|
26
|
+
*/
|
|
27
|
+
consumerId?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* The ID of your Unify application
|
|
30
|
+
*/
|
|
31
|
+
appId?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Service ID of the resource to return
|
|
34
|
+
*/
|
|
35
|
+
serviceId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Unified API
|
|
38
|
+
*/
|
|
39
|
+
unifiedApi: string;
|
|
40
|
+
/**
|
|
41
|
+
* New consent state
|
|
42
|
+
*/
|
|
43
|
+
updateConsentRequest: components.UpdateConsentRequest;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type VaultConnectionConsentUpdateResponse = {
|
|
47
|
+
httpMeta: components.HTTPMetadata;
|
|
48
|
+
/**
|
|
49
|
+
* Consent updated
|
|
50
|
+
*/
|
|
51
|
+
updateConsentResponse?: components.UpdateConsentResponse | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Unexpected error
|
|
54
|
+
*/
|
|
55
|
+
unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const VaultConnectionConsentUpdateGlobals$inboundSchema: z.ZodType<
|
|
60
|
+
VaultConnectionConsentUpdateGlobals,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
unknown
|
|
63
|
+
> = z.object({
|
|
64
|
+
consumerId: z.string().optional(),
|
|
65
|
+
appId: z.string().optional(),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export type VaultConnectionConsentUpdateGlobals$Outbound = {
|
|
70
|
+
consumerId?: string | undefined;
|
|
71
|
+
appId?: string | undefined;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export const VaultConnectionConsentUpdateGlobals$outboundSchema: z.ZodType<
|
|
76
|
+
VaultConnectionConsentUpdateGlobals$Outbound,
|
|
77
|
+
z.ZodTypeDef,
|
|
78
|
+
VaultConnectionConsentUpdateGlobals
|
|
79
|
+
> = z.object({
|
|
80
|
+
consumerId: z.string().optional(),
|
|
81
|
+
appId: z.string().optional(),
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
+
*/
|
|
88
|
+
export namespace VaultConnectionConsentUpdateGlobals$ {
|
|
89
|
+
/** @deprecated use `VaultConnectionConsentUpdateGlobals$inboundSchema` instead. */
|
|
90
|
+
export const inboundSchema =
|
|
91
|
+
VaultConnectionConsentUpdateGlobals$inboundSchema;
|
|
92
|
+
/** @deprecated use `VaultConnectionConsentUpdateGlobals$outboundSchema` instead. */
|
|
93
|
+
export const outboundSchema =
|
|
94
|
+
VaultConnectionConsentUpdateGlobals$outboundSchema;
|
|
95
|
+
/** @deprecated use `VaultConnectionConsentUpdateGlobals$Outbound` instead. */
|
|
96
|
+
export type Outbound = VaultConnectionConsentUpdateGlobals$Outbound;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function vaultConnectionConsentUpdateGlobalsToJSON(
|
|
100
|
+
vaultConnectionConsentUpdateGlobals: VaultConnectionConsentUpdateGlobals,
|
|
101
|
+
): string {
|
|
102
|
+
return JSON.stringify(
|
|
103
|
+
VaultConnectionConsentUpdateGlobals$outboundSchema.parse(
|
|
104
|
+
vaultConnectionConsentUpdateGlobals,
|
|
105
|
+
),
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function vaultConnectionConsentUpdateGlobalsFromJSON(
|
|
110
|
+
jsonString: string,
|
|
111
|
+
): SafeParseResult<VaultConnectionConsentUpdateGlobals, SDKValidationError> {
|
|
112
|
+
return safeParse(
|
|
113
|
+
jsonString,
|
|
114
|
+
(x) =>
|
|
115
|
+
VaultConnectionConsentUpdateGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
+
`Failed to parse 'VaultConnectionConsentUpdateGlobals' from JSON`,
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const VaultConnectionConsentUpdateRequest$inboundSchema: z.ZodType<
|
|
122
|
+
VaultConnectionConsentUpdateRequest,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
unknown
|
|
125
|
+
> = z.object({
|
|
126
|
+
consumerId: z.string().optional(),
|
|
127
|
+
appId: z.string().optional(),
|
|
128
|
+
service_id: z.string(),
|
|
129
|
+
unified_api: z.string(),
|
|
130
|
+
UpdateConsentRequest: components.UpdateConsentRequest$inboundSchema,
|
|
131
|
+
}).transform((v) => {
|
|
132
|
+
return remap$(v, {
|
|
133
|
+
"service_id": "serviceId",
|
|
134
|
+
"unified_api": "unifiedApi",
|
|
135
|
+
"UpdateConsentRequest": "updateConsentRequest",
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
/** @internal */
|
|
140
|
+
export type VaultConnectionConsentUpdateRequest$Outbound = {
|
|
141
|
+
consumerId?: string | undefined;
|
|
142
|
+
appId?: string | undefined;
|
|
143
|
+
service_id: string;
|
|
144
|
+
unified_api: string;
|
|
145
|
+
UpdateConsentRequest: components.UpdateConsentRequest$Outbound;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
/** @internal */
|
|
149
|
+
export const VaultConnectionConsentUpdateRequest$outboundSchema: z.ZodType<
|
|
150
|
+
VaultConnectionConsentUpdateRequest$Outbound,
|
|
151
|
+
z.ZodTypeDef,
|
|
152
|
+
VaultConnectionConsentUpdateRequest
|
|
153
|
+
> = z.object({
|
|
154
|
+
consumerId: z.string().optional(),
|
|
155
|
+
appId: z.string().optional(),
|
|
156
|
+
serviceId: z.string(),
|
|
157
|
+
unifiedApi: z.string(),
|
|
158
|
+
updateConsentRequest: components.UpdateConsentRequest$outboundSchema,
|
|
159
|
+
}).transform((v) => {
|
|
160
|
+
return remap$(v, {
|
|
161
|
+
serviceId: "service_id",
|
|
162
|
+
unifiedApi: "unified_api",
|
|
163
|
+
updateConsentRequest: "UpdateConsentRequest",
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* @internal
|
|
169
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
170
|
+
*/
|
|
171
|
+
export namespace VaultConnectionConsentUpdateRequest$ {
|
|
172
|
+
/** @deprecated use `VaultConnectionConsentUpdateRequest$inboundSchema` instead. */
|
|
173
|
+
export const inboundSchema =
|
|
174
|
+
VaultConnectionConsentUpdateRequest$inboundSchema;
|
|
175
|
+
/** @deprecated use `VaultConnectionConsentUpdateRequest$outboundSchema` instead. */
|
|
176
|
+
export const outboundSchema =
|
|
177
|
+
VaultConnectionConsentUpdateRequest$outboundSchema;
|
|
178
|
+
/** @deprecated use `VaultConnectionConsentUpdateRequest$Outbound` instead. */
|
|
179
|
+
export type Outbound = VaultConnectionConsentUpdateRequest$Outbound;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export function vaultConnectionConsentUpdateRequestToJSON(
|
|
183
|
+
vaultConnectionConsentUpdateRequest: VaultConnectionConsentUpdateRequest,
|
|
184
|
+
): string {
|
|
185
|
+
return JSON.stringify(
|
|
186
|
+
VaultConnectionConsentUpdateRequest$outboundSchema.parse(
|
|
187
|
+
vaultConnectionConsentUpdateRequest,
|
|
188
|
+
),
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export function vaultConnectionConsentUpdateRequestFromJSON(
|
|
193
|
+
jsonString: string,
|
|
194
|
+
): SafeParseResult<VaultConnectionConsentUpdateRequest, SDKValidationError> {
|
|
195
|
+
return safeParse(
|
|
196
|
+
jsonString,
|
|
197
|
+
(x) =>
|
|
198
|
+
VaultConnectionConsentUpdateRequest$inboundSchema.parse(JSON.parse(x)),
|
|
199
|
+
`Failed to parse 'VaultConnectionConsentUpdateRequest' from JSON`,
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** @internal */
|
|
204
|
+
export const VaultConnectionConsentUpdateResponse$inboundSchema: z.ZodType<
|
|
205
|
+
VaultConnectionConsentUpdateResponse,
|
|
206
|
+
z.ZodTypeDef,
|
|
207
|
+
unknown
|
|
208
|
+
> = z.object({
|
|
209
|
+
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
210
|
+
UpdateConsentResponse: components.UpdateConsentResponse$inboundSchema
|
|
211
|
+
.optional(),
|
|
212
|
+
UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema
|
|
213
|
+
.optional(),
|
|
214
|
+
}).transform((v) => {
|
|
215
|
+
return remap$(v, {
|
|
216
|
+
"HttpMeta": "httpMeta",
|
|
217
|
+
"UpdateConsentResponse": "updateConsentResponse",
|
|
218
|
+
"UnexpectedErrorResponse": "unexpectedErrorResponse",
|
|
219
|
+
});
|
|
220
|
+
});
|
|
221
|
+
|
|
222
|
+
/** @internal */
|
|
223
|
+
export type VaultConnectionConsentUpdateResponse$Outbound = {
|
|
224
|
+
HttpMeta: components.HTTPMetadata$Outbound;
|
|
225
|
+
UpdateConsentResponse?: components.UpdateConsentResponse$Outbound | undefined;
|
|
226
|
+
UnexpectedErrorResponse?:
|
|
227
|
+
| components.UnexpectedErrorResponse$Outbound
|
|
228
|
+
| undefined;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
/** @internal */
|
|
232
|
+
export const VaultConnectionConsentUpdateResponse$outboundSchema: z.ZodType<
|
|
233
|
+
VaultConnectionConsentUpdateResponse$Outbound,
|
|
234
|
+
z.ZodTypeDef,
|
|
235
|
+
VaultConnectionConsentUpdateResponse
|
|
236
|
+
> = z.object({
|
|
237
|
+
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
238
|
+
updateConsentResponse: components.UpdateConsentResponse$outboundSchema
|
|
239
|
+
.optional(),
|
|
240
|
+
unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema
|
|
241
|
+
.optional(),
|
|
242
|
+
}).transform((v) => {
|
|
243
|
+
return remap$(v, {
|
|
244
|
+
httpMeta: "HttpMeta",
|
|
245
|
+
updateConsentResponse: "UpdateConsentResponse",
|
|
246
|
+
unexpectedErrorResponse: "UnexpectedErrorResponse",
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @internal
|
|
252
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
253
|
+
*/
|
|
254
|
+
export namespace VaultConnectionConsentUpdateResponse$ {
|
|
255
|
+
/** @deprecated use `VaultConnectionConsentUpdateResponse$inboundSchema` instead. */
|
|
256
|
+
export const inboundSchema =
|
|
257
|
+
VaultConnectionConsentUpdateResponse$inboundSchema;
|
|
258
|
+
/** @deprecated use `VaultConnectionConsentUpdateResponse$outboundSchema` instead. */
|
|
259
|
+
export const outboundSchema =
|
|
260
|
+
VaultConnectionConsentUpdateResponse$outboundSchema;
|
|
261
|
+
/** @deprecated use `VaultConnectionConsentUpdateResponse$Outbound` instead. */
|
|
262
|
+
export type Outbound = VaultConnectionConsentUpdateResponse$Outbound;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export function vaultConnectionConsentUpdateResponseToJSON(
|
|
266
|
+
vaultConnectionConsentUpdateResponse: VaultConnectionConsentUpdateResponse,
|
|
267
|
+
): string {
|
|
268
|
+
return JSON.stringify(
|
|
269
|
+
VaultConnectionConsentUpdateResponse$outboundSchema.parse(
|
|
270
|
+
vaultConnectionConsentUpdateResponse,
|
|
271
|
+
),
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export function vaultConnectionConsentUpdateResponseFromJSON(
|
|
276
|
+
jsonString: string,
|
|
277
|
+
): SafeParseResult<VaultConnectionConsentUpdateResponse, SDKValidationError> {
|
|
278
|
+
return safeParse(
|
|
279
|
+
jsonString,
|
|
280
|
+
(x) =>
|
|
281
|
+
VaultConnectionConsentUpdateResponse$inboundSchema.parse(JSON.parse(x)),
|
|
282
|
+
`Failed to parse 'VaultConnectionConsentUpdateResponse' from JSON`,
|
|
283
|
+
);
|
|
284
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vaultConnectionConsentUpdate } from "../funcs/vaultConnectionConsentUpdate.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class ConnectionConsent extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Update consent state
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Update the consent state of a connection
|
|
16
|
+
*/
|
|
17
|
+
async update(
|
|
18
|
+
request: operations.VaultConnectionConsentUpdateRequest,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<operations.VaultConnectionConsentUpdateResponse> {
|
|
21
|
+
return unwrapAsync(vaultConnectionConsentUpdate(
|
|
22
|
+
this,
|
|
23
|
+
request,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { vaultConnectionConsentsList } from "../funcs/vaultConnectionConsentsList.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class ConnectionConsents extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Get consent records
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Get all consent records for a connection
|
|
16
|
+
*/
|
|
17
|
+
async list(
|
|
18
|
+
request: operations.VaultConnectionConsentsAllRequest,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<operations.VaultConnectionConsentsAllResponse> {
|
|
21
|
+
return unwrapAsync(vaultConnectionConsentsList(
|
|
22
|
+
this,
|
|
23
|
+
request,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
26
|
+
}
|
|
27
|
+
}
|
package/src/sdk/vault.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
+
import { ConnectionConsent } from "./connectionconsent.js";
|
|
7
|
+
import { ConnectionConsents } from "./connectionconsents.js";
|
|
6
8
|
import { ConnectionCustomMappings } from "./connectioncustommappings.js";
|
|
7
9
|
import { Connections } from "./connections.js";
|
|
8
10
|
import { ConnectionSettings } from "./connectionsettings.js";
|
|
@@ -38,6 +40,16 @@ export class Vault extends ClientSDK {
|
|
|
38
40
|
return (this._validateConnection ??= new ValidateConnection(this._options));
|
|
39
41
|
}
|
|
40
42
|
|
|
43
|
+
private _connectionConsents?: ConnectionConsents;
|
|
44
|
+
get connectionConsents(): ConnectionConsents {
|
|
45
|
+
return (this._connectionConsents ??= new ConnectionConsents(this._options));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
private _connectionConsent?: ConnectionConsent;
|
|
49
|
+
get connectionConsent(): ConnectionConsent {
|
|
50
|
+
return (this._connectionConsent ??= new ConnectionConsent(this._options));
|
|
51
|
+
}
|
|
52
|
+
|
|
41
53
|
private _createCallback?: CreateCallback;
|
|
42
54
|
get createCallback(): CreateCallback {
|
|
43
55
|
return (this._createCallback ??= new CreateCallback(this._options));
|