@1claw/sdk 0.43.1 → 0.43.2
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/generated/api-types.d.ts +207 -7
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/resources/automations.d.ts +5 -0
- package/dist/resources/automations.d.ts.map +1 -1
- package/dist/resources/automations.js +4 -0
- package/dist/resources/automations.js.map +1 -1
- package/dist/resources/runtimes.d.ts +9 -0
- package/dist/resources/runtimes.d.ts.map +1 -1
- package/dist/resources/runtimes.js +5 -0
- package/dist/resources/runtimes.js.map +1 -1
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4767,6 +4767,74 @@ export interface paths {
|
|
|
4767
4767
|
patch?: never;
|
|
4768
4768
|
trace?: never;
|
|
4769
4769
|
};
|
|
4770
|
+
"/v1/automations/assist/draft": {
|
|
4771
|
+
parameters: {
|
|
4772
|
+
query?: never;
|
|
4773
|
+
header?: never;
|
|
4774
|
+
path?: never;
|
|
4775
|
+
cookie?: never;
|
|
4776
|
+
};
|
|
4777
|
+
get?: never;
|
|
4778
|
+
put?: never;
|
|
4779
|
+
/** Draft automation from natural language */
|
|
4780
|
+
post: operations["assistDraftAutomation"];
|
|
4781
|
+
delete?: never;
|
|
4782
|
+
options?: never;
|
|
4783
|
+
head?: never;
|
|
4784
|
+
patch?: never;
|
|
4785
|
+
trace?: never;
|
|
4786
|
+
};
|
|
4787
|
+
"/v1/automations/assist/session": {
|
|
4788
|
+
parameters: {
|
|
4789
|
+
query?: never;
|
|
4790
|
+
header?: never;
|
|
4791
|
+
path?: never;
|
|
4792
|
+
cookie?: never;
|
|
4793
|
+
};
|
|
4794
|
+
get?: never;
|
|
4795
|
+
put?: never;
|
|
4796
|
+
/** Mint short-lived Assist session token */
|
|
4797
|
+
post: operations["assistAutomationSession"];
|
|
4798
|
+
delete?: never;
|
|
4799
|
+
options?: never;
|
|
4800
|
+
head?: never;
|
|
4801
|
+
patch?: never;
|
|
4802
|
+
trace?: never;
|
|
4803
|
+
};
|
|
4804
|
+
"/v1/automations/webhook/{automationId}/{token}": {
|
|
4805
|
+
parameters: {
|
|
4806
|
+
query?: never;
|
|
4807
|
+
header?: never;
|
|
4808
|
+
path?: never;
|
|
4809
|
+
cookie?: never;
|
|
4810
|
+
};
|
|
4811
|
+
get?: never;
|
|
4812
|
+
put?: never;
|
|
4813
|
+
/** Public webhook trigger */
|
|
4814
|
+
post: operations["webhookTriggerAutomation"];
|
|
4815
|
+
delete?: never;
|
|
4816
|
+
options?: never;
|
|
4817
|
+
head?: never;
|
|
4818
|
+
patch?: never;
|
|
4819
|
+
trace?: never;
|
|
4820
|
+
};
|
|
4821
|
+
"/v1/automations/{automationId}/rotate-webhook-token": {
|
|
4822
|
+
parameters: {
|
|
4823
|
+
query?: never;
|
|
4824
|
+
header?: never;
|
|
4825
|
+
path?: never;
|
|
4826
|
+
cookie?: never;
|
|
4827
|
+
};
|
|
4828
|
+
get?: never;
|
|
4829
|
+
put?: never;
|
|
4830
|
+
/** Rotate webhook token */
|
|
4831
|
+
post: operations["rotateAutomationWebhookToken"];
|
|
4832
|
+
delete?: never;
|
|
4833
|
+
options?: never;
|
|
4834
|
+
head?: never;
|
|
4835
|
+
patch?: never;
|
|
4836
|
+
trace?: never;
|
|
4837
|
+
};
|
|
4770
4838
|
"/v1/runtimes": {
|
|
4771
4839
|
parameters: {
|
|
4772
4840
|
query?: never;
|
|
@@ -8419,6 +8487,31 @@ export interface components {
|
|
|
8419
8487
|
/** Format: date-time */
|
|
8420
8488
|
updated_at: string;
|
|
8421
8489
|
};
|
|
8490
|
+
AutomationCreatedResponse: components["schemas"]["AutomationResponse"] & {
|
|
8491
|
+
/** @description Full POST URL including token (one-time on create) */
|
|
8492
|
+
webhook_url?: string;
|
|
8493
|
+
/** @description whk_ token segment (one-time on create) */
|
|
8494
|
+
webhook_token?: string;
|
|
8495
|
+
};
|
|
8496
|
+
WebhookTokenRotatedResponse: {
|
|
8497
|
+
webhook_url: string;
|
|
8498
|
+
webhook_token: string;
|
|
8499
|
+
};
|
|
8500
|
+
AssistDraftResponse: {
|
|
8501
|
+
draft: {
|
|
8502
|
+
[key: string]: unknown;
|
|
8503
|
+
};
|
|
8504
|
+
reply: string;
|
|
8505
|
+
};
|
|
8506
|
+
AssistSessionResponse: {
|
|
8507
|
+
access_token: string;
|
|
8508
|
+
expires_in: number;
|
|
8509
|
+
scopes: string[];
|
|
8510
|
+
/** Format: uuid */
|
|
8511
|
+
runtime_id?: string | null;
|
|
8512
|
+
runtime_status?: string | null;
|
|
8513
|
+
cli_hint: string;
|
|
8514
|
+
};
|
|
8422
8515
|
AutomationListResponse: {
|
|
8423
8516
|
automations: components["schemas"]["AutomationResponse"][];
|
|
8424
8517
|
};
|
|
@@ -14864,13 +14957,13 @@ export interface operations {
|
|
|
14864
14957
|
};
|
|
14865
14958
|
};
|
|
14866
14959
|
responses: {
|
|
14867
|
-
/** @description Automation created */
|
|
14960
|
+
/** @description Automation created (includes one-time webhook credentials when trigger_type is webhook) */
|
|
14868
14961
|
201: {
|
|
14869
14962
|
headers: {
|
|
14870
14963
|
[name: string]: unknown;
|
|
14871
14964
|
};
|
|
14872
14965
|
content: {
|
|
14873
|
-
"application/json": components["schemas"]["
|
|
14966
|
+
"application/json": components["schemas"]["AutomationCreatedResponse"];
|
|
14874
14967
|
};
|
|
14875
14968
|
};
|
|
14876
14969
|
400: components["responses"]["BadRequest"];
|
|
@@ -15003,6 +15096,114 @@ export interface operations {
|
|
|
15003
15096
|
404: components["responses"]["NotFound"];
|
|
15004
15097
|
};
|
|
15005
15098
|
};
|
|
15099
|
+
assistDraftAutomation: {
|
|
15100
|
+
parameters: {
|
|
15101
|
+
query?: never;
|
|
15102
|
+
header?: never;
|
|
15103
|
+
path?: never;
|
|
15104
|
+
cookie?: never;
|
|
15105
|
+
};
|
|
15106
|
+
requestBody: {
|
|
15107
|
+
content: {
|
|
15108
|
+
"application/json": {
|
|
15109
|
+
message: string;
|
|
15110
|
+
/** Format: uuid */
|
|
15111
|
+
agent_id?: string;
|
|
15112
|
+
timezone?: string;
|
|
15113
|
+
};
|
|
15114
|
+
};
|
|
15115
|
+
};
|
|
15116
|
+
responses: {
|
|
15117
|
+
/** @description Reviewable automation draft */
|
|
15118
|
+
200: {
|
|
15119
|
+
headers: {
|
|
15120
|
+
[name: string]: unknown;
|
|
15121
|
+
};
|
|
15122
|
+
content: {
|
|
15123
|
+
"application/json": components["schemas"]["AssistDraftResponse"];
|
|
15124
|
+
};
|
|
15125
|
+
};
|
|
15126
|
+
401: components["responses"]["Unauthorized"];
|
|
15127
|
+
};
|
|
15128
|
+
};
|
|
15129
|
+
assistAutomationSession: {
|
|
15130
|
+
parameters: {
|
|
15131
|
+
query?: never;
|
|
15132
|
+
header?: never;
|
|
15133
|
+
path?: never;
|
|
15134
|
+
cookie?: never;
|
|
15135
|
+
};
|
|
15136
|
+
requestBody?: {
|
|
15137
|
+
content: {
|
|
15138
|
+
"application/json": {
|
|
15139
|
+
/** Format: uuid */
|
|
15140
|
+
runtime_id?: string;
|
|
15141
|
+
};
|
|
15142
|
+
};
|
|
15143
|
+
};
|
|
15144
|
+
responses: {
|
|
15145
|
+
/** @description Assist session token */
|
|
15146
|
+
200: {
|
|
15147
|
+
headers: {
|
|
15148
|
+
[name: string]: unknown;
|
|
15149
|
+
};
|
|
15150
|
+
content: {
|
|
15151
|
+
"application/json": components["schemas"]["AssistSessionResponse"];
|
|
15152
|
+
};
|
|
15153
|
+
};
|
|
15154
|
+
401: components["responses"]["Unauthorized"];
|
|
15155
|
+
};
|
|
15156
|
+
};
|
|
15157
|
+
webhookTriggerAutomation: {
|
|
15158
|
+
parameters: {
|
|
15159
|
+
query?: never;
|
|
15160
|
+
header?: never;
|
|
15161
|
+
path: {
|
|
15162
|
+
automationId: string;
|
|
15163
|
+
token: string;
|
|
15164
|
+
};
|
|
15165
|
+
cookie?: never;
|
|
15166
|
+
};
|
|
15167
|
+
requestBody?: never;
|
|
15168
|
+
responses: {
|
|
15169
|
+
/** @description Automation run queued */
|
|
15170
|
+
201: {
|
|
15171
|
+
headers: {
|
|
15172
|
+
[name: string]: unknown;
|
|
15173
|
+
};
|
|
15174
|
+
content: {
|
|
15175
|
+
"application/json": components["schemas"]["AutomationRunResponse"];
|
|
15176
|
+
};
|
|
15177
|
+
};
|
|
15178
|
+
401: components["responses"]["Unauthorized"];
|
|
15179
|
+
404: components["responses"]["NotFound"];
|
|
15180
|
+
};
|
|
15181
|
+
};
|
|
15182
|
+
rotateAutomationWebhookToken: {
|
|
15183
|
+
parameters: {
|
|
15184
|
+
query?: never;
|
|
15185
|
+
header?: never;
|
|
15186
|
+
path: {
|
|
15187
|
+
automationId: string;
|
|
15188
|
+
};
|
|
15189
|
+
cookie?: never;
|
|
15190
|
+
};
|
|
15191
|
+
requestBody?: never;
|
|
15192
|
+
responses: {
|
|
15193
|
+
/** @description New one-time webhook URL and token */
|
|
15194
|
+
200: {
|
|
15195
|
+
headers: {
|
|
15196
|
+
[name: string]: unknown;
|
|
15197
|
+
};
|
|
15198
|
+
content: {
|
|
15199
|
+
"application/json": components["schemas"]["WebhookTokenRotatedResponse"];
|
|
15200
|
+
};
|
|
15201
|
+
};
|
|
15202
|
+
400: components["responses"]["BadRequest"];
|
|
15203
|
+
401: components["responses"]["Unauthorized"];
|
|
15204
|
+
404: components["responses"]["NotFound"];
|
|
15205
|
+
};
|
|
15206
|
+
};
|
|
15006
15207
|
listRuntimes: {
|
|
15007
15208
|
parameters: {
|
|
15008
15209
|
query?: never;
|
|
@@ -15176,9 +15377,8 @@ export interface operations {
|
|
|
15176
15377
|
getRuntimeLogs: {
|
|
15177
15378
|
parameters: {
|
|
15178
15379
|
query?: {
|
|
15179
|
-
/** @description
|
|
15180
|
-
|
|
15181
|
-
limit?: number;
|
|
15380
|
+
/** @description Number of recent log lines to return */
|
|
15381
|
+
tail?: number;
|
|
15182
15382
|
};
|
|
15183
15383
|
header?: never;
|
|
15184
15384
|
path: {
|
|
@@ -15195,10 +15395,10 @@ export interface operations {
|
|
|
15195
15395
|
};
|
|
15196
15396
|
content: {
|
|
15197
15397
|
"application/json": {
|
|
15198
|
-
|
|
15398
|
+
entries: {
|
|
15199
15399
|
/** Format: date-time */
|
|
15200
15400
|
timestamp?: string;
|
|
15201
|
-
message
|
|
15401
|
+
message: string;
|
|
15202
15402
|
level?: string;
|
|
15203
15403
|
}[];
|
|
15204
15404
|
};
|