notte-sdk 1.10.19 → 1.10.21
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/index.d.mts +129 -14
- package/dist/index.d.ts +129 -14
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -5
- package/dist/index.mjs.map +1 -1
- package/dist/proxy/core.js +14 -7
- package/dist/proxy/core.js.map +1 -1
- package/dist/proxy/core.mjs +14 -7
- package/dist/proxy/core.mjs.map +1 -1
- package/dist/proxy/next.js +14 -7
- package/dist/proxy/next.js.map +1 -1
- package/dist/proxy/next.mjs +14 -7
- package/dist/proxy/next.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3482,7 +3482,9 @@ type FunctionListItemResponse = {
|
|
|
3482
3482
|
/**
|
|
3483
3483
|
* Reference Workflow Id
|
|
3484
3484
|
*
|
|
3485
|
-
*
|
|
3485
|
+
* Deprecated: use reference_function_id. Removed on 2026-12-28.
|
|
3486
|
+
*
|
|
3487
|
+
* @deprecated
|
|
3486
3488
|
*/
|
|
3487
3489
|
reference_workflow_id?: string | null;
|
|
3488
3490
|
/**
|
|
@@ -3523,10 +3525,26 @@ type FunctionListItemResponse = {
|
|
|
3523
3525
|
* The site this function drives, used to group endpoints in the console. Null when the function never named a site.
|
|
3524
3526
|
*/
|
|
3525
3527
|
domain?: string | null;
|
|
3528
|
+
/**
|
|
3529
|
+
* Slug
|
|
3530
|
+
*
|
|
3531
|
+
* The function's short name, unique across all functions: it runs at https://functions.notte.cc/<slug>. Assigned at creation and renamable. Null for a function that has none.
|
|
3532
|
+
*/
|
|
3533
|
+
slug?: string | null;
|
|
3526
3534
|
/**
|
|
3527
3535
|
* Workflow Id
|
|
3536
|
+
*
|
|
3537
|
+
* Deprecated: use function_id. Removed on 2026-12-28.
|
|
3538
|
+
*
|
|
3539
|
+
* @deprecated
|
|
3528
3540
|
*/
|
|
3529
3541
|
readonly workflow_id: string;
|
|
3542
|
+
/**
|
|
3543
|
+
* Reference Function Id
|
|
3544
|
+
*
|
|
3545
|
+
* The ID of the function this one was copied from, such as a fork's source, or null
|
|
3546
|
+
*/
|
|
3547
|
+
readonly reference_function_id: string | null;
|
|
3530
3548
|
};
|
|
3531
3549
|
/**
|
|
3532
3550
|
* FunctionMetadataUpdateRequest
|
|
@@ -3568,6 +3586,12 @@ type FunctionMetadataUpdateRequest = {
|
|
|
3568
3586
|
* Turn deletion protection on or off. While it is on, the function cannot be deleted. Any workspace member's key can turn it on; turning it off takes the key of a workspace admin or owner. Omit or send null to leave it unchanged.
|
|
3569
3587
|
*/
|
|
3570
3588
|
deletion_protected?: boolean | null;
|
|
3589
|
+
/**
|
|
3590
|
+
* Slug
|
|
3591
|
+
*
|
|
3592
|
+
* Rename the function's short name in https://functions.notte.cc/<slug>: 3 to 48 lowercase letters, digits and inner hyphens, unique across all functions (409 when another function has it). Omit or send null to leave it unchanged.
|
|
3593
|
+
*/
|
|
3594
|
+
slug?: string | null;
|
|
3571
3595
|
/**
|
|
3572
3596
|
* Response Format
|
|
3573
3597
|
*
|
|
@@ -3662,7 +3686,9 @@ type FunctionResponse = {
|
|
|
3662
3686
|
/**
|
|
3663
3687
|
* Reference Workflow Id
|
|
3664
3688
|
*
|
|
3665
|
-
*
|
|
3689
|
+
* Deprecated: use reference_function_id. Removed on 2026-12-28.
|
|
3690
|
+
*
|
|
3691
|
+
* @deprecated
|
|
3666
3692
|
*/
|
|
3667
3693
|
reference_workflow_id?: string | null;
|
|
3668
3694
|
/**
|
|
@@ -3703,6 +3729,12 @@ type FunctionResponse = {
|
|
|
3703
3729
|
* The site this function drives, used to group endpoints in the console. Null when the function never named a site.
|
|
3704
3730
|
*/
|
|
3705
3731
|
domain?: string | null;
|
|
3732
|
+
/**
|
|
3733
|
+
* Slug
|
|
3734
|
+
*
|
|
3735
|
+
* The function's short name, unique across all functions: it runs at https://functions.notte.cc/<slug>. Assigned at creation and renamable. Null for a function that has none.
|
|
3736
|
+
*/
|
|
3737
|
+
slug?: string | null;
|
|
3706
3738
|
/**
|
|
3707
3739
|
* Instructions
|
|
3708
3740
|
*
|
|
@@ -3739,8 +3771,18 @@ type FunctionResponse = {
|
|
|
3739
3771
|
schedule_state?: 'enabled' | 'paused' | null;
|
|
3740
3772
|
/**
|
|
3741
3773
|
* Workflow Id
|
|
3774
|
+
*
|
|
3775
|
+
* Deprecated: use function_id. Removed on 2026-12-28.
|
|
3776
|
+
*
|
|
3777
|
+
* @deprecated
|
|
3742
3778
|
*/
|
|
3743
3779
|
readonly workflow_id: string;
|
|
3780
|
+
/**
|
|
3781
|
+
* Reference Function Id
|
|
3782
|
+
*
|
|
3783
|
+
* The ID of the function this one was copied from, such as a fork's source, or null
|
|
3784
|
+
*/
|
|
3785
|
+
readonly reference_function_id: string | null;
|
|
3744
3786
|
};
|
|
3745
3787
|
/**
|
|
3746
3788
|
* FunctionRollbackRequest
|
|
@@ -3850,10 +3892,18 @@ type FunctionRunListItemResponse = {
|
|
|
3850
3892
|
local?: boolean;
|
|
3851
3893
|
/**
|
|
3852
3894
|
* Workflow Id
|
|
3895
|
+
*
|
|
3896
|
+
* Deprecated: use function_id. Removed on 2026-12-28.
|
|
3897
|
+
*
|
|
3898
|
+
* @deprecated
|
|
3853
3899
|
*/
|
|
3854
3900
|
readonly workflow_id: string;
|
|
3855
3901
|
/**
|
|
3856
3902
|
* Workflow Run Id
|
|
3903
|
+
*
|
|
3904
|
+
* Deprecated: use function_run_id. Removed on 2026-12-28.
|
|
3905
|
+
*
|
|
3906
|
+
* @deprecated
|
|
3857
3907
|
*/
|
|
3858
3908
|
readonly workflow_run_id: string;
|
|
3859
3909
|
};
|
|
@@ -3870,13 +3920,13 @@ type FunctionRunUpdateRequest$1 = {
|
|
|
3870
3920
|
/**
|
|
3871
3921
|
* Logs
|
|
3872
3922
|
*
|
|
3873
|
-
* The logs of the
|
|
3923
|
+
* The logs of the function run
|
|
3874
3924
|
*/
|
|
3875
3925
|
logs?: Array<string> | null;
|
|
3876
3926
|
/**
|
|
3877
3927
|
* Variables
|
|
3878
3928
|
*
|
|
3879
|
-
* The variables of the
|
|
3929
|
+
* The variables of the function run
|
|
3880
3930
|
*/
|
|
3881
3931
|
variables?: {
|
|
3882
3932
|
[key: string]: unknown;
|
|
@@ -3884,13 +3934,13 @@ type FunctionRunUpdateRequest$1 = {
|
|
|
3884
3934
|
/**
|
|
3885
3935
|
* Result
|
|
3886
3936
|
*
|
|
3887
|
-
* The result of the
|
|
3937
|
+
* The result of the function run
|
|
3888
3938
|
*/
|
|
3889
3939
|
result?: unknown | null;
|
|
3890
3940
|
/**
|
|
3891
3941
|
* Status
|
|
3892
3942
|
*
|
|
3893
|
-
* The status of the
|
|
3943
|
+
* The status of the function run
|
|
3894
3944
|
*/
|
|
3895
3945
|
status: 'closed' | 'active' | 'failed' | 'rejected';
|
|
3896
3946
|
/**
|
|
@@ -4059,7 +4109,7 @@ type FunctionSource = 'console' | 'anything' | 'cli' | 'node-sdk' | 'python-sdk'
|
|
|
4059
4109
|
/**
|
|
4060
4110
|
* FunctionVersionOrigin
|
|
4061
4111
|
*/
|
|
4062
|
-
type FunctionVersionOrigin = 'self-heal' | 'anything' | 'rollback' | 'fork' | 'console' | 'cli' | 'python-sdk' | 'node-sdk' | 'rest-api';
|
|
4112
|
+
type FunctionVersionOrigin = 'self-heal' | 'anything' | 'rollback' | 'fork' | 'console' | 'cli' | 'python-sdk' | 'node-sdk' | 'rest-api' | 'github';
|
|
4063
4113
|
/**
|
|
4064
4114
|
* FunctionVersionOriginInfo
|
|
4065
4115
|
*/
|
|
@@ -4172,7 +4222,9 @@ type FunctionWithLinkResponse = {
|
|
|
4172
4222
|
/**
|
|
4173
4223
|
* Reference Workflow Id
|
|
4174
4224
|
*
|
|
4175
|
-
*
|
|
4225
|
+
* Deprecated: use reference_function_id. Removed on 2026-12-28.
|
|
4226
|
+
*
|
|
4227
|
+
* @deprecated
|
|
4176
4228
|
*/
|
|
4177
4229
|
reference_workflow_id?: string | null;
|
|
4178
4230
|
/**
|
|
@@ -4213,6 +4265,12 @@ type FunctionWithLinkResponse = {
|
|
|
4213
4265
|
* The site this function drives, used to group endpoints in the console. Null when the function never named a site.
|
|
4214
4266
|
*/
|
|
4215
4267
|
domain?: string | null;
|
|
4268
|
+
/**
|
|
4269
|
+
* Slug
|
|
4270
|
+
*
|
|
4271
|
+
* The function's short name, unique across all functions: it runs at https://functions.notte.cc/<slug>. Assigned at creation and renamable. Null for a function that has none.
|
|
4272
|
+
*/
|
|
4273
|
+
slug?: string | null;
|
|
4216
4274
|
/**
|
|
4217
4275
|
* Instructions
|
|
4218
4276
|
*
|
|
@@ -4255,8 +4313,18 @@ type FunctionWithLinkResponse = {
|
|
|
4255
4313
|
version_origins?: Array<FunctionVersionOriginInfo> | null;
|
|
4256
4314
|
/**
|
|
4257
4315
|
* Workflow Id
|
|
4316
|
+
*
|
|
4317
|
+
* Deprecated: use function_id. Removed on 2026-12-28.
|
|
4318
|
+
*
|
|
4319
|
+
* @deprecated
|
|
4258
4320
|
*/
|
|
4259
4321
|
readonly workflow_id: string;
|
|
4322
|
+
/**
|
|
4323
|
+
* Reference Function Id
|
|
4324
|
+
*
|
|
4325
|
+
* The ID of the function this one was copied from, such as a fork's source, or null
|
|
4326
|
+
*/
|
|
4327
|
+
readonly reference_function_id: string | null;
|
|
4260
4328
|
};
|
|
4261
4329
|
/**
|
|
4262
4330
|
* GetCookiesResponse
|
|
@@ -4373,10 +4441,18 @@ type GetFunctionRunResponse$1 = {
|
|
|
4373
4441
|
};
|
|
4374
4442
|
/**
|
|
4375
4443
|
* Workflow Id
|
|
4444
|
+
*
|
|
4445
|
+
* Deprecated: use function_id. Removed on 2026-12-28.
|
|
4446
|
+
*
|
|
4447
|
+
* @deprecated
|
|
4376
4448
|
*/
|
|
4377
4449
|
readonly workflow_id: string;
|
|
4378
4450
|
/**
|
|
4379
4451
|
* Workflow Run Id
|
|
4452
|
+
*
|
|
4453
|
+
* Deprecated: use function_run_id. Removed on 2026-12-28.
|
|
4454
|
+
*
|
|
4455
|
+
* @deprecated
|
|
4380
4456
|
*/
|
|
4381
4457
|
readonly workflow_run_id: string;
|
|
4382
4458
|
};
|
|
@@ -8439,10 +8515,18 @@ type UpdateFunctionRunResponse = {
|
|
|
8439
8515
|
error?: FunctionRunError | null;
|
|
8440
8516
|
/**
|
|
8441
8517
|
* Workflow Id
|
|
8518
|
+
*
|
|
8519
|
+
* Deprecated: use function_id. Removed on 2026-12-28.
|
|
8520
|
+
*
|
|
8521
|
+
* @deprecated
|
|
8442
8522
|
*/
|
|
8443
8523
|
readonly workflow_id: string;
|
|
8444
8524
|
/**
|
|
8445
8525
|
* Workflow Run Id
|
|
8526
|
+
*
|
|
8527
|
+
* Deprecated: use function_run_id. Removed on 2026-12-28.
|
|
8528
|
+
*
|
|
8529
|
+
* @deprecated
|
|
8446
8530
|
*/
|
|
8447
8531
|
readonly workflow_run_id: string;
|
|
8448
8532
|
};
|
|
@@ -10797,7 +10881,9 @@ type FunctionListItemResponseWritable = {
|
|
|
10797
10881
|
/**
|
|
10798
10882
|
* Reference Workflow Id
|
|
10799
10883
|
*
|
|
10800
|
-
*
|
|
10884
|
+
* Deprecated: use reference_function_id. Removed on 2026-12-28.
|
|
10885
|
+
*
|
|
10886
|
+
* @deprecated
|
|
10801
10887
|
*/
|
|
10802
10888
|
reference_workflow_id?: string | null;
|
|
10803
10889
|
/**
|
|
@@ -10838,6 +10924,12 @@ type FunctionListItemResponseWritable = {
|
|
|
10838
10924
|
* The site this function drives, used to group endpoints in the console. Null when the function never named a site.
|
|
10839
10925
|
*/
|
|
10840
10926
|
domain?: string | null;
|
|
10927
|
+
/**
|
|
10928
|
+
* Slug
|
|
10929
|
+
*
|
|
10930
|
+
* The function's short name, unique across all functions: it runs at https://functions.notte.cc/<slug>. Assigned at creation and renamable. Null for a function that has none.
|
|
10931
|
+
*/
|
|
10932
|
+
slug?: string | null;
|
|
10841
10933
|
};
|
|
10842
10934
|
/**
|
|
10843
10935
|
* FunctionResponse
|
|
@@ -10918,7 +11010,9 @@ type FunctionResponseWritable = {
|
|
|
10918
11010
|
/**
|
|
10919
11011
|
* Reference Workflow Id
|
|
10920
11012
|
*
|
|
10921
|
-
*
|
|
11013
|
+
* Deprecated: use reference_function_id. Removed on 2026-12-28.
|
|
11014
|
+
*
|
|
11015
|
+
* @deprecated
|
|
10922
11016
|
*/
|
|
10923
11017
|
reference_workflow_id?: string | null;
|
|
10924
11018
|
/**
|
|
@@ -10959,6 +11053,12 @@ type FunctionResponseWritable = {
|
|
|
10959
11053
|
* The site this function drives, used to group endpoints in the console. Null when the function never named a site.
|
|
10960
11054
|
*/
|
|
10961
11055
|
domain?: string | null;
|
|
11056
|
+
/**
|
|
11057
|
+
* Slug
|
|
11058
|
+
*
|
|
11059
|
+
* The function's short name, unique across all functions: it runs at https://functions.notte.cc/<slug>. Assigned at creation and renamable. Null for a function that has none.
|
|
11060
|
+
*/
|
|
11061
|
+
slug?: string | null;
|
|
10962
11062
|
/**
|
|
10963
11063
|
* Instructions
|
|
10964
11064
|
*
|
|
@@ -11116,7 +11216,9 @@ type FunctionWithLinkResponseWritable = {
|
|
|
11116
11216
|
/**
|
|
11117
11217
|
* Reference Workflow Id
|
|
11118
11218
|
*
|
|
11119
|
-
*
|
|
11219
|
+
* Deprecated: use reference_function_id. Removed on 2026-12-28.
|
|
11220
|
+
*
|
|
11221
|
+
* @deprecated
|
|
11120
11222
|
*/
|
|
11121
11223
|
reference_workflow_id?: string | null;
|
|
11122
11224
|
/**
|
|
@@ -11157,6 +11259,12 @@ type FunctionWithLinkResponseWritable = {
|
|
|
11157
11259
|
* The site this function drives, used to group endpoints in the console. Null when the function never named a site.
|
|
11158
11260
|
*/
|
|
11159
11261
|
domain?: string | null;
|
|
11262
|
+
/**
|
|
11263
|
+
* Slug
|
|
11264
|
+
*
|
|
11265
|
+
* The function's short name, unique across all functions: it runs at https://functions.notte.cc/<slug>. Assigned at creation and renamable. Null for a function that has none.
|
|
11266
|
+
*/
|
|
11267
|
+
slug?: string | null;
|
|
11160
11268
|
/**
|
|
11161
11269
|
* Instructions
|
|
11162
11270
|
*
|
|
@@ -20288,7 +20396,9 @@ declare class Session {
|
|
|
20288
20396
|
* (`NotteClientConfig.maxRetries`, honoring `Retry-After`). Other 5xx
|
|
20289
20397
|
* errors are retried up to `SESSION_START_TRIES` times. With client
|
|
20290
20398
|
* retries disabled, 529 waits `CLUSTER_OVERLOAD_RETRY_DELAY_MS` instead.
|
|
20291
|
-
* 4xx errors are never retried
|
|
20399
|
+
* 4xx errors are never retried, nor is a 529 marked
|
|
20400
|
+
* `X-Error-Class: WorkerRequestTimeout`: an API worker did not answer in
|
|
20401
|
+
* time and may already have created the session.
|
|
20292
20402
|
*
|
|
20293
20403
|
* Managed-auth sessions wait for readiness by default. Pass
|
|
20294
20404
|
* `{ wait_for_authentication: false }` for an explicit nonblocking start,
|
|
@@ -21488,7 +21598,9 @@ interface NotteClientConfig {
|
|
|
21488
21598
|
* errors), with exponential backoff and full jitter. `Retry-After` is
|
|
21489
21599
|
* honored. POST and PATCH requests are only retried when the API cannot
|
|
21490
21600
|
* have processed them (503, 529, connection refused), so they are never
|
|
21491
|
-
* applied twice.
|
|
21601
|
+
* applied twice. A 529 marked `X-Error-Class: WorkerRequestTimeout` (an API
|
|
21602
|
+
* worker did not answer in time) is treated like a 504. All attempts share
|
|
21603
|
+
* the request timeout. Defaults to 3;
|
|
21492
21604
|
* `0` disables retries.
|
|
21493
21605
|
*/
|
|
21494
21606
|
maxRetries?: number;
|
|
@@ -21921,7 +22033,10 @@ declare class Encryption {
|
|
|
21921
22033
|
*
|
|
21922
22034
|
* What is retried:
|
|
21923
22035
|
* - 503 and 529: the API declined the request before doing any work, so every
|
|
21924
|
-
* method is retried.
|
|
22036
|
+
* method is retried. The exception is the gateway's 529 marked
|
|
22037
|
+
* `X-Error-Class: WorkerRequestTimeout`: an API worker did not answer in
|
|
22038
|
+
* time and may already have processed the request, so it is treated like a
|
|
22039
|
+
* 504.
|
|
21925
22040
|
* - 502 and 504: a gateway lost or timed out on the upstream response, which
|
|
21926
22041
|
* may already have been processed. Only idempotent methods (GET, HEAD,
|
|
21927
22042
|
* OPTIONS, PUT, DELETE) are retried, so a POST such as starting a session
|
package/dist/index.d.ts
CHANGED
|
@@ -3482,7 +3482,9 @@ type FunctionListItemResponse = {
|
|
|
3482
3482
|
/**
|
|
3483
3483
|
* Reference Workflow Id
|
|
3484
3484
|
*
|
|
3485
|
-
*
|
|
3485
|
+
* Deprecated: use reference_function_id. Removed on 2026-12-28.
|
|
3486
|
+
*
|
|
3487
|
+
* @deprecated
|
|
3486
3488
|
*/
|
|
3487
3489
|
reference_workflow_id?: string | null;
|
|
3488
3490
|
/**
|
|
@@ -3523,10 +3525,26 @@ type FunctionListItemResponse = {
|
|
|
3523
3525
|
* The site this function drives, used to group endpoints in the console. Null when the function never named a site.
|
|
3524
3526
|
*/
|
|
3525
3527
|
domain?: string | null;
|
|
3528
|
+
/**
|
|
3529
|
+
* Slug
|
|
3530
|
+
*
|
|
3531
|
+
* The function's short name, unique across all functions: it runs at https://functions.notte.cc/<slug>. Assigned at creation and renamable. Null for a function that has none.
|
|
3532
|
+
*/
|
|
3533
|
+
slug?: string | null;
|
|
3526
3534
|
/**
|
|
3527
3535
|
* Workflow Id
|
|
3536
|
+
*
|
|
3537
|
+
* Deprecated: use function_id. Removed on 2026-12-28.
|
|
3538
|
+
*
|
|
3539
|
+
* @deprecated
|
|
3528
3540
|
*/
|
|
3529
3541
|
readonly workflow_id: string;
|
|
3542
|
+
/**
|
|
3543
|
+
* Reference Function Id
|
|
3544
|
+
*
|
|
3545
|
+
* The ID of the function this one was copied from, such as a fork's source, or null
|
|
3546
|
+
*/
|
|
3547
|
+
readonly reference_function_id: string | null;
|
|
3530
3548
|
};
|
|
3531
3549
|
/**
|
|
3532
3550
|
* FunctionMetadataUpdateRequest
|
|
@@ -3568,6 +3586,12 @@ type FunctionMetadataUpdateRequest = {
|
|
|
3568
3586
|
* Turn deletion protection on or off. While it is on, the function cannot be deleted. Any workspace member's key can turn it on; turning it off takes the key of a workspace admin or owner. Omit or send null to leave it unchanged.
|
|
3569
3587
|
*/
|
|
3570
3588
|
deletion_protected?: boolean | null;
|
|
3589
|
+
/**
|
|
3590
|
+
* Slug
|
|
3591
|
+
*
|
|
3592
|
+
* Rename the function's short name in https://functions.notte.cc/<slug>: 3 to 48 lowercase letters, digits and inner hyphens, unique across all functions (409 when another function has it). Omit or send null to leave it unchanged.
|
|
3593
|
+
*/
|
|
3594
|
+
slug?: string | null;
|
|
3571
3595
|
/**
|
|
3572
3596
|
* Response Format
|
|
3573
3597
|
*
|
|
@@ -3662,7 +3686,9 @@ type FunctionResponse = {
|
|
|
3662
3686
|
/**
|
|
3663
3687
|
* Reference Workflow Id
|
|
3664
3688
|
*
|
|
3665
|
-
*
|
|
3689
|
+
* Deprecated: use reference_function_id. Removed on 2026-12-28.
|
|
3690
|
+
*
|
|
3691
|
+
* @deprecated
|
|
3666
3692
|
*/
|
|
3667
3693
|
reference_workflow_id?: string | null;
|
|
3668
3694
|
/**
|
|
@@ -3703,6 +3729,12 @@ type FunctionResponse = {
|
|
|
3703
3729
|
* The site this function drives, used to group endpoints in the console. Null when the function never named a site.
|
|
3704
3730
|
*/
|
|
3705
3731
|
domain?: string | null;
|
|
3732
|
+
/**
|
|
3733
|
+
* Slug
|
|
3734
|
+
*
|
|
3735
|
+
* The function's short name, unique across all functions: it runs at https://functions.notte.cc/<slug>. Assigned at creation and renamable. Null for a function that has none.
|
|
3736
|
+
*/
|
|
3737
|
+
slug?: string | null;
|
|
3706
3738
|
/**
|
|
3707
3739
|
* Instructions
|
|
3708
3740
|
*
|
|
@@ -3739,8 +3771,18 @@ type FunctionResponse = {
|
|
|
3739
3771
|
schedule_state?: 'enabled' | 'paused' | null;
|
|
3740
3772
|
/**
|
|
3741
3773
|
* Workflow Id
|
|
3774
|
+
*
|
|
3775
|
+
* Deprecated: use function_id. Removed on 2026-12-28.
|
|
3776
|
+
*
|
|
3777
|
+
* @deprecated
|
|
3742
3778
|
*/
|
|
3743
3779
|
readonly workflow_id: string;
|
|
3780
|
+
/**
|
|
3781
|
+
* Reference Function Id
|
|
3782
|
+
*
|
|
3783
|
+
* The ID of the function this one was copied from, such as a fork's source, or null
|
|
3784
|
+
*/
|
|
3785
|
+
readonly reference_function_id: string | null;
|
|
3744
3786
|
};
|
|
3745
3787
|
/**
|
|
3746
3788
|
* FunctionRollbackRequest
|
|
@@ -3850,10 +3892,18 @@ type FunctionRunListItemResponse = {
|
|
|
3850
3892
|
local?: boolean;
|
|
3851
3893
|
/**
|
|
3852
3894
|
* Workflow Id
|
|
3895
|
+
*
|
|
3896
|
+
* Deprecated: use function_id. Removed on 2026-12-28.
|
|
3897
|
+
*
|
|
3898
|
+
* @deprecated
|
|
3853
3899
|
*/
|
|
3854
3900
|
readonly workflow_id: string;
|
|
3855
3901
|
/**
|
|
3856
3902
|
* Workflow Run Id
|
|
3903
|
+
*
|
|
3904
|
+
* Deprecated: use function_run_id. Removed on 2026-12-28.
|
|
3905
|
+
*
|
|
3906
|
+
* @deprecated
|
|
3857
3907
|
*/
|
|
3858
3908
|
readonly workflow_run_id: string;
|
|
3859
3909
|
};
|
|
@@ -3870,13 +3920,13 @@ type FunctionRunUpdateRequest$1 = {
|
|
|
3870
3920
|
/**
|
|
3871
3921
|
* Logs
|
|
3872
3922
|
*
|
|
3873
|
-
* The logs of the
|
|
3923
|
+
* The logs of the function run
|
|
3874
3924
|
*/
|
|
3875
3925
|
logs?: Array<string> | null;
|
|
3876
3926
|
/**
|
|
3877
3927
|
* Variables
|
|
3878
3928
|
*
|
|
3879
|
-
* The variables of the
|
|
3929
|
+
* The variables of the function run
|
|
3880
3930
|
*/
|
|
3881
3931
|
variables?: {
|
|
3882
3932
|
[key: string]: unknown;
|
|
@@ -3884,13 +3934,13 @@ type FunctionRunUpdateRequest$1 = {
|
|
|
3884
3934
|
/**
|
|
3885
3935
|
* Result
|
|
3886
3936
|
*
|
|
3887
|
-
* The result of the
|
|
3937
|
+
* The result of the function run
|
|
3888
3938
|
*/
|
|
3889
3939
|
result?: unknown | null;
|
|
3890
3940
|
/**
|
|
3891
3941
|
* Status
|
|
3892
3942
|
*
|
|
3893
|
-
* The status of the
|
|
3943
|
+
* The status of the function run
|
|
3894
3944
|
*/
|
|
3895
3945
|
status: 'closed' | 'active' | 'failed' | 'rejected';
|
|
3896
3946
|
/**
|
|
@@ -4059,7 +4109,7 @@ type FunctionSource = 'console' | 'anything' | 'cli' | 'node-sdk' | 'python-sdk'
|
|
|
4059
4109
|
/**
|
|
4060
4110
|
* FunctionVersionOrigin
|
|
4061
4111
|
*/
|
|
4062
|
-
type FunctionVersionOrigin = 'self-heal' | 'anything' | 'rollback' | 'fork' | 'console' | 'cli' | 'python-sdk' | 'node-sdk' | 'rest-api';
|
|
4112
|
+
type FunctionVersionOrigin = 'self-heal' | 'anything' | 'rollback' | 'fork' | 'console' | 'cli' | 'python-sdk' | 'node-sdk' | 'rest-api' | 'github';
|
|
4063
4113
|
/**
|
|
4064
4114
|
* FunctionVersionOriginInfo
|
|
4065
4115
|
*/
|
|
@@ -4172,7 +4222,9 @@ type FunctionWithLinkResponse = {
|
|
|
4172
4222
|
/**
|
|
4173
4223
|
* Reference Workflow Id
|
|
4174
4224
|
*
|
|
4175
|
-
*
|
|
4225
|
+
* Deprecated: use reference_function_id. Removed on 2026-12-28.
|
|
4226
|
+
*
|
|
4227
|
+
* @deprecated
|
|
4176
4228
|
*/
|
|
4177
4229
|
reference_workflow_id?: string | null;
|
|
4178
4230
|
/**
|
|
@@ -4213,6 +4265,12 @@ type FunctionWithLinkResponse = {
|
|
|
4213
4265
|
* The site this function drives, used to group endpoints in the console. Null when the function never named a site.
|
|
4214
4266
|
*/
|
|
4215
4267
|
domain?: string | null;
|
|
4268
|
+
/**
|
|
4269
|
+
* Slug
|
|
4270
|
+
*
|
|
4271
|
+
* The function's short name, unique across all functions: it runs at https://functions.notte.cc/<slug>. Assigned at creation and renamable. Null for a function that has none.
|
|
4272
|
+
*/
|
|
4273
|
+
slug?: string | null;
|
|
4216
4274
|
/**
|
|
4217
4275
|
* Instructions
|
|
4218
4276
|
*
|
|
@@ -4255,8 +4313,18 @@ type FunctionWithLinkResponse = {
|
|
|
4255
4313
|
version_origins?: Array<FunctionVersionOriginInfo> | null;
|
|
4256
4314
|
/**
|
|
4257
4315
|
* Workflow Id
|
|
4316
|
+
*
|
|
4317
|
+
* Deprecated: use function_id. Removed on 2026-12-28.
|
|
4318
|
+
*
|
|
4319
|
+
* @deprecated
|
|
4258
4320
|
*/
|
|
4259
4321
|
readonly workflow_id: string;
|
|
4322
|
+
/**
|
|
4323
|
+
* Reference Function Id
|
|
4324
|
+
*
|
|
4325
|
+
* The ID of the function this one was copied from, such as a fork's source, or null
|
|
4326
|
+
*/
|
|
4327
|
+
readonly reference_function_id: string | null;
|
|
4260
4328
|
};
|
|
4261
4329
|
/**
|
|
4262
4330
|
* GetCookiesResponse
|
|
@@ -4373,10 +4441,18 @@ type GetFunctionRunResponse$1 = {
|
|
|
4373
4441
|
};
|
|
4374
4442
|
/**
|
|
4375
4443
|
* Workflow Id
|
|
4444
|
+
*
|
|
4445
|
+
* Deprecated: use function_id. Removed on 2026-12-28.
|
|
4446
|
+
*
|
|
4447
|
+
* @deprecated
|
|
4376
4448
|
*/
|
|
4377
4449
|
readonly workflow_id: string;
|
|
4378
4450
|
/**
|
|
4379
4451
|
* Workflow Run Id
|
|
4452
|
+
*
|
|
4453
|
+
* Deprecated: use function_run_id. Removed on 2026-12-28.
|
|
4454
|
+
*
|
|
4455
|
+
* @deprecated
|
|
4380
4456
|
*/
|
|
4381
4457
|
readonly workflow_run_id: string;
|
|
4382
4458
|
};
|
|
@@ -8439,10 +8515,18 @@ type UpdateFunctionRunResponse = {
|
|
|
8439
8515
|
error?: FunctionRunError | null;
|
|
8440
8516
|
/**
|
|
8441
8517
|
* Workflow Id
|
|
8518
|
+
*
|
|
8519
|
+
* Deprecated: use function_id. Removed on 2026-12-28.
|
|
8520
|
+
*
|
|
8521
|
+
* @deprecated
|
|
8442
8522
|
*/
|
|
8443
8523
|
readonly workflow_id: string;
|
|
8444
8524
|
/**
|
|
8445
8525
|
* Workflow Run Id
|
|
8526
|
+
*
|
|
8527
|
+
* Deprecated: use function_run_id. Removed on 2026-12-28.
|
|
8528
|
+
*
|
|
8529
|
+
* @deprecated
|
|
8446
8530
|
*/
|
|
8447
8531
|
readonly workflow_run_id: string;
|
|
8448
8532
|
};
|
|
@@ -10797,7 +10881,9 @@ type FunctionListItemResponseWritable = {
|
|
|
10797
10881
|
/**
|
|
10798
10882
|
* Reference Workflow Id
|
|
10799
10883
|
*
|
|
10800
|
-
*
|
|
10884
|
+
* Deprecated: use reference_function_id. Removed on 2026-12-28.
|
|
10885
|
+
*
|
|
10886
|
+
* @deprecated
|
|
10801
10887
|
*/
|
|
10802
10888
|
reference_workflow_id?: string | null;
|
|
10803
10889
|
/**
|
|
@@ -10838,6 +10924,12 @@ type FunctionListItemResponseWritable = {
|
|
|
10838
10924
|
* The site this function drives, used to group endpoints in the console. Null when the function never named a site.
|
|
10839
10925
|
*/
|
|
10840
10926
|
domain?: string | null;
|
|
10927
|
+
/**
|
|
10928
|
+
* Slug
|
|
10929
|
+
*
|
|
10930
|
+
* The function's short name, unique across all functions: it runs at https://functions.notte.cc/<slug>. Assigned at creation and renamable. Null for a function that has none.
|
|
10931
|
+
*/
|
|
10932
|
+
slug?: string | null;
|
|
10841
10933
|
};
|
|
10842
10934
|
/**
|
|
10843
10935
|
* FunctionResponse
|
|
@@ -10918,7 +11010,9 @@ type FunctionResponseWritable = {
|
|
|
10918
11010
|
/**
|
|
10919
11011
|
* Reference Workflow Id
|
|
10920
11012
|
*
|
|
10921
|
-
*
|
|
11013
|
+
* Deprecated: use reference_function_id. Removed on 2026-12-28.
|
|
11014
|
+
*
|
|
11015
|
+
* @deprecated
|
|
10922
11016
|
*/
|
|
10923
11017
|
reference_workflow_id?: string | null;
|
|
10924
11018
|
/**
|
|
@@ -10959,6 +11053,12 @@ type FunctionResponseWritable = {
|
|
|
10959
11053
|
* The site this function drives, used to group endpoints in the console. Null when the function never named a site.
|
|
10960
11054
|
*/
|
|
10961
11055
|
domain?: string | null;
|
|
11056
|
+
/**
|
|
11057
|
+
* Slug
|
|
11058
|
+
*
|
|
11059
|
+
* The function's short name, unique across all functions: it runs at https://functions.notte.cc/<slug>. Assigned at creation and renamable. Null for a function that has none.
|
|
11060
|
+
*/
|
|
11061
|
+
slug?: string | null;
|
|
10962
11062
|
/**
|
|
10963
11063
|
* Instructions
|
|
10964
11064
|
*
|
|
@@ -11116,7 +11216,9 @@ type FunctionWithLinkResponseWritable = {
|
|
|
11116
11216
|
/**
|
|
11117
11217
|
* Reference Workflow Id
|
|
11118
11218
|
*
|
|
11119
|
-
*
|
|
11219
|
+
* Deprecated: use reference_function_id. Removed on 2026-12-28.
|
|
11220
|
+
*
|
|
11221
|
+
* @deprecated
|
|
11120
11222
|
*/
|
|
11121
11223
|
reference_workflow_id?: string | null;
|
|
11122
11224
|
/**
|
|
@@ -11157,6 +11259,12 @@ type FunctionWithLinkResponseWritable = {
|
|
|
11157
11259
|
* The site this function drives, used to group endpoints in the console. Null when the function never named a site.
|
|
11158
11260
|
*/
|
|
11159
11261
|
domain?: string | null;
|
|
11262
|
+
/**
|
|
11263
|
+
* Slug
|
|
11264
|
+
*
|
|
11265
|
+
* The function's short name, unique across all functions: it runs at https://functions.notte.cc/<slug>. Assigned at creation and renamable. Null for a function that has none.
|
|
11266
|
+
*/
|
|
11267
|
+
slug?: string | null;
|
|
11160
11268
|
/**
|
|
11161
11269
|
* Instructions
|
|
11162
11270
|
*
|
|
@@ -20288,7 +20396,9 @@ declare class Session {
|
|
|
20288
20396
|
* (`NotteClientConfig.maxRetries`, honoring `Retry-After`). Other 5xx
|
|
20289
20397
|
* errors are retried up to `SESSION_START_TRIES` times. With client
|
|
20290
20398
|
* retries disabled, 529 waits `CLUSTER_OVERLOAD_RETRY_DELAY_MS` instead.
|
|
20291
|
-
* 4xx errors are never retried
|
|
20399
|
+
* 4xx errors are never retried, nor is a 529 marked
|
|
20400
|
+
* `X-Error-Class: WorkerRequestTimeout`: an API worker did not answer in
|
|
20401
|
+
* time and may already have created the session.
|
|
20292
20402
|
*
|
|
20293
20403
|
* Managed-auth sessions wait for readiness by default. Pass
|
|
20294
20404
|
* `{ wait_for_authentication: false }` for an explicit nonblocking start,
|
|
@@ -21488,7 +21598,9 @@ interface NotteClientConfig {
|
|
|
21488
21598
|
* errors), with exponential backoff and full jitter. `Retry-After` is
|
|
21489
21599
|
* honored. POST and PATCH requests are only retried when the API cannot
|
|
21490
21600
|
* have processed them (503, 529, connection refused), so they are never
|
|
21491
|
-
* applied twice.
|
|
21601
|
+
* applied twice. A 529 marked `X-Error-Class: WorkerRequestTimeout` (an API
|
|
21602
|
+
* worker did not answer in time) is treated like a 504. All attempts share
|
|
21603
|
+
* the request timeout. Defaults to 3;
|
|
21492
21604
|
* `0` disables retries.
|
|
21493
21605
|
*/
|
|
21494
21606
|
maxRetries?: number;
|
|
@@ -21921,7 +22033,10 @@ declare class Encryption {
|
|
|
21921
22033
|
*
|
|
21922
22034
|
* What is retried:
|
|
21923
22035
|
* - 503 and 529: the API declined the request before doing any work, so every
|
|
21924
|
-
* method is retried.
|
|
22036
|
+
* method is retried. The exception is the gateway's 529 marked
|
|
22037
|
+
* `X-Error-Class: WorkerRequestTimeout`: an API worker did not answer in
|
|
22038
|
+
* time and may already have processed the request, so it is treated like a
|
|
22039
|
+
* 504.
|
|
21925
22040
|
* - 502 and 504: a gateway lost or timed out on the upstream response, which
|
|
21926
22041
|
* may already have been processed. Only idempotent methods (GET, HEAD,
|
|
21927
22042
|
* OPTIONS, PUT, DELETE) are retried, so a POST such as starting a session
|