@lessly/sdk-app 120.1.0 → 120.3.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/dist/_types/gen/client.gen.d.ts +2 -38
  3. package/dist/_types/gen/deployment/index.d.ts +1 -1
  4. package/dist/_types/gen/deployment/queryOptions.gen.d.ts +5 -1
  5. package/dist/_types/gen/manifest.gen.d.ts +1 -1
  6. package/dist/_types/gen/types.gen.d.ts +26 -329
  7. package/dist/deployment/index.cjs +5 -0
  8. package/dist/deployment/index.cjs.map +1 -1
  9. package/dist/deployment/index.js +5 -1
  10. package/dist/deployment/index.js.map +1 -1
  11. package/dist/index.cjs +63 -224
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.js +12255 -22
  14. package/dist/index.js.map +1 -1
  15. package/package.json +2 -12
  16. package/src/gen/bindings.gen.ts +63 -213
  17. package/src/gen/client.gen.ts +3 -71
  18. package/src/gen/deployment/index.ts +1 -1
  19. package/src/gen/deployment/queryOptions.gen.ts +6 -0
  20. package/src/gen/manifest.gen.ts +2 -21
  21. package/src/gen/types.gen.ts +28 -375
  22. package/dist/_types/gen/playground/connect.gen.d.ts +0 -3
  23. package/dist/_types/gen/playground/index.d.ts +0 -3
  24. package/dist/_types/gen/playground/queryOptions.gen.d.ts +0 -70
  25. package/dist/chunk-5PHFW35P.js +0 -12408
  26. package/dist/chunk-5PHFW35P.js.map +0 -1
  27. package/dist/playground/index.cjs +0 -106
  28. package/dist/playground/index.cjs.map +0 -1
  29. package/dist/playground/index.d.cts +0 -1
  30. package/dist/playground/index.d.ts +0 -1
  31. package/dist/playground/index.js +0 -78
  32. package/dist/playground/index.js.map +0 -1
  33. package/src/gen/playground/connect.gen.ts +0 -9
  34. package/src/gen/playground/index.ts +0 -4
  35. package/src/gen/playground/queryOptions.gen.ts +0 -119
@@ -370446,7 +370446,7 @@ export interface DeploymentJobRunInput {
370446
370446
  }
