@lessly/sdk-app 63.2.1 → 63.2.3
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/_types/gen/client.gen.d.ts +1 -29
- package/dist/_types/gen/manifest.gen.d.ts +1 -1
- package/dist/_types/gen/types.gen.d.ts +0 -191
- package/dist/index.cjs +0 -140
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10297 -14
- package/dist/index.js.map +1 -1
- package/docs/recipes/access.md +19 -0
- package/docs/rules.md +13 -0
- package/package.json +2 -12
- package/src/gen/bindings.gen.ts +1 -137
- package/src/gen/client.gen.ts +0 -52
- package/src/gen/manifest.gen.ts +1 -13
- package/src/gen/types.gen.ts +0 -226
- package/dist/_types/gen/playground/connect.gen.d.ts +0 -3
- package/dist/_types/gen/playground/index.d.ts +0 -3
- package/dist/_types/gen/playground/queryOptions.gen.d.ts +0 -50
- package/dist/chunk-2YAA3AF4.js +0 -10437
- package/dist/chunk-2YAA3AF4.js.map +0 -1
- package/dist/playground/index.cjs +0 -81
- package/dist/playground/index.cjs.map +0 -1
- package/dist/playground/index.d.cts +0 -1
- package/dist/playground/index.d.ts +0 -1
- package/dist/playground/index.js +0 -58
- package/dist/playground/index.js.map +0 -1
- package/src/gen/playground/connect.gen.ts +0 -9
- package/src/gen/playground/index.ts +0 -4
- package/src/gen/playground/queryOptions.gen.ts +0 -86
package/docs/recipes/access.md
CHANGED
|
@@ -42,6 +42,25 @@ out at all.
|
|
|
42
42
|
the problem*, though — a failed `/me` is not a denial. See the state table in
|
|
43
43
|
§2 for what each `state` means for a control.
|
|
44
44
|
|
|
45
|
+
The snapshot lives **in the client instance** until `invalidate()` or until the
|
|
46
|
+
client itself is recreated. There is no TTL and no background refresh: a client
|
|
47
|
+
made once holds the role it loaded once, for as long as it lives.
|
|
48
|
+
|
|
49
|
+
That matters because a module-level singleton `createLesslyApp` client survives
|
|
50
|
+
SPA navigation and bfcache back/forward. A "reload" that does not remount the
|
|
51
|
+
remote — a router push, a browser Back into a restored page — keeps the old
|
|
52
|
+
snapshot, and the UI can lag the real role by minutes while `GET
|
|
53
|
+
products/:id/me` would answer correctly if anyone asked it. After a role change,
|
|
54
|
+
call `app.access.invalidate()` and then `load()` again (or do a full page
|
|
55
|
+
reload); do not wait for the snapshot to expire, because it never does.
|
|
56
|
+
|
|
57
|
+
Before you measure staleness, compare the role the App's own `/me` request
|
|
58
|
+
returned — read it in the Network tab — with what the API says now. Never assume
|
|
59
|
+
the role from memory: the two disagree exactly in the case you are debugging.
|
|
60
|
+
And it is never the HTTP cache alone: the server sends no `Cache-Control` for
|
|
61
|
+
`/me` today, so the browser only revalidates via `ETag`. Staleness you see is
|
|
62
|
+
the in-memory snapshot.
|
|
63
|
+
|
|
45
64
|
You can pass either a tool id or a generated method, which carries its own
|
|
46
65
|
identity:
|
|
47
66
|
|
package/docs/rules.md
CHANGED
|
@@ -506,4 +506,17 @@ through `isAccessDenied()` for the *words*, and MUST NOT reimplement the confirm
|
|
|
506
506
|
flow to win the colour — it would forfeit the focus trap, busy state, confirm
|
|
507
507
|
phrase and step-up. Tracked as platform #2915.
|
|
508
508
|
|
|
509
|
+
The snapshot has no TTL, so staleness is the App's to invalidate:
|
|
510
|
+
|
|
511
|
+
- The access snapshot lives in the client instance until `invalidate()` or until
|
|
512
|
+
the client is recreated — there is no expiry and no background refresh.
|
|
513
|
+
- A module-level singleton client survives SPA navigation and bfcache
|
|
514
|
+
back/forward, so a "reload" that does not remount the remote keeps the old
|
|
515
|
+
role. After a role change an App MUST call `app.access.invalidate()` and then
|
|
516
|
+
`load()` (or do a full page reload).
|
|
517
|
+
- Before measuring staleness, compare the role the App's own `/me` request
|
|
518
|
+
returned (Network tab) with what the API answers now — never assume it from
|
|
519
|
+
memory. The server sends no `Cache-Control` for `/me` today and the browser
|
|
520
|
+
only revalidates via `ETag`, so the HTTP cache alone is never the explanation.
|
|
521
|
+
|
|
509
522
|
See `recipes/access.md` for the load-once pattern and the empty-state shape.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessly/sdk-app",
|
|
3
|
-
"version": "63.2.
|
|
3
|
+
"version": "63.2.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"engines": {
|
|
@@ -148,16 +148,6 @@
|
|
|
148
148
|
"default": "./dist/organization/index.cjs"
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
|
-
"./playground": {
|
|
152
|
-
"import": {
|
|
153
|
-
"types": "./dist/playground/index.d.ts",
|
|
154
|
-
"default": "./dist/playground/index.js"
|
|
155
|
-
},
|
|
156
|
-
"require": {
|
|
157
|
-
"types": "./dist/playground/index.d.cts",
|
|
158
|
-
"default": "./dist/playground/index.cjs"
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
151
|
"./realtime": {
|
|
162
152
|
"import": {
|
|
163
153
|
"types": "./dist/realtime/index.d.ts",
|
|
@@ -209,5 +199,5 @@
|
|
|
209
199
|
}
|
|
210
200
|
}
|
|
211
201
|
},
|
|
212
|
-
"sdkContentHash": "sha256:
|
|
202
|
+
"sdkContentHash": "sha256:dd29109a46bbe0d03bc1d40d04cb3be51eecfdcc76db40b6eceead9bf9a05f9b"
|
|
213
203
|
}
|
package/src/gen/bindings.gen.ts
CHANGED
|
@@ -7116,134 +7116,6 @@ export const bindings: BindingsMap = {
|
|
|
7116
7116
|
}
|
|
7117
7117
|
}
|
|
7118
7118
|
},
|
|
7119
|
-
"playground": {
|
|
7120
|
-
"analytics": {
|
|
7121
|
-
"overview": {
|
|
7122
|
-
"level": "read",
|
|
7123
|
-
"method": "POST",
|
|
7124
|
-
"operationKey": "playground_analytics_overview",
|
|
7125
|
-
"params": [
|
|
7126
|
-
{
|
|
7127
|
-
"in": "body",
|
|
7128
|
-
"name": "limit"
|
|
7129
|
-
}
|
|
7130
|
-
],
|
|
7131
|
-
"path": "/playground/analytics/overview",
|
|
7132
|
-
"readOnly": true
|
|
7133
|
-
}
|
|
7134
|
-
},
|
|
7135
|
-
"billing": {
|
|
7136
|
-
"entitlements": {
|
|
7137
|
-
"level": "read",
|
|
7138
|
-
"method": "POST",
|
|
7139
|
-
"operationKey": "playground_billing_entitlements",
|
|
7140
|
-
"path": "/playground/billing/entitlements",
|
|
7141
|
-
"readOnly": true
|
|
7142
|
-
},
|
|
7143
|
-
"record-usage": {
|
|
7144
|
-
"level": "write",
|
|
7145
|
-
"method": "POST",
|
|
7146
|
-
"operationKey": "playground_billing_record-usage",
|
|
7147
|
-
"params": [
|
|
7148
|
-
{
|
|
7149
|
-
"in": "body",
|
|
7150
|
-
"name": "value"
|
|
7151
|
-
}
|
|
7152
|
-
],
|
|
7153
|
-
"path": "/playground/billing/usage",
|
|
7154
|
-
"readOnly": false
|
|
7155
|
-
}
|
|
7156
|
-
},
|
|
7157
|
-
"clickup": {
|
|
7158
|
-
"create-task": {
|
|
7159
|
-
"level": "write",
|
|
7160
|
-
"method": "POST",
|
|
7161
|
-
"operationKey": "playground_clickup_create-task",
|
|
7162
|
-
"params": [
|
|
7163
|
-
{
|
|
7164
|
-
"in": "body",
|
|
7165
|
-
"name": "listId"
|
|
7166
|
-
},
|
|
7167
|
-
{
|
|
7168
|
-
"in": "body",
|
|
7169
|
-
"name": "name"
|
|
7170
|
-
}
|
|
7171
|
-
],
|
|
7172
|
-
"path": "/playground/clickup/tasks",
|
|
7173
|
-
"readOnly": false
|
|
7174
|
-
},
|
|
7175
|
-
"get-last-webhook": {
|
|
7176
|
-
"level": "read",
|
|
7177
|
-
"method": "GET",
|
|
7178
|
-
"operationKey": "playground_clickup_get-last-webhook",
|
|
7179
|
-
"path": "/playground/clickup/webhooks/last",
|
|
7180
|
-
"readOnly": true
|
|
7181
|
-
},
|
|
7182
|
-
"get-overview": {
|
|
7183
|
-
"level": "read",
|
|
7184
|
-
"method": "GET",
|
|
7185
|
-
"operationKey": "playground_clickup_get-overview",
|
|
7186
|
-
"path": "/playground/clickup/overview",
|
|
7187
|
-
"readOnly": true
|
|
7188
|
-
}
|
|
7189
|
-
},
|
|
7190
|
-
"gdrive": {
|
|
7191
|
-
"get-last-change": {
|
|
7192
|
-
"level": "read",
|
|
7193
|
-
"method": "GET",
|
|
7194
|
-
"operationKey": "playground_gdrive_get-last-change",
|
|
7195
|
-
"path": "/playground/gdrive/changes/last",
|
|
7196
|
-
"readOnly": true
|
|
7197
|
-
},
|
|
7198
|
-
"read-file": {
|
|
7199
|
-
"level": "read",
|
|
7200
|
-
"method": "POST",
|
|
7201
|
-
"operationKey": "playground_gdrive_read-file",
|
|
7202
|
-
"params": [
|
|
7203
|
-
{
|
|
7204
|
-
"in": "body",
|
|
7205
|
-
"name": "fileId"
|
|
7206
|
-
}
|
|
7207
|
-
],
|
|
7208
|
-
"path": "/playground/gdrive/file",
|
|
7209
|
-
"readOnly": true
|
|
7210
|
-
}
|
|
7211
|
-
},
|
|
7212
|
-
"googleads": {
|
|
7213
|
-
"read-customer": {
|
|
7214
|
-
"level": "read",
|
|
7215
|
-
"method": "POST",
|
|
7216
|
-
"operationKey": "playground_googleads_read-customer",
|
|
7217
|
-
"path": "/playground/googleads/customer",
|
|
7218
|
-
"readOnly": true
|
|
7219
|
-
}
|
|
7220
|
-
},
|
|
7221
|
-
"lifecycle": {
|
|
7222
|
-
"get-state": {
|
|
7223
|
-
"level": "read",
|
|
7224
|
-
"method": "GET",
|
|
7225
|
-
"operationKey": "playground_lifecycle_get-state",
|
|
7226
|
-
"path": "/playground/lifecycle/state",
|
|
7227
|
-
"readOnly": true
|
|
7228
|
-
},
|
|
7229
|
-
"list-events": {
|
|
7230
|
-
"level": "read",
|
|
7231
|
-
"method": "GET",
|
|
7232
|
-
"operationKey": "playground_lifecycle_list-events",
|
|
7233
|
-
"path": "/playground/lifecycle/events",
|
|
7234
|
-
"readOnly": true
|
|
7235
|
-
}
|
|
7236
|
-
},
|
|
7237
|
-
"webhook": {
|
|
7238
|
-
"get-last": {
|
|
7239
|
-
"level": "read",
|
|
7240
|
-
"method": "GET",
|
|
7241
|
-
"operationKey": "playground_webhook_get-last",
|
|
7242
|
-
"path": "/playground/webhooks/last",
|
|
7243
|
-
"readOnly": true
|
|
7244
|
-
}
|
|
7245
|
-
}
|
|
7246
|
-
},
|
|
7247
7119
|
"realtime": {
|
|
7248
7120
|
"archive": {
|
|
7249
7121
|
"export": {
|
|
@@ -10425,12 +10297,4 @@ export const bindings: BindingsMap = {
|
|
|
10425
10297
|
}
|
|
10426
10298
|
};
|
|
10427
10299
|
|
|
10428
|
-
export const wsBindings: WsBindingsMap = {
|
|
10429
|
-
"playground": {
|
|
10430
|
-
"ws": {
|
|
10431
|
-
"echo": {
|
|
10432
|
-
"path": "/playground/ws/echo"
|
|
10433
|
-
}
|
|
10434
|
-
}
|
|
10435
|
-
}
|
|
10436
|
-
};
|
|
10300
|
+
export const wsBindings: WsBindingsMap = {};
|
package/src/gen/client.gen.ts
CHANGED
|
@@ -769,30 +769,6 @@ import type {
|
|
|
769
769
|
OrganizationXInstallOutput,
|
|
770
770
|
OrganizationYoutubeInstallInput,
|
|
771
771
|
OrganizationYoutubeInstallOutput,
|
|
772
|
-
PlaygroundAnalyticsOverviewInput,
|
|
773
|
-
PlaygroundAnalyticsOverviewOutput,
|
|
774
|
-
PlaygroundBillingEntitlementsInput,
|
|
775
|
-
PlaygroundBillingEntitlementsOutput,
|
|
776
|
-
PlaygroundBillingRecordUsageInput,
|
|
777
|
-
PlaygroundBillingRecordUsageOutput,
|
|
778
|
-
PlaygroundClickupCreateTaskInput,
|
|
779
|
-
PlaygroundClickupCreateTaskOutput,
|
|
780
|
-
PlaygroundClickupGetLastWebhookInput,
|
|
781
|
-
PlaygroundClickupGetLastWebhookOutput,
|
|
782
|
-
PlaygroundClickupGetOverviewInput,
|
|
783
|
-
PlaygroundClickupGetOverviewOutput,
|
|
784
|
-
PlaygroundGdriveGetLastChangeInput,
|
|
785
|
-
PlaygroundGdriveGetLastChangeOutput,
|
|
786
|
-
PlaygroundGdriveReadFileInput,
|
|
787
|
-
PlaygroundGdriveReadFileOutput,
|
|
788
|
-
PlaygroundGoogleadsReadCustomerInput,
|
|
789
|
-
PlaygroundGoogleadsReadCustomerOutput,
|
|
790
|
-
PlaygroundLifecycleGetStateInput,
|
|
791
|
-
PlaygroundLifecycleGetStateOutput,
|
|
792
|
-
PlaygroundLifecycleListEventsInput,
|
|
793
|
-
PlaygroundLifecycleListEventsOutput,
|
|
794
|
-
PlaygroundWebhookGetLastInput,
|
|
795
|
-
PlaygroundWebhookGetLastOutput,
|
|
796
772
|
RealtimeArchiveExportInput,
|
|
797
773
|
RealtimeArchiveExportOutput,
|
|
798
774
|
RealtimeArchiveExportStatusInput,
|
|
@@ -1802,34 +1778,6 @@ export interface GeneratedClient {
|
|
|
1802
1778
|
install: ((input: OrganizationYoutubeInstallInput) => Promise<OrganizationYoutubeInstallOutput>) & Operation;
|
|
1803
1779
|
};
|
|
1804
1780
|
};
|
|
1805
|
-
playground: {
|
|
1806
|
-
analytics: {
|
|
1807
|
-
overview: ((input: PlaygroundAnalyticsOverviewInput) => Promise<PlaygroundAnalyticsOverviewOutput>) & Operation;
|
|
1808
|
-
};
|
|
1809
|
-
billing: {
|
|
1810
|
-
entitlements: ((input: PlaygroundBillingEntitlementsInput) => Promise<PlaygroundBillingEntitlementsOutput>) & Operation;
|
|
1811
|
-
'record-usage': ((input: PlaygroundBillingRecordUsageInput) => Promise<PlaygroundBillingRecordUsageOutput>) & Operation;
|
|
1812
|
-
};
|
|
1813
|
-
clickup: {
|
|
1814
|
-
'create-task': ((input: PlaygroundClickupCreateTaskInput) => Promise<PlaygroundClickupCreateTaskOutput>) & Operation;
|
|
1815
|
-
'get-last-webhook': ((input: PlaygroundClickupGetLastWebhookInput) => Promise<PlaygroundClickupGetLastWebhookOutput>) & Operation;
|
|
1816
|
-
'get-overview': ((input: PlaygroundClickupGetOverviewInput) => Promise<PlaygroundClickupGetOverviewOutput>) & Operation;
|
|
1817
|
-
};
|
|
1818
|
-
gdrive: {
|
|
1819
|
-
'get-last-change': ((input: PlaygroundGdriveGetLastChangeInput) => Promise<PlaygroundGdriveGetLastChangeOutput>) & Operation;
|
|
1820
|
-
'read-file': ((input: PlaygroundGdriveReadFileInput) => Promise<PlaygroundGdriveReadFileOutput>) & Operation;
|
|
1821
|
-
};
|
|
1822
|
-
googleads: {
|
|
1823
|
-
'read-customer': ((input: PlaygroundGoogleadsReadCustomerInput) => Promise<PlaygroundGoogleadsReadCustomerOutput>) & Operation;
|
|
1824
|
-
};
|
|
1825
|
-
lifecycle: {
|
|
1826
|
-
'get-state': ((input: PlaygroundLifecycleGetStateInput) => Promise<PlaygroundLifecycleGetStateOutput>) & Operation;
|
|
1827
|
-
'list-events': ((input: PlaygroundLifecycleListEventsInput) => Promise<PlaygroundLifecycleListEventsOutput>) & Operation;
|
|
1828
|
-
};
|
|
1829
|
-
webhook: {
|
|
1830
|
-
'get-last': ((input: PlaygroundWebhookGetLastInput) => Promise<PlaygroundWebhookGetLastOutput>) & Operation;
|
|
1831
|
-
};
|
|
1832
|
-
};
|
|
1833
1781
|
realtime: {
|
|
1834
1782
|
archive: {
|
|
1835
1783
|
export: ((input: RealtimeArchiveExportInput) => Promise<RealtimeArchiveExportOutput>) & Operation;
|
package/src/gen/manifest.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// AUTOGENERATED by scripts/generate.ts — do not edit.
|
|
2
2
|
import type { ToolLevel } from '../runtime/types';
|
|
3
3
|
|
|
4
|
-
export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', '
|
|
4
|
+
export const namespaces = ['analytics', 'brain', 'consent', 'content', 'deployment', 'mail', 'observe', 'organization', 'realtime', 'support', 'tracking', 'users', 'waitlist'] as const;
|
|
5
5
|
|
|
6
6
|
export const operations: Record<string, ToolLevel> = {
|
|
7
7
|
'analytics_catalog_get': 'read',
|
|
@@ -388,18 +388,6 @@ export const operations: Record<string, ToolLevel> = {
|
|
|
388
388
|
'organization_support_threads_list': 'read',
|
|
389
389
|
'organization_x_install': 'read',
|
|
390
390
|
'organization_youtube_install': 'read',
|
|
391
|
-
'playground_analytics_overview': 'read',
|
|
392
|
-
'playground_billing_entitlements': 'read',
|
|
393
|
-
'playground_billing_record-usage': 'write',
|
|
394
|
-
'playground_clickup_create-task': 'write',
|
|
395
|
-
'playground_clickup_get-last-webhook': 'read',
|
|
396
|
-
'playground_clickup_get-overview': 'read',
|
|
397
|
-
'playground_gdrive_get-last-change': 'read',
|
|
398
|
-
'playground_gdrive_read-file': 'read',
|
|
399
|
-
'playground_googleads_read-customer': 'read',
|
|
400
|
-
'playground_lifecycle_get-state': 'read',
|
|
401
|
-
'playground_lifecycle_list-events': 'read',
|
|
402
|
-
'playground_webhook_get-last': 'read',
|
|
403
391
|
'realtime_archive_export': 'admin',
|
|
404
392
|
'realtime_archive_export_status': 'read',
|
|
405
393
|
'realtime_archive_get': 'read',
|
package/src/gen/types.gen.ts
CHANGED
|
@@ -85727,232 +85727,6 @@ export interface OrganizationYoutubeInstallOutput {
|
|
|
85727
85727
|
url: string
|
|
85728
85728
|
}
|
|
85729
85729
|
|
|
85730
|
-
export interface PlaygroundAnalyticsOverviewInput {
|
|
85731
|
-
/**
|
|
85732
|
-
* Max records per entity in recent[]; omit for the endpoint default
|
|
85733
|
-
*/
|
|
85734
|
-
limit?: number
|
|
85735
|
-
}
|
|
85736
|
-
|
|
85737
|
-
export interface PlaygroundAnalyticsOverviewOutput {
|
|
85738
|
-
ok: boolean
|
|
85739
|
-
minted: boolean
|
|
85740
|
-
overview?: unknown
|
|
85741
|
-
http_status: number
|
|
85742
|
-
}
|
|
85743
|
-
|
|
85744
|
-
export interface PlaygroundBillingEntitlementsInput {
|
|
85745
|
-
|
|
85746
|
-
}
|
|
85747
|
-
|
|
85748
|
-
export interface PlaygroundBillingEntitlementsOutput {
|
|
85749
|
-
ok: boolean
|
|
85750
|
-
minted: boolean
|
|
85751
|
-
http_status: number
|
|
85752
|
-
entitlements?: unknown
|
|
85753
|
-
}
|
|
85754
|
-
|
|
85755
|
-
export interface PlaygroundBillingRecordUsageInput {
|
|
85756
|
-
/**
|
|
85757
|
-
* Quantity of events to record against playground-events (SUM); defaults to 1
|
|
85758
|
-
*/
|
|
85759
|
-
value?: number
|
|
85760
|
-
}
|
|
85761
|
-
|
|
85762
|
-
export interface PlaygroundBillingRecordUsageOutput {
|
|
85763
|
-
minted: boolean
|
|
85764
|
-
accepted: (number | null)
|
|
85765
|
-
recorded: boolean
|
|
85766
|
-
duplicates: (number | null)
|
|
85767
|
-
http_status: number
|
|
85768
|
-
}
|
|
85769
|
-
|
|
85770
|
-
export interface PlaygroundClickupCreateTaskInput {
|
|
85771
|
-
/**
|
|
85772
|
-
* Task title; defaults to a fixture label
|
|
85773
|
-
*/
|
|
85774
|
-
name?: string
|
|
85775
|
-
/**
|
|
85776
|
-
* ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
|
|
85777
|
-
*/
|
|
85778
|
-
listId?: string
|
|
85779
|
-
}
|
|
85780
|
-
|
|
85781
|
-
export interface PlaygroundClickupCreateTaskOutput {
|
|
85782
|
-
minted: boolean
|
|
85783
|
-
task_id: (string | null)
|
|
85784
|
-
list_status: number
|
|
85785
|
-
vend_status: number
|
|
85786
|
-
clickup_status: number
|
|
85787
|
-
installation_count: number
|
|
85788
|
-
}
|
|
85789
|
-
|
|
85790
|
-
export interface PlaygroundClickupGetLastWebhookInput {
|
|
85791
|
-
|
|
85792
|
-
}
|
|
85793
|
-
|
|
85794
|
-
export type PlaygroundClickupGetLastWebhookOutput = ({
|
|
85795
|
-
payload: string
|
|
85796
|
-
event_id: string
|
|
85797
|
-
provider: string
|
|
85798
|
-
verified: boolean
|
|
85799
|
-
product_id: string
|
|
85800
|
-
occurred_at: string
|
|
85801
|
-
connector_id: string
|
|
85802
|
-
clickup_event: (string | null)
|
|
85803
|
-
receipt_count: number
|
|
85804
|
-
} | {
|
|
85805
|
-
found: false
|
|
85806
|
-
})
|
|
85807
|
-
|
|
85808
|
-
export interface PlaygroundClickupGetOverviewInput {
|
|
85809
|
-
|
|
85810
|
-
}
|
|
85811
|
-
|
|
85812
|
-
export interface PlaygroundClickupGetOverviewOutput {
|
|
85813
|
-
team: ({
|
|
85814
|
-
teamId: string
|
|
85815
|
-
teamName: string
|
|
85816
|
-
} | null)
|
|
85817
|
-
lists: PlaygroundClickupGetOverviewOutputItems[]
|
|
85818
|
-
tasks: {
|
|
85819
|
-
id: string
|
|
85820
|
-
name: string
|
|
85821
|
-
status: (string | null)
|
|
85822
|
-
}[]
|
|
85823
|
-
minted: boolean
|
|
85824
|
-
spaces: PlaygroundClickupGetOverviewOutputItems[]
|
|
85825
|
-
list_status: number
|
|
85826
|
-
vend_status: number
|
|
85827
|
-
lists_status: number
|
|
85828
|
-
tasks_status: number
|
|
85829
|
-
spaces_status: number
|
|
85830
|
-
folders_status: number
|
|
85831
|
-
installation_count: number
|
|
85832
|
-
}
|
|
85833
|
-
export interface PlaygroundClickupGetOverviewOutputItems {
|
|
85834
|
-
id: string
|
|
85835
|
-
name: string
|
|
85836
|
-
}
|
|
85837
|
-
|
|
85838
|
-
export interface PlaygroundGdriveGetLastChangeInput {
|
|
85839
|
-
|
|
85840
|
-
}
|
|
85841
|
-
|
|
85842
|
-
export type PlaygroundGdriveGetLastChangeOutput = ({
|
|
85843
|
-
file_id: string
|
|
85844
|
-
removed: boolean
|
|
85845
|
-
file_name: (string | null)
|
|
85846
|
-
mime_type: (string | null)
|
|
85847
|
-
product_id: string
|
|
85848
|
-
occurred_at: string
|
|
85849
|
-
connector_id: string
|
|
85850
|
-
resource_state: string
|
|
85851
|
-
} | {
|
|
85852
|
-
found: false
|
|
85853
|
-
})
|
|
85854
|
-
|
|
85855
|
-
export interface PlaygroundGdriveReadFileInput {
|
|
85856
|
-
/**
|
|
85857
|
-
* Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
|
|
85858
|
-
*/
|
|
85859
|
-
fileId?: string
|
|
85860
|
-
}
|
|
85861
|
-
|
|
85862
|
-
export interface PlaygroundGdriveReadFileOutput {
|
|
85863
|
-
minted: boolean
|
|
85864
|
-
file_id: (string | null)
|
|
85865
|
-
file_name: (string | null)
|
|
85866
|
-
mime_type: (string | null)
|
|
85867
|
-
file_count: number
|
|
85868
|
-
get_status: number
|
|
85869
|
-
list_status: number
|
|
85870
|
-
vend_status: number
|
|
85871
|
-
content_bytes: (number | null)
|
|
85872
|
-
}
|
|
85873
|
-
|
|
85874
|
-
export interface PlaygroundGoogleadsReadCustomerInput {
|
|
85875
|
-
|
|
85876
|
-
}
|
|
85877
|
-
|
|
85878
|
-
export interface PlaygroundGoogleadsReadCustomerOutput {
|
|
85879
|
-
minted: boolean
|
|
85880
|
-
vended: boolean
|
|
85881
|
-
customer_id: (string | null)
|
|
85882
|
-
vend_status: number
|
|
85883
|
-
result_count: number
|
|
85884
|
-
search_status: number
|
|
85885
|
-
login_customer_id: (string | null)
|
|
85886
|
-
}
|
|
85887
|
-
|
|
85888
|
-
export interface PlaygroundLifecycleGetStateInput {
|
|
85889
|
-
|
|
85890
|
-
}
|
|
85891
|
-
|
|
85892
|
-
export interface PlaygroundLifecycleGetStateOutput {
|
|
85893
|
-
blocked: boolean
|
|
85894
|
-
archived: boolean
|
|
85895
|
-
productId: string
|
|
85896
|
-
lastBlockTransition: ({
|
|
85897
|
-
eventId: string
|
|
85898
|
-
eventName: string
|
|
85899
|
-
productId: string
|
|
85900
|
-
occurredAt: string
|
|
85901
|
-
recordedAt: string
|
|
85902
|
-
receiptCount: number
|
|
85903
|
-
organizationId: string
|
|
85904
|
-
cascadedFromOrg: boolean
|
|
85905
|
-
} | null)
|
|
85906
|
-
lastArchiveTransition: ({
|
|
85907
|
-
eventId: string
|
|
85908
|
-
eventName: string
|
|
85909
|
-
productId: string
|
|
85910
|
-
occurredAt: string
|
|
85911
|
-
recordedAt: string
|
|
85912
|
-
receiptCount: number
|
|
85913
|
-
organizationId: string
|
|
85914
|
-
cascadedFromOrg: boolean
|
|
85915
|
-
} | null)
|
|
85916
|
-
}
|
|
85917
|
-
|
|
85918
|
-
export interface PlaygroundLifecycleListEventsInput {
|
|
85919
|
-
|
|
85920
|
-
}
|
|
85921
|
-
|
|
85922
|
-
export type PlaygroundLifecycleListEventsOutput = {
|
|
85923
|
-
eventId: string
|
|
85924
|
-
eventName: string
|
|
85925
|
-
productId: string
|
|
85926
|
-
occurredAt: string
|
|
85927
|
-
recordedAt: string
|
|
85928
|
-
receiptCount: number
|
|
85929
|
-
organizationId: string
|
|
85930
|
-
cascadedFromOrg: boolean
|
|
85931
|
-
}[]
|
|
85932
|
-
|
|
85933
|
-
export interface PlaygroundWebhookGetLastInput {
|
|
85934
|
-
|
|
85935
|
-
}
|
|
85936
|
-
|
|
85937
|
-
export type PlaygroundWebhookGetLastOutput = ({
|
|
85938
|
-
payload?: unknown
|
|
85939
|
-
event_id: string
|
|
85940
|
-
provider: string
|
|
85941
|
-
verified: boolean
|
|
85942
|
-
product_id: string
|
|
85943
|
-
occurred_at: string
|
|
85944
|
-
connector_id: string
|
|
85945
|
-
delivery_count: number
|
|
85946
|
-
} | {
|
|
85947
|
-
found: false
|
|
85948
|
-
})
|
|
85949
|
-
|
|
85950
|
-
export interface PlaygroundWsEchoInput {
|
|
85951
|
-
|
|
85952
|
-
}
|
|
85953
|
-
|
|
85954
|
-
export type PlaygroundWsEchoOutput = unknown;
|
|
85955
|
-
|
|
85956
85730
|
export interface RealtimeArchiveExportInput {
|
|
85957
85731
|
/**
|
|
85958
85732
|
* Only entries with ts <= to_ts (epoch ms)
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './queryOptions.gen.js';
|
|
2
|
-
export * from './connect.gen.js';
|
|
3
|
-
export type { PlaygroundAnalyticsOverviewInput, PlaygroundAnalyticsOverviewOutput, PlaygroundBillingEntitlementsInput, PlaygroundBillingEntitlementsOutput, PlaygroundBillingRecordUsageInput, PlaygroundBillingRecordUsageOutput, PlaygroundClickupCreateTaskInput, PlaygroundClickupCreateTaskOutput, PlaygroundClickupGetLastWebhookInput, PlaygroundClickupGetLastWebhookOutput, PlaygroundClickupGetOverviewInput, PlaygroundClickupGetOverviewOutput, PlaygroundGdriveGetLastChangeInput, PlaygroundGdriveGetLastChangeOutput, PlaygroundGdriveReadFileInput, PlaygroundGdriveReadFileOutput, PlaygroundGoogleadsReadCustomerInput, PlaygroundGoogleadsReadCustomerOutput, PlaygroundLifecycleGetStateInput, PlaygroundLifecycleGetStateOutput, PlaygroundLifecycleListEventsInput, PlaygroundLifecycleListEventsOutput, PlaygroundWebhookGetLastInput, PlaygroundWebhookGetLastOutput, PlaygroundWsEchoInput } from '../types.gen.js';
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import type { GeneratedClient } from '../client.gen.js';
|
|
2
|
-
import type { PlaygroundAnalyticsOverviewInput, PlaygroundAnalyticsOverviewOutput, PlaygroundBillingEntitlementsInput, PlaygroundBillingEntitlementsOutput, PlaygroundBillingRecordUsageInput, PlaygroundClickupCreateTaskInput, PlaygroundClickupGetLastWebhookInput, PlaygroundClickupGetLastWebhookOutput, PlaygroundClickupGetOverviewInput, PlaygroundClickupGetOverviewOutput, PlaygroundGdriveGetLastChangeInput, PlaygroundGdriveGetLastChangeOutput, PlaygroundGdriveReadFileInput, PlaygroundGdriveReadFileOutput, PlaygroundGoogleadsReadCustomerInput, PlaygroundGoogleadsReadCustomerOutput, PlaygroundLifecycleGetStateInput, PlaygroundLifecycleGetStateOutput, PlaygroundLifecycleListEventsInput, PlaygroundLifecycleListEventsOutput, PlaygroundWebhookGetLastInput, PlaygroundWebhookGetLastOutput } from '../types.gen.js';
|
|
3
|
-
export declare const playgroundAnalyticsOverviewQueryOptions: (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => {
|
|
4
|
-
queryKey: readonly ["playground", "analytics", "overview", PlaygroundAnalyticsOverviewInput];
|
|
5
|
-
queryFn: () => Promise<PlaygroundAnalyticsOverviewOutput>;
|
|
6
|
-
};
|
|
7
|
-
export declare const playgroundBillingEntitlementsQueryOptions: (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => {
|
|
8
|
-
queryKey: readonly ["playground", "billing", "entitlements", PlaygroundBillingEntitlementsInput];
|
|
9
|
-
queryFn: () => Promise<PlaygroundBillingEntitlementsOutput>;
|
|
10
|
-
};
|
|
11
|
-
export declare const playgroundBillingRecordUsageMutationOptions: (sdk: GeneratedClient) => {
|
|
12
|
-
mutationKey: string[];
|
|
13
|
-
mutationFn: (input: PlaygroundBillingRecordUsageInput) => Promise<import(".").PlaygroundBillingRecordUsageOutput>;
|
|
14
|
-
};
|
|
15
|
-
export declare const playgroundClickupCreateTaskMutationOptions: (sdk: GeneratedClient) => {
|
|
16
|
-
mutationKey: string[];
|
|
17
|
-
mutationFn: (input: PlaygroundClickupCreateTaskInput) => Promise<import(".").PlaygroundClickupCreateTaskOutput>;
|
|
18
|
-
};
|
|
19
|
-
export declare const playgroundClickupGetLastWebhookQueryOptions: (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => {
|
|
20
|
-
queryKey: readonly ["playground", "clickup", "get-last-webhook", PlaygroundClickupGetLastWebhookInput];
|
|
21
|
-
queryFn: () => Promise<PlaygroundClickupGetLastWebhookOutput>;
|
|
22
|
-
};
|
|
23
|
-
export declare const playgroundClickupGetOverviewQueryOptions: (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => {
|
|
24
|
-
queryKey: readonly ["playground", "clickup", "get-overview", PlaygroundClickupGetOverviewInput];
|
|
25
|
-
queryFn: () => Promise<PlaygroundClickupGetOverviewOutput>;
|
|
26
|
-
};
|
|
27
|
-
export declare const playgroundGdriveGetLastChangeQueryOptions: (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => {
|
|
28
|
-
queryKey: readonly ["playground", "gdrive", "get-last-change", PlaygroundGdriveGetLastChangeInput];
|
|
29
|
-
queryFn: () => Promise<PlaygroundGdriveGetLastChangeOutput>;
|
|
30
|
-
};
|
|
31
|
-
export declare const playgroundGdriveReadFileQueryOptions: (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => {
|
|
32
|
-
queryKey: readonly ["playground", "gdrive", "read-file", PlaygroundGdriveReadFileInput];
|
|
33
|
-
queryFn: () => Promise<PlaygroundGdriveReadFileOutput>;
|
|
34
|
-
};
|
|
35
|
-
export declare const playgroundGoogleadsReadCustomerQueryOptions: (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => {
|
|
36
|
-
queryKey: readonly ["playground", "googleads", "read-customer", PlaygroundGoogleadsReadCustomerInput];
|
|
37
|
-
queryFn: () => Promise<PlaygroundGoogleadsReadCustomerOutput>;
|
|
38
|
-
};
|
|
39
|
-
export declare const playgroundLifecycleGetStateQueryOptions: (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => {
|
|
40
|
-
queryKey: readonly ["playground", "lifecycle", "get-state", PlaygroundLifecycleGetStateInput];
|
|
41
|
-
queryFn: () => Promise<PlaygroundLifecycleGetStateOutput>;
|
|
42
|
-
};
|
|
43
|
-
export declare const playgroundLifecycleListEventsQueryOptions: (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => {
|
|
44
|
-
queryKey: readonly ["playground", "lifecycle", "list-events", PlaygroundLifecycleListEventsInput];
|
|
45
|
-
queryFn: () => Promise<PlaygroundLifecycleListEventsOutput>;
|
|
46
|
-
};
|
|
47
|
-
export declare const playgroundWebhookGetLastQueryOptions: (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => {
|
|
48
|
-
queryKey: readonly ["playground", "webhook", "get-last", PlaygroundWebhookGetLastInput];
|
|
49
|
-
queryFn: () => Promise<PlaygroundWebhookGetLastOutput>;
|
|
50
|
-
};
|