@datviet/nbp-sdk 0.0.329 → 0.0.362
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/package.json +1 -1
- package/v2/gen/sdk.gen.d.ts +61 -1
- package/v2/gen/sdk.gen.js +133 -0
- package/v2/gen/types.gen.d.ts +111 -0
package/package.json
CHANGED
package/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
|
|
2
|
-
import type { AgentListResponses, AgentPartInput, AgentStatsErrors, AgentStatsResponses, AppLogErrors, AppLogResponses, Auth as Auth2, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, DeleteInstructionsIdResponses, EntityPartInput, EventSubscribeResponses, ExperimentalResourceListResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GetInstructionsResponses, GetWorkspacesIdAuditResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, InternalAccountsListResponses, InternalAccountsUpdateFeaturesResponses, InternalCacheInvalidateAllResponses, InternalCacheInvalidateResponses, InternalCacheStatsResponses, InternalEmailSegmentsResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NbpClientRelationsCreateResponses, NbpClientRelationsDeleteResponses, NbpClientRelationsListResponses, NbpClientsAddInteractionErrors, NbpClientsAddInteractionResponses, NbpClientsCreateErrors, NbpClientsCreateResponses, NbpClientsDeleteErrors, NbpClientsDeleteResponses, NbpClientsExportErrors, NbpClientsExportResponses, NbpClientsGetErrors, NbpClientsGetResponses, NbpClientsHistoryResponses, NbpClientsHotResponses, NbpClientsInteractionsFeedResponses, NbpClientsListResponses, NbpClientsMatchesResponses, NbpClientsStatsResponses, NbpClientsUpdateErrors, NbpClientsUpdateResponses, NbpContactsListingsResponses, NbpContactsPhoneLinkResponses, NbpContactsPhonesResponses, NbpContactsPhoneUnlinkResponses, NbpDangerPurgeConfirmErrors, NbpDangerPurgeConfirmResponses, NbpDangerPurgeRequestResponses, NbpDivisionsListResponses, NbpListingsAddInteractionErrors, NbpListingsAddInteractionResponses, NbpListingsBulkUpsertErrors, NbpListingsBulkUpsertResponses, NbpListingsClustersResponses, NbpListingsCreateErrors, NbpListingsCreateResponses, NbpListingsDeleteErrors, NbpListingsDeleteResponses, NbpListingsExportDataErrors, NbpListingsExportDataResponses, NbpListingsExportErrors, NbpListingsExportResponses, NbpListingsGeoResponses, NbpListingsGetErrors, NbpListingsGetResponses, NbpListingsHistoryResponses, NbpListingsImagesByCodesErrors, NbpListingsImagesByCodesResponses, NbpListingsListResponses, NbpListingsMatchesResponses, NbpListingsQueryErrors, NbpListingsQueryResponses, NbpListingsStatsResponses, NbpListingsUnmaskPhoneErrors, NbpListingsUnmaskPhoneResponses, NbpListingsUpdateErrors, NbpListingsUpdateLocationErrors, NbpListingsUpdateLocationResponses, NbpListingsUpdateResponses, NbpPropertiesCreateErrors, NbpPropertiesCreateResponses, NbpPropertiesDeleteErrors, NbpPropertiesDeleteResponses, NbpPropertiesGetErrors, NbpPropertiesGetResponses, NbpPropertiesListingsErrors, NbpPropertiesListingsResponses, NbpPropertiesListResponses, NbpPropertiesUpdateErrors, NbpPropertiesUpdateResponses, NbpSearchClientsResponses, NbpSearchGlobalResponses, NbpSearchListingsResponses, NbpSearchQuickResponses, NbpTagsClientsDefaultsResponses, NbpTagsClientsResetResponses, NbpTagsClientsResponses, NbpTagsClientsSaveErrors, NbpTagsClientsSaveResponses, NbpTagsListingsDefaultsResponses, NbpTagsListingsResetResponses, NbpTagsListingsResponses, NbpTagsListingsSaveErrors, NbpTagsListingsSaveResponses, NbpTasksCreateResponses, NbpTasksDeleteResponses, NbpTasksGetErrors, NbpTasksGetResponses, NbpTasksListResponses, NbpTasksTodayResponses, NbpTasksUpdateErrors, NbpTasksUpdateResponses, NbpViewsGetErrors, NbpViewsGetResponses, NbpViewsResetPersonalErrors, NbpViewsResetPersonalResponses, NbpViewsSavePersonalErrors, NbpViewsSavePersonalResponses, NbpViewsSaveWorkspaceErrors, NbpViewsSaveWorkspaceResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PatchInstructionsIdResponses, PatchInstructionsIdToggleResponses, PatchMapAdminPartnersIdResponses, PatchWorkspacesIdBrandingResponses, PatchWorkspacesIdGeocodingResponses, PatchWorkspacesIdMembersMemberIdResponses, PatchWorkspacesIdRolesRoleIdResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PostAccountAcquisitionResponses, PostAffiliateBindResponses, PostAffiliateClickResponses, PostInstructionsResponses, PostMapAdminAffiliatePayoutsSettleResponses, PostMapAdminAffiliatesBindResponses, PostMapAdminAffiliatesResponses, PostMapAdminAffiliatesToggleResponses, PostMapAdminCustomCheckoutResponses, PostMapAdminGrantResponses, PostMapAdminOrdersCancelResponses, PostMapAdminPartnersIdCreditLimitResponses, PostMapAdminPartnersIdKeysResponses, PostMapAdminPartnersResponses, PostMapAdminReferralsRevokeResponses, PostMapAdminSetAccessResponses, PostMapAdminTileBansClearResponses, PostMapAdminWalletCreditResponses, PostMapBrochureChargeResponses, PostMapClaimResponses, PostMapEventsResponses, PostMapPayCheckoutResponses, PostMapReferralRedeemResponses, PostMapWalletTopupResponses, PostWorkspacesIdBrandingUploadUrlResponses, PostWorkspacesIdGeocodingTestResponses, PostWorkspacesIdInviteResponses, PostWorkspacesIdRolesResponses, PostWorkspacesIdTransferOwnershipResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeResponses, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, PutAccountMeResponses, PutAccountPhoneResponses, PutAffiliateBankResponses, PutWorkspacesIdMembersMemberIdRolesResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SessionUsageResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, VcsGetResponses, WorkspacesApiKeysCreateErrors, WorkspacesApiKeysCreateResponses, WorkspacesApiKeysListErrors, WorkspacesApiKeysListResponses, WorkspacesApiKeysRevokeErrors, WorkspacesApiKeysRevokeResponses, WorkspacesCreateResponses, WorkspacesGetErrors, WorkspacesGetResponses, WorkspacesIntegrationsOriginsListErrors, WorkspacesIntegrationsOriginsListResponses, WorkspacesIntegrationsOriginsReplaceErrors, WorkspacesIntegrationsOriginsReplaceResponses, WorkspacesListResponses, WorkspacesUpdateErrors, WorkspacesUpdateResponses, WorkspacesUsageResponses, WorktreeCreateErrors, WorktreeCreateResponses, WorktreeListResponses } from "./types.gen.js";
|
|
2
|
+
import type { AgentListResponses, AgentPartInput, AgentStatsErrors, AgentStatsResponses, AppLogErrors, AppLogResponses, Auth as Auth2, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, DeleteInstructionsIdResponses, EntityPartInput, EventSubscribeResponses, ExperimentalResourceListResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GetInstructionsResponses, GetWorkspacesIdAuditResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, InternalAccountsListResponses, InternalAccountsUpdateFeaturesResponses, InternalCacheInvalidateAllResponses, InternalCacheInvalidateResponses, InternalCacheStatsResponses, InternalEmailSegmentsResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NbpClientRelationsCreateResponses, NbpClientRelationsDeleteResponses, NbpClientRelationsListResponses, NbpClientsAddInteractionErrors, NbpClientsAddInteractionResponses, NbpClientsCreateErrors, NbpClientsCreateResponses, NbpClientsDeleteErrors, NbpClientsDeleteResponses, NbpClientsExportErrors, NbpClientsExportResponses, NbpClientsGetErrors, NbpClientsGetResponses, NbpClientsHistoryResponses, NbpClientsHotResponses, NbpClientsInteractionsFeedResponses, NbpClientsListResponses, NbpClientsMatchesResponses, NbpClientsStatsResponses, NbpClientsUpdateErrors, NbpClientsUpdateResponses, NbpContactsListingsResponses, NbpContactsPhoneLinkResponses, NbpContactsPhonesResponses, NbpContactsPhoneUnlinkResponses, NbpDangerPurgeConfirmErrors, NbpDangerPurgeConfirmResponses, NbpDangerPurgeRequestResponses, NbpDivisionsListResponses, NbpListingsAddInteractionErrors, NbpListingsAddInteractionResponses, NbpListingsBulkUpsertErrors, NbpListingsBulkUpsertResponses, NbpListingsClustersResponses, NbpListingsCreateErrors, NbpListingsCreateResponses, NbpListingsDeleteErrors, NbpListingsDeleteResponses, NbpListingsExportDataErrors, NbpListingsExportDataResponses, NbpListingsExportErrors, NbpListingsExportResponses, NbpListingsGeoResponses, NbpListingsGetErrors, NbpListingsGetResponses, NbpListingsHistoryResponses, NbpListingsImagesByCodesErrors, NbpListingsImagesByCodesResponses, NbpListingsListResponses, NbpListingsMatchesResponses, NbpListingsQueryErrors, NbpListingsQueryResponses, NbpListingsStatsResponses, NbpListingsUnmaskPhoneErrors, NbpListingsUnmaskPhoneResponses, NbpListingsUpdateErrors, NbpListingsUpdateLocationErrors, NbpListingsUpdateLocationResponses, NbpListingsUpdateResponses, NbpPropertiesCreateErrors, NbpPropertiesCreateResponses, NbpPropertiesDeleteErrors, NbpPropertiesDeleteResponses, NbpPropertiesGetErrors, NbpPropertiesGetResponses, NbpPropertiesListingsErrors, NbpPropertiesListingsResponses, NbpPropertiesListResponses, NbpPropertiesUpdateErrors, NbpPropertiesUpdateResponses, NbpSearchClientsResponses, NbpSearchGlobalResponses, NbpSearchListingsResponses, NbpSearchQuickResponses, NbpTagsClientsDefaultsResponses, NbpTagsClientsResetResponses, NbpTagsClientsResponses, NbpTagsClientsSaveErrors, NbpTagsClientsSaveResponses, NbpTagsListingsDefaultsResponses, NbpTagsListingsResetResponses, NbpTagsListingsResponses, NbpTagsListingsSaveErrors, NbpTagsListingsSaveResponses, NbpTasksCreateResponses, NbpTasksDeleteResponses, NbpTasksGetErrors, NbpTasksGetResponses, NbpTasksListResponses, NbpTasksTodayResponses, NbpTasksUpdateErrors, NbpTasksUpdateResponses, NbpViewsGetErrors, NbpViewsGetResponses, NbpViewsResetPersonalErrors, NbpViewsResetPersonalResponses, NbpViewsSavePersonalErrors, NbpViewsSavePersonalResponses, NbpViewsSaveWorkspaceErrors, NbpViewsSaveWorkspaceResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PatchInstructionsIdResponses, PatchInstructionsIdToggleResponses, PatchMapAdminNotificationsIdResponses, PatchMapAdminPartnersIdResponses, PatchWorkspacesIdBrandingResponses, PatchWorkspacesIdGeocodingResponses, PatchWorkspacesIdMembersMemberIdResponses, PatchWorkspacesIdRolesRoleIdResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PostAccountAcquisitionResponses, PostAffiliateBindResponses, PostAffiliateClickResponses, PostInstructionsResponses, PostMapActionResponses, PostMapAdminAffiliatePayoutsSettleResponses, PostMapAdminAffiliatesBindResponses, PostMapAdminAffiliatesResponses, PostMapAdminAffiliatesToggleResponses, PostMapAdminCustomCheckoutResponses, PostMapAdminGrantResponses, PostMapAdminNotificationsResponses, PostMapAdminNotificationsTestResponses, PostMapAdminOrdersCancelResponses, PostMapAdminPartnersIdCreditLimitResponses, PostMapAdminPartnersIdKeysResponses, PostMapAdminPartnersResponses, PostMapAdminReferralsRevokeResponses, PostMapAdminSetAccessResponses, PostMapAdminTileBansClearResponses, PostMapAdminWalletCreditResponses, PostMapBrochureChargeResponses, PostMapClaimResponses, PostMapEventsResponses, PostMapNotificationsReadResponses, PostMapPayCheckoutResponses, PostMapReferralRedeemResponses, PostMapWalletTopupResponses, PostWorkspacesIdBrandingUploadUrlResponses, PostWorkspacesIdGeocodingTestResponses, PostWorkspacesIdInviteResponses, PostWorkspacesIdRolesResponses, PostWorkspacesIdTransferOwnershipResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeResponses, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, PutAccountMeResponses, PutAccountPhoneResponses, PutAffiliateBankResponses, PutMapNotificationsPrefsResponses, PutWorkspacesIdMembersMemberIdRolesResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SessionUsageResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, VcsGetResponses, WorkspacesApiKeysCreateErrors, WorkspacesApiKeysCreateResponses, WorkspacesApiKeysListErrors, WorkspacesApiKeysListResponses, WorkspacesApiKeysRevokeErrors, WorkspacesApiKeysRevokeResponses, WorkspacesCreateResponses, WorkspacesGetErrors, WorkspacesGetResponses, WorkspacesIntegrationsOriginsListErrors, WorkspacesIntegrationsOriginsListResponses, WorkspacesIntegrationsOriginsReplaceErrors, WorkspacesIntegrationsOriginsReplaceResponses, WorkspacesListResponses, WorkspacesUpdateErrors, WorkspacesUpdateResponses, WorkspacesUsageResponses, WorktreeCreateErrors, WorktreeCreateResponses, WorktreeListResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -2715,6 +2715,10 @@ export declare class OpencodeClient extends HeyApiClient {
|
|
|
2715
2715
|
ts?: string;
|
|
2716
2716
|
};
|
|
2717
2717
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostAccountAcquisitionResponses, unknown, ThrowOnError, "fields">;
|
|
2718
|
+
postMapAction<ThrowOnError extends boolean = false>(parameters?: {
|
|
2719
|
+
kind?: "parcel" | "draw" | "search";
|
|
2720
|
+
idem?: string;
|
|
2721
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostMapActionResponses, unknown, ThrowOnError, "fields">;
|
|
2718
2722
|
postMapBrochureCharge<ThrowOnError extends boolean = false>(parameters?: {
|
|
2719
2723
|
ref?: string;
|
|
2720
2724
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostMapBrochureChargeResponses, unknown, ThrowOnError, "fields">;
|
|
@@ -2741,6 +2745,15 @@ export declare class OpencodeClient extends HeyApiClient {
|
|
|
2741
2745
|
at?: string | null;
|
|
2742
2746
|
}>;
|
|
2743
2747
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostMapEventsResponses, unknown, ThrowOnError, "fields">;
|
|
2748
|
+
postMapNotificationsRead<ThrowOnError extends boolean = false>(parameters?: {
|
|
2749
|
+
id?: string;
|
|
2750
|
+
all?: boolean;
|
|
2751
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostMapNotificationsReadResponses, unknown, ThrowOnError, "fields">;
|
|
2752
|
+
putMapNotificationsPrefs<ThrowOnError extends boolean = false>(parameters?: {
|
|
2753
|
+
topics?: {
|
|
2754
|
+
[key: string]: boolean;
|
|
2755
|
+
};
|
|
2756
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PutMapNotificationsPrefsResponses, unknown, ThrowOnError, "fields">;
|
|
2744
2757
|
postMapAdminWalletCredit<ThrowOnError extends boolean = false>(parameters?: {
|
|
2745
2758
|
accountID?: string;
|
|
2746
2759
|
amount?: number;
|
|
@@ -2749,6 +2762,53 @@ export declare class OpencodeClient extends HeyApiClient {
|
|
|
2749
2762
|
postMapAdminReferralsRevoke<ThrowOnError extends boolean = false>(parameters?: {
|
|
2750
2763
|
id?: string;
|
|
2751
2764
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostMapAdminReferralsRevokeResponses, unknown, ThrowOnError, "fields">;
|
|
2765
|
+
postMapAdminNotifications<ThrowOnError extends boolean = false>(parameters?: {
|
|
2766
|
+
title?: string;
|
|
2767
|
+
body?: string;
|
|
2768
|
+
deepLink?: string | null;
|
|
2769
|
+
topic?: "account" | "data" | "news" | "promo";
|
|
2770
|
+
segment?: {
|
|
2771
|
+
plan?: Array<string>;
|
|
2772
|
+
status?: Array<string>;
|
|
2773
|
+
province?: Array<string>;
|
|
2774
|
+
activeOnly?: boolean;
|
|
2775
|
+
} | null;
|
|
2776
|
+
pushEnabled?: boolean;
|
|
2777
|
+
scheduledAt?: string | null;
|
|
2778
|
+
sendNow?: boolean;
|
|
2779
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostMapAdminNotificationsResponses, unknown, ThrowOnError, "fields">;
|
|
2780
|
+
postMapAdminNotificationsTest<ThrowOnError extends boolean = false>(parameters?: {
|
|
2781
|
+
title?: string;
|
|
2782
|
+
body?: string;
|
|
2783
|
+
deepLink?: string | null;
|
|
2784
|
+
topic?: "account" | "data" | "news" | "promo";
|
|
2785
|
+
segment?: {
|
|
2786
|
+
plan?: Array<string>;
|
|
2787
|
+
status?: Array<string>;
|
|
2788
|
+
province?: Array<string>;
|
|
2789
|
+
activeOnly?: boolean;
|
|
2790
|
+
} | null;
|
|
2791
|
+
pushEnabled?: boolean;
|
|
2792
|
+
scheduledAt?: string | null;
|
|
2793
|
+
sendNow?: boolean;
|
|
2794
|
+
email?: string;
|
|
2795
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostMapAdminNotificationsTestResponses, unknown, ThrowOnError, "fields">;
|
|
2796
|
+
patchMapAdminNotificationsId<ThrowOnError extends boolean = false>(parameters: {
|
|
2797
|
+
id: string;
|
|
2798
|
+
title?: string;
|
|
2799
|
+
body?: string;
|
|
2800
|
+
deepLink?: string | null;
|
|
2801
|
+
topic?: "account" | "data" | "news" | "promo";
|
|
2802
|
+
segment?: {
|
|
2803
|
+
plan?: Array<string>;
|
|
2804
|
+
status?: Array<string>;
|
|
2805
|
+
province?: Array<string>;
|
|
2806
|
+
activeOnly?: boolean;
|
|
2807
|
+
} | null;
|
|
2808
|
+
pushEnabled?: boolean;
|
|
2809
|
+
scheduledAt?: string | null;
|
|
2810
|
+
sendNow?: boolean;
|
|
2811
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PatchMapAdminNotificationsIdResponses, unknown, ThrowOnError, "fields">;
|
|
2752
2812
|
postMapAdminPartners<ThrowOnError extends boolean = false>(parameters?: {
|
|
2753
2813
|
slug?: string;
|
|
2754
2814
|
name?: string;
|
package/v2/gen/sdk.gen.js
CHANGED
|
@@ -3763,6 +3763,26 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
3763
3763
|
},
|
|
3764
3764
|
});
|
|
3765
3765
|
}
|
|
3766
|
+
postMapAction(parameters, options) {
|
|
3767
|
+
const params = buildClientParams([parameters], [
|
|
3768
|
+
{
|
|
3769
|
+
args: [
|
|
3770
|
+
{ in: "body", key: "kind" },
|
|
3771
|
+
{ in: "body", key: "idem" },
|
|
3772
|
+
],
|
|
3773
|
+
},
|
|
3774
|
+
]);
|
|
3775
|
+
return (options?.client ?? this.client).post({
|
|
3776
|
+
url: "/map/action",
|
|
3777
|
+
...options,
|
|
3778
|
+
...params,
|
|
3779
|
+
headers: {
|
|
3780
|
+
"Content-Type": "application/json",
|
|
3781
|
+
...options?.headers,
|
|
3782
|
+
...params.headers,
|
|
3783
|
+
},
|
|
3784
|
+
});
|
|
3785
|
+
}
|
|
3766
3786
|
postMapBrochureCharge(parameters, options) {
|
|
3767
3787
|
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "ref" }] }]);
|
|
3768
3788
|
return (options?.client ?? this.client).post({
|
|
@@ -3855,6 +3875,39 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
3855
3875
|
},
|
|
3856
3876
|
});
|
|
3857
3877
|
}
|
|
3878
|
+
postMapNotificationsRead(parameters, options) {
|
|
3879
|
+
const params = buildClientParams([parameters], [
|
|
3880
|
+
{
|
|
3881
|
+
args: [
|
|
3882
|
+
{ in: "body", key: "id" },
|
|
3883
|
+
{ in: "body", key: "all" },
|
|
3884
|
+
],
|
|
3885
|
+
},
|
|
3886
|
+
]);
|
|
3887
|
+
return (options?.client ?? this.client).post({
|
|
3888
|
+
url: "/map/notifications/read",
|
|
3889
|
+
...options,
|
|
3890
|
+
...params,
|
|
3891
|
+
headers: {
|
|
3892
|
+
"Content-Type": "application/json",
|
|
3893
|
+
...options?.headers,
|
|
3894
|
+
...params.headers,
|
|
3895
|
+
},
|
|
3896
|
+
});
|
|
3897
|
+
}
|
|
3898
|
+
putMapNotificationsPrefs(parameters, options) {
|
|
3899
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "topics" }] }]);
|
|
3900
|
+
return (options?.client ?? this.client).put({
|
|
3901
|
+
url: "/map/notifications/prefs",
|
|
3902
|
+
...options,
|
|
3903
|
+
...params,
|
|
3904
|
+
headers: {
|
|
3905
|
+
"Content-Type": "application/json",
|
|
3906
|
+
...options?.headers,
|
|
3907
|
+
...params.headers,
|
|
3908
|
+
},
|
|
3909
|
+
});
|
|
3910
|
+
}
|
|
3858
3911
|
postMapAdminWalletCredit(parameters, options) {
|
|
3859
3912
|
const params = buildClientParams([parameters], [
|
|
3860
3913
|
{
|
|
@@ -3889,6 +3942,86 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
3889
3942
|
},
|
|
3890
3943
|
});
|
|
3891
3944
|
}
|
|
3945
|
+
postMapAdminNotifications(parameters, options) {
|
|
3946
|
+
const params = buildClientParams([parameters], [
|
|
3947
|
+
{
|
|
3948
|
+
args: [
|
|
3949
|
+
{ in: "body", key: "title" },
|
|
3950
|
+
{ in: "body", key: "body" },
|
|
3951
|
+
{ in: "body", key: "deepLink" },
|
|
3952
|
+
{ in: "body", key: "topic" },
|
|
3953
|
+
{ in: "body", key: "segment" },
|
|
3954
|
+
{ in: "body", key: "pushEnabled" },
|
|
3955
|
+
{ in: "body", key: "scheduledAt" },
|
|
3956
|
+
{ in: "body", key: "sendNow" },
|
|
3957
|
+
],
|
|
3958
|
+
},
|
|
3959
|
+
]);
|
|
3960
|
+
return (options?.client ?? this.client).post({
|
|
3961
|
+
url: "/map/admin/notifications",
|
|
3962
|
+
...options,
|
|
3963
|
+
...params,
|
|
3964
|
+
headers: {
|
|
3965
|
+
"Content-Type": "application/json",
|
|
3966
|
+
...options?.headers,
|
|
3967
|
+
...params.headers,
|
|
3968
|
+
},
|
|
3969
|
+
});
|
|
3970
|
+
}
|
|
3971
|
+
postMapAdminNotificationsTest(parameters, options) {
|
|
3972
|
+
const params = buildClientParams([parameters], [
|
|
3973
|
+
{
|
|
3974
|
+
args: [
|
|
3975
|
+
{ in: "body", key: "title" },
|
|
3976
|
+
{ in: "body", key: "body" },
|
|
3977
|
+
{ in: "body", key: "deepLink" },
|
|
3978
|
+
{ in: "body", key: "topic" },
|
|
3979
|
+
{ in: "body", key: "segment" },
|
|
3980
|
+
{ in: "body", key: "pushEnabled" },
|
|
3981
|
+
{ in: "body", key: "scheduledAt" },
|
|
3982
|
+
{ in: "body", key: "sendNow" },
|
|
3983
|
+
{ in: "body", key: "email" },
|
|
3984
|
+
],
|
|
3985
|
+
},
|
|
3986
|
+
]);
|
|
3987
|
+
return (options?.client ?? this.client).post({
|
|
3988
|
+
url: "/map/admin/notifications/test",
|
|
3989
|
+
...options,
|
|
3990
|
+
...params,
|
|
3991
|
+
headers: {
|
|
3992
|
+
"Content-Type": "application/json",
|
|
3993
|
+
...options?.headers,
|
|
3994
|
+
...params.headers,
|
|
3995
|
+
},
|
|
3996
|
+
});
|
|
3997
|
+
}
|
|
3998
|
+
patchMapAdminNotificationsId(parameters, options) {
|
|
3999
|
+
const params = buildClientParams([parameters], [
|
|
4000
|
+
{
|
|
4001
|
+
args: [
|
|
4002
|
+
{ in: "path", key: "id" },
|
|
4003
|
+
{ in: "body", key: "title" },
|
|
4004
|
+
{ in: "body", key: "body" },
|
|
4005
|
+
{ in: "body", key: "deepLink" },
|
|
4006
|
+
{ in: "body", key: "topic" },
|
|
4007
|
+
{ in: "body", key: "segment" },
|
|
4008
|
+
{ in: "body", key: "pushEnabled" },
|
|
4009
|
+
{ in: "body", key: "scheduledAt" },
|
|
4010
|
+
{ in: "body", key: "sendNow" },
|
|
4011
|
+
],
|
|
4012
|
+
},
|
|
4013
|
+
]);
|
|
4014
|
+
return (options?.client ?? this.client).patch({
|
|
4015
|
+
url: "/map/admin/notifications/{id}",
|
|
4016
|
+
...options,
|
|
4017
|
+
...params,
|
|
4018
|
+
headers: {
|
|
4019
|
+
"Content-Type": "application/json",
|
|
4020
|
+
...options?.headers,
|
|
4021
|
+
...params.headers,
|
|
4022
|
+
},
|
|
4023
|
+
});
|
|
4024
|
+
}
|
|
3892
4025
|
postMapAdminPartners(parameters, options) {
|
|
3893
4026
|
const params = buildClientParams([parameters], [
|
|
3894
4027
|
{
|
package/v2/gen/types.gen.d.ts
CHANGED
|
@@ -2460,6 +2460,18 @@ export type PostAccountAcquisitionData = {
|
|
|
2460
2460
|
export type PostAccountAcquisitionResponses = {
|
|
2461
2461
|
200: unknown;
|
|
2462
2462
|
};
|
|
2463
|
+
export type PostMapActionData = {
|
|
2464
|
+
body?: {
|
|
2465
|
+
kind: "parcel" | "draw" | "search";
|
|
2466
|
+
idem: string;
|
|
2467
|
+
};
|
|
2468
|
+
path?: never;
|
|
2469
|
+
query?: never;
|
|
2470
|
+
url: "/map/action";
|
|
2471
|
+
};
|
|
2472
|
+
export type PostMapActionResponses = {
|
|
2473
|
+
200: unknown;
|
|
2474
|
+
};
|
|
2463
2475
|
export type PostMapBrochureChargeData = {
|
|
2464
2476
|
body?: {
|
|
2465
2477
|
ref?: string;
|
|
@@ -2534,6 +2546,31 @@ export type PostMapEventsData = {
|
|
|
2534
2546
|
export type PostMapEventsResponses = {
|
|
2535
2547
|
200: unknown;
|
|
2536
2548
|
};
|
|
2549
|
+
export type PostMapNotificationsReadData = {
|
|
2550
|
+
body?: {
|
|
2551
|
+
id?: string;
|
|
2552
|
+
all?: boolean;
|
|
2553
|
+
};
|
|
2554
|
+
path?: never;
|
|
2555
|
+
query?: never;
|
|
2556
|
+
url: "/map/notifications/read";
|
|
2557
|
+
};
|
|
2558
|
+
export type PostMapNotificationsReadResponses = {
|
|
2559
|
+
200: unknown;
|
|
2560
|
+
};
|
|
2561
|
+
export type PutMapNotificationsPrefsData = {
|
|
2562
|
+
body?: {
|
|
2563
|
+
topics: {
|
|
2564
|
+
[key: string]: boolean;
|
|
2565
|
+
};
|
|
2566
|
+
};
|
|
2567
|
+
path?: never;
|
|
2568
|
+
query?: never;
|
|
2569
|
+
url: "/map/notifications/prefs";
|
|
2570
|
+
};
|
|
2571
|
+
export type PutMapNotificationsPrefsResponses = {
|
|
2572
|
+
200: unknown;
|
|
2573
|
+
};
|
|
2537
2574
|
export type PostMapAdminWalletCreditData = {
|
|
2538
2575
|
body?: {
|
|
2539
2576
|
accountID: string;
|
|
@@ -2558,6 +2595,78 @@ export type PostMapAdminReferralsRevokeData = {
|
|
|
2558
2595
|
export type PostMapAdminReferralsRevokeResponses = {
|
|
2559
2596
|
200: unknown;
|
|
2560
2597
|
};
|
|
2598
|
+
export type PostMapAdminNotificationsData = {
|
|
2599
|
+
body?: {
|
|
2600
|
+
title: string;
|
|
2601
|
+
body: string;
|
|
2602
|
+
deepLink?: string | null;
|
|
2603
|
+
topic: "account" | "data" | "news" | "promo";
|
|
2604
|
+
segment?: {
|
|
2605
|
+
plan?: Array<string>;
|
|
2606
|
+
status?: Array<string>;
|
|
2607
|
+
province?: Array<string>;
|
|
2608
|
+
activeOnly?: boolean;
|
|
2609
|
+
} | null;
|
|
2610
|
+
pushEnabled?: boolean;
|
|
2611
|
+
scheduledAt?: string | null;
|
|
2612
|
+
sendNow?: boolean;
|
|
2613
|
+
};
|
|
2614
|
+
path?: never;
|
|
2615
|
+
query?: never;
|
|
2616
|
+
url: "/map/admin/notifications";
|
|
2617
|
+
};
|
|
2618
|
+
export type PostMapAdminNotificationsResponses = {
|
|
2619
|
+
200: unknown;
|
|
2620
|
+
};
|
|
2621
|
+
export type PostMapAdminNotificationsTestData = {
|
|
2622
|
+
body?: {
|
|
2623
|
+
title: string;
|
|
2624
|
+
body: string;
|
|
2625
|
+
deepLink?: string | null;
|
|
2626
|
+
topic: "account" | "data" | "news" | "promo";
|
|
2627
|
+
segment?: {
|
|
2628
|
+
plan?: Array<string>;
|
|
2629
|
+
status?: Array<string>;
|
|
2630
|
+
province?: Array<string>;
|
|
2631
|
+
activeOnly?: boolean;
|
|
2632
|
+
} | null;
|
|
2633
|
+
pushEnabled?: boolean;
|
|
2634
|
+
scheduledAt?: string | null;
|
|
2635
|
+
sendNow?: boolean;
|
|
2636
|
+
email: string;
|
|
2637
|
+
};
|
|
2638
|
+
path?: never;
|
|
2639
|
+
query?: never;
|
|
2640
|
+
url: "/map/admin/notifications/test";
|
|
2641
|
+
};
|
|
2642
|
+
export type PostMapAdminNotificationsTestResponses = {
|
|
2643
|
+
200: unknown;
|
|
2644
|
+
};
|
|
2645
|
+
export type PatchMapAdminNotificationsIdData = {
|
|
2646
|
+
body?: {
|
|
2647
|
+
title?: string;
|
|
2648
|
+
body?: string;
|
|
2649
|
+
deepLink?: string | null;
|
|
2650
|
+
topic?: "account" | "data" | "news" | "promo";
|
|
2651
|
+
segment?: {
|
|
2652
|
+
plan?: Array<string>;
|
|
2653
|
+
status?: Array<string>;
|
|
2654
|
+
province?: Array<string>;
|
|
2655
|
+
activeOnly?: boolean;
|
|
2656
|
+
} | null;
|
|
2657
|
+
pushEnabled?: boolean;
|
|
2658
|
+
scheduledAt?: string | null;
|
|
2659
|
+
sendNow?: boolean;
|
|
2660
|
+
};
|
|
2661
|
+
path: {
|
|
2662
|
+
id: string;
|
|
2663
|
+
};
|
|
2664
|
+
query?: never;
|
|
2665
|
+
url: "/map/admin/notifications/{id}";
|
|
2666
|
+
};
|
|
2667
|
+
export type PatchMapAdminNotificationsIdResponses = {
|
|
2668
|
+
200: unknown;
|
|
2669
|
+
};
|
|
2561
2670
|
export type PostMapAdminPartnersData = {
|
|
2562
2671
|
body?: {
|
|
2563
2672
|
slug: string;
|
|
@@ -3425,6 +3534,8 @@ export type InternalEmailSegmentsResponses = {
|
|
|
3425
3534
|
name: string | null;
|
|
3426
3535
|
plan: string | null;
|
|
3427
3536
|
accessUntil: string;
|
|
3537
|
+
via?: "web" | "store";
|
|
3538
|
+
variant?: "A" | "B" | null;
|
|
3428
3539
|
}>;
|
|
3429
3540
|
};
|
|
3430
3541
|
};
|