@collective-intelligence/external-apps-server-sdk 0.1.36 → 0.1.38

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.
@@ -1,117 +1,8 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
+ import { JsonObject, JsonPrimitive, JsonSchemaDocument, JsonValue, PackageSchemaProjection, PortableOperationAuthorization, PortableOperationDeclaration, PortableOperationDelegatedSubjectPolicy, PortableOperationEffect, PortableOperationExecutionPolicy, PortableOperationIdempotency, PortableOperationLimits, PortableOperationPrincipalKind, PortableOperationRetryPolicy, ProjectionFidelity } from '@collective-intelligence/extensions-sdk';
3
4
  import { FlexibleSchema, Tool } from 'ai';
4
5
 
5
- export type JsonPrimitive = boolean | null | number | string;
6
- export type JsonValue = JsonObject | JsonPrimitive | readonly JsonValue[];
7
- export interface JsonObject {
8
- readonly [key: string]: JsonValue;
9
- }
10
- declare const Draft202012Dialect: "https://json-schema.org/draft/2020-12/schema";
11
- /** JSON-compatible Draft 2020-12 vocabulary used for portable manifests. */
12
- export type JsonSchemaDocument = JsonObject & Readonly<{
13
- $anchor?: string;
14
- $comment?: string;
15
- $defs?: Readonly<Record<string, JsonSchemaDocument>>;
16
- $dynamicAnchor?: string;
17
- $dynamicRef?: string;
18
- $id?: string;
19
- $ref?: string;
20
- $schema?: typeof Draft202012Dialect;
21
- additionalProperties?: boolean | JsonSchemaDocument;
22
- allOf?: readonly JsonSchemaDocument[];
23
- anyOf?: readonly JsonSchemaDocument[];
24
- const?: JsonValue;
25
- contains?: JsonSchemaDocument;
26
- default?: JsonValue;
27
- dependentRequired?: Readonly<Record<string, readonly string[]>>;
28
- description?: string;
29
- else?: JsonSchemaDocument;
30
- enum?: readonly JsonValue[];
31
- exclusiveMaximum?: number;
32
- exclusiveMinimum?: number;
33
- format?: string;
34
- if?: JsonSchemaDocument;
35
- items?: JsonSchemaDocument;
36
- maxItems?: number;
37
- maxLength?: number;
38
- maxProperties?: number;
39
- maximum?: number;
40
- minItems?: number;
41
- minLength?: number;
42
- minProperties?: number;
43
- minimum?: number;
44
- multipleOf?: number;
45
- not?: JsonSchemaDocument;
46
- oneOf?: readonly JsonSchemaDocument[];
47
- pattern?: string;
48
- patternProperties?: Readonly<Record<string, JsonSchemaDocument>>;
49
- prefixItems?: readonly JsonSchemaDocument[];
50
- properties?: Readonly<Record<string, JsonSchemaDocument>>;
51
- required?: readonly string[];
52
- then?: JsonSchemaDocument;
53
- title?: string;
54
- type?: "array" | "boolean" | "integer" | "null" | "number" | "object" | "string" | readonly ("array" | "boolean" | "integer" | "null" | "number" | "object" | "string")[];
55
- unevaluatedItems?: boolean | JsonSchemaDocument;
56
- unevaluatedProperties?: boolean | JsonSchemaDocument;
57
- uniqueItems?: boolean;
58
- }>;
59
- export type ProjectionFidelity = "exact" | "structural";
60
- export type PackageSchemaProjection = Readonly<{
61
- dialect: typeof Draft202012Dialect;
62
- document: JsonSchemaDocument;
63
- fidelity: ProjectionFidelity;
64
- }>;
65
- /** Closed public principal vocabulary accepted by a gateway operation. */
66
- export type PortableOperationPrincipalKind = "detached_user" | "service_principal";
67
- /** Explicit delegated-subject requirement reviewed with an operation. */
68
- export type PortableOperationDelegatedSubjectPolicy = "allowed" | "forbidden" | "required";
69
- /** Fully materialized authorization policy for one exposed operation. */
70
- export type PortableOperationAuthorization = Readonly<{
71
- delegatedSubject: PortableOperationDelegatedSubjectPolicy;
72
- organization: "required";
73
- principalKinds: readonly PortableOperationPrincipalKind[];
74
- scopes: readonly string[];
75
- }>;
76
- /** Observable side-effect class reviewed before an operation becomes a tool. */
77
- export type PortableOperationEffect = "external_side_effect" | "read" | "write";
78
- /** The replay guarantee supplied by the operation implementation. */
79
- export type PortableOperationIdempotency = "idempotent" | "requires_key" | "safe";
80
- /** Explicit, bounded retry permission for callers of the operation. */
81
- export type PortableOperationRetryPolicy = Readonly<{
82
- mode: "never";
83
- }> | Readonly<{
84
- maxAttempts: number;
85
- mode: "idempotent_only";
86
- }>;
87
- /** Execution lifecycle and maximum wall-clock duration. */
88
- export type PortableOperationExecutionPolicy = Readonly<{
89
- mode: "synchronous";
90
- timeoutMs: number;
91
- }>;
92
- /** Per-invocation transport bounds. */
93
- export type PortableOperationLimits = Readonly<{
94
- maxRequestBytes: number;
95
- maxResponseBytes: number;
96
- }>;
97
- /**
98
- * Complete JSON-only operation contract reviewed by a host. Executable
99
- * handlers remain in a server runtime sidecar and never enter this descriptor.
100
- */
101
- export type PortableOperationDeclaration = Readonly<{
102
- authorization: PortableOperationAuthorization;
103
- description: string;
104
- effects: PortableOperationEffect;
105
- execution: PortableOperationExecutionPolicy;
106
- id: string;
107
- idempotency: PortableOperationIdempotency;
108
- input: PackageSchemaProjection;
109
- limits: PortableOperationLimits;
110
- output: PackageSchemaProjection;
111
- retry: PortableOperationRetryPolicy;
112
- title: string;
113
- version: string;
114
- }>;
115
6
  export type PrincipalKind = "detached_user" | "service_principal";
116
7
  export type ExternalAuditSubject = Readonly<{
117
8
  issuer: string;
@@ -167,4 +58,22 @@ export type AiSdkOperationOptions<Input, Output, Context = unknown> = Omit<Gatew
167
58
  }>;
168
59
  export declare const defineAiSdkOperation: <Input, Output, Context = unknown>(options: AiSdkOperationOptions<Input, Output, Context>) => Promise<GatewayOperationDefinition>;
169
60
 
61
+ export {
62
+ JsonObject,
63
+ JsonPrimitive,
64
+ JsonSchemaDocument,
65
+ JsonValue,
66
+ PackageSchemaProjection,
67
+ PortableOperationAuthorization,
68
+ PortableOperationDeclaration,
69
+ PortableOperationDelegatedSubjectPolicy,
70
+ PortableOperationEffect,
71
+ PortableOperationExecutionPolicy,
72
+ PortableOperationIdempotency,
73
+ PortableOperationLimits,
74
+ PortableOperationPrincipalKind,
75
+ PortableOperationRetryPolicy,
76
+ ProjectionFidelity,
77
+ };
78
+
170
79
  export {};