370447
370447
  export interface DeploymentJobRunOutput {
370448
370448
  id: string;
370449
- status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped");
370449
+ status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped" | "Cancelled");
370450
370450
  trigger: ("schedule" | "manual");
370451
370451
  exitCode: (number | null);
370452
370452
  createdAt: string;
@@ -370454,6 +370454,28 @@ export interface DeploymentJobRunOutput {
370454
370454
  startedAt: (string | null);
370455
370455
  finishedAt: (string | null);
370456
370456
  k8sJobName: string;
370457
+ cancelledBy: (string | null);
370458
+ imageDigest: (string | null);
370459
+ triggeredBy: (string | null);
370460
+ deploymentId: (string | null);
370461
+ environmentId: string;
370462
+ failureReason: (string | null);
370463
+ }
370464
+ export interface DeploymentJobRunCancelInput {
370465
+ runId: string;
370466
+ serviceId: string;
370467
+ }
370468
+ export interface DeploymentJobRunCancelOutput {
370469
+ id: string;
370470
+ status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped" | "Cancelled");
370471
+ trigger: ("schedule" | "manual");
370472
+ exitCode: (number | null);
370473
+ createdAt: string;
370474
+ serviceId: string;
370475
+ startedAt: (string | null);
370476
+ finishedAt: (string | null);
370477
+ k8sJobName: string;
370478
+ cancelledBy: (string | null);
370457
370479
  imageDigest: (string | null);
370458
370480
  triggeredBy: (string | null);
370459
370481
  deploymentId: (string | null);
@@ -370467,7 +370489,7 @@ export interface DeploymentJobRunLogsInput {
370467
370489
  export interface DeploymentJobRunLogsOutput {
370468
370490
  live: boolean;
370469
370491
  logs: string;
370470
- status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped");
370492
+ status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped" | "Cancelled");
370471
370493
  }
370472
370494
  export interface DeploymentJobRunsListInput {
370473
370495
  limit?: number;
@@ -370477,7 +370499,7 @@ export interface DeploymentJobRunsListInput {
370477
370499
  export interface DeploymentJobRunsListOutput {
370478
370500
  items: {
370479
370501
  id: string;
370480
- status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped");
370502
+ status: ("Running" | "Succeeded" | "Failed" | "TimedOut" | "Skipped" | "Cancelled");
370481
370503
  trigger: ("schedule" | "manual");
370482
370504
  exitCode: (number | null);
370483
370505
  createdAt: string;
@@ -370485,6 +370507,7 @@ export interface DeploymentJobRunsListOutput {
370485
370507
  startedAt: (string | null);
370486
370508
  finishedAt: (string | null);
370487
370509
  k8sJobName: string;
370510
+ cancelledBy: (string | null);
370488
370511
  imageDigest: (string | null);
370489
370512
  triggeredBy: (string | null);
370490
370513
  deploymentId: (string | null);
@@ -388923,332 +388946,6 @@ export interface OrganizationYoutubeInstallInput {
388923
388946
  export interface OrganizationYoutubeInstallOutput {
388924
388947
  url: string;
388925
388948
  }
388926
- export interface PlaygroundAnalyticsOverviewInput {
388927
- /**
388928
- * Max records per entity in recent[]; omit for the endpoint default
388929
- */
388930
- limit?: number;
388931
- }
388932
- export interface PlaygroundAnalyticsOverviewOutput {
388933
- ok: boolean;
388934
- minted: boolean;
388935
- overview?: unknown;
388936
- http_status: number;
388937
- }
388938
- export interface PlaygroundBillingEntitlementsInput {
388939
- }
388940
- export interface PlaygroundBillingEntitlementsOutput {
388941
- ok: boolean;
388942
- minted: boolean;
388943
- http_status: number;
388944
- entitlements?: unknown;
388945
- }
388946
- export interface PlaygroundBillingRecordUsageInput {
388947
- /**
388948
- * Quantity of events to record against playground-events (SUM); defaults to 1
388949
- */
388950
- value?: number;
388951
- }
388952
- export interface PlaygroundBillingRecordUsageOutput {
388953
- minted: boolean;
388954
- accepted: (number | null);
388955
- recorded: boolean;
388956
- duplicates: (number | null);
388957
- http_status: number;
388958
- }
388959
- export interface PlaygroundClickupCreateTaskInput {
388960
- /**
388961
- * Task title; defaults to a fixture label
388962
- */
388963
- name?: string;
388964
- /**
388965
- * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
388966
- */
388967
- listId?: string;
388968
- }
388969
- export interface PlaygroundClickupCreateTaskOutput {
388970
- minted: boolean;
388971
- task_id: (string | null);
388972
- list_status: number;
388973
- vend_status: number;
388974
- clickup_status: number;
388975
- installation_count: number;
388976
- }
388977
- export interface PlaygroundClickupGetLastWebhookInput {
388978
- }
388979
- export type PlaygroundClickupGetLastWebhookOutput = ({
388980
- payload: string;
388981
- event_id: string;
388982
- provider: string;
388983
- verified: boolean;
388984
- product_id: string;
388985
- occurred_at: string;
388986
- connector_id: string;
388987
- clickup_event: (string | null);
388988
- receipt_count: number;
388989
- } | {
388990
- found: false;
388991
- });
388992
- export interface PlaygroundClickupGetOverviewInput {
388993
- }
388994
- export interface PlaygroundClickupGetOverviewOutput {
388995
- team: ({
388996
- teamId: string;
388997
- teamName: string;
388998
- } | null);
388999
- lists: PlaygroundClickupGetOverviewOutputItems[];
389000
- tasks: {
389001
- id: string;
389002
- name: string;
389003
- status: (string | null);
389004
- }[];
389005
- minted: boolean;
389006
- spaces: PlaygroundClickupGetOverviewOutputItems[];
389007
- list_status: number;
389008
- vend_status: number;
389009
- lists_status: number;
389010
- tasks_status: number;
389011
- spaces_status: number;
389012
- folders_status: number;
389013
- installation_count: number;
389014
- }
389015
- export interface PlaygroundClickupGetOverviewOutputItems {
389016
- id: string;
389017
- name: string;
389018
- }
389019
- export interface PlaygroundEchoPingInput {
389020
- /**
389021
- * The text to echo back, 1–1024 characters
389022
- */
389023
- message: string;
389024
- }
389025
- export interface PlaygroundEchoPingOutput {
389026
- /**
389027
- * The message exactly as it was received
389028
- */
389029
- message: string;
389030
- /**
389031
- * The product the call was resolved to
389032
- */
389033
- productId: string;
389034
- /**
389035
- * ISO-8601 instant (UTC) at which the call reached the service
389036
- */
389037
- receivedAt: string;
389038
- }
389039
- export interface PlaygroundGdriveGetLastChangeInput {
389040
- }
389041
- export type PlaygroundGdriveGetLastChangeOutput = ({
389042
- file_id: string;
389043
- removed: boolean;
389044
- file_name: (string | null);
389045
- mime_type: (string | null);
389046
- product_id: string;
389047
- occurred_at: string;
389048
- connector_id: string;
389049
- resource_state: string;
389050
- } | {
389051
- found: false;
389052
- });
389053
- export interface PlaygroundGdriveReadFileInput {
389054
- /**
389055
- * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
389056
- */
389057
- fileId?: string;
389058
- }
389059
- export interface PlaygroundGdriveReadFileOutput {
389060
- minted: boolean;
389061
- file_id: (string | null);
389062
- file_name: (string | null);
389063
- mime_type: (string | null);
389064
- file_count: number;
389065
- get_status: number;
389066
- list_status: number;
389067
- vend_status: number;
389068
- content_bytes: (number | null);
389069
- }
389070
- export interface PlaygroundGoogleadsReadCustomerInput {
389071
- }
389072
- export interface PlaygroundGoogleadsReadCustomerOutput {
389073
- minted: boolean;
389074
- vended: boolean;
389075
- customer_id: (string | null);
389076
- vend_status: number;
389077
- result_count: number;
389078
- search_status: number;
389079
- login_customer_id: (string | null);
389080
- }
389081
- export interface PlaygroundLifecycleGetStateInput {
389082
- }
389083
- export interface PlaygroundLifecycleGetStateOutput {
389084
- blocked: boolean;
389085
- archived: boolean;
389086
- productId: string;
389087
- lastBlockTransition: ({
389088
- eventId: string;
389089
- eventName: string;
389090
- productId: string;
389091
- occurredAt: string;
389092
- recordedAt: string;
389093
- receiptCount: number;
389094
- organizationId: string;
389095
- cascadedFromOrg: boolean;
389096
- } | null);
389097
- lastArchiveTransition: ({
389098
- eventId: string;
389099
- eventName: string;
389100
- productId: string;
389101
- occurredAt: string;
389102
- recordedAt: string;
389103
- receiptCount: number;
389104
- organizationId: string;
389105
- cascadedFromOrg: boolean;
389106
- } | null);
389107
- }
389108
- export interface PlaygroundLifecycleListEventsInput {
389109
- }
389110
- export type PlaygroundLifecycleListEventsOutput = {
389111
- eventId: string;
389112
- eventName: string;
389113
- productId: string;
389114
- occurredAt: string;
389115
- recordedAt: string;
389116
- receiptCount: number;
389117
- organizationId: string;
389118
- cascadedFromOrg: boolean;
389119
- }[];
389120
- export interface PlaygroundWebhookGetLastInput {
389121
- }
389122
- export type PlaygroundWebhookGetLastOutput = ({
389123
- payload?: unknown;
389124
- event_id: string;
389125
- provider: string;
389126
- verified: boolean;
389127
- product_id: string;
389128
- occurred_at: string;
389129
- connector_id: string;
389130
- delivery_count: number;
389131
- } | {
389132
- found: false;
389133
- });
389134
- export interface PlaygroundWorkflowEchoInput {
389135
- /**
389136
- * The text to store, 1–1024 characters
389137
- */
389138
- note: string;
389139
- /**
389140
- * Optional labels stored alongside the note, at most 20
389141
- *
389142
- * @maxItems 20
389143
- */
389144
- tags?: [] | [string] | [string, string] | [string, string, string] | [string, string, string, string] | [string, string, string, string, string] | [string, string, string, string, string, string] | [string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string] | [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
389145
- }
389146
- export interface PlaygroundWorkflowEchoOutput {
389147
- /**
389148
- * Identifier of the stored echo
389149
- */
389150
- id: string;
389151
- /**
389152
- * The note exactly as it was received
389153
- */
389154
- note: string;
389155
- /**
389156
- * The tags exactly as they were received
389157
- */
389158
- tags: string[];
389159
- /**
389160
- * Correlation id for this echo. The playground/workflow.echoed event published about two seconds later repeats it, which is how a composer matches the completion back to this step.
389161
- */
389162
- echo_id: string;
389163
- /**
389164
- * ISO-8601 instant (UTC) at which the echo was stored
389165
- */
389166
- received_at: string;
389167
- }
389168
- export interface PlaygroundWorkflowEchoListInput {
389169
- }
389170
- export type PlaygroundWorkflowEchoListOutput = {
389171
- /**
389172
- * Identifier of the stored echo
389173
- */
389174
- id: string;
389175
- /**
389176
- * The note exactly as it was received
389177
- */
389178
- note: string;
389179
- /**
389180
- * The tags exactly as they were received
389181
- */
389182
- tags: string[];
389183
- /**
389184
- * ISO-8601 instant (UTC) at which the echo was stored
389185
- */
389186
- received_at: string;
389187
- }[];
389188
- export interface PlaygroundWorkflowPingInput {
389189
- /**
389190
- * Class of ping, echoed on the emitted event and filterable on the trigger. Defaults to 'manual'.
389191
- */
389192
- kind?: string;
389193
- }
389194
- export interface PlaygroundWorkflowPingOutput {
389195
- /**
389196
- * Correlation id for this ping. The emitted playground/workflow.ping event repeats it, which is how a composer matches the event back to this step.
389197
- */
389198
- id: string;
389199
- /**
389200
- * The name of the event that was published
389201
- */
389202
- event: string;
389203
- }
389204
- export interface PlaygroundWorkflowSubjectsListInput {
389205
- /**
389206
- * How many subjects to return, 1–100. Defaults to 25.
389207
- */
389208
- limit?: number;
389209
- /**
389210
- * The next_cursor of the previous page. Opaque — pass it back unchanged. Omit for the first page.
389211
- */
389212
- cursor?: string;
389213
- /**
389214
- * ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR AFTER this — the opposite question, the recently active population. Omit for no lower bound.
389215
- */
389216
- last_activity_after?: string;
389217
- /**
389218
- * ISO-8601 UTC instant. Return only subjects whose last_activity_at is AT OR BEFORE this — the "inactive for N days" question: pass now minus N days. Omit for no upper bound.
389219
- */
389220
- last_activity_before?: string;
389221
- }
389222
- export interface PlaygroundWorkflowSubjectsListOutput {
389223
- /**
389224
- * This page of subjects, most recently active first
389225
- */
389226
- items: {
389227
- /**
389228
- * Stable identifier for the subject. This is the field a batch trigger keys on, so a subject already served in an earlier run is skipped rather than served twice.
389229
- */
389230
- subject_key: string;
389231
- /**
389232
- * Human-readable name of the subject
389233
- */
389234
- display_name: string;
389235
- /**
389236
- * ISO-8601 instant (UTC) of the subject last activity
389237
- */
389238
- last_activity_at: string;
389239
- }[];
389240
- /**
389241
- * Whether another page follows. False and a null next_cursor both mark the last page, so a consumer that loops on either terminates.
389242
- */
389243
- has_more: boolean;
389244
- /**
389245
- * Pass back as `cursor` to fetch the next page; null on the last page. Always null when has_more is false.
389246
- */
389247
- next_cursor: (string | null);
389248
- }
389249
- export interface PlaygroundWsEchoInput {
389250
- }
389251
- export type PlaygroundWsEchoOutput = unknown;
389252
388949
  export interface RealtimeArchiveExportInput {
389253
388950
  /**
389254
388951
  * Only entries with ts <= to_ts (epoch ms)
@@ -213,6 +213,10 @@ var deploymentJobRunMutationOptions = (sdk) => ({
213
213
  mutationKey: ["deployment", "job", "run"],
214
214
  mutationFn: (input) => sdk["deployment"]["job"]["run"](input)
215
215
  });
216
+ var deploymentJobRunCancelMutationOptions = (sdk) => ({
217
+ mutationKey: ["deployment", "job-run", "cancel"],
218
+ mutationFn: (input) => sdk["deployment"]["job-run"]["cancel"](input)
219
+ });
216
220
  var deploymentJobRunLogsQueryOptions = (sdk, input) => ({
217
221
  queryKey: ["deployment", "job-run", "logs", input],
218
222
  queryFn: () => sdk["deployment"]["job-run"]["logs"](input)
@@ -510,6 +514,7 @@ exports.deploymentEnvironmentReconcileMutationOptions = deploymentEnvironmentRec
510
514
  exports.deploymentEnvironmentUpdateMutationOptions = deploymentEnvironmentUpdateMutationOptions;
511
515
  exports.deploymentEventsListByEnvironmentQueryOptions = deploymentEventsListByEnvironmentQueryOptions;
512
516
  exports.deploymentEventsListByServiceQueryOptions = deploymentEventsListByServiceQueryOptions;
517
+ exports.deploymentJobRunCancelMutationOptions = deploymentJobRunCancelMutationOptions;
513
518
  exports.deploymentJobRunLogsQueryOptions = deploymentJobRunLogsQueryOptions;
514
519
  exports.deploymentJobRunMutationOptions = deploymentJobRunMutationOptions;
515
520
  exports.deploymentJobRunsListQueryOptions = deploymentJobRunsListQueryOptions;