@getlatedev/node 0.2.1365 → 0.2.1367
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 +6 -0
- package/dist/index.d.mts +285 -75
- package/dist/index.d.ts +285 -75
- package/dist/index.js +43 -1
- package/dist/index.mjs +43 -1
- package/package.json +1 -1
- package/src/client.ts +12 -0
- package/src/generated/sdk.gen.ts +68 -1
- package/src/generated/types.gen.ts +301 -74
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1367",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -1242,6 +1242,42 @@ var updateConnectWelcomeScreen = (options) => {
|
|
|
1242
1242
|
url: "/v1/connect/welcome-screen"
|
|
1243
1243
|
});
|
|
1244
1244
|
};
|
|
1245
|
+
var listOAuthApps = (options) => {
|
|
1246
|
+
return (options?.client ?? client).get({
|
|
1247
|
+
...options,
|
|
1248
|
+
url: "/v1/connect/oauth-apps"
|
|
1249
|
+
});
|
|
1250
|
+
};
|
|
1251
|
+
var createOAuthApp = (options) => {
|
|
1252
|
+
return (options?.client ?? client).post({
|
|
1253
|
+
...options,
|
|
1254
|
+
url: "/v1/connect/oauth-apps"
|
|
1255
|
+
});
|
|
1256
|
+
};
|
|
1257
|
+
var getOAuthApp = (options) => {
|
|
1258
|
+
return (options?.client ?? client).get({
|
|
1259
|
+
...options,
|
|
1260
|
+
url: "/v1/connect/oauth-apps/{appId}"
|
|
1261
|
+
});
|
|
1262
|
+
};
|
|
1263
|
+
var updateOAuthApp = (options) => {
|
|
1264
|
+
return (options?.client ?? client).patch({
|
|
1265
|
+
...options,
|
|
1266
|
+
url: "/v1/connect/oauth-apps/{appId}"
|
|
1267
|
+
});
|
|
1268
|
+
};
|
|
1269
|
+
var deleteOAuthApp = (options) => {
|
|
1270
|
+
return (options?.client ?? client).delete({
|
|
1271
|
+
...options,
|
|
1272
|
+
url: "/v1/connect/oauth-apps/{appId}"
|
|
1273
|
+
});
|
|
1274
|
+
};
|
|
1275
|
+
var testOAuthApp = (options) => {
|
|
1276
|
+
return (options?.client ?? client).post({
|
|
1277
|
+
...options,
|
|
1278
|
+
url: "/v1/connect/oauth-apps/{appId}/test"
|
|
1279
|
+
});
|
|
1280
|
+
};
|
|
1245
1281
|
var getPendingOAuthData = (options) => {
|
|
1246
1282
|
return (options?.client ?? client).get({
|
|
1247
1283
|
...options,
|
|
@@ -7147,6 +7183,12 @@ var Zernio = class _Zernio {
|
|
|
7147
7183
|
getConnectHandoff: this._bind(getConnectHandoff),
|
|
7148
7184
|
getConnectWelcomeScreen: this._bind(getConnectWelcomeScreen),
|
|
7149
7185
|
updateConnectWelcomeScreen: this._bind(updateConnectWelcomeScreen),
|
|
7186
|
+
listOAuthApps: this._bind(listOAuthApps),
|
|
7187
|
+
createOAuthApp: this._bind(createOAuthApp),
|
|
7188
|
+
getOAuthApp: this._bind(getOAuthApp),
|
|
7189
|
+
updateOAuthApp: this._bind(updateOAuthApp),
|
|
7190
|
+
deleteOAuthApp: this._bind(deleteOAuthApp),
|
|
7191
|
+
testOAuthApp: this._bind(testOAuthApp),
|
|
7150
7192
|
getPendingOAuthData: this._bind(getPendingOAuthData),
|
|
7151
7193
|
connectOpenAIAdsCredentials: this._bind(connectOpenAiAdsCredentials),
|
|
7152
7194
|
connectWhopAdsCredentials: this._bind(connectWhopAdsCredentials),
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1367",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -1211,6 +1211,42 @@ var updateConnectWelcomeScreen = (options) => {
|
|
|
1211
1211
|
url: "/v1/connect/welcome-screen"
|
|
1212
1212
|
});
|
|
1213
1213
|
};
|
|
1214
|
+
var listOAuthApps = (options) => {
|
|
1215
|
+
return (options?.client ?? client).get({
|
|
1216
|
+
...options,
|
|
1217
|
+
url: "/v1/connect/oauth-apps"
|
|
1218
|
+
});
|
|
1219
|
+
};
|
|
1220
|
+
var createOAuthApp = (options) => {
|
|
1221
|
+
return (options?.client ?? client).post({
|
|
1222
|
+
...options,
|
|
1223
|
+
url: "/v1/connect/oauth-apps"
|
|
1224
|
+
});
|
|
1225
|
+
};
|
|
1226
|
+
var getOAuthApp = (options) => {
|
|
1227
|
+
return (options?.client ?? client).get({
|
|
1228
|
+
...options,
|
|
1229
|
+
url: "/v1/connect/oauth-apps/{appId}"
|
|
1230
|
+
});
|
|
1231
|
+
};
|
|
1232
|
+
var updateOAuthApp = (options) => {
|
|
1233
|
+
return (options?.client ?? client).patch({
|
|
1234
|
+
...options,
|
|
1235
|
+
url: "/v1/connect/oauth-apps/{appId}"
|
|
1236
|
+
});
|
|
1237
|
+
};
|
|
1238
|
+
var deleteOAuthApp = (options) => {
|
|
1239
|
+
return (options?.client ?? client).delete({
|
|
1240
|
+
...options,
|
|
1241
|
+
url: "/v1/connect/oauth-apps/{appId}"
|
|
1242
|
+
});
|
|
1243
|
+
};
|
|
1244
|
+
var testOAuthApp = (options) => {
|
|
1245
|
+
return (options?.client ?? client).post({
|
|
1246
|
+
...options,
|
|
1247
|
+
url: "/v1/connect/oauth-apps/{appId}/test"
|
|
1248
|
+
});
|
|
1249
|
+
};
|
|
1214
1250
|
var getPendingOAuthData = (options) => {
|
|
1215
1251
|
return (options?.client ?? client).get({
|
|
1216
1252
|
...options,
|
|
@@ -7116,6 +7152,12 @@ var Zernio = class _Zernio {
|
|
|
7116
7152
|
getConnectHandoff: this._bind(getConnectHandoff),
|
|
7117
7153
|
getConnectWelcomeScreen: this._bind(getConnectWelcomeScreen),
|
|
7118
7154
|
updateConnectWelcomeScreen: this._bind(updateConnectWelcomeScreen),
|
|
7155
|
+
listOAuthApps: this._bind(listOAuthApps),
|
|
7156
|
+
createOAuthApp: this._bind(createOAuthApp),
|
|
7157
|
+
getOAuthApp: this._bind(getOAuthApp),
|
|
7158
|
+
updateOAuthApp: this._bind(updateOAuthApp),
|
|
7159
|
+
deleteOAuthApp: this._bind(deleteOAuthApp),
|
|
7160
|
+
testOAuthApp: this._bind(testOAuthApp),
|
|
7119
7161
|
getPendingOAuthData: this._bind(getPendingOAuthData),
|
|
7120
7162
|
connectOpenAIAdsCredentials: this._bind(connectOpenAiAdsCredentials),
|
|
7121
7163
|
connectWhopAdsCredentials: this._bind(connectWhopAdsCredentials),
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -147,6 +147,7 @@ import {
|
|
|
147
147
|
createInviteToken,
|
|
148
148
|
createLeadForm,
|
|
149
149
|
createMessagingAd,
|
|
150
|
+
createOAuthApp,
|
|
150
151
|
createPhoneNumberKycLink,
|
|
151
152
|
createPhoneNumberPortIn,
|
|
152
153
|
createPhoneNumberStockWatch,
|
|
@@ -243,6 +244,7 @@ import {
|
|
|
243
244
|
deleteMessengerGreeting,
|
|
244
245
|
deleteMessengerIceBreakers,
|
|
245
246
|
deleteMessengerMenu,
|
|
247
|
+
deleteOAuthApp,
|
|
246
248
|
deletePhoneNumberStockWatch,
|
|
247
249
|
deletePost,
|
|
248
250
|
deleteProfile,
|
|
@@ -456,6 +458,7 @@ import {
|
|
|
456
458
|
getMessengerIceBreakers,
|
|
457
459
|
getMessengerMenu,
|
|
458
460
|
getNextQueueSlot,
|
|
461
|
+
getOAuthApp,
|
|
459
462
|
getPageWebhookSubscription,
|
|
460
463
|
getPendingOAuthData,
|
|
461
464
|
getPhoneNumber,
|
|
@@ -699,6 +702,7 @@ import {
|
|
|
699
702
|
listLogs,
|
|
700
703
|
listMetaBusinessUsers,
|
|
701
704
|
listMetaBusinesses,
|
|
705
|
+
listOAuthApps,
|
|
702
706
|
listPageUsers,
|
|
703
707
|
listPartnershipAdContent,
|
|
704
708
|
listPartnershipAdPermissions,
|
|
@@ -916,6 +920,7 @@ import {
|
|
|
916
920
|
submitPhoneNumberKyc,
|
|
917
921
|
submitWhatsAppNumberKyc,
|
|
918
922
|
syncExternalPosts,
|
|
923
|
+
testOAuthApp,
|
|
919
924
|
testWebhook,
|
|
920
925
|
transferVoiceCall,
|
|
921
926
|
trashEmailMessage,
|
|
@@ -1011,6 +1016,7 @@ import {
|
|
|
1011
1016
|
updateInboxConversation,
|
|
1012
1017
|
updateLead,
|
|
1013
1018
|
updateLinkedInOrganization,
|
|
1019
|
+
updateOAuthApp,
|
|
1014
1020
|
updatePinterestBoards,
|
|
1015
1021
|
updatePost,
|
|
1016
1022
|
updatePostMetadata,
|
|
@@ -1490,6 +1496,12 @@ export class Zernio {
|
|
|
1490
1496
|
getConnectHandoff: this._bind(getConnectHandoff),
|
|
1491
1497
|
getConnectWelcomeScreen: this._bind(getConnectWelcomeScreen),
|
|
1492
1498
|
updateConnectWelcomeScreen: this._bind(updateConnectWelcomeScreen),
|
|
1499
|
+
listOAuthApps: this._bind(listOAuthApps),
|
|
1500
|
+
createOAuthApp: this._bind(createOAuthApp),
|
|
1501
|
+
getOAuthApp: this._bind(getOAuthApp),
|
|
1502
|
+
updateOAuthApp: this._bind(updateOAuthApp),
|
|
1503
|
+
deleteOAuthApp: this._bind(deleteOAuthApp),
|
|
1504
|
+
testOAuthApp: this._bind(testOAuthApp),
|
|
1493
1505
|
getPendingOAuthData: this._bind(getPendingOAuthData),
|
|
1494
1506
|
connectOpenAIAdsCredentials: this._bind(connectOpenAiAdsCredentials),
|
|
1495
1507
|
connectWhopAdsCredentials: this._bind(connectWhopAdsCredentials),
|