@amigo-ai/platform-sdk 0.55.0 → 0.57.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/README.md +9 -16
- package/api.md +9 -31
- package/dist/core/branded-types.js +0 -1
- package/dist/core/branded-types.js.map +1 -1
- package/dist/index.cjs +67 -212
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +67 -212
- package/dist/index.mjs.map +4 -4
- package/dist/resources/fhir.js +1 -7
- package/dist/resources/fhir.js.map +1 -1
- package/dist/resources/settings.js +1 -19
- package/dist/resources/settings.js.map +1 -1
- package/dist/resources/workspace-data-queries.js +41 -0
- package/dist/resources/workspace-data-queries.js.map +1 -0
- package/dist/resources/world.js +0 -27
- package/dist/resources/world.js.map +1 -1
- package/dist/types/core/branded-types.d.ts +0 -2
- package/dist/types/core/branded-types.d.ts.map +1 -1
- package/dist/types/generated/api.d.ts +839 -2593
- package/dist/types/generated/api.d.ts.map +1 -1
- package/dist/types/index.d.cts +6 -6
- package/dist/types/index.d.cts.map +1 -1
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/resources/actions.d.ts +0 -5
- package/dist/types/resources/actions.d.ts.map +1 -1
- package/dist/types/resources/calls.d.ts +12 -0
- package/dist/types/resources/calls.d.ts.map +1 -1
- package/dist/types/resources/fhir.d.ts +1 -22
- package/dist/types/resources/fhir.d.ts.map +1 -1
- package/dist/types/resources/intake.d.ts.map +1 -1
- package/dist/types/resources/metrics.d.ts +6 -2
- package/dist/types/resources/metrics.d.ts.map +1 -1
- package/dist/types/resources/operators.d.ts.map +1 -1
- package/dist/types/resources/services.d.ts +135 -10
- package/dist/types/resources/services.d.ts.map +1 -1
- package/dist/types/resources/settings.d.ts +5 -143
- package/dist/types/resources/settings.d.ts.map +1 -1
- package/dist/types/resources/skills.d.ts +0 -5
- package/dist/types/resources/skills.d.ts.map +1 -1
- package/dist/types/resources/surfaces.d.ts.map +1 -1
- package/dist/types/resources/workspace-data-queries.d.ts +22 -0
- package/dist/types/resources/workspace-data-queries.d.ts.map +1 -0
- package/dist/types/resources/world.d.ts +25 -82
- package/dist/types/resources/world.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/resources/personas.js +0 -34
- package/dist/resources/personas.js.map +0 -1
- package/dist/resources/webhook-destinations.js +0 -50
- package/dist/resources/webhook-destinations.js.map +0 -1
- package/dist/types/resources/personas.d.ts +0 -87
- package/dist/types/resources/personas.d.ts.map +0 -1
- package/dist/types/resources/webhook-destinations.d.ts +0 -125
- package/dist/types/resources/webhook-destinations.d.ts.map +0 -1
|
@@ -342,12 +342,19 @@ export declare class WorldResource extends WorkspaceScopedResource {
|
|
|
342
342
|
}): Promise<{
|
|
343
343
|
entity_id: string;
|
|
344
344
|
events: {
|
|
345
|
-
|
|
345
|
+
amount?: number | null | undefined;
|
|
346
|
+
call_sid?: (import("../index.js").components["schemas"]["EventCallSidString"] | null) | undefined;
|
|
347
|
+
channel?: (import("../index.js").components["schemas"]["EventChannelString"] | null) | undefined;
|
|
348
|
+
confidence?: number | null | undefined;
|
|
346
349
|
created_at?: string | null | undefined;
|
|
347
350
|
data?: {
|
|
348
351
|
[x: string]: unknown;
|
|
349
352
|
} | undefined;
|
|
353
|
+
description?: (import("../index.js").components["schemas"]["EventDescriptionString"] | null) | undefined;
|
|
354
|
+
direction?: (import("../index.js").components["schemas"]["EventDirectionString"] | null) | undefined;
|
|
355
|
+
display_name?: (import("../index.js").components["schemas"]["EventDisplayNameString"] | null) | undefined;
|
|
350
356
|
domain: string;
|
|
357
|
+
duration_seconds?: number | null | undefined;
|
|
351
358
|
effective_at?: string | null | undefined;
|
|
352
359
|
entity_type?: string | null | undefined;
|
|
353
360
|
event_subtype?: string | null | undefined;
|
|
@@ -356,10 +363,12 @@ export declare class WorldResource extends WorkspaceScopedResource {
|
|
|
356
363
|
fhir_resource_type?: string | null | undefined;
|
|
357
364
|
id: string;
|
|
358
365
|
ingested_at?: string | null | undefined;
|
|
359
|
-
is_current?: boolean | undefined;
|
|
366
|
+
is_current?: boolean | null | undefined;
|
|
367
|
+
outcome?: (import("../index.js").components["schemas"]["EventOutcomeString"] | null) | undefined;
|
|
360
368
|
produced_by_agent?: string | null | undefined;
|
|
361
|
-
source?: string | undefined;
|
|
369
|
+
source?: string | null | undefined;
|
|
362
370
|
source_system?: string | null | undefined;
|
|
371
|
+
status?: (import("../index.js").components["schemas"]["EventStatusString"] | null) | undefined;
|
|
363
372
|
supersedes?: string | null | undefined;
|
|
364
373
|
sync_error?: string | null | undefined;
|
|
365
374
|
sync_status?: ("pending" | "synced" | "failed" | "processing" | "not_applicable") | null | undefined;
|
|
@@ -374,12 +383,19 @@ export declare class WorldResource extends WorkspaceScopedResource {
|
|
|
374
383
|
limit?: number;
|
|
375
384
|
offset?: number;
|
|
376
385
|
}): AsyncGenerator<{
|
|
377
|
-
|
|
386
|
+
amount?: number | null | undefined;
|
|
387
|
+
call_sid?: (import("../index.js").components["schemas"]["EventCallSidString"] | null) | undefined;
|
|
388
|
+
channel?: (import("../index.js").components["schemas"]["EventChannelString"] | null) | undefined;
|
|
389
|
+
confidence?: number | null | undefined;
|
|
378
390
|
created_at?: string | null | undefined;
|
|
379
391
|
data?: {
|
|
380
392
|
[x: string]: unknown;
|
|
381
393
|
} | undefined;
|
|
394
|
+
description?: (import("../index.js").components["schemas"]["EventDescriptionString"] | null) | undefined;
|
|
395
|
+
direction?: (import("../index.js").components["schemas"]["EventDirectionString"] | null) | undefined;
|
|
396
|
+
display_name?: (import("../index.js").components["schemas"]["EventDisplayNameString"] | null) | undefined;
|
|
382
397
|
domain: string;
|
|
398
|
+
duration_seconds?: number | null | undefined;
|
|
383
399
|
effective_at?: string | null | undefined;
|
|
384
400
|
entity_type?: string | null | undefined;
|
|
385
401
|
event_subtype?: string | null | undefined;
|
|
@@ -388,10 +404,12 @@ export declare class WorldResource extends WorkspaceScopedResource {
|
|
|
388
404
|
fhir_resource_type?: string | null | undefined;
|
|
389
405
|
id: string;
|
|
390
406
|
ingested_at?: string | null | undefined;
|
|
391
|
-
is_current?: boolean | undefined;
|
|
407
|
+
is_current?: boolean | null | undefined;
|
|
408
|
+
outcome?: (import("../index.js").components["schemas"]["EventOutcomeString"] | null) | undefined;
|
|
392
409
|
produced_by_agent?: string | null | undefined;
|
|
393
|
-
source?: string | undefined;
|
|
410
|
+
source?: string | null | undefined;
|
|
394
411
|
source_system?: string | null | undefined;
|
|
412
|
+
status?: (import("../index.js").components["schemas"]["EventStatusString"] | null) | undefined;
|
|
395
413
|
supersedes?: string | null | undefined;
|
|
396
414
|
sync_error?: string | null | undefined;
|
|
397
415
|
sync_status?: ("pending" | "synced" | "failed" | "processing" | "not_applicable") | null | undefined;
|
|
@@ -409,87 +427,12 @@ export declare class WorldResource extends WorkspaceScopedResource {
|
|
|
409
427
|
total: number;
|
|
410
428
|
}[];
|
|
411
429
|
} & import("../index.js").ResponseMetadata>;
|
|
412
|
-
/** List sync events with status filtering */
|
|
413
|
-
listSyncEvents(params: {
|
|
414
|
-
status: 'pending' | 'failed';
|
|
415
|
-
data_source_id?: string | null;
|
|
416
|
-
source_system?: string | null;
|
|
417
|
-
fhir_resource_type?: string | null;
|
|
418
|
-
fhir_resource_id?: string | null;
|
|
419
|
-
limit?: number;
|
|
420
|
-
offset?: number;
|
|
421
|
-
}): Promise<{
|
|
422
|
-
events: {
|
|
423
|
-
created_at?: string | null | undefined;
|
|
424
|
-
data_source_id?: string | null | undefined;
|
|
425
|
-
display_name?: string | null | undefined;
|
|
426
|
-
entity_id?: string | null | undefined;
|
|
427
|
-
entity_type?: string | null | undefined;
|
|
428
|
-
event_id: string;
|
|
429
|
-
event_type: string;
|
|
430
|
-
fhir_resource_id?: string | null | undefined;
|
|
431
|
-
fhir_resource_type?: string | null | undefined;
|
|
432
|
-
source: string;
|
|
433
|
-
source_system?: string | null | undefined;
|
|
434
|
-
sync_error?: string | null | undefined;
|
|
435
|
-
sync_status: "pending" | "synced" | "failed" | "processing" | "not_applicable";
|
|
436
|
-
synced_at?: string | null | undefined;
|
|
437
|
-
}[];
|
|
438
|
-
has_more: boolean;
|
|
439
|
-
next_offset?: number | null | undefined;
|
|
440
|
-
total: number;
|
|
441
|
-
} & import("../index.js").ResponseMetadata>;
|
|
442
|
-
listSyncEventsAutoPaging(params: {
|
|
443
|
-
status: 'pending' | 'failed';
|
|
444
|
-
data_source_id?: string | null;
|
|
445
|
-
source_system?: string | null;
|
|
446
|
-
fhir_resource_type?: string | null;
|
|
447
|
-
fhir_resource_id?: string | null;
|
|
448
|
-
limit?: number;
|
|
449
|
-
offset?: number;
|
|
450
|
-
}): AsyncGenerator<{
|
|
451
|
-
created_at?: string | null | undefined;
|
|
452
|
-
data_source_id?: string | null | undefined;
|
|
453
|
-
display_name?: string | null | undefined;
|
|
454
|
-
entity_id?: string | null | undefined;
|
|
455
|
-
entity_type?: string | null | undefined;
|
|
456
|
-
event_id: string;
|
|
457
|
-
event_type: string;
|
|
458
|
-
fhir_resource_id?: string | null | undefined;
|
|
459
|
-
fhir_resource_type?: string | null | undefined;
|
|
460
|
-
source: string;
|
|
461
|
-
source_system?: string | null | undefined;
|
|
462
|
-
sync_error?: string | null | undefined;
|
|
463
|
-
sync_status: "pending" | "synced" | "failed" | "processing" | "not_applicable";
|
|
464
|
-
synced_at?: string | null | undefined;
|
|
465
|
-
}, any, any>;
|
|
466
|
-
/** Get current sync queue depth */
|
|
467
|
-
getSyncQueueDepth(): Promise<{
|
|
468
|
-
by_resource_type?: {
|
|
469
|
-
[x: string]: {
|
|
470
|
-
[x: string]: number;
|
|
471
|
-
};
|
|
472
|
-
} | undefined;
|
|
473
|
-
failed_count: number;
|
|
474
|
-
last_sync_success_at?: string | null | undefined;
|
|
475
|
-
oldest_pending_at?: string | null | undefined;
|
|
476
|
-
pending_count: number;
|
|
477
|
-
} & import("../index.js").ResponseMetadata>;
|
|
478
|
-
/** Retry a single failed sync event */
|
|
479
|
-
retrySyncEvent(eventId: string): Promise<{
|
|
480
|
-
event_id: string;
|
|
481
|
-
status: string;
|
|
482
|
-
} & import("../index.js").ResponseMetadata>;
|
|
483
|
-
/** Retry all failed sync events */
|
|
484
|
-
retryAllSyncEvents(): Promise<{
|
|
485
|
-
failed_to_publish: number;
|
|
486
|
-
retried: number;
|
|
487
|
-
} & import("../index.js").ResponseMetadata>;
|
|
488
430
|
/** Get aggregate entity and event statistics */
|
|
489
431
|
getStats(): Promise<{
|
|
490
432
|
by_event_type?: {
|
|
491
433
|
[x: string]: number;
|
|
492
434
|
} | undefined;
|
|
435
|
+
event_type_window_days?: number | null | undefined;
|
|
493
436
|
sync_failed: number;
|
|
494
437
|
sync_pending: number;
|
|
495
438
|
sync_synced: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../../src/resources/world.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAEhE;;;;;;GAMG;AACH,qBAAa,aAAc,SAAQ,uBAAuB;IAGxD,4CAA4C;IACtC,YAAY,CAAC,MAAM,CAAC,EAAE;QAC1B,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;QAC7B,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACjB,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACrB,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;QAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACtB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QAC7B,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KACnC;;;;;;;;;;;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AAE,MAAM,GAAG,IAAI,CAAA;QAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACtB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB;;;IAUD,mEAAmE;IAC7D,WAAW,CACf,QAAQ,EAAE,QAAQ,GAAG,MAAM,EAC3B,MAAM,CAAC,EAAE;QACP,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACtB,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB;;;;wBA0Dq++Y,2CAAsB;uBAAoD,2CAAsB;;;;;;2BAAib,2CAAsB;yBAA0D,2CAAsB;4BAA2D,2CAAsB;;;;;;;;;;;;uBAAk7B,2CAAsB;;;;sBAA4U,2CAAsB;;;;;;;;;;IA9C19iZ,qBAAqB,CACnB,QAAQ,EAAE,QAAQ,GAAG,MAAM,EAC3B,MAAM,CAAC,EAAE;QACP,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QACtB,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB;;oBAwCq++Y,2CAAsB;mBAAoD,2CAAsB;;;;;;uBAAib,2CAAsB;qBAA0D,2CAAsB;wBAA2D,2CAAsB;;;;;;;;;;;;mBAAk7B,2CAAsB;;;;kBAA4U,2CAAsB;;;;;;IA7B19iZ,8DAA8D;IACxD,mBAAmB;;;;;;;;;;;IAUzB,gDAAgD;IAC1C,QAAQ;;;;;;;;;;;IAQd,qDAAqD;IAC/C,kBAAkB;;;;;;;;CAOzB"}
|
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { WorkspaceScopedResource, extractData } from './base.js';
|
|
2
|
-
export class PersonasResource extends WorkspaceScopedResource {
|
|
3
|
-
async list(params) {
|
|
4
|
-
return extractData(await this.client.GET('/v1/{workspace_id}/personas', {
|
|
5
|
-
params: { path: { workspace_id: this.workspaceId }, query: params },
|
|
6
|
-
}));
|
|
7
|
-
}
|
|
8
|
-
listAutoPaging(params) {
|
|
9
|
-
return this.iteratePaginatedList((pageParams) => this.list(pageParams), params);
|
|
10
|
-
}
|
|
11
|
-
async create(body) {
|
|
12
|
-
return extractData(await this.client.POST('/v1/{workspace_id}/personas', {
|
|
13
|
-
params: { path: { workspace_id: this.workspaceId } },
|
|
14
|
-
body,
|
|
15
|
-
}));
|
|
16
|
-
}
|
|
17
|
-
async get(personaId) {
|
|
18
|
-
return extractData(await this.client.GET('/v1/{workspace_id}/personas/{persona_id}', {
|
|
19
|
-
params: { path: { workspace_id: this.workspaceId, persona_id: personaId } },
|
|
20
|
-
}));
|
|
21
|
-
}
|
|
22
|
-
async update(personaId, body) {
|
|
23
|
-
return extractData(await this.client.PATCH('/v1/{workspace_id}/personas/{persona_id}', {
|
|
24
|
-
params: { path: { workspace_id: this.workspaceId, persona_id: personaId } },
|
|
25
|
-
body,
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
async delete(personaId) {
|
|
29
|
-
await this.client.DELETE('/v1/{workspace_id}/personas/{persona_id}', {
|
|
30
|
-
params: { path: { workspace_id: this.workspaceId, persona_id: personaId } },
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=personas.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"personas.js","sourceRoot":"","sources":["../../src/resources/personas.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAQhE,MAAM,OAAO,gBAAiB,SAAQ,uBAAuB;IAC3D,KAAK,CAAC,IAAI,CAAC,MAA2B;QACpC,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,6BAA6B,EAAE;YACnD,MAAM,EA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AAE,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE;SAC5E,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { WorkspaceScopedResource, extractData } from './base.js';
|
|
2
|
-
export class WebhookDestinationsResource extends WorkspaceScopedResource {
|
|
3
|
-
async list(params) {
|
|
4
|
-
return extractData(await this.client.GET('/v1/{workspace_id}/webhook-destinations', {
|
|
5
|
-
params: { path: { workspace_id: this.workspaceId }, query: params },
|
|
6
|
-
}));
|
|
7
|
-
}
|
|
8
|
-
listAutoPaging(params) {
|
|
9
|
-
return this.iteratePaginatedList((pageParams) => this.list(pageParams), params);
|
|
10
|
-
}
|
|
11
|
-
async create(body) {
|
|
12
|
-
return extractData(await this.client.POST('/v1/{workspace_id}/webhook-destinations', {
|
|
13
|
-
params: { path: { workspace_id: this.workspaceId } },
|
|
14
|
-
body,
|
|
15
|
-
}));
|
|
16
|
-
}
|
|
17
|
-
async get(destinationId) {
|
|
18
|
-
return extractData(await this.client.GET('/v1/{workspace_id}/webhook-destinations/{destination_id}', {
|
|
19
|
-
params: { path: { workspace_id: this.workspaceId, destination_id: destinationId } },
|
|
20
|
-
}));
|
|
21
|
-
}
|
|
22
|
-
async update(destinationId, body) {
|
|
23
|
-
return extractData(await this.client.PUT('/v1/{workspace_id}/webhook-destinations/{destination_id}', {
|
|
24
|
-
params: { path: { workspace_id: this.workspaceId, destination_id: destinationId } },
|
|
25
|
-
body,
|
|
26
|
-
}));
|
|
27
|
-
}
|
|
28
|
-
async delete(destinationId) {
|
|
29
|
-
await this.client.DELETE('/v1/{workspace_id}/webhook-destinations/{destination_id}', {
|
|
30
|
-
params: { path: { workspace_id: this.workspaceId, destination_id: destinationId } },
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
async listDeliveries(destinationId, params) {
|
|
34
|
-
return extractData(await this.client.GET('/v1/{workspace_id}/webhook-destinations/{destination_id}/deliveries', {
|
|
35
|
-
params: {
|
|
36
|
-
path: { workspace_id: this.workspaceId, destination_id: destinationId },
|
|
37
|
-
query: params,
|
|
38
|
-
},
|
|
39
|
-
}));
|
|
40
|
-
}
|
|
41
|
-
listDeliveriesAutoPaging(destinationId, params) {
|
|
42
|
-
return this.iteratePaginatedList((pageParams) => this.listDeliveries(destinationId, pageParams), params);
|
|
43
|
-
}
|
|
44
|
-
async rotateSecret(destinationId) {
|
|
45
|
-
return extractData(await this.client.POST('/v1/{workspace_id}/webhook-destinations/{destination_id}/rotate-secret', {
|
|
46
|
-
params: { path: { workspace_id: this.workspaceId, destination_id: destinationId } },
|
|
47
|
-
}));
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
//# sourceMappingURL=webhook-destinations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-destinations.js","sourceRoot":"","sources":["../../src/resources/webhook-destinations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAGhE,MAAM,OAAO,2BAA4B,SAAQ,uBAAuB;IACtE,KAAK,CAAC,IAAI,CAAC,MAAmB;QAC5B,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,yCAAyC,EAAE;YAC/D,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;SACpE,CAAC,CACH,CAAA;IACH,CAAC;IAED,cAAc,CAAC,MAAmB;QAChC,OAAO,IAAI,CAAC,oBAAoB,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC,CAAA;IACjF,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAA8D;QACzE,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,yCAAyC,EAAE;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EAAE,MAAmB;QACjE,OAAO,IAAI,CAAC,oBAAoB,CAC9B,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,aAAa,EAAE,UAAU,CAAC,EAC9D,MAAM,CACP,CAAA;IACH,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,aAAqB;QACtC,OAAO,WAAW,CAChB,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CACpB,wEAAwE,EACxE;YACE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,EAAE;SACpF,CACF,CACF,CAAA;IACH,CAAC;CACF"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { components } from '../generated/api.js';
|
|
2
|
-
import type { PersonaId } from '../core/branded-types.js';
|
|
3
|
-
import { WorkspaceScopedResource } from './base.js';
|
|
4
|
-
import type { ListParams } from '../core/utils.js';
|
|
5
|
-
export interface ListPersonasParams extends ListParams {
|
|
6
|
-
search?: string | null;
|
|
7
|
-
sort_by?: string | null;
|
|
8
|
-
}
|
|
9
|
-
export declare class PersonasResource extends WorkspaceScopedResource {
|
|
10
|
-
list(params?: ListPersonasParams): Promise<{
|
|
11
|
-
continuation_token?: number | null | undefined;
|
|
12
|
-
has_more: boolean;
|
|
13
|
-
items: {
|
|
14
|
-
background: string;
|
|
15
|
-
communication_style: {
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
};
|
|
18
|
-
created_at: string;
|
|
19
|
-
default_language: string;
|
|
20
|
-
developed_by: string;
|
|
21
|
-
id: string;
|
|
22
|
-
name: string;
|
|
23
|
-
role: string;
|
|
24
|
-
updated_at: string;
|
|
25
|
-
workspace_id: string;
|
|
26
|
-
}[];
|
|
27
|
-
total?: number | null | undefined;
|
|
28
|
-
} & import("../index.js").ResponseMetadata>;
|
|
29
|
-
listAutoPaging(params?: ListPersonasParams): AsyncGenerator<{
|
|
30
|
-
background: string;
|
|
31
|
-
communication_style: {
|
|
32
|
-
[x: string]: unknown;
|
|
33
|
-
};
|
|
34
|
-
created_at: string;
|
|
35
|
-
default_language: string;
|
|
36
|
-
developed_by: string;
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
|
-
role: string;
|
|
40
|
-
updated_at: string;
|
|
41
|
-
workspace_id: string;
|
|
42
|
-
}, any, any>;
|
|
43
|
-
create(body: components['schemas']['CreatePersonaRequest']): Promise<{
|
|
44
|
-
background: string;
|
|
45
|
-
communication_style: {
|
|
46
|
-
[x: string]: unknown;
|
|
47
|
-
};
|
|
48
|
-
created_at: string;
|
|
49
|
-
default_language: string;
|
|
50
|
-
developed_by: string;
|
|
51
|
-
id: string;
|
|
52
|
-
name: string;
|
|
53
|
-
role: string;
|
|
54
|
-
updated_at: string;
|
|
55
|
-
workspace_id: string;
|
|
56
|
-
} & import("../index.js").ResponseMetadata>;
|
|
57
|
-
get(personaId: PersonaId | string): Promise<{
|
|
58
|
-
background: string;
|
|
59
|
-
communication_style: {
|
|
60
|
-
[x: string]: unknown;
|
|
61
|
-
};
|
|
62
|
-
created_at: string;
|
|
63
|
-
default_language: string;
|
|
64
|
-
developed_by: string;
|
|
65
|
-
id: string;
|
|
66
|
-
name: string;
|
|
67
|
-
role: string;
|
|
68
|
-
updated_at: string;
|
|
69
|
-
workspace_id: string;
|
|
70
|
-
} & import("../index.js").ResponseMetadata>;
|
|
71
|
-
update(personaId: PersonaId | string, body: components['schemas']['UpdatePersonaRequest']): Promise<{
|
|
72
|
-
background: string;
|
|
73
|
-
communication_style: {
|
|
74
|
-
[x: string]: unknown;
|
|
75
|
-
};
|
|
76
|
-
created_at: string;
|
|
77
|
-
default_language: string;
|
|
78
|
-
developed_by: string;
|
|
79
|
-
id: string;
|
|
80
|
-
name: string;
|
|
81
|
-
role: string;
|
|
82
|
-
updated_at: string;
|
|
83
|
-
workspace_id: string;
|
|
84
|
-
} & import("../index.js").ResponseMetadata>;
|
|
85
|
-
delete(personaId: PersonaId | string): Promise<void>;
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=personas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"personas.d.ts","sourceRoot":"","sources":["../../../src/resources/personas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,qBAAa,gBAAiB,SAAQ,uBAAuB;IACrD,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;IAQtC,cAAc,CAAC,MAAM,CAAC,EAAE,kBAAkB;;;;;;;;;;;;;;IAIpC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;IAS1D,GAAG,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM;;;;;;;;;;;;;;IAQjC,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC;;;;;;;;;;;;;;IASzF,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAK3D"}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import type { components } from '../generated/api.js';
|
|
2
|
-
import { WorkspaceScopedResource } from './base.js';
|
|
3
|
-
import type { ListParams } from '../core/utils.js';
|
|
4
|
-
export declare class WebhookDestinationsResource extends WorkspaceScopedResource {
|
|
5
|
-
list(params?: ListParams): Promise<{
|
|
6
|
-
continuation_token?: number | null | undefined;
|
|
7
|
-
has_more: boolean;
|
|
8
|
-
items: {
|
|
9
|
-
accepted_event_types: string[];
|
|
10
|
-
created_at?: string | null | undefined;
|
|
11
|
-
created_by: string | null;
|
|
12
|
-
description: string | null;
|
|
13
|
-
field_mapping: {
|
|
14
|
-
[x: string]: unknown;
|
|
15
|
-
} | null;
|
|
16
|
-
id: string;
|
|
17
|
-
is_active: boolean;
|
|
18
|
-
name: string;
|
|
19
|
-
retry_attempts: number;
|
|
20
|
-
trigger_id: string;
|
|
21
|
-
updated_at?: string | null | undefined;
|
|
22
|
-
url: string;
|
|
23
|
-
workspace_id: string;
|
|
24
|
-
}[];
|
|
25
|
-
total?: number | null | undefined;
|
|
26
|
-
} & import("../index.js").ResponseMetadata>;
|
|
27
|
-
listAutoPaging(params?: ListParams): AsyncGenerator<{
|
|
28
|
-
accepted_event_types: string[];
|
|
29
|
-
created_at?: string | null | undefined;
|
|
30
|
-
created_by: string | null;
|
|
31
|
-
description: string | null;
|
|
32
|
-
field_mapping: {
|
|
33
|
-
[x: string]: unknown;
|
|
34
|
-
} | null;
|
|
35
|
-
id: string;
|
|
36
|
-
is_active: boolean;
|
|
37
|
-
name: string;
|
|
38
|
-
retry_attempts: number;
|
|
39
|
-
trigger_id: string;
|
|
40
|
-
updated_at?: string | null | undefined;
|
|
41
|
-
url: string;
|
|
42
|
-
workspace_id: string;
|
|
43
|
-
}, any, any>;
|
|
44
|
-
create(body: components['schemas']['CreateWebhookDestinationRequest']): Promise<{
|
|
45
|
-
accepted_event_types: string[];
|
|
46
|
-
created_at?: string | null | undefined;
|
|
47
|
-
created_by: string | null;
|
|
48
|
-
description: string | null;
|
|
49
|
-
field_mapping: {
|
|
50
|
-
[x: string]: unknown;
|
|
51
|
-
} | null;
|
|
52
|
-
id: string;
|
|
53
|
-
is_active: boolean;
|
|
54
|
-
name: string;
|
|
55
|
-
retry_attempts: number;
|
|
56
|
-
secret: string;
|
|
57
|
-
trigger_id: string;
|
|
58
|
-
updated_at?: string | null | undefined;
|
|
59
|
-
url: string;
|
|
60
|
-
workspace_id: string;
|
|
61
|
-
} & import("../index.js").ResponseMetadata>;
|
|
62
|
-
get(destinationId: string): Promise<{
|
|
63
|
-
accepted_event_types: string[];
|
|
64
|
-
created_at?: string | null | undefined;
|
|
65
|
-
created_by: string | null;
|
|
66
|
-
description: string | null;
|
|
67
|
-
field_mapping: {
|
|
68
|
-
[x: string]: unknown;
|
|
69
|
-
} | null;
|
|
70
|
-
id: string;
|
|
71
|
-
is_active: boolean;
|
|
72
|
-
name: string;
|
|
73
|
-
retry_attempts: number;
|
|
74
|
-
trigger_id: string;
|
|
75
|
-
updated_at?: string | null | undefined;
|
|
76
|
-
url: string;
|
|
77
|
-
workspace_id: string;
|
|
78
|
-
} & import("../index.js").ResponseMetadata>;
|
|
79
|
-
update(destinationId: string, body: components['schemas']['UpdateWebhookDestinationRequest']): Promise<{
|
|
80
|
-
accepted_event_types: string[];
|
|
81
|
-
created_at?: string | null | undefined;
|
|
82
|
-
created_by: string | null;
|
|
83
|
-
description: string | null;
|
|
84
|
-
field_mapping: {
|
|
85
|
-
[x: string]: unknown;
|
|
86
|
-
} | null;
|
|
87
|
-
id: string;
|
|
88
|
-
is_active: boolean;
|
|
89
|
-
name: string;
|
|
90
|
-
retry_attempts: number;
|
|
91
|
-
trigger_id: string;
|
|
92
|
-
updated_at?: string | null | undefined;
|
|
93
|
-
url: string;
|
|
94
|
-
workspace_id: string;
|
|
95
|
-
} & import("../index.js").ResponseMetadata>;
|
|
96
|
-
delete(destinationId: string): Promise<void>;
|
|
97
|
-
listDeliveries(destinationId: string, params?: ListParams): Promise<{
|
|
98
|
-
continuation_token?: number | null | undefined;
|
|
99
|
-
has_more: boolean;
|
|
100
|
-
items: {
|
|
101
|
-
created_at?: string | null | undefined;
|
|
102
|
-
data: {
|
|
103
|
-
[x: string]: unknown;
|
|
104
|
-
};
|
|
105
|
-
effective_at: string | null;
|
|
106
|
-
event_id: string;
|
|
107
|
-
event_type: string;
|
|
108
|
-
}[];
|
|
109
|
-
total?: number | null | undefined;
|
|
110
|
-
} & import("../index.js").ResponseMetadata>;
|
|
111
|
-
listDeliveriesAutoPaging(destinationId: string, params?: ListParams): AsyncGenerator<{
|
|
112
|
-
created_at?: string | null | undefined;
|
|
113
|
-
data: {
|
|
114
|
-
[x: string]: unknown;
|
|
115
|
-
};
|
|
116
|
-
effective_at: string | null;
|
|
117
|
-
event_id: string;
|
|
118
|
-
event_type: string;
|
|
119
|
-
}, any, any>;
|
|
120
|
-
rotateSecret(destinationId: string): Promise<{
|
|
121
|
-
rotation_expires_at: string;
|
|
122
|
-
secret: string;
|
|
123
|
-
} & import("../index.js").ResponseMetadata>;
|
|
124
|
-
}
|
|
125
|
-
//# sourceMappingURL=webhook-destinations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhook-destinations.d.ts","sourceRoot":"","sources":["../../../src/resources/webhook-destinations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,uBAAuB,EAAe,MAAM,WAAW,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,qBAAa,2BAA4B,SAAQ,uBAAuB;IAChE,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;IAQ9B,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;;;;IAI5B,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,iCAAiC,CAAC;;;;;;;;;;;;;;;;;;IASrE,GAAG,CAAC,aAAa,EAAE,MAAM;;;;;;;;;;;;;;;;;IAQzB,MAAM,CACV,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,iCAAiC,CAAC;;;;;;;;;;;;;;;;;IAU1D,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAM5C,cAAc,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU;;;;;;;;;;;;;;IAW/D,wBAAwB,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU;;;;;;;;;IAO7D,YAAY,CAAC,aAAa,EAAE,MAAM;;;;CAUzC"}
|