@amigo-ai/platform-sdk 0.1.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 (107) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +330 -0
  3. package/dist/core/auth.js +32 -0
  4. package/dist/core/auth.js.map +1 -0
  5. package/dist/core/branded-types.js +22 -0
  6. package/dist/core/branded-types.js.map +1 -0
  7. package/dist/core/errors.js +168 -0
  8. package/dist/core/errors.js.map +1 -0
  9. package/dist/core/openapi-client.js +66 -0
  10. package/dist/core/openapi-client.js.map +1 -0
  11. package/dist/core/retry.js +48 -0
  12. package/dist/core/retry.js.map +1 -0
  13. package/dist/core/utils.js +35 -0
  14. package/dist/core/utils.js.map +1 -0
  15. package/dist/index.cjs +1005 -0
  16. package/dist/index.cjs.map +7 -0
  17. package/dist/index.js +111 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/index.mjs +982 -0
  20. package/dist/index.mjs.map +7 -0
  21. package/dist/resources/agents.js +49 -0
  22. package/dist/resources/agents.js.map +1 -0
  23. package/dist/resources/analytics.js +54 -0
  24. package/dist/resources/analytics.js.map +1 -0
  25. package/dist/resources/api-keys.js +45 -0
  26. package/dist/resources/api-keys.js.map +1 -0
  27. package/dist/resources/base.js +50 -0
  28. package/dist/resources/base.js.map +1 -0
  29. package/dist/resources/billing.js +15 -0
  30. package/dist/resources/billing.js.map +1 -0
  31. package/dist/resources/calls.js +28 -0
  32. package/dist/resources/calls.js.map +1 -0
  33. package/dist/resources/context-graphs.js +44 -0
  34. package/dist/resources/context-graphs.js.map +1 -0
  35. package/dist/resources/data-sources.js +29 -0
  36. package/dist/resources/data-sources.js.map +1 -0
  37. package/dist/resources/integrations.js +45 -0
  38. package/dist/resources/integrations.js.map +1 -0
  39. package/dist/resources/memory.js +31 -0
  40. package/dist/resources/memory.js.map +1 -0
  41. package/dist/resources/phone-numbers.js +38 -0
  42. package/dist/resources/phone-numbers.js.map +1 -0
  43. package/dist/resources/services.js +30 -0
  44. package/dist/resources/services.js.map +1 -0
  45. package/dist/resources/settings.js +47 -0
  46. package/dist/resources/settings.js.map +1 -0
  47. package/dist/resources/simulations.js +50 -0
  48. package/dist/resources/simulations.js.map +1 -0
  49. package/dist/resources/skills.js +44 -0
  50. package/dist/resources/skills.js.map +1 -0
  51. package/dist/resources/workspaces.js +57 -0
  52. package/dist/resources/workspaces.js.map +1 -0
  53. package/dist/resources/world.js +131 -0
  54. package/dist/resources/world.js.map +1 -0
  55. package/dist/types/api.js +12 -0
  56. package/dist/types/api.js.map +1 -0
  57. package/dist/types/core/auth.d.ts +20 -0
  58. package/dist/types/core/auth.d.ts.map +1 -0
  59. package/dist/types/core/branded-types.d.ts +50 -0
  60. package/dist/types/core/branded-types.d.ts.map +1 -0
  61. package/dist/types/core/errors.d.ts +76 -0
  62. package/dist/types/core/errors.d.ts.map +1 -0
  63. package/dist/types/core/openapi-client.d.ts +14 -0
  64. package/dist/types/core/openapi-client.d.ts.map +1 -0
  65. package/dist/types/core/retry.d.ts +21 -0
  66. package/dist/types/core/retry.d.ts.map +1 -0
  67. package/dist/types/core/utils.d.ts +39 -0
  68. package/dist/types/core/utils.d.ts.map +1 -0
  69. package/dist/types/index.d.ts +114 -0
  70. package/dist/types/index.d.ts.map +1 -0
  71. package/dist/types/resources/agents.d.ts +32 -0
  72. package/dist/types/resources/agents.d.ts.map +1 -0
  73. package/dist/types/resources/analytics.d.ts +146 -0
  74. package/dist/types/resources/analytics.d.ts.map +1 -0
  75. package/dist/types/resources/api-keys.d.ts +28 -0
  76. package/dist/types/resources/api-keys.d.ts.map +1 -0
  77. package/dist/types/resources/base.d.ts +18 -0
  78. package/dist/types/resources/base.d.ts.map +1 -0
  79. package/dist/types/resources/billing.d.ts +19 -0
  80. package/dist/types/resources/billing.d.ts.map +1 -0
  81. package/dist/types/resources/calls.d.ts +50 -0
  82. package/dist/types/resources/calls.d.ts.map +1 -0
  83. package/dist/types/resources/context-graphs.d.ts +32 -0
  84. package/dist/types/resources/context-graphs.d.ts.map +1 -0
  85. package/dist/types/resources/data-sources.d.ts +24 -0
  86. package/dist/types/resources/data-sources.d.ts.map +1 -0
  87. package/dist/types/resources/integrations.d.ts +38 -0
  88. package/dist/types/resources/integrations.d.ts.map +1 -0
  89. package/dist/types/resources/memory.d.ts +99 -0
  90. package/dist/types/resources/memory.d.ts.map +1 -0
  91. package/dist/types/resources/phone-numbers.d.ts +26 -0
  92. package/dist/types/resources/phone-numbers.d.ts.map +1 -0
  93. package/dist/types/resources/services.d.ts +21 -0
  94. package/dist/types/resources/services.d.ts.map +1 -0
  95. package/dist/types/resources/settings.d.ts +102 -0
  96. package/dist/types/resources/settings.d.ts.map +1 -0
  97. package/dist/types/resources/simulations.d.ts +39 -0
  98. package/dist/types/resources/simulations.d.ts.map +1 -0
  99. package/dist/types/resources/skills.d.ts +31 -0
  100. package/dist/types/resources/skills.d.ts.map +1 -0
  101. package/dist/types/resources/workspaces.d.ts +28 -0
  102. package/dist/types/resources/workspaces.d.ts.map +1 -0
  103. package/dist/types/resources/world.d.ts +177 -0
  104. package/dist/types/resources/world.d.ts.map +1 -0
  105. package/dist/types/types/api.d.ts +739 -0
  106. package/dist/types/types/api.d.ts.map +1 -0
  107. package/package.json +82 -0
