@safe-global/safe-client-gateway-sdk
Advanced tools
Comparing version 1.65.0-next-f3ef9f5 to 1.66.0-next-5ae92b6
@@ -293,2 +293,27 @@ /** | ||
): Promise<getEstimation>; | ||
export type upsertSubscriptionsV2 = never; | ||
export declare function upsertSubscriptionsV2( | ||
options: ExtractOptions<"post", "/v2/register/notifications">, | ||
): Promise<upsertSubscriptionsV2>; | ||
export type getSafeSubscriptionV2 = never; | ||
export declare function getSafeSubscriptionV2( | ||
options: ExtractOptions< | ||
"get", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}" | ||
>, | ||
): Promise<getSafeSubscriptionV2>; | ||
export type deleteSubscriptionV2 = never; | ||
export declare function deleteSubscriptionV2( | ||
options: ExtractOptions< | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}" | ||
>, | ||
): Promise<deleteSubscriptionV2>; | ||
export type deleteDeviceV2 = never; | ||
export declare function deleteDeviceV2( | ||
options: ExtractOptions< | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}" | ||
>, | ||
): Promise<deleteDeviceV2>; | ||
export type getMessageByHash = | ||
@@ -491,27 +516,2 @@ paths["/v1/chains/{chainId}/messages/{messageHash}"]["get"]["responses"][200]["content"]["application/json"]; | ||
): Promise<getTransactionConfirmationView>; | ||
export type upsertSubscriptionsV2 = never; | ||
export declare function upsertSubscriptionsV2( | ||
options: ExtractOptions<"post", "/v2/register/notifications">, | ||
): Promise<upsertSubscriptionsV2>; | ||
export type getSafeSubscriptionV2 = never; | ||
export declare function getSafeSubscriptionV2( | ||
options: ExtractOptions< | ||
"get", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}" | ||
>, | ||
): Promise<getSafeSubscriptionV2>; | ||
export type deleteSubscriptionV2 = never; | ||
export declare function deleteSubscriptionV2( | ||
options: ExtractOptions< | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}" | ||
>, | ||
): Promise<deleteSubscriptionV2>; | ||
export type deleteDeviceV2 = never; | ||
export declare function deleteDeviceV2( | ||
options: ExtractOptions< | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}" | ||
>, | ||
): Promise<deleteDeviceV2>; | ||
export {}; |
@@ -54,2 +54,6 @@ "use strict"; | ||
exports.getEstimation = getEstimation; | ||
exports.upsertSubscriptionsV2 = upsertSubscriptionsV2; | ||
exports.getSafeSubscriptionV2 = getSafeSubscriptionV2; | ||
exports.deleteSubscriptionV2 = deleteSubscriptionV2; | ||
exports.deleteDeviceV2 = deleteDeviceV2; | ||
exports.getMessageByHash = getMessageByHash; | ||
@@ -84,6 +88,2 @@ exports.getMessagesBySafe = getMessagesBySafe; | ||
exports.getTransactionConfirmationView = getTransactionConfirmationView; | ||
exports.upsertSubscriptionsV2 = upsertSubscriptionsV2; | ||
exports.getSafeSubscriptionV2 = getSafeSubscriptionV2; | ||
exports.deleteSubscriptionV2 = deleteSubscriptionV2; | ||
exports.deleteDeviceV2 = deleteDeviceV2; | ||
const client_1 = require("./client"); | ||
@@ -341,2 +341,26 @@ async function clientRequest(method, path, options) { | ||
} | ||
async function upsertSubscriptionsV2(options) { | ||
return clientRequest("post", "/v2/register/notifications", options); | ||
} | ||
async function getSafeSubscriptionV2(options) { | ||
return clientRequest( | ||
"get", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}", | ||
options, | ||
); | ||
} | ||
async function deleteSubscriptionV2(options) { | ||
return clientRequest( | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}", | ||
options, | ||
); | ||
} | ||
async function deleteDeviceV2(options) { | ||
return clientRequest( | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}", | ||
options, | ||
); | ||
} | ||
async function getMessageByHash(options) { | ||
@@ -525,26 +549,2 @@ return clientRequest( | ||
} | ||
async function upsertSubscriptionsV2(options) { | ||
return clientRequest("post", "/v2/register/notifications", options); | ||
} | ||
async function getSafeSubscriptionV2(options) { | ||
return clientRequest( | ||
"get", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}", | ||
options, | ||
); | ||
} | ||
async function deleteSubscriptionV2(options) { | ||
return clientRequest( | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}", | ||
options, | ||
); | ||
} | ||
async function deleteDeviceV2(options) { | ||
return clientRequest( | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}", | ||
options, | ||
); | ||
} | ||
//# sourceMappingURL=sdk.js.map |
{ | ||
"license": "MIT", | ||
"name": "@safe-global/safe-client-gateway-sdk", | ||
"version": "1.65.0-next-f3ef9f5", | ||
"version": "1.66.0-next-5ae92b6", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "dist/index.d.ts", |
@@ -561,2 +561,51 @@ /** | ||
export type upsertSubscriptionsV2 = never; | ||
export async function upsertSubscriptionsV2( | ||
options: ExtractOptions<"post", "/v2/register/notifications">, | ||
): Promise<upsertSubscriptionsV2> { | ||
return clientRequest("post", "/v2/register/notifications", options); | ||
} | ||
export type getSafeSubscriptionV2 = never; | ||
export async function getSafeSubscriptionV2( | ||
options: ExtractOptions< | ||
"get", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}" | ||
>, | ||
): Promise<getSafeSubscriptionV2> { | ||
return clientRequest( | ||
"get", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}", | ||
options, | ||
); | ||
} | ||
export type deleteSubscriptionV2 = never; | ||
export async function deleteSubscriptionV2( | ||
options: ExtractOptions< | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}" | ||
>, | ||
): Promise<deleteSubscriptionV2> { | ||
return clientRequest( | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}", | ||
options, | ||
); | ||
} | ||
export type deleteDeviceV2 = never; | ||
export async function deleteDeviceV2( | ||
options: ExtractOptions< | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}" | ||
>, | ||
): Promise<deleteDeviceV2> { | ||
return clientRequest( | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}", | ||
options, | ||
); | ||
} | ||
export type getMessageByHash = | ||
@@ -941,50 +990,1 @@ paths["/v1/chains/{chainId}/messages/{messageHash}"]["get"]["responses"][200]["content"]["application/json"]; | ||
} | ||
export type upsertSubscriptionsV2 = never; | ||
export async function upsertSubscriptionsV2( | ||
options: ExtractOptions<"post", "/v2/register/notifications">, | ||
): Promise<upsertSubscriptionsV2> { | ||
return clientRequest("post", "/v2/register/notifications", options); | ||
} | ||
export type getSafeSubscriptionV2 = never; | ||
export async function getSafeSubscriptionV2( | ||
options: ExtractOptions< | ||
"get", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}" | ||
>, | ||
): Promise<getSafeSubscriptionV2> { | ||
return clientRequest( | ||
"get", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}", | ||
options, | ||
); | ||
} | ||
export type deleteSubscriptionV2 = never; | ||
export async function deleteSubscriptionV2( | ||
options: ExtractOptions< | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}" | ||
>, | ||
): Promise<deleteSubscriptionV2> { | ||
return clientRequest( | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}/safes/{safeAddress}", | ||
options, | ||
); | ||
} | ||
export type deleteDeviceV2 = never; | ||
export async function deleteDeviceV2( | ||
options: ExtractOptions< | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}" | ||
>, | ||
): Promise<deleteDeviceV2> { | ||
return clientRequest( | ||
"delete", | ||
"/v2/chains/{chainId}/notifications/devices/{deviceUuid}", | ||
options, | ||
); | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
311799
11056