@collective-intelligence/external-apps-server-sdk 0.1.8 → 0.1.9

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.
@@ -26,6 +26,8 @@ export type ResourceCapabilities = Readonly<{
26
26
  search: true;
27
27
  softDelete?: boolean;
28
28
  update?: boolean;
29
+ /** File uploads for the File fields of a common entity resource. */
30
+ upload?: boolean;
29
31
  }>;
30
32
  export type ResourcePaginationMode = "cursor" | "page";
31
33
  export type PortableResourceSchema = Readonly<Record<string, ResourceJsonValue>>;
@@ -103,7 +105,9 @@ export type ResourceRecord<Entity> = Readonly<{
103
105
  revision: ResourceRevision;
104
106
  value: Entity;
105
107
  }>;
106
- export type ResourceErrorCode = "capability_not_supported" | "conflict" | "forbidden" | "internal" | "invalid_request" | "not_found" | "rate_limited" | "transport_error" | "unauthenticated" | "unavailable";
108
+ export type ResourceErrorCode = "capability_not_supported" | "conflict" | "forbidden" | "internal" | "invalid_request" | "not_found" | "rate_limited" | "transport_error" | "unauthenticated" | "unavailable" |
109
+ /** The CI Organization storage can not take a presigned File upload. */
110
+ "upload_not_supported";
107
111
  export type ResourceError = Readonly<{
108
112
  code: ResourceErrorCode;
109
113
  /** Client-observed dispatch outcome; uncertainty never proves rollback. */
@@ -26,6 +26,8 @@ export type ResourceCapabilities = Readonly<{
26
26
  search: true;
27
27
  softDelete?: boolean;
28
28
  update?: boolean;
29
+ /** File uploads for the File fields of a common entity resource. */
30
+ upload?: boolean;
29
31
  }>;
30
32
  export type ResourcePaginationMode = "cursor" | "page";
31
33
  export type PortableResourceSchema = Readonly<Record<string, ResourceJsonValue>>;
@@ -103,7 +105,9 @@ export type ResourceRecord<Entity> = Readonly<{
103
105
  revision: ResourceRevision;
104
106
  value: Entity;
105
107
  }>;
106
- export type ResourceErrorCode = "capability_not_supported" | "conflict" | "forbidden" | "internal" | "invalid_request" | "not_found" | "rate_limited" | "transport_error" | "unauthenticated" | "unavailable";
108
+ export type ResourceErrorCode = "capability_not_supported" | "conflict" | "forbidden" | "internal" | "invalid_request" | "not_found" | "rate_limited" | "transport_error" | "unauthenticated" | "unavailable" |
109
+ /** The CI Organization storage can not take a presigned File upload. */
110
+ "upload_not_supported";
107
111
  export type ResourceError = Readonly<{
108
112
  code: ResourceErrorCode;
109
113
  /** Client-observed dispatch outcome; uncertainty never proves rollback. */
@@ -63,6 +63,8 @@ export type ResourceCapabilities = Readonly<{
63
63
  search: true;
64
64
  softDelete?: boolean;
65
65
  update?: boolean;
66
+ /** File uploads for the File fields of a common entity resource. */
67
+ upload?: boolean;
66
68
  }>;
67
69
  export type ResourcePaginationMode = "cursor" | "page";
68
70
  export type PortableResourceSchema = Readonly<Record<string, ResourceJsonValue>>;
@@ -168,7 +170,7 @@ export type ResourceCreateInput<Value> = Readonly<{
168
170
  value: Value;
169
171
  }>;
170
172
  /** Common entity operations. Generic resource lifecycle/cursor APIs remain separate. */
171
- export type EntityOperation = "list" | "get" | "create" | "update" | "delete";
173
+ export type EntityOperation = "list" | "get" | "create" | "update" | "delete" | "upload";
172
174
  export type EntityListQuery = Omit<ResourceListQuery, "pagination" | "includeDeleted"> & Readonly<{
173
175
  pagination: Extract<ResourcePagination, {
174
176
  mode: "page";