@@ -0,0 +1,32 @@
1
+ import type { ContextGraph, CreateContextGraphRequest, UpdateContextGraphRequest, PaginatedResponse } from '../types/api.js';
2
+ import type { ContextGraphId } from '../core/branded-types.js';
3
+ import { WorkspaceScopedResource } from './base.js';
4
+ import type { ListParams } from '../core/utils.js';
5
+ export interface ListContextGraphsParams extends ListParams {
6
+ search?: string;
7
+ }
8
+ export interface ContextGraphVersion {
9
+ context_graph_id: string;
10
+ version: number;
11
+ schema_snapshot: Record<string, unknown>;
12
+ created_at: string;
13
+ }
14
+ /**
15
+ * Manage context graphs — structured conversation flow definitions (HSM).
16
+ * Context graphs define the states, transitions, and conditions that
17
+ * govern how an agent moves through a conversation.
18
+ */
19
+ export declare class ContextGraphsResource extends WorkspaceScopedResource {
20
+ create(body: CreateContextGraphRequest): Promise<ContextGraph>;
21
+ list(params?: ListContextGraphsParams): Promise<PaginatedResponse<ContextGraph>>;
22
+ get(contextGraphId: ContextGraphId | string): Promise<ContextGraph>;
23
+ update(contextGraphId: ContextGraphId | string, body: UpdateContextGraphRequest): Promise<ContextGraph>;
24
+ delete(contextGraphId: ContextGraphId | string): Promise<void>;
25
+ /** Create a version snapshot of the current context graph */
26
+ createVersion(contextGraphId: ContextGraphId | string): Promise<ContextGraphVersion>;
27
+ /** List all versions of a context graph */
28
+ listVersions(contextGraphId: ContextGraphId | string, params?: ListParams): Promise<PaginatedResponse<ContextGraphVersion>>;
29
+ /** Get a specific version */
30
+ getVersion(contextGraphId: ContextGraphId | string, version: number): Promise<ContextGraphVersion>;
31
+ }
32
+ //# sourceMappingURL=context-graphs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-graphs.d.ts","sourceRoot":"","sources":["../../../src/resources/context-graphs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAc,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,uBAAwB,SAAQ,UAAU;IACzD,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,mBAAmB;IAClC,gBAAgB,EAAE,MAAM,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACxC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,uBAAuB;IAC1D,MAAM,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC;IAO9D,IAAI,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;IAIhF,GAAG,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAInE,MAAM,CACV,cAAc,EAAE,cAAc,GAAG,MAAM,EACvC,IAAI,EAAE,yBAAyB,GAC9B,OAAO,CAAC,YAAY,CAAC;IAOlB,MAAM,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIpE,6DAA6D;IACvD,aAAa,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAM1F,2CAA2C;IACrC,YAAY,CAChB,cAAc,EAAE,cAAc,GAAG,MAAM,EACvC,MAAM,CAAC,EAAE,UAAU,GAClB,OAAO,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;IAMlD,6BAA6B;IACvB,UAAU,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAGzG"}
@@ -0,0 +1,24 @@
1
+ import type { DataSource, CreateDataSourceRequest, PaginatedResponse } from '../types/api.js';
2
+ import type { DataSourceId } from '../core/branded-types.js';
3
+ import { WorkspaceScopedResource } from './base.js';
4
+ import type { ListParams } from '../core/utils.js';
5
+ export interface ListDataSourcesParams extends ListParams {
6
+ type?: string;
7
+ status?: string;
8
+ }
9
+ export interface UpdateDataSourceRequest {
10
+ name?: string;
11
+ connection_config?: Record<string, unknown>;
12
+ }
13
+ /**
14
+ * Manage data sources — connections to external databases, warehouses,
15
+ * or data feeds that the platform can query and sync from.
16
+ */
17
+ export declare class DataSourcesResource extends WorkspaceScopedResource {
18
+ create(body: CreateDataSourceRequest): Promise<DataSource>;
19
+ list(params?: ListDataSourcesParams): Promise<PaginatedResponse<DataSource>>;
20
+ get(dataSourceId: DataSourceId | string): Promise<DataSource>;
21
+ update(dataSourceId: DataSourceId | string, body: UpdateDataSourceRequest): Promise<DataSource>;
22
+ delete(dataSourceId: DataSourceId | string): Promise<void>;
23
+ }
24
+ //# sourceMappingURL=data-sources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-sources.d.ts","sourceRoot":"","sources":["../../../src/resources/data-sources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,uBAAuB,EAAc,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAC5C;AAED;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,uBAAuB;IACxD,MAAM,CAAC,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC;IAO1D,IAAI,CAAC,MAAM,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAI5E,GAAG,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAI7D,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,EAAE,IAAI,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC;IAO/F,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjE"}
@@ -0,0 +1,38 @@
1
+ import type { Integration, CreateIntegrationRequest, UpdateIntegrationRequest, PaginatedResponse } from '../types/api.js';
2
+ import type { IntegrationId } from '../core/branded-types.js';
3
+ import { WorkspaceScopedResource } from './base.js';
4
+ import type { ListParams } from '../core/utils.js';
5
+ export interface ListIntegrationsParams extends ListParams {
6
+ protocol?: string;
7
+ enabled?: boolean;
8
+ search?: string;
9
+ }
10
+ export interface IntegrationTestResult {
11
+ success: boolean;
12
+ message: string;
13
+ latency_ms: number;
14
+ }
15
+ /**
16
+ * Manage integrations — connections to external systems (EHRs, CRMs, etc.).
17
+ * Integrations power connector data acquisition and skill tool calls.
18
+ */
19
+ export declare class IntegrationsResource extends WorkspaceScopedResource {
20
+ /** Create a new integration */
21
+ create(body: CreateIntegrationRequest): Promise<Integration>;
22
+ /** List integrations */
23
+ list(params?: ListIntegrationsParams): Promise<PaginatedResponse<Integration>>;
24
+ /** Get a single integration */
25
+ get(integrationId: IntegrationId | string): Promise<Integration>;
26
+ /** Update integration configuration */
27
+ update(integrationId: IntegrationId | string, body: UpdateIntegrationRequest): Promise<Integration>;
28
+ /** Delete an integration */
29
+ delete(integrationId: IntegrationId | string): Promise<void>;
30
+ /**
31
+ * Test a specific endpoint on an integration with given params.
32
+ * Used in the developer console to validate integration config.
33
+ */
34
+ testEndpoint(integrationId: IntegrationId | string, endpointName: string, params: Record<string, unknown>): Promise<IntegrationTestResult>;
35
+ /** Check health of all integrations in the workspace */
36
+ getHealthCheck(): Promise<Record<string, unknown>>;
37
+ }
38
+ //# sourceMappingURL=integrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../../src/resources/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,wBAAwB,EACxB,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,iBAA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C,MAAM,EAAE,OAAO,CAAC,CAAC;CAGzD"}
@@ -0,0 +1,99 @@
1
+ import type { EntityId } from '../core/branded-types.js';
2
+ import { WorkspaceScopedResource } from './base.js';
3
+ export interface DimensionScore {
4
+ dimension: string;
5
+ name: string;
6
+ description: string | null;
7
+ weight: number;
8
+ fact_count: number;
9
+ avg_confidence: number;
10
+ source_count: number;
11
+ latest_fact_at: string | null;
12
+ }
13
+ export interface EntityDimensionsResponse {
14
+ entity_id: string;
15
+ dimensions: DimensionScore[];
16
+ total_facts: number;
17
+ }
18
+ export interface MemoryFact {
19
+ dimension: string;
20
+ event_type: string;
21
+ source: string | null;
22
+ confidence: number;
23
+ extracted_text: string | null;
24
+ data: Record<string, unknown> | null;
25
+ ingested_at: string | null;
26
+ }
27
+ export interface EntityFactsResponse {
28
+ entity_id: string;
29
+ dimension: string | null;
30
+ facts: MemoryFact[];
31
+ total: number;
32
+ }
33
+ export interface DimensionAnalytics {
34
+ dimension: string;
35
+ name: string;
36
+ description: string | null;
37
+ weight: number;
38
+ extraction_mode: string;
39
+ active: boolean;
40
+ builtin: boolean;
41
+ entity_count: number;
42
+ total_facts: number;
43
+ avg_facts_per_entity: number;
44
+ avg_confidence: number;
45
+ source_breakdown: Record<string, number>;
46
+ latest_fact_at: string | null;
47
+ sample_facts: Array<{
48
+ extracted_text: string;
49
+ confidence: number;
50
+ source: string | null;
51
+ entity_id: string;
52
+ }>;
53
+ }
54
+ export interface MemoryAnalyticsResponse {
55
+ total_entities_with_memory: number;
56
+ total_entities_in_workspace: number;
57
+ coverage_rate: number;
58
+ total_facts: number;
59
+ dimensions: DimensionAnalytics[];
60
+ top_sources: Array<{
61
+ source: string;
62
+ fact_count: number;
63
+ entity_count: number;
64
+ }>;
65
+ facts_last_24h: number;
66
+ facts_last_7d: number;
67
+ facts_last_30d: number;
68
+ active_dimensions: number;
69
+ builtin_dimensions: number;
70
+ custom_dimensions: number;
71
+ llm_dimensions: number;
72
+ }
73
+ /**
74
+ * Agent Memory — structured long-term memory for entities.
75
+ *
76
+ * Memory is organised into dimensions (e.g. "preferences", "health_history").
77
+ * Each dimension accumulates facts extracted from calls and events over time.
78
+ * This powers the "Agent Memory" view in the console.
79
+ */
80
+ export declare class MemoryResource extends WorkspaceScopedResource {
81
+ /**
82
+ * Get all memory dimension scores for an entity.
83
+ * Scores reflect how complete and confident each dimension's facts are.
84
+ */
85
+ getEntityDimensions(entityId: EntityId | string): Promise<EntityDimensionsResponse>;
86
+ /**
87
+ * Get individual memory facts for an entity, optionally filtered by dimension.
88
+ */
89
+ getEntityFacts(entityId: EntityId | string, params?: {
90
+ dimension?: string;
91
+ limit?: number;
92
+ }): Promise<EntityFactsResponse>;
93
+ /**
94
+ * Get workspace-level memory analytics — coverage rates, dimension health,
95
+ * and fact ingestion trends.
96
+ */
97
+ getAnalytics(): Promise<MemoryAnalyticsResponse>;
98
+ }
99
+ //# sourceMappingURL=memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/resources/memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,uBAAuB,EAAc,MAAM,WAAW,CAAA;AAE/D,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,cAAc,EAAE,CAAA;IAC5B,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,UAAU;IACzB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,MAAM,CAAA;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,kBAAkB,EAAE,CAAA;IAChC,WAAW,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAChF,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,MAAM,CAAA;IACtB,iBAAiB,EAAE,MAAM,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,iBAAiB,EAAE,MAAM,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,uBAAuB;IACzD;;;OAGG;IACG,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAIzF;;OAEG;IACG,cAAc,CAClB,QAAQ,EAAE,QAAQ,GAAG,MAAM,EAC3B,MAAM,CAAC,EAAE;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAC9C,OAAO,CAAC,mBAAmB,CAAC;IAI/B;;;OAGG;IACG,YAAY,IAAI,OAAO,CAAC,uBAAuB,CAAC;CAGvD"}
@@ -0,0 +1,26 @@
1
+ import type { PhoneNumber, ProvisionPhoneNumberRequest, UpdatePhoneNumberRequest, PaginatedResponse } from '../types/api.js';
2
+ import type { PhoneNumberId } from '../core/branded-types.js';
3
+ import { WorkspaceScopedResource } from './base.js';
4
+ import type { ListParams } from '../core/utils.js';
5
+ /**
6
+ * Manage phone numbers — provision, configure, and release Twilio numbers
7
+ * that are attached to agents for inbound/outbound calling.
8
+ */
9
+ export declare class PhoneNumbersResource extends WorkspaceScopedResource {
10
+ /** Provision a new phone number (area code or specific number) */
11
+ provision(body: ProvisionPhoneNumberRequest): Promise<PhoneNumber>;
12
+ /** List phone numbers in the workspace */
13
+ list(params?: ListParams): Promise<PaginatedResponse<PhoneNumber>>;
14
+ /** Get a phone number */
15
+ get(phoneNumberId: PhoneNumberId | string): Promise<PhoneNumber>;
16
+ /** Update a phone number (assign to agent, rename) */
17
+ update(phoneNumberId: PhoneNumberId | string, body: UpdatePhoneNumberRequest): Promise<PhoneNumber>;
18
+ /** Release a phone number back to the carrier */
19
+ release(phoneNumberId: PhoneNumberId | string): Promise<void>;
20
+ /** Send a test call to a phone number to verify it's working */
21
+ test(phoneNumberId: PhoneNumberId | string): Promise<{
22
+ success: boolean;
23
+ call_sid: string;
24
+ }>;
25
+ }
26
+ //# sourceMappingURL=phone-numbers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/phone-numbers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,2BAA2B,EAC3B,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAC7D,OAAO,EAAE,uBAAuB,EAAc,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD;;;GAGG;AACH,qBAAa,oBAAqB,SAAQ,uBAAuB;IAC/D,kEAAkE;IAC5D,SAAS,CAAC,IAAI,EAAE,2BAA2B,GAAG,OAAO,CAAC,WAAW,CAAC;IAOxE,0CAA0C;IACpC,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAIxE,yBAAyB;IACnB,GAAG,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAItE,sDAAsD;IAChD,MAAM,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,EAAE,IAAI,EAAE,wBAAwB,GAAG,OAAO,CAAC,WAAW,CAAC;IAOzG,iDAAiD;IAC3C,OAAO,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAInE,gEAAgE;IAC1D,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAMnG"}
@@ -0,0 +1,21 @@
1
+ import type { Service, CreateServiceRequest, UpdateServiceRequest, PaginatedResponse } from '../types/api.js';
2
+ import type { ServiceId } from '../core/branded-types.js';
3
+ import { WorkspaceScopedResource } from './base.js';
4
+ import type { ListParams } from '../core/utils.js';
5
+ export interface ListServicesParams extends ListParams {
6
+ search?: string;
7
+ type?: string;
8
+ }
9
+ /**
10
+ * Manage services — external service configurations that agents can call.
11
+ * Services represent integrations like scheduling systems, EHRs, or CRMs
12
+ * that skills can interact with via their tool definitions.
13
+ */
14
+ export declare class ServicesResource extends WorkspaceScopedResource {
15
+ create(body: CreateServiceRequest): Promise<Service>;
16
+ list(params?: ListServicesParams): Promise<PaginatedResponse<Service>>;
17
+ get(serviceId: ServiceId | string): Promise<Service>;
18
+ update(serviceId: ServiceId | string, body: UpdateServiceRequest): Promise<Service>;
19
+ delete(serviceId: ServiceId | string): Promise<void>;
20
+ }
21
+ //# sourceMappingURL=services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src/resources/services.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,uBAAuB,EAAc,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACpD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,uBAAuB;IACrD,MAAM,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;IAOpD,IAAI,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAItE,GAAG,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIpD,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,EAAE,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;IAOnF,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3D"}
@@ -0,0 +1,102 @@
1
+ import { WorkspaceScopedResource } from './base.js';
2
+ export interface VoiceSettings {
3
+ voice_id: string | null;
4
+ speed: number | null;
5
+ tone: string | null;
6
+ volume: number | null;
7
+ language: string | null;
8
+ keyterms: string[];
9
+ sensitive_topics: string[];
10
+ correction_categories: string[];
11
+ pronunciation_dict_id: string | null;
12
+ post_call_analysis_enabled: boolean;
13
+ transcript_correction_enabled: boolean;
14
+ }
15
+ export interface BrandingConfig {
16
+ display_name: string | null;
17
+ logo_url: string | null;
18
+ primary_color: string | null;
19
+ support_email: string | null;
20
+ }
21
+ export interface BrandingSettings {
22
+ branding: BrandingConfig;
23
+ }
24
+ export interface OutreachRule {
25
+ name: string;
26
+ condition: Record<string, unknown>;
27
+ actions: Record<string, unknown>[];
28
+ }
29
+ export interface OutreachSettings {
30
+ rules: OutreachRule[];
31
+ data_templates: Record<string, unknown>[];
32
+ }
33
+ export interface MemoryDimensionConfig {
34
+ name: string;
35
+ enabled: boolean;
36
+ weight: number;
37
+ extraction_mode: string;
38
+ }
39
+ export interface MemorySettings {
40
+ dimensions: MemoryDimensionConfig[];
41
+ backfill_requested: boolean;
42
+ }
43
+ export interface SecuritySettings {
44
+ voice_auth_enabled: boolean;
45
+ }
46
+ export interface RetentionSettings {
47
+ call_recordings_days: number | null;
48
+ call_transcripts_days: number | null;
49
+ phi_data_days: number | null;
50
+ world_events_days: number | null;
51
+ audit_log_days: number | null;
52
+ legal_hold: boolean;
53
+ legal_hold_reason: string | null;
54
+ }
55
+ export interface WorkflowConfig {
56
+ name: string;
57
+ trigger: Record<string, unknown>;
58
+ actions: Record<string, unknown>[];
59
+ enabled: boolean;
60
+ }
61
+ export interface WorkflowSettings {
62
+ workflows: WorkflowConfig[];
63
+ }
64
+ /**
65
+ * Workspace-level settings — configure voice behavior, branding, security
66
+ * policies, data retention, outreach rules, and more.
67
+ *
68
+ * Each sub-resource has `get()` and `update()`.
69
+ */
70
+ export declare class SettingsResource extends WorkspaceScopedResource {
71
+ private getSettings;
72
+ private updateSettings;
73
+ readonly voice: {
74
+ get: () => Promise<VoiceSettings>;
75
+ update: (body: Partial<VoiceSettings>) => Promise<VoiceSettings>;
76
+ };
77
+ readonly branding: {
78
+ get: () => Promise<BrandingSettings>;
79
+ update: (body: Partial<BrandingSettings>) => Promise<BrandingSettings>;
80
+ };
81
+ readonly outreach: {
82
+ get: () => Promise<OutreachSettings>;
83
+ update: (body: Partial<OutreachSettings>) => Promise<OutreachSettings>;
84
+ };
85
+ readonly memory: {
86
+ get: () => Promise<MemorySettings>;
87
+ update: (body: Partial<MemorySettings>) => Promise<MemorySettings>;
88
+ };
89
+ readonly security: {
90
+ get: () => Promise<SecuritySettings>;
91
+ update: (body: Partial<SecuritySettings>) => Promise<SecuritySettings>;
92
+ };
93
+ readonly retention: {
94
+ get: () => Promise<RetentionSettings>;
95
+ update: (body: Partial<RetentionSettings>) => Promise<RetentionSettings>;
96
+ };
97
+ readonly workflows: {
98
+ get: () => Promise<WorkflowSettings>;
99
+ update: (body: Partial<WorkflowSettings>) => Promise<WorkflowSettings>;
100
+ };
101
+ }
102
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/resources/settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AAMnD,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B,qBAAqB,EAAE,MAAM,EAAE,CAAA;IAC/B,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAA;IACpC,0BAA0B,EAAE,OAAO,CAAA;IACnC,6BAA6B,EAAE,OAAO,CAAA;CACvC;AAMD,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,cAAc,CAAA;CACzB;AAMD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;CACnC;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,YAAY,EAAE,CA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,QAAQ;mBACN,OAAO,CAAC,gBAAgB,CAAC;uBACnB,OAAO,CAAC,gBAAgB,CAAC,KAAG,OAAO,CAAC,gBAAgB,CAAC;MAErE;IAED,QAAQ,CAAC,QAAQ;mBACN,OAAO,CAAC,gBAAgB,CAAC;uBACnB,OAAO,CAAC,gBAAgB,CAAC,KAAG,OAAO,CAAC,gBAAgB,CAAC;MAErE;IAED,QAAQ,CAAC,MAAM;mBACJ,OAAO,CAAC,cAAc,CAAC;uBACjB,OAAO,CAAC,cAAc,CAAC,KAAG,OAAO,CAAC,cAAc,CAAC;MAEjE;IAED,QAAQ,CAAC,QAAQ;mBACN,OAAO,CAAC,gBAAgB,CAAC;uBACnB,OAAO,CAAC,gBAAgB,CAAC,KAAG,OAAO,CAAC,gBAAgB,CAAC;MAErE;IAED,QAAQ,CAAC,SAAS;mBACP,OAAO,CAAC,iBAAiB,CAAC;uBACpB,OAAO,CAAC,iBAAiB,CAAC,KAAG,OAAO,CAAC,iBAAiB,CAAC;MAEvE;IAED,QAAQ,CAAC,SAAS;mBACP,OAAO,CAAC,gBAAgB,CAAC;uBACnB,OAAO,CAAC,gBAAgB,CAAC,KAAG,OAAO,CAAC,gBAAgB,CAAC;MAErE;CACF"}
@@ -0,0 +1,39 @@
1
+ import type { SimulationSession, SimulationStepResponse, CreateSimulationSessionRequest, StepSimulationSessionRequest } from '../types/api.js';
2
+ import type { SimulationSessionId } from '../core/branded-types.js';
3
+ import { WorkspaceScopedResource } from './base.js';
4
+ export interface SimulationIntelligence {
5
+ session_id: string;
6
+ intelligence: Record<string, unknown>;
7
+ }
8
+ /**
9
+ * Simulations — interactive agent testing via the Playground.
10
+ *
11
+ * Create a session to get the agent's greeting, then step through the
12
+ * conversation turn by turn. Get LLM-generated caller suggestions to
13
+ * guide exploratory testing.
14
+ */
15
+ export declare class SimulationsResource extends WorkspaceScopedResource {
16
+ /** Start a simulation session — returns the agent's greeting and initial snapshot */
17
+ createSession(body: CreateSimulationSessionRequest): Promise<SimulationSession>;
18
+ /** Get the current snapshot of a session */
19
+ getSession(sessionId: SimulationSessionId | string): Promise<SimulationSession>;
20
+ /** Delete a simulation session */
21
+ deleteSession(sessionId: SimulationSessionId | string): Promise<{
22
+ status: string;
23
+ }>;
24
+ /**
25
+ * Send a caller utterance and advance the session by one turn.
26
+ * Returns the agent's response observation and updated snapshot.
27
+ */
28
+ step(body: StepSimulationSessionRequest): Promise<SimulationStepResponse>;
29
+ /**
30
+ * Get LLM-generated caller message suggestions for the current session state.
31
+ * Helps exploratory testing by suggesting realistic next caller turns.
32
+ */
33
+ recommend(sessionId: SimulationSessionId | string, n?: number): Promise<{
34
+ suggestions: string[];
35
+ }>;
36
+ /** Get AI-generated call intelligence for a completed session */
37
+ getIntelligence(sessionId: SimulationSessionId | string): Promise<SimulationIntelligence>;
38
+ }
39
+ //# sourceMappingURL=simulations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulations.d.ts","sourceRoot":"","sources":["../../../src/resources/simulations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAC7B,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AAEnD,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACtC;AAED;;;;;;GAMG;AACH,qBAAa,mBAAoB,SAAQ,uBAAuB;IAC9D,qFAAqF;IAC/E,aAAa,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAOrF,4CAA4C;IACtC,UAAU,CAAC,SAAS,EAAE,mBAAmB,GAAG,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIrF,kCAAkC;IAC5B,aAAa,CAAC,SAAS,EAAE,mBAAmB,GAAG,MAAM,GAAG,OAAO,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAIzF;;;OAGG;IACG,IAAI,CAAC,IAAI,EAAE,4BAA4B,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAO/E;;;OAGG;IACG,SAAS,CAAC,SAAS,EAAE,mBAAmB,GAAG,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IAOxG,iEAAiE;IAC3D,eAAe,CAAC,SAAS,EAAE,mBAAmB,GAAG,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAGhG"}
@@ -0,0 +1,31 @@
1
+ import type { Skill, CreateSkillRequest, UpdateSkillRequest, SkillTestRequest, SkillTestResponse, PaginatedResponse } from '../types/api.js';
2
+ import type { SkillId } from '../core/branded-types.js';
3
+ import { WorkspaceScopedResource } from './base.js';
4
+ import type { ListParams } from '../core/utils.js';
5
+ export interface ListSkillsParams extends ListParams {
6
+ search?: string;
7
+ enabled?: boolean;
8
+ execution_tier?: string;
9
+ }
10
+ /**
11
+ * Manage skills — reusable AI capabilities that agents can call.
12
+ * Skills define a structured input/output schema and an execution tier.
13
+ */
14
+ export declare class SkillsResource extends WorkspaceScopedResource {
15
+ /** Create a new skill */
16
+ create(body: CreateSkillRequest): Promise<Skill>;
17
+ /** List skills in the workspace */
18
+ list(params?: ListSkillsParams): Promise<PaginatedResponse<Skill>>;
19
+ /** Get a single skill */
20
+ get(skillId: SkillId | string): Promise<Skill>;
21
+ /** Update a skill */
22
+ update(skillId: SkillId | string, body: UpdateSkillRequest): Promise<Skill>;
23
+ /** Delete a skill */
24
+ delete(skillId: SkillId | string): Promise<void>;
25
+ /**
26
+ * Test a skill with a sample input.
27
+ * Executes the skill in a sandbox and returns the result.
28
+ */
29
+ test(skillId: SkillId | string, body: SkillTestRequest): Promise<SkillTestResponse>;
30
+ }
31
+ //# sourceMappingURL=skills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../src/resources/skills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAc,MAAM,WAAW,CAAA;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IAClD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED;;;GAGG;AACH,qBAAa,cAAe,SAAQ,uBAAuB;IACzD,yBAAyB;IACnB,MAAM,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC;IAOtD,mCAAmC;IAC7B,IAAI,CAAC,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAIxE,yBAAyB;IACnB,GAAG,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAIpD,qBAAqB;IACf,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,KAAK,CAAC;IAOjF,qBAAqB;IACf,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAItD;;;OAGG;IACG,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAM1F"}
@@ -0,0 +1,28 @@
1
+ import type { Workspace, CreateWorkspaceRequest, UpdateWorkspaceRequest, PaginatedResponse } from '../types/api.js';
2
+ import type { WorkspaceId } from '../core/branded-types.js';
3
+ import type { ListParams } from '../core/utils.js';
4
+ export interface WorkspacesConfig {
5
+ apiKey: string;
6
+ baseUrl: string;
7
+ }
8
+ /**
9
+ * Manage Amigo Platform workspaces.
10
+ * Workspaces are the top-level tenancy boundary for all resources.
11
+ */
12
+ export declare class WorkspacesResource {
13
+ private readonly config;
14
+ constructor(config: WorkspacesConfig);
15
+ private get headers();
16
+ private request;
17
+ /** Create a new workspace */
18
+ create(body: CreateWorkspaceRequest): Promise<Workspace>;
19
+ /** List workspaces accessible to the current API key */
20
+ list(params?: ListParams): Promise<PaginatedResponse<Workspace>>;
21
+ /** Get a single workspace by ID */
22
+ get(id: WorkspaceId | string): Promise<Workspace>;
23
+ /** Update workspace metadata */
24
+ update(id: WorkspaceId | string, body: UpdateWorkspaceRequest): Promise<Workspace>;
25
+ /** Archive (soft-delete) a workspace */
26
+ delete(id: WorkspaceId | string): Promise<void>;
27
+ }
28
+ //# sourceMappingURL=workspaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../../src/resources/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAG3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;GAGG;AACH,qBAAa,kBAAkB;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,gBAAgB;IAErD,OAAO,KAAK,OAAO,GAKlB;YAEa,OAAO;IAWrB,6BAA6B;IACvB,MAAM,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC;IAO9D,wDAAwD;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAItE,mCAAmC;IAC7B,GAAG,CAAC,EAAE,EAAE,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;IAIvD,gCAAgC;IAC1B,MAAM,CAAC,EAAE,EAAE,WAAW,GAAG,MAAM,EAAE,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,SAAS,CAAC;IAOxF,wCAAwC;IAClC,MAAM,CAAC,EAAE,EAAE,WAAW,GAAG,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGtD"}