@idapt/browser-app-sdk 0.1.0 → 0.2.0
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/dist/{chunk-AQZ2QVBK.js → chunk-KHPTFRT3.js} +660 -101
- package/dist/chunk-KHPTFRT3.js.map +1 -0
- package/dist/{chunk-6FSNLUVJ.js → chunk-OKOO2JCS.js} +4 -4
- package/dist/{chunk-6FSNLUVJ.js.map → chunk-OKOO2JCS.js.map} +1 -1
- package/dist/{client-CO-P-xYI.d.cts → client-CZAWglsD.d.ts} +170 -53
- package/dist/{client-h2Wsvn7a.d.ts → client-DjipcztO.d.cts} +170 -53
- package/dist/{data-Chus9wn2.d.cts → data-BuXXki1D.d.cts} +180 -38
- package/dist/{data-Chus9wn2.d.ts → data-BuXXki1D.d.ts} +180 -38
- package/dist/index.cjs +660 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +75 -5
- package/dist/index.d.ts +75 -5
- package/dist/index.js +2 -2
- package/dist/react.cjs +166 -56
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/dist/react.js +2 -2
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-AQZ2QVBK.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -939,8 +939,8 @@ async function executeCommand(binding, args = {}, ctx, opts = {}) {
|
|
|
939
939
|
}
|
|
940
940
|
async function awaitOperation(binding, operationId, ctx, opts = {}) {
|
|
941
941
|
const sleep = opts.sleep ?? defaultSleep;
|
|
942
|
-
const interval = opts.pollIntervalMs ?? 1500;
|
|
943
|
-
const maxAttempts = opts.maxPollAttempts ?? 120;
|
|
942
|
+
const interval = opts.pollIntervalMs ?? binding.pollHint?.intervalMs ?? 1500;
|
|
943
|
+
const maxAttempts = opts.maxPollAttempts ?? binding.pollHint?.maxAttempts ?? 120;
|
|
944
944
|
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
|
945
945
|
if (opts.signal?.aborted) {
|
|
946
946
|
throw new IdaptError({
|
|
@@ -1691,46 +1691,6 @@ var COMMAND_BINDINGS = {
|
|
|
1691
1691
|
"responseKind": "created",
|
|
1692
1692
|
"async": false
|
|
1693
1693
|
},
|
|
1694
|
-
"code execute": {
|
|
1695
|
-
"command": "code execute",
|
|
1696
|
-
"method": "POST",
|
|
1697
|
-
"path": "/code-runs",
|
|
1698
|
-
"pathParams": [],
|
|
1699
|
-
"argLocation": "body",
|
|
1700
|
-
"responseKind": "created",
|
|
1701
|
-
"async": true
|
|
1702
|
-
},
|
|
1703
|
-
"code get": {
|
|
1704
|
-
"command": "code get",
|
|
1705
|
-
"method": "GET",
|
|
1706
|
-
"path": "/code-runs/:id",
|
|
1707
|
-
"pathParams": [
|
|
1708
|
-
"id"
|
|
1709
|
-
],
|
|
1710
|
-
"argLocation": "query",
|
|
1711
|
-
"responseKind": "single",
|
|
1712
|
-
"async": false
|
|
1713
|
-
},
|
|
1714
|
-
"code interrupt": {
|
|
1715
|
-
"command": "code interrupt",
|
|
1716
|
-
"method": "POST",
|
|
1717
|
-
"path": "/code-runs/:id/interrupt",
|
|
1718
|
-
"pathParams": [
|
|
1719
|
-
"id"
|
|
1720
|
-
],
|
|
1721
|
-
"argLocation": "body",
|
|
1722
|
-
"responseKind": "single",
|
|
1723
|
-
"async": false
|
|
1724
|
-
},
|
|
1725
|
-
"code list": {
|
|
1726
|
-
"command": "code list",
|
|
1727
|
-
"method": "GET",
|
|
1728
|
-
"path": "/code-runs",
|
|
1729
|
-
"pathParams": [],
|
|
1730
|
-
"argLocation": "query",
|
|
1731
|
-
"responseKind": "list",
|
|
1732
|
-
"async": false
|
|
1733
|
-
},
|
|
1734
1694
|
"computer activity": {
|
|
1735
1695
|
"command": "computer activity",
|
|
1736
1696
|
"method": "GET",
|
|
@@ -2044,6 +2004,26 @@ var COMMAND_BINDINGS = {
|
|
|
2044
2004
|
"application/gzip"
|
|
2045
2005
|
]
|
|
2046
2006
|
},
|
|
2007
|
+
"computer download-to-drive": {
|
|
2008
|
+
"command": "computer download-to-drive",
|
|
2009
|
+
"method": "POST",
|
|
2010
|
+
"path": "/computers/:id/sftp/download",
|
|
2011
|
+
"pathParams": [
|
|
2012
|
+
"id"
|
|
2013
|
+
],
|
|
2014
|
+
"argLocation": "body",
|
|
2015
|
+
"responseKind": "single",
|
|
2016
|
+
"async": false
|
|
2017
|
+
},
|
|
2018
|
+
"computer ephemeral": {
|
|
2019
|
+
"command": "computer ephemeral",
|
|
2020
|
+
"method": "POST",
|
|
2021
|
+
"path": "/computers/ephemeral",
|
|
2022
|
+
"pathParams": [],
|
|
2023
|
+
"argLocation": "body",
|
|
2024
|
+
"responseKind": "created",
|
|
2025
|
+
"async": false
|
|
2026
|
+
},
|
|
2047
2027
|
"computer exec": {
|
|
2048
2028
|
"command": "computer exec",
|
|
2049
2029
|
"method": "POST",
|
|
@@ -2661,6 +2641,141 @@ var COMMAND_BINDINGS = {
|
|
|
2661
2641
|
"responseKind": "created",
|
|
2662
2642
|
"async": false
|
|
2663
2643
|
},
|
|
2644
|
+
"functions create": {
|
|
2645
|
+
"command": "functions create",
|
|
2646
|
+
"method": "POST",
|
|
2647
|
+
"path": "/functions",
|
|
2648
|
+
"pathParams": [],
|
|
2649
|
+
"argLocation": "body",
|
|
2650
|
+
"responseKind": "created",
|
|
2651
|
+
"async": false
|
|
2652
|
+
},
|
|
2653
|
+
"functions delete": {
|
|
2654
|
+
"command": "functions delete",
|
|
2655
|
+
"method": "DELETE",
|
|
2656
|
+
"path": "/functions/:id",
|
|
2657
|
+
"pathParams": [
|
|
2658
|
+
"id"
|
|
2659
|
+
],
|
|
2660
|
+
"argLocation": "query",
|
|
2661
|
+
"responseKind": "deleted",
|
|
2662
|
+
"async": false
|
|
2663
|
+
},
|
|
2664
|
+
"functions deploy": {
|
|
2665
|
+
"command": "functions deploy",
|
|
2666
|
+
"method": "POST",
|
|
2667
|
+
"path": "/functions/:id/deploy",
|
|
2668
|
+
"pathParams": [
|
|
2669
|
+
"id"
|
|
2670
|
+
],
|
|
2671
|
+
"argLocation": "body",
|
|
2672
|
+
"responseKind": "created",
|
|
2673
|
+
"async": false
|
|
2674
|
+
},
|
|
2675
|
+
"functions deployments": {
|
|
2676
|
+
"command": "functions deployments",
|
|
2677
|
+
"method": "GET",
|
|
2678
|
+
"path": "/functions/:id/deployments",
|
|
2679
|
+
"pathParams": [
|
|
2680
|
+
"id"
|
|
2681
|
+
],
|
|
2682
|
+
"argLocation": "query",
|
|
2683
|
+
"responseKind": "list",
|
|
2684
|
+
"async": false
|
|
2685
|
+
},
|
|
2686
|
+
"functions get": {
|
|
2687
|
+
"command": "functions get",
|
|
2688
|
+
"method": "GET",
|
|
2689
|
+
"path": "/functions/:id",
|
|
2690
|
+
"pathParams": [
|
|
2691
|
+
"id"
|
|
2692
|
+
],
|
|
2693
|
+
"argLocation": "query",
|
|
2694
|
+
"responseKind": "single",
|
|
2695
|
+
"async": false
|
|
2696
|
+
},
|
|
2697
|
+
"functions invoke": {
|
|
2698
|
+
"command": "functions invoke",
|
|
2699
|
+
"method": "POST",
|
|
2700
|
+
"path": "/functions/:id/invoke",
|
|
2701
|
+
"pathParams": [
|
|
2702
|
+
"id"
|
|
2703
|
+
],
|
|
2704
|
+
"argLocation": "body",
|
|
2705
|
+
"responseKind": "single",
|
|
2706
|
+
"async": false
|
|
2707
|
+
},
|
|
2708
|
+
"functions list": {
|
|
2709
|
+
"command": "functions list",
|
|
2710
|
+
"method": "GET",
|
|
2711
|
+
"path": "/functions",
|
|
2712
|
+
"pathParams": [],
|
|
2713
|
+
"argLocation": "query",
|
|
2714
|
+
"responseKind": "list",
|
|
2715
|
+
"async": false
|
|
2716
|
+
},
|
|
2717
|
+
"functions promote": {
|
|
2718
|
+
"command": "functions promote",
|
|
2719
|
+
"method": "POST",
|
|
2720
|
+
"path": "/functions/:id/promote",
|
|
2721
|
+
"pathParams": [
|
|
2722
|
+
"id"
|
|
2723
|
+
],
|
|
2724
|
+
"argLocation": "body",
|
|
2725
|
+
"responseKind": "single",
|
|
2726
|
+
"async": false
|
|
2727
|
+
},
|
|
2728
|
+
"functions run": {
|
|
2729
|
+
"command": "functions run",
|
|
2730
|
+
"method": "POST",
|
|
2731
|
+
"path": "/functions/runs",
|
|
2732
|
+
"pathParams": [],
|
|
2733
|
+
"argLocation": "body",
|
|
2734
|
+
"responseKind": "created",
|
|
2735
|
+
"async": true
|
|
2736
|
+
},
|
|
2737
|
+
"functions run-get": {
|
|
2738
|
+
"command": "functions run-get",
|
|
2739
|
+
"method": "GET",
|
|
2740
|
+
"path": "/functions/runs/:id",
|
|
2741
|
+
"pathParams": [
|
|
2742
|
+
"id"
|
|
2743
|
+
],
|
|
2744
|
+
"argLocation": "query",
|
|
2745
|
+
"responseKind": "single",
|
|
2746
|
+
"async": false
|
|
2747
|
+
},
|
|
2748
|
+
"functions run-interrupt": {
|
|
2749
|
+
"command": "functions run-interrupt",
|
|
2750
|
+
"method": "POST",
|
|
2751
|
+
"path": "/functions/runs/:id/interrupt",
|
|
2752
|
+
"pathParams": [
|
|
2753
|
+
"id"
|
|
2754
|
+
],
|
|
2755
|
+
"argLocation": "body",
|
|
2756
|
+
"responseKind": "single",
|
|
2757
|
+
"async": false
|
|
2758
|
+
},
|
|
2759
|
+
"functions run-list": {
|
|
2760
|
+
"command": "functions run-list",
|
|
2761
|
+
"method": "GET",
|
|
2762
|
+
"path": "/functions/runs",
|
|
2763
|
+
"pathParams": [],
|
|
2764
|
+
"argLocation": "query",
|
|
2765
|
+
"responseKind": "list",
|
|
2766
|
+
"async": false
|
|
2767
|
+
},
|
|
2768
|
+
"functions update": {
|
|
2769
|
+
"command": "functions update",
|
|
2770
|
+
"method": "PATCH",
|
|
2771
|
+
"path": "/functions/:id",
|
|
2772
|
+
"pathParams": [
|
|
2773
|
+
"id"
|
|
2774
|
+
],
|
|
2775
|
+
"argLocation": "body",
|
|
2776
|
+
"responseKind": "single",
|
|
2777
|
+
"async": false
|
|
2778
|
+
},
|
|
2664
2779
|
"guide get": {
|
|
2665
2780
|
"command": "guide get",
|
|
2666
2781
|
"method": "GET",
|
|
@@ -2868,6 +2983,125 @@ var COMMAND_BINDINGS = {
|
|
|
2868
2983
|
"responseKind": "single",
|
|
2869
2984
|
"async": false
|
|
2870
2985
|
},
|
|
2986
|
+
"memory box-delete": {
|
|
2987
|
+
"command": "memory box-delete",
|
|
2988
|
+
"method": "DELETE",
|
|
2989
|
+
"path": "/memory/boxes/:id",
|
|
2990
|
+
"pathParams": [
|
|
2991
|
+
"id"
|
|
2992
|
+
],
|
|
2993
|
+
"argLocation": "body",
|
|
2994
|
+
"responseKind": "deleted",
|
|
2995
|
+
"async": false
|
|
2996
|
+
},
|
|
2997
|
+
"memory box-get": {
|
|
2998
|
+
"command": "memory box-get",
|
|
2999
|
+
"method": "GET",
|
|
3000
|
+
"path": "/memory/boxes/:id",
|
|
3001
|
+
"pathParams": [
|
|
3002
|
+
"id"
|
|
3003
|
+
],
|
|
3004
|
+
"argLocation": "query",
|
|
3005
|
+
"responseKind": "single",
|
|
3006
|
+
"async": false
|
|
3007
|
+
},
|
|
3008
|
+
"memory box-list": {
|
|
3009
|
+
"command": "memory box-list",
|
|
3010
|
+
"method": "GET",
|
|
3011
|
+
"path": "/memory/boxes",
|
|
3012
|
+
"pathParams": [],
|
|
3013
|
+
"argLocation": "query",
|
|
3014
|
+
"responseKind": "list",
|
|
3015
|
+
"async": false
|
|
3016
|
+
},
|
|
3017
|
+
"memory box-update": {
|
|
3018
|
+
"command": "memory box-update",
|
|
3019
|
+
"method": "PATCH",
|
|
3020
|
+
"path": "/memory/boxes/:id",
|
|
3021
|
+
"pathParams": [
|
|
3022
|
+
"id"
|
|
3023
|
+
],
|
|
3024
|
+
"argLocation": "body",
|
|
3025
|
+
"responseKind": "single",
|
|
3026
|
+
"async": false
|
|
3027
|
+
},
|
|
3028
|
+
"memory delete": {
|
|
3029
|
+
"command": "memory delete",
|
|
3030
|
+
"method": "DELETE",
|
|
3031
|
+
"path": "/memory/boxes/:id/note",
|
|
3032
|
+
"pathParams": [
|
|
3033
|
+
"id"
|
|
3034
|
+
],
|
|
3035
|
+
"argLocation": "query",
|
|
3036
|
+
"responseKind": "deleted",
|
|
3037
|
+
"async": false
|
|
3038
|
+
},
|
|
3039
|
+
"memory index-read": {
|
|
3040
|
+
"command": "memory index-read",
|
|
3041
|
+
"method": "GET",
|
|
3042
|
+
"path": "/memory/boxes/:id/index",
|
|
3043
|
+
"pathParams": [
|
|
3044
|
+
"id"
|
|
3045
|
+
],
|
|
3046
|
+
"argLocation": "query",
|
|
3047
|
+
"responseKind": "single",
|
|
3048
|
+
"async": false
|
|
3049
|
+
},
|
|
3050
|
+
"memory index-write": {
|
|
3051
|
+
"command": "memory index-write",
|
|
3052
|
+
"method": "POST",
|
|
3053
|
+
"path": "/memory/boxes/:id/index",
|
|
3054
|
+
"pathParams": [
|
|
3055
|
+
"id"
|
|
3056
|
+
],
|
|
3057
|
+
"argLocation": "body",
|
|
3058
|
+
"responseKind": "single",
|
|
3059
|
+
"async": false
|
|
3060
|
+
},
|
|
3061
|
+
"memory list": {
|
|
3062
|
+
"command": "memory list",
|
|
3063
|
+
"method": "GET",
|
|
3064
|
+
"path": "/memory/boxes/:id/notes",
|
|
3065
|
+
"pathParams": [
|
|
3066
|
+
"id"
|
|
3067
|
+
],
|
|
3068
|
+
"argLocation": "query",
|
|
3069
|
+
"responseKind": "list",
|
|
3070
|
+
"async": false
|
|
3071
|
+
},
|
|
3072
|
+
"memory read": {
|
|
3073
|
+
"command": "memory read",
|
|
3074
|
+
"method": "GET",
|
|
3075
|
+
"path": "/memory/boxes/:id/note",
|
|
3076
|
+
"pathParams": [
|
|
3077
|
+
"id"
|
|
3078
|
+
],
|
|
3079
|
+
"argLocation": "query",
|
|
3080
|
+
"responseKind": "single",
|
|
3081
|
+
"async": false
|
|
3082
|
+
},
|
|
3083
|
+
"memory search": {
|
|
3084
|
+
"command": "memory search",
|
|
3085
|
+
"method": "GET",
|
|
3086
|
+
"path": "/memory/boxes/:id/search",
|
|
3087
|
+
"pathParams": [
|
|
3088
|
+
"id"
|
|
3089
|
+
],
|
|
3090
|
+
"argLocation": "query",
|
|
3091
|
+
"responseKind": "list",
|
|
3092
|
+
"async": false
|
|
3093
|
+
},
|
|
3094
|
+
"memory write": {
|
|
3095
|
+
"command": "memory write",
|
|
3096
|
+
"method": "POST",
|
|
3097
|
+
"path": "/memory/boxes/:id/notes",
|
|
3098
|
+
"pathParams": [
|
|
3099
|
+
"id"
|
|
3100
|
+
],
|
|
3101
|
+
"argLocation": "body",
|
|
3102
|
+
"responseKind": "single",
|
|
3103
|
+
"async": false
|
|
3104
|
+
},
|
|
2871
3105
|
"models list": {
|
|
2872
3106
|
"command": "models list",
|
|
2873
3107
|
"method": "GET",
|
|
@@ -2948,6 +3182,61 @@ var COMMAND_BINDINGS = {
|
|
|
2948
3182
|
"responseKind": "deleted",
|
|
2949
3183
|
"async": false
|
|
2950
3184
|
},
|
|
3185
|
+
"notes folder-create": {
|
|
3186
|
+
"command": "notes folder-create",
|
|
3187
|
+
"method": "POST",
|
|
3188
|
+
"path": "/notes/boxes/:id/folders",
|
|
3189
|
+
"pathParams": [
|
|
3190
|
+
"id"
|
|
3191
|
+
],
|
|
3192
|
+
"argLocation": "body",
|
|
3193
|
+
"responseKind": "created",
|
|
3194
|
+
"async": false
|
|
3195
|
+
},
|
|
3196
|
+
"notes folder-delete": {
|
|
3197
|
+
"command": "notes folder-delete",
|
|
3198
|
+
"method": "DELETE",
|
|
3199
|
+
"path": "/notes/folders/:folderId",
|
|
3200
|
+
"pathParams": [
|
|
3201
|
+
"folderId"
|
|
3202
|
+
],
|
|
3203
|
+
"argLocation": "body",
|
|
3204
|
+
"responseKind": "deleted",
|
|
3205
|
+
"async": false
|
|
3206
|
+
},
|
|
3207
|
+
"notes folder-list": {
|
|
3208
|
+
"command": "notes folder-list",
|
|
3209
|
+
"method": "GET",
|
|
3210
|
+
"path": "/notes/boxes/:id/folders",
|
|
3211
|
+
"pathParams": [
|
|
3212
|
+
"id"
|
|
3213
|
+
],
|
|
3214
|
+
"argLocation": "query",
|
|
3215
|
+
"responseKind": "list",
|
|
3216
|
+
"async": false
|
|
3217
|
+
},
|
|
3218
|
+
"notes folder-move": {
|
|
3219
|
+
"command": "notes folder-move",
|
|
3220
|
+
"method": "POST",
|
|
3221
|
+
"path": "/notes/folders/:folderId/move",
|
|
3222
|
+
"pathParams": [
|
|
3223
|
+
"folderId"
|
|
3224
|
+
],
|
|
3225
|
+
"argLocation": "body",
|
|
3226
|
+
"responseKind": "single",
|
|
3227
|
+
"async": false
|
|
3228
|
+
},
|
|
3229
|
+
"notes folder-rename": {
|
|
3230
|
+
"command": "notes folder-rename",
|
|
3231
|
+
"method": "PATCH",
|
|
3232
|
+
"path": "/notes/folders/:folderId",
|
|
3233
|
+
"pathParams": [
|
|
3234
|
+
"folderId"
|
|
3235
|
+
],
|
|
3236
|
+
"argLocation": "body",
|
|
3237
|
+
"responseKind": "single",
|
|
3238
|
+
"async": false
|
|
3239
|
+
},
|
|
2951
3240
|
"notes graph": {
|
|
2952
3241
|
"command": "notes graph",
|
|
2953
3242
|
"method": "GET",
|
|
@@ -2959,6 +3248,17 @@ var COMMAND_BINDINGS = {
|
|
|
2959
3248
|
"responseKind": "single",
|
|
2960
3249
|
"async": false
|
|
2961
3250
|
},
|
|
3251
|
+
"notes import": {
|
|
3252
|
+
"command": "notes import",
|
|
3253
|
+
"method": "POST",
|
|
3254
|
+
"path": "/notes/boxes/:id/import",
|
|
3255
|
+
"pathParams": [
|
|
3256
|
+
"id"
|
|
3257
|
+
],
|
|
3258
|
+
"argLocation": "body",
|
|
3259
|
+
"responseKind": "single",
|
|
3260
|
+
"async": false
|
|
3261
|
+
},
|
|
2962
3262
|
"notes index-read": {
|
|
2963
3263
|
"command": "notes index-read",
|
|
2964
3264
|
"method": "GET",
|
|
@@ -3003,6 +3303,17 @@ var COMMAND_BINDINGS = {
|
|
|
3003
3303
|
"responseKind": "list",
|
|
3004
3304
|
"async": false
|
|
3005
3305
|
},
|
|
3306
|
+
"notes note-move": {
|
|
3307
|
+
"command": "notes note-move",
|
|
3308
|
+
"method": "POST",
|
|
3309
|
+
"path": "/notes/boxes/:id/notes/move",
|
|
3310
|
+
"pathParams": [
|
|
3311
|
+
"id"
|
|
3312
|
+
],
|
|
3313
|
+
"argLocation": "body",
|
|
3314
|
+
"responseKind": "single",
|
|
3315
|
+
"async": false
|
|
3316
|
+
},
|
|
3006
3317
|
"notes note-rename": {
|
|
3007
3318
|
"command": "notes note-rename",
|
|
3008
3319
|
"method": "POST",
|
|
@@ -3014,6 +3325,15 @@ var COMMAND_BINDINGS = {
|
|
|
3014
3325
|
"responseKind": "single",
|
|
3015
3326
|
"async": false
|
|
3016
3327
|
},
|
|
3328
|
+
"notes purge": {
|
|
3329
|
+
"command": "notes purge",
|
|
3330
|
+
"method": "POST",
|
|
3331
|
+
"path": "/notes/trash/purge",
|
|
3332
|
+
"pathParams": [],
|
|
3333
|
+
"argLocation": "body",
|
|
3334
|
+
"responseKind": "deleted",
|
|
3335
|
+
"async": false
|
|
3336
|
+
},
|
|
3017
3337
|
"notes read": {
|
|
3018
3338
|
"command": "notes read",
|
|
3019
3339
|
"method": "GET",
|
|
@@ -3025,6 +3345,15 @@ var COMMAND_BINDINGS = {
|
|
|
3025
3345
|
"responseKind": "single",
|
|
3026
3346
|
"async": false
|
|
3027
3347
|
},
|
|
3348
|
+
"notes restore": {
|
|
3349
|
+
"command": "notes restore",
|
|
3350
|
+
"method": "POST",
|
|
3351
|
+
"path": "/notes/trash/restore",
|
|
3352
|
+
"pathParams": [],
|
|
3353
|
+
"argLocation": "body",
|
|
3354
|
+
"responseKind": "deleted",
|
|
3355
|
+
"async": false
|
|
3356
|
+
},
|
|
3028
3357
|
"notes search": {
|
|
3029
3358
|
"command": "notes search",
|
|
3030
3359
|
"method": "GET",
|
|
@@ -3067,6 +3396,35 @@ var COMMAND_BINDINGS = {
|
|
|
3067
3396
|
"responseKind": "single",
|
|
3068
3397
|
"async": false
|
|
3069
3398
|
},
|
|
3399
|
+
"notes trash-empty": {
|
|
3400
|
+
"command": "notes trash-empty",
|
|
3401
|
+
"method": "DELETE",
|
|
3402
|
+
"path": "/notes/trash",
|
|
3403
|
+
"pathParams": [],
|
|
3404
|
+
"argLocation": "query",
|
|
3405
|
+
"responseKind": "single",
|
|
3406
|
+
"async": false
|
|
3407
|
+
},
|
|
3408
|
+
"notes trash-list": {
|
|
3409
|
+
"command": "notes trash-list",
|
|
3410
|
+
"method": "GET",
|
|
3411
|
+
"path": "/notes/trash",
|
|
3412
|
+
"pathParams": [],
|
|
3413
|
+
"argLocation": "query",
|
|
3414
|
+
"responseKind": "list",
|
|
3415
|
+
"async": false
|
|
3416
|
+
},
|
|
3417
|
+
"notes tree": {
|
|
3418
|
+
"command": "notes tree",
|
|
3419
|
+
"method": "GET",
|
|
3420
|
+
"path": "/notes/boxes/:id/tree",
|
|
3421
|
+
"pathParams": [
|
|
3422
|
+
"id"
|
|
3423
|
+
],
|
|
3424
|
+
"argLocation": "query",
|
|
3425
|
+
"responseKind": "single",
|
|
3426
|
+
"async": false
|
|
3427
|
+
},
|
|
3070
3428
|
"notes write": {
|
|
3071
3429
|
"command": "notes write",
|
|
3072
3430
|
"method": "POST",
|
|
@@ -4036,6 +4394,17 @@ var COMMAND_BINDINGS = {
|
|
|
4036
4394
|
"responseKind": "single",
|
|
4037
4395
|
"async": false
|
|
4038
4396
|
},
|
|
4397
|
+
"tasks import": {
|
|
4398
|
+
"command": "tasks import",
|
|
4399
|
+
"method": "POST",
|
|
4400
|
+
"path": "/tasks/lists/:id/import",
|
|
4401
|
+
"pathParams": [
|
|
4402
|
+
"id"
|
|
4403
|
+
],
|
|
4404
|
+
"argLocation": "body",
|
|
4405
|
+
"responseKind": "single",
|
|
4406
|
+
"async": false
|
|
4407
|
+
},
|
|
4039
4408
|
"tasks label-create": {
|
|
4040
4409
|
"command": "tasks label-create",
|
|
4041
4410
|
"method": "POST",
|
|
@@ -4314,6 +4683,37 @@ var COMMAND_BINDINGS = {
|
|
|
4314
4683
|
"responseKind": "single",
|
|
4315
4684
|
"async": false
|
|
4316
4685
|
},
|
|
4686
|
+
"video generate": {
|
|
4687
|
+
"command": "video generate",
|
|
4688
|
+
"method": "POST",
|
|
4689
|
+
"path": "/videos/generations",
|
|
4690
|
+
"pathParams": [],
|
|
4691
|
+
"argLocation": "body",
|
|
4692
|
+
"responseKind": "single",
|
|
4693
|
+
"async": true,
|
|
4694
|
+
"pollHint": {
|
|
4695
|
+
"intervalMs": 5e3,
|
|
4696
|
+
"maxAttempts": 240
|
|
4697
|
+
}
|
|
4698
|
+
},
|
|
4699
|
+
"video models": {
|
|
4700
|
+
"command": "video models",
|
|
4701
|
+
"method": "GET",
|
|
4702
|
+
"path": "/videos/models",
|
|
4703
|
+
"pathParams": [],
|
|
4704
|
+
"argLocation": "query",
|
|
4705
|
+
"responseKind": "list",
|
|
4706
|
+
"async": false
|
|
4707
|
+
},
|
|
4708
|
+
"video search": {
|
|
4709
|
+
"command": "video search",
|
|
4710
|
+
"method": "GET",
|
|
4711
|
+
"path": "/videos/models/search",
|
|
4712
|
+
"pathParams": [],
|
|
4713
|
+
"argLocation": "query",
|
|
4714
|
+
"responseKind": "single",
|
|
4715
|
+
"async": false
|
|
4716
|
+
},
|
|
4317
4717
|
"web fetch": {
|
|
4318
4718
|
"command": "web fetch",
|
|
4319
4719
|
"method": "POST",
|
|
@@ -4729,46 +5129,6 @@ var ChatsApi = class {
|
|
|
4729
5129
|
}
|
|
4730
5130
|
};
|
|
4731
5131
|
|
|
4732
|
-
// ../sdk/src/api/code.ts
|
|
4733
|
-
var CodeRunsApi = class {
|
|
4734
|
-
constructor(ctx) {
|
|
4735
|
-
this.ctx = ctx;
|
|
4736
|
-
}
|
|
4737
|
-
/**
|
|
4738
|
-
* Execute a code file. Returns the full `ExecutionRun` row — `id`,
|
|
4739
|
-
* `status`, `stdout`, `stderr`, `exit_code`, and the run timestamps —
|
|
4740
|
-
* the same shape as `GET /code-runs/:id`.
|
|
4741
|
-
*/
|
|
4742
|
-
async run(input, opts = {}) {
|
|
4743
|
-
const res = await request(this.ctx, {
|
|
4744
|
-
method: "POST",
|
|
4745
|
-
path: "/api/v1/code-runs",
|
|
4746
|
-
body: input,
|
|
4747
|
-
signal: opts.signal
|
|
4748
|
-
});
|
|
4749
|
-
return res.data;
|
|
4750
|
-
}
|
|
4751
|
-
/** List recent execution runs. */
|
|
4752
|
-
async list(query = {}, opts = {}) {
|
|
4753
|
-
const res = await request(this.ctx, {
|
|
4754
|
-
method: "GET",
|
|
4755
|
-
path: "/api/v1/code-runs",
|
|
4756
|
-
query,
|
|
4757
|
-
signal: opts.signal
|
|
4758
|
-
});
|
|
4759
|
-
return res.data;
|
|
4760
|
-
}
|
|
4761
|
-
/** Get a single execution run by id. */
|
|
4762
|
-
async get(id, opts = {}) {
|
|
4763
|
-
const res = await request(this.ctx, {
|
|
4764
|
-
method: "GET",
|
|
4765
|
-
path: `/api/v1/code-runs/${id}`,
|
|
4766
|
-
signal: opts.signal
|
|
4767
|
-
});
|
|
4768
|
-
return res.data;
|
|
4769
|
-
}
|
|
4770
|
-
};
|
|
4771
|
-
|
|
4772
5132
|
// ../sdk/src/api/computers.ts
|
|
4773
5133
|
var ComputersApi = class {
|
|
4774
5134
|
constructor(ctx) {
|
|
@@ -5405,6 +5765,156 @@ var FilesApi = class {
|
|
|
5405
5765
|
}
|
|
5406
5766
|
};
|
|
5407
5767
|
|
|
5768
|
+
// ../sdk/src/api/functions.ts
|
|
5769
|
+
var enc3 = encodeURIComponent;
|
|
5770
|
+
var FunctionRunsApi = class {
|
|
5771
|
+
constructor(ctx) {
|
|
5772
|
+
this.ctx = ctx;
|
|
5773
|
+
}
|
|
5774
|
+
/** List one-off function runs (cursor-paginated). */
|
|
5775
|
+
async list(query = {}, opts = {}) {
|
|
5776
|
+
const res = await request(this.ctx, {
|
|
5777
|
+
method: "GET",
|
|
5778
|
+
path: "/api/v1/functions/runs",
|
|
5779
|
+
query,
|
|
5780
|
+
signal: opts.signal
|
|
5781
|
+
});
|
|
5782
|
+
return res.data;
|
|
5783
|
+
}
|
|
5784
|
+
/** Get a single one-off run by id. */
|
|
5785
|
+
async get(id, opts = {}) {
|
|
5786
|
+
const res = await request(this.ctx, {
|
|
5787
|
+
method: "GET",
|
|
5788
|
+
path: `/api/v1/functions/runs/${enc3(id)}`,
|
|
5789
|
+
signal: opts.signal
|
|
5790
|
+
});
|
|
5791
|
+
return res.data;
|
|
5792
|
+
}
|
|
5793
|
+
/**
|
|
5794
|
+
* Interrupt a running run. Only computer-backed runs can be interrupted;
|
|
5795
|
+
* Lambda-backed runs return 409 (`ConflictError`).
|
|
5796
|
+
*/
|
|
5797
|
+
async interrupt(id, opts = {}) {
|
|
5798
|
+
const res = await request(this.ctx, {
|
|
5799
|
+
method: "POST",
|
|
5800
|
+
path: `/api/v1/functions/runs/${enc3(id)}/interrupt`,
|
|
5801
|
+
body: {},
|
|
5802
|
+
signal: opts.signal
|
|
5803
|
+
});
|
|
5804
|
+
return res.data;
|
|
5805
|
+
}
|
|
5806
|
+
};
|
|
5807
|
+
var FunctionsApi = class {
|
|
5808
|
+
constructor(ctx) {
|
|
5809
|
+
this.ctx = ctx;
|
|
5810
|
+
this.runs = new FunctionRunsApi(ctx);
|
|
5811
|
+
}
|
|
5812
|
+
/**
|
|
5813
|
+
* Run a script ONCE in the sandbox. Pass EITHER inline `script` (+ optional
|
|
5814
|
+
* `language`) OR an existing Drive `file_id`. Returns the full `FunctionRun`
|
|
5815
|
+
* row — `id`, `status`, `stdout`, `stderr`, `exit_code`, the run timestamps,
|
|
5816
|
+
* and any `output_files` the script wrote under `/tmp/output/`.
|
|
5817
|
+
*/
|
|
5818
|
+
async run(input, opts = {}) {
|
|
5819
|
+
const res = await request(this.ctx, {
|
|
5820
|
+
method: "POST",
|
|
5821
|
+
path: "/api/v1/functions/runs",
|
|
5822
|
+
body: input,
|
|
5823
|
+
signal: opts.signal
|
|
5824
|
+
});
|
|
5825
|
+
return res.data;
|
|
5826
|
+
}
|
|
5827
|
+
/** List deployed functions in the workspace. */
|
|
5828
|
+
async list(query = {}, opts = {}) {
|
|
5829
|
+
const res = await request(this.ctx, {
|
|
5830
|
+
method: "GET",
|
|
5831
|
+
path: "/api/v1/functions",
|
|
5832
|
+
query,
|
|
5833
|
+
signal: opts.signal
|
|
5834
|
+
});
|
|
5835
|
+
return res.data;
|
|
5836
|
+
}
|
|
5837
|
+
/** Get a deployed function by its resourceId. */
|
|
5838
|
+
async get(id, opts = {}) {
|
|
5839
|
+
const res = await request(this.ctx, {
|
|
5840
|
+
method: "GET",
|
|
5841
|
+
path: `/api/v1/functions/${enc3(id)}`,
|
|
5842
|
+
signal: opts.signal
|
|
5843
|
+
});
|
|
5844
|
+
return res.data;
|
|
5845
|
+
}
|
|
5846
|
+
/** Create a deployed function (config only — `deploy` adds a bundle). */
|
|
5847
|
+
async create(input, opts = {}) {
|
|
5848
|
+
const res = await request(this.ctx, {
|
|
5849
|
+
method: "POST",
|
|
5850
|
+
path: "/api/v1/functions",
|
|
5851
|
+
body: input,
|
|
5852
|
+
signal: opts.signal
|
|
5853
|
+
});
|
|
5854
|
+
return res.data;
|
|
5855
|
+
}
|
|
5856
|
+
/** Update a deployed function's config. */
|
|
5857
|
+
async update(id, patch, opts = {}) {
|
|
5858
|
+
const res = await request(this.ctx, {
|
|
5859
|
+
method: "PATCH",
|
|
5860
|
+
path: `/api/v1/functions/${enc3(id)}`,
|
|
5861
|
+
body: patch,
|
|
5862
|
+
signal: opts.signal
|
|
5863
|
+
});
|
|
5864
|
+
return res.data;
|
|
5865
|
+
}
|
|
5866
|
+
/** Delete a deployed function + all its deployments. */
|
|
5867
|
+
async delete(id, opts = {}) {
|
|
5868
|
+
return request(this.ctx, {
|
|
5869
|
+
method: "DELETE",
|
|
5870
|
+
path: `/api/v1/functions/${enc3(id)}`,
|
|
5871
|
+
signal: opts.signal
|
|
5872
|
+
});
|
|
5873
|
+
}
|
|
5874
|
+
/**
|
|
5875
|
+
* Deploy a new bundle (inline base64 files). Promotes the new deployment to
|
|
5876
|
+
* live immediately unless `promote: false`. Returns the new deployment.
|
|
5877
|
+
*/
|
|
5878
|
+
async deploy(id, input, opts = {}) {
|
|
5879
|
+
const res = await request(this.ctx, {
|
|
5880
|
+
method: "POST",
|
|
5881
|
+
path: `/api/v1/functions/${enc3(id)}/deploy`,
|
|
5882
|
+
body: input,
|
|
5883
|
+
signal: opts.signal
|
|
5884
|
+
});
|
|
5885
|
+
return res.data;
|
|
5886
|
+
}
|
|
5887
|
+
/** List a function's deployments (newest-first). */
|
|
5888
|
+
async deployments(id, opts = {}) {
|
|
5889
|
+
const res = await request(this.ctx, {
|
|
5890
|
+
method: "GET",
|
|
5891
|
+
path: `/api/v1/functions/${enc3(id)}/deployments`,
|
|
5892
|
+
signal: opts.signal
|
|
5893
|
+
});
|
|
5894
|
+
return res.data;
|
|
5895
|
+
}
|
|
5896
|
+
/** Promote (or roll back to) a deployment — flips the active one. */
|
|
5897
|
+
async promote(id, input, opts = {}) {
|
|
5898
|
+
const res = await request(this.ctx, {
|
|
5899
|
+
method: "POST",
|
|
5900
|
+
path: `/api/v1/functions/${enc3(id)}/promote`,
|
|
5901
|
+
body: input,
|
|
5902
|
+
signal: opts.signal
|
|
5903
|
+
});
|
|
5904
|
+
return res.data;
|
|
5905
|
+
}
|
|
5906
|
+
/** Invoke a deployed function synchronously; returns its response. */
|
|
5907
|
+
async invoke(id, input = {}, opts = {}) {
|
|
5908
|
+
const res = await request(this.ctx, {
|
|
5909
|
+
method: "POST",
|
|
5910
|
+
path: `/api/v1/functions/${enc3(id)}/invoke`,
|
|
5911
|
+
body: input,
|
|
5912
|
+
signal: opts.signal
|
|
5913
|
+
});
|
|
5914
|
+
return res.data;
|
|
5915
|
+
}
|
|
5916
|
+
};
|
|
5917
|
+
|
|
5408
5918
|
// ../sdk/src/api/guide.ts
|
|
5409
5919
|
var GuideApi = class {
|
|
5410
5920
|
constructor(ctx) {
|
|
@@ -5707,7 +6217,7 @@ var ProviderEndpointsApi = class {
|
|
|
5707
6217
|
};
|
|
5708
6218
|
|
|
5709
6219
|
// ../sdk/src/api/realtime.ts
|
|
5710
|
-
var
|
|
6220
|
+
var enc4 = encodeURIComponent;
|
|
5711
6221
|
var RECONNECT_MIN_MS = 1e3;
|
|
5712
6222
|
var RECONNECT_MAX_MS = 3e4;
|
|
5713
6223
|
var RealtimeApi = class {
|
|
@@ -5718,7 +6228,7 @@ var RealtimeApi = class {
|
|
|
5718
6228
|
async broadcast(channel, message, opts = {}) {
|
|
5719
6229
|
const res = await request(this.ctx, {
|
|
5720
6230
|
method: "POST",
|
|
5721
|
-
path: `/api/v1/realtime/${
|
|
6231
|
+
path: `/api/v1/realtime/${enc4(channel)}/broadcast`,
|
|
5722
6232
|
body: { message },
|
|
5723
6233
|
signal: opts.signal
|
|
5724
6234
|
});
|
|
@@ -5728,7 +6238,7 @@ var RealtimeApi = class {
|
|
|
5728
6238
|
async heartbeat(channel, opts = {}) {
|
|
5729
6239
|
const res = await request(this.ctx, {
|
|
5730
6240
|
method: "POST",
|
|
5731
|
-
path: `/api/v1/realtime/${
|
|
6241
|
+
path: `/api/v1/realtime/${enc4(channel)}/presence`,
|
|
5732
6242
|
body: { meta: opts.meta, ttl_seconds: opts.ttlSeconds },
|
|
5733
6243
|
signal: opts.signal
|
|
5734
6244
|
});
|
|
@@ -5738,7 +6248,7 @@ var RealtimeApi = class {
|
|
|
5738
6248
|
async presence(channel, opts = {}) {
|
|
5739
6249
|
const res = await request(this.ctx, {
|
|
5740
6250
|
method: "GET",
|
|
5741
|
-
path: `/api/v1/realtime/${
|
|
6251
|
+
path: `/api/v1/realtime/${enc4(channel)}/presence`,
|
|
5742
6252
|
signal: opts.signal
|
|
5743
6253
|
});
|
|
5744
6254
|
return res.data;
|
|
@@ -6145,7 +6655,7 @@ var SubscriptionApi = class {
|
|
|
6145
6655
|
};
|
|
6146
6656
|
|
|
6147
6657
|
// ../sdk/src/api/tables.ts
|
|
6148
|
-
var
|
|
6658
|
+
var enc5 = encodeURIComponent;
|
|
6149
6659
|
var TablesApi = class {
|
|
6150
6660
|
constructor(ctx) {
|
|
6151
6661
|
this.ctx = ctx;
|
|
@@ -6166,7 +6676,7 @@ var TablesApi = class {
|
|
|
6166
6676
|
async get(id, opts = {}) {
|
|
6167
6677
|
const res = await request(this.ctx, {
|
|
6168
6678
|
method: "GET",
|
|
6169
|
-
path: `/api/v1/tables/${
|
|
6679
|
+
path: `/api/v1/tables/${enc5(id)}`,
|
|
6170
6680
|
signal: opts.signal
|
|
6171
6681
|
});
|
|
6172
6682
|
return res.data;
|
|
@@ -6183,7 +6693,7 @@ var TablesApi = class {
|
|
|
6183
6693
|
async update(id, input, opts = {}) {
|
|
6184
6694
|
const res = await request(this.ctx, {
|
|
6185
6695
|
method: "PATCH",
|
|
6186
|
-
path: `/api/v1/tables/${
|
|
6696
|
+
path: `/api/v1/tables/${enc5(id)}`,
|
|
6187
6697
|
body: input,
|
|
6188
6698
|
signal: opts.signal
|
|
6189
6699
|
});
|
|
@@ -6192,7 +6702,7 @@ var TablesApi = class {
|
|
|
6192
6702
|
async delete(id, opts = {}) {
|
|
6193
6703
|
return request(this.ctx, {
|
|
6194
6704
|
method: "DELETE",
|
|
6195
|
-
path: `/api/v1/tables/${
|
|
6705
|
+
path: `/api/v1/tables/${enc5(id)}`,
|
|
6196
6706
|
signal: opts.signal
|
|
6197
6707
|
});
|
|
6198
6708
|
}
|
|
@@ -6200,7 +6710,7 @@ var TablesApi = class {
|
|
|
6200
6710
|
async query(id, query = {}, opts = {}) {
|
|
6201
6711
|
const res = await request(this.ctx, {
|
|
6202
6712
|
method: "POST",
|
|
6203
|
-
path: `/api/v1/tables/${
|
|
6713
|
+
path: `/api/v1/tables/${enc5(id)}/query`,
|
|
6204
6714
|
body: query,
|
|
6205
6715
|
signal: opts.signal
|
|
6206
6716
|
});
|
|
@@ -6209,7 +6719,7 @@ var TablesApi = class {
|
|
|
6209
6719
|
async createRecord(id, values, opts = {}) {
|
|
6210
6720
|
const res = await request(this.ctx, {
|
|
6211
6721
|
method: "POST",
|
|
6212
|
-
path: `/api/v1/tables/${
|
|
6722
|
+
path: `/api/v1/tables/${enc5(id)}/records`,
|
|
6213
6723
|
body: { values },
|
|
6214
6724
|
signal: opts.signal
|
|
6215
6725
|
});
|
|
@@ -6218,7 +6728,7 @@ var TablesApi = class {
|
|
|
6218
6728
|
async getRecord(id, recordId, opts = {}) {
|
|
6219
6729
|
const res = await request(this.ctx, {
|
|
6220
6730
|
method: "GET",
|
|
6221
|
-
path: `/api/v1/tables/${
|
|
6731
|
+
path: `/api/v1/tables/${enc5(id)}/records/${enc5(recordId)}`,
|
|
6222
6732
|
signal: opts.signal
|
|
6223
6733
|
});
|
|
6224
6734
|
return res.data;
|
|
@@ -6226,7 +6736,7 @@ var TablesApi = class {
|
|
|
6226
6736
|
async updateRecord(id, recordId, values, opts = {}) {
|
|
6227
6737
|
const res = await request(this.ctx, {
|
|
6228
6738
|
method: "PATCH",
|
|
6229
|
-
path: `/api/v1/tables/${
|
|
6739
|
+
path: `/api/v1/tables/${enc5(id)}/records/${enc5(recordId)}`,
|
|
6230
6740
|
body: { values },
|
|
6231
6741
|
signal: opts.signal
|
|
6232
6742
|
});
|
|
@@ -6235,7 +6745,7 @@ var TablesApi = class {
|
|
|
6235
6745
|
async deleteRecord(id, recordId, opts = {}) {
|
|
6236
6746
|
return request(this.ctx, {
|
|
6237
6747
|
method: "DELETE",
|
|
6238
|
-
path: `/api/v1/tables/${
|
|
6748
|
+
path: `/api/v1/tables/${enc5(id)}/records/${enc5(recordId)}`,
|
|
6239
6749
|
signal: opts.signal
|
|
6240
6750
|
});
|
|
6241
6751
|
}
|
|
@@ -6243,7 +6753,7 @@ var TablesApi = class {
|
|
|
6243
6753
|
async exportCsv(id, opts = {}) {
|
|
6244
6754
|
const res = await requestRaw(this.ctx, {
|
|
6245
6755
|
method: "GET",
|
|
6246
|
-
path: `/api/v1/tables/${
|
|
6756
|
+
path: `/api/v1/tables/${enc5(id)}/export`,
|
|
6247
6757
|
signal: opts.signal,
|
|
6248
6758
|
expectJson: false
|
|
6249
6759
|
});
|
|
@@ -6253,7 +6763,7 @@ var TablesApi = class {
|
|
|
6253
6763
|
async importCsv(id, csv, opts = {}) {
|
|
6254
6764
|
const res = await request(this.ctx, {
|
|
6255
6765
|
method: "POST",
|
|
6256
|
-
path: `/api/v1/tables/${
|
|
6766
|
+
path: `/api/v1/tables/${enc5(id)}/import`,
|
|
6257
6767
|
body: { csv },
|
|
6258
6768
|
signal: opts.signal
|
|
6259
6769
|
});
|
|
@@ -6451,6 +6961,55 @@ var UserApi = class {
|
|
|
6451
6961
|
}
|
|
6452
6962
|
};
|
|
6453
6963
|
|
|
6964
|
+
// ../sdk/src/api/videos.ts
|
|
6965
|
+
var GENERATE_BINDING = COMMAND_BINDINGS["video generate"];
|
|
6966
|
+
var VideosApi = class {
|
|
6967
|
+
constructor(ctx) {
|
|
6968
|
+
this.ctx = ctx;
|
|
6969
|
+
}
|
|
6970
|
+
async listModels(opts = {}) {
|
|
6971
|
+
const res = await request(this.ctx, {
|
|
6972
|
+
method: "GET",
|
|
6973
|
+
path: "/api/v1/videos/models",
|
|
6974
|
+
signal: opts.signal
|
|
6975
|
+
});
|
|
6976
|
+
return res.data;
|
|
6977
|
+
}
|
|
6978
|
+
async searchModels(input = {}, opts = {}) {
|
|
6979
|
+
const res = await request(
|
|
6980
|
+
this.ctx,
|
|
6981
|
+
{
|
|
6982
|
+
method: "GET",
|
|
6983
|
+
path: "/api/v1/videos/models/search",
|
|
6984
|
+
query: input,
|
|
6985
|
+
signal: opts.signal
|
|
6986
|
+
}
|
|
6987
|
+
);
|
|
6988
|
+
return res.data;
|
|
6989
|
+
}
|
|
6990
|
+
async generate(input, opts = {}) {
|
|
6991
|
+
const res = await request(this.ctx, {
|
|
6992
|
+
method: "POST",
|
|
6993
|
+
path: "/api/v1/videos/generations",
|
|
6994
|
+
body: input,
|
|
6995
|
+
signal: opts.signal
|
|
6996
|
+
});
|
|
6997
|
+
const handle = res.data;
|
|
6998
|
+
if (opts.wait === false) return handle;
|
|
6999
|
+
const pollOpts = {
|
|
7000
|
+
signal: opts.signal,
|
|
7001
|
+
pollIntervalMs: opts.pollIntervalMs,
|
|
7002
|
+
maxPollAttempts: opts.maxPollAttempts
|
|
7003
|
+
};
|
|
7004
|
+
return await awaitOperation(
|
|
7005
|
+
GENERATE_BINDING,
|
|
7006
|
+
handle.id,
|
|
7007
|
+
this.ctx,
|
|
7008
|
+
pollOpts
|
|
7009
|
+
);
|
|
7010
|
+
}
|
|
7011
|
+
};
|
|
7012
|
+
|
|
6454
7013
|
// ../sdk/src/api/web.ts
|
|
6455
7014
|
var WebSearchApi = class {
|
|
6456
7015
|
constructor(ctx) {
|
|
@@ -6614,7 +7173,7 @@ var WorkspacesApi = class {
|
|
|
6614
7173
|
};
|
|
6615
7174
|
|
|
6616
7175
|
// ../sdk/src/version.ts
|
|
6617
|
-
var VERSION = "0.
|
|
7176
|
+
var VERSION = "0.2.0" ;
|
|
6618
7177
|
|
|
6619
7178
|
// src/api/app.ts
|
|
6620
7179
|
var RemoteBundleReader = class {
|
|
@@ -7125,7 +7684,7 @@ var IdaptClient2 = class {
|
|
|
7125
7684
|
this.providerEndpoints = new ProviderEndpointsApi(v1Ctx);
|
|
7126
7685
|
this.images = new ImagesApi(v1Ctx);
|
|
7127
7686
|
this.audio = new AudioApi(v1Ctx);
|
|
7128
|
-
this.
|
|
7687
|
+
this.functions = new FunctionsApi(v1Ctx);
|
|
7129
7688
|
this.search = new SearchApi(v1Ctx);
|
|
7130
7689
|
this.web = new WebSearchApi(v1Ctx);
|
|
7131
7690
|
this.guide = new GuideApi(v1Ctx);
|
|
@@ -7515,13 +8074,13 @@ exports.AuthError = AuthError;
|
|
|
7515
8074
|
exports.BlobsApi = BlobsApi;
|
|
7516
8075
|
exports.COMMAND_BINDINGS = COMMAND_BINDINGS;
|
|
7517
8076
|
exports.ChatsApi = ChatsApi;
|
|
7518
|
-
exports.CodeRunsApi = CodeRunsApi;
|
|
7519
8077
|
exports.ComputersApi = ComputersApi;
|
|
7520
8078
|
exports.ConflictError = ConflictError;
|
|
7521
8079
|
exports.DataFolder = DataFolder;
|
|
7522
8080
|
exports.DatastoreApi = DatastoreApi;
|
|
7523
8081
|
exports.DocsApi = DocsApi;
|
|
7524
8082
|
exports.FilesApi = FilesApi;
|
|
8083
|
+
exports.FunctionsApi = FunctionsApi;
|
|
7525
8084
|
exports.GuideApi = GuideApi;
|
|
7526
8085
|
exports.Idapt = Idapt2;
|
|
7527
8086
|
exports.IdaptClient = IdaptClient2;
|
|
@@ -7550,6 +8109,7 @@ exports.TablesApi = TablesApi;
|
|
|
7550
8109
|
exports.TriggersApi = TriggersApi;
|
|
7551
8110
|
exports.UserApi = UserApi;
|
|
7552
8111
|
exports.VERSION = VERSION;
|
|
8112
|
+
exports.VideosApi = VideosApi;
|
|
7553
8113
|
exports.WebSearchApi = WebSearchApi;
|
|
7554
8114
|
exports.WorkspacesApi = WorkspacesApi;
|
|
7555
8115
|
exports.awaitOperation = awaitOperation;
|