gumnut-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.
- package/CHANGELOG.md +365 -0
- package/LICENSE +201 -0
- package/README.md +462 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +199 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +199 -0
- package/client.d.ts.map +1 -0
- package/client.js +483 -0
- package/client.js.map +1 -0
- package/client.mjs +479 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +57 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +57 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +108 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +102 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +32 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +32 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +32 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +28 -0
- package/internal/shim-types.d.ts +28 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +67 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +67 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +58 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +53 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +16 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +16 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +109 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +92 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +149 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/albums/albums.d.mts +53 -0
- package/resources/albums/albums.d.mts.map +1 -0
- package/resources/albums/albums.d.ts +53 -0
- package/resources/albums/albums.d.ts.map +1 -0
- package/resources/albums/albums.js +54 -0
- package/resources/albums/albums.js.map +1 -0
- package/resources/albums/albums.mjs +49 -0
- package/resources/albums/albums.mjs.map +1 -0
- package/resources/albums/assets.d.mts +33 -0
- package/resources/albums/assets.d.mts.map +1 -0
- package/resources/albums/assets.d.ts +33 -0
- package/resources/albums/assets.d.ts.map +1 -0
- package/resources/albums/assets.js +38 -0
- package/resources/albums/assets.js.map +1 -0
- package/resources/albums/assets.mjs +34 -0
- package/resources/albums/assets.mjs.map +1 -0
- package/resources/albums/index.d.mts +3 -0
- package/resources/albums/index.d.mts.map +1 -0
- package/resources/albums/index.d.ts +3 -0
- package/resources/albums/index.d.ts.map +1 -0
- package/resources/albums/index.js +9 -0
- package/resources/albums/index.js.map +1 -0
- package/resources/albums/index.mjs +4 -0
- package/resources/albums/index.mjs.map +1 -0
- package/resources/albums.d.mts +2 -0
- package/resources/albums.d.mts.map +1 -0
- package/resources/albums.d.ts +2 -0
- package/resources/albums.d.ts.map +1 -0
- package/resources/albums.js +6 -0
- package/resources/albums.js.map +1 -0
- package/resources/albums.mjs +3 -0
- package/resources/albums.mjs.map +1 -0
- package/resources/api-keys.d.mts +41 -0
- package/resources/api-keys.d.mts.map +1 -0
- package/resources/api-keys.d.ts +41 -0
- package/resources/api-keys.d.ts.map +1 -0
- package/resources/api-keys.js +32 -0
- package/resources/api-keys.js.map +1 -0
- package/resources/api-keys.mjs +28 -0
- package/resources/api-keys.mjs.map +1 -0
- package/resources/assets.d.mts +110 -0
- package/resources/assets.d.mts.map +1 -0
- package/resources/assets.d.ts +110 -0
- package/resources/assets.d.ts.map +1 -0
- package/resources/assets.js +66 -0
- package/resources/assets.js.map +1 -0
- package/resources/assets.mjs +62 -0
- package/resources/assets.mjs.map +1 -0
- package/resources/faces.d.mts +57 -0
- package/resources/faces.d.mts.map +1 -0
- package/resources/faces.d.ts +57 -0
- package/resources/faces.d.ts.map +1 -0
- package/resources/faces.js +52 -0
- package/resources/faces.js.map +1 -0
- package/resources/faces.mjs +48 -0
- package/resources/faces.mjs.map +1 -0
- package/resources/index.d.mts +7 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +7 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +17 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +8 -0
- package/resources/index.mjs.map +1 -0
- package/resources/people.d.mts +67 -0
- package/resources/people.d.mts.map +1 -0
- package/resources/people.d.ts +67 -0
- package/resources/people.d.ts.map +1 -0
- package/resources/people.js +46 -0
- package/resources/people.js.map +1 -0
- package/resources/people.mjs +42 -0
- package/resources/people.mjs.map +1 -0
- package/resources/search.d.mts +41 -0
- package/resources/search.d.mts.map +1 -0
- package/resources/search.d.ts +41 -0
- package/resources/search.d.ts.map +1 -0
- package/resources/search.js +15 -0
- package/resources/search.js.map +1 -0
- package/resources/search.mjs +11 -0
- package/resources/search.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +819 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +169 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +23 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/request-options.ts +37 -0
- package/src/internal/shim-types.d.ts +28 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +92 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +63 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +102 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/albums/albums.ts +110 -0
- package/src/resources/albums/assets.ts +63 -0
- package/src/resources/albums/index.ts +17 -0
- package/src/resources/albums.ts +3 -0
- package/src/resources/api-keys.ts +73 -0
- package/src/resources/assets.ts +207 -0
- package/src/resources/faces.ts +103 -0
- package/src/resources/index.ts +35 -0
- package/src/resources/people.ts +120 -0
- package/src/resources/search.ts +53 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class People extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new person entry.
|
|
8
|
+
*/
|
|
9
|
+
create(body: PersonCreateParams, options?: RequestOptions): APIPromise<PersonResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves details for a specific person.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(personID: string, options?: RequestOptions): APIPromise<PersonResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Updates the details of a specific person.
|
|
16
|
+
*/
|
|
17
|
+
update(personID: string, body: PersonUpdateParams, options?: RequestOptions): APIPromise<PersonResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a paginated list of people, ordered by creation time, descending.
|
|
20
|
+
*/
|
|
21
|
+
list(query?: PersonListParams | null | undefined, options?: RequestOptions): PagePromise<PersonResponsesCursorPage, PersonResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Deletes a specific person. Associated faces will have their person_id set to
|
|
24
|
+
* NULL.
|
|
25
|
+
*/
|
|
26
|
+
delete(personID: string, options?: RequestOptions): APIPromise<void>;
|
|
27
|
+
}
|
|
28
|
+
export type PersonResponsesCursorPage = CursorPage<PersonResponse>;
|
|
29
|
+
export interface PersonResponse {
|
|
30
|
+
id: string;
|
|
31
|
+
created_at: string;
|
|
32
|
+
is_favorite: boolean;
|
|
33
|
+
is_hidden: boolean;
|
|
34
|
+
updated_at: string;
|
|
35
|
+
birth_date?: string | null;
|
|
36
|
+
name?: string | null;
|
|
37
|
+
thumbnail_face_id?: string | null;
|
|
38
|
+
thumbnail_face_url?: string | null;
|
|
39
|
+
}
|
|
40
|
+
export interface PersonCreateParams {
|
|
41
|
+
birth_date?: string | null;
|
|
42
|
+
is_favorite?: boolean | null;
|
|
43
|
+
is_hidden?: boolean | null;
|
|
44
|
+
name?: string | null;
|
|
45
|
+
thumbnail_face_id?: string | null;
|
|
46
|
+
}
|
|
47
|
+
export interface PersonUpdateParams {
|
|
48
|
+
birth_date?: string | null;
|
|
49
|
+
is_favorite?: boolean | null;
|
|
50
|
+
is_hidden?: boolean | null;
|
|
51
|
+
name?: string | null;
|
|
52
|
+
thumbnail_face_id?: string | null;
|
|
53
|
+
}
|
|
54
|
+
export interface PersonListParams extends CursorPageParams {
|
|
55
|
+
/**
|
|
56
|
+
* Include only people associated with this album ID
|
|
57
|
+
*/
|
|
58
|
+
album_id?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Include only people associated with this asset ID
|
|
61
|
+
*/
|
|
62
|
+
asset_id?: string | null;
|
|
63
|
+
}
|
|
64
|
+
export declare namespace People {
|
|
65
|
+
export { type PersonResponse as PersonResponse, type PersonResponsesCursorPage as PersonResponsesCursorPage, type PersonCreateParams as PersonCreateParams, type PersonUpdateParams as PersonUpdateParams, type PersonListParams as PersonListParams, };
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=people.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"people.d.ts","sourceRoot":"","sources":["../src/resources/people.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAElD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAItF;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAIhF;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAIxG;;OAEG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yBAAyB,EAAE,cAAc,CAAC;IAIzD;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMrE;AAED,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;AAEnE,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IAEX,UAAU,EAAE,MAAM,CAAC;IAE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B,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.People = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
8
|
+
const path_1 = require("../internal/utils/path.js");
|
|
9
|
+
class People extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new person entry.
|
|
12
|
+
*/
|
|
13
|
+
create(body, options) {
|
|
14
|
+
return this._client.post('/api/people', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves details for a specific person.
|
|
18
|
+
*/
|
|
19
|
+
retrieve(personID, options) {
|
|
20
|
+
return this._client.get((0, path_1.path) `/api/people/${personID}`, options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Updates the details of a specific person.
|
|
24
|
+
*/
|
|
25
|
+
update(personID, body, options) {
|
|
26
|
+
return this._client.patch((0, path_1.path) `/api/people/${personID}`, { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves a paginated list of people, ordered by creation time, descending.
|
|
30
|
+
*/
|
|
31
|
+
list(query = {}, options) {
|
|
32
|
+
return this._client.getAPIList('/api/people', (pagination_1.CursorPage), { query, ...options });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Deletes a specific person. Associated faces will have their person_id set to
|
|
36
|
+
* NULL.
|
|
37
|
+
*/
|
|
38
|
+
delete(personID, options) {
|
|
39
|
+
return this._client.delete((0, path_1.path) `/api/people/${personID}`, {
|
|
40
|
+
...options,
|
|
41
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.People = People;
|
|
46
|
+
//# sourceMappingURL=people.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"people.js","sourceRoot":"","sources":["../src/resources/people.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AACpF,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,QAAgB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,IAAwB,EAAE,OAAwB;QACzE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAA,uBAA0B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,QAAgB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,EAAE,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA1CD,wBA0CC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { CursorPage } from "../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
5
|
+
import { path } from "../internal/utils/path.mjs";
|
|
6
|
+
export class People extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new person entry.
|
|
9
|
+
*/
|
|
10
|
+
create(body, options) {
|
|
11
|
+
return this._client.post('/api/people', { body, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves details for a specific person.
|
|
15
|
+
*/
|
|
16
|
+
retrieve(personID, options) {
|
|
17
|
+
return this._client.get(path `/api/people/${personID}`, options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Updates the details of a specific person.
|
|
21
|
+
*/
|
|
22
|
+
update(personID, body, options) {
|
|
23
|
+
return this._client.patch(path `/api/people/${personID}`, { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves a paginated list of people, ordered by creation time, descending.
|
|
27
|
+
*/
|
|
28
|
+
list(query = {}, options) {
|
|
29
|
+
return this._client.getAPIList('/api/people', (CursorPage), { query, ...options });
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Deletes a specific person. Associated faces will have their person_id set to
|
|
33
|
+
* NULL.
|
|
34
|
+
*/
|
|
35
|
+
delete(personID, options) {
|
|
36
|
+
return this._client.delete(path `/api/people/${personID}`, {
|
|
37
|
+
...options,
|
|
38
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
39
|
+
});
|
|
40
|
+
}
|
|
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AAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import * as AssetsAPI from "./assets.mjs";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
export declare class Search extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Searches for assets based on a text query using semantic similarity.
|
|
8
|
+
*/
|
|
9
|
+
search(query: SearchSearchParams, options?: RequestOptions): APIPromise<SearchResponse>;
|
|
10
|
+
}
|
|
11
|
+
export interface SearchResponse {
|
|
12
|
+
data: Array<SearchResponse.Data>;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace SearchResponse {
|
|
15
|
+
interface Data {
|
|
16
|
+
asset: AssetsAPI.AssetResponse;
|
|
17
|
+
distance: number;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export interface SearchSearchParams {
|
|
21
|
+
/**
|
|
22
|
+
* The text query to search for
|
|
23
|
+
*/
|
|
24
|
+
query: string;
|
|
25
|
+
/**
|
|
26
|
+
* Number of results per page
|
|
27
|
+
*/
|
|
28
|
+
limit?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Page number
|
|
31
|
+
*/
|
|
32
|
+
page?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Similarity threshold (lower means more similar)
|
|
35
|
+
*/
|
|
36
|
+
threshold?: number;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace Search {
|
|
39
|
+
export { type SearchResponse as SearchResponse, type SearchSearchParams as SearchSearchParams };
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=search.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.mts","sourceRoot":"","sources":["../src/resources/search.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;CAGxF;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;CAClC;AAED,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,IAAI;QACnB,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC;QAE/B,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as AssetsAPI from "./assets.js";
|
|
3
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
export declare class Search extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Searches for assets based on a text query using semantic similarity.
|
|
8
|
+
*/
|
|
9
|
+
search(query: SearchSearchParams, options?: RequestOptions): APIPromise<SearchResponse>;
|
|
10
|
+
}
|
|
11
|
+
export interface SearchResponse {
|
|
12
|
+
data: Array<SearchResponse.Data>;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace SearchResponse {
|
|
15
|
+
interface Data {
|
|
16
|
+
asset: AssetsAPI.AssetResponse;
|
|
17
|
+
distance: number;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export interface SearchSearchParams {
|
|
21
|
+
/**
|
|
22
|
+
* The text query to search for
|
|
23
|
+
*/
|
|
24
|
+
query: string;
|
|
25
|
+
/**
|
|
26
|
+
* Number of results per page
|
|
27
|
+
*/
|
|
28
|
+
limit?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Page number
|
|
31
|
+
*/
|
|
32
|
+
page?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Similarity threshold (lower means more similar)
|
|
35
|
+
*/
|
|
36
|
+
threshold?: number;
|
|
37
|
+
}
|
|
38
|
+
export declare namespace Search {
|
|
39
|
+
export { type SearchResponse as SearchResponse, type SearchSearchParams as SearchSearchParams };
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/resources/search.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;CAGxF;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;CAClC;AAED,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,IAAI;QACnB,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC;QAE/B,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Search = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class Search extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Searches for assets based on a text query using semantic similarity.
|
|
9
|
+
*/
|
|
10
|
+
search(query, options) {
|
|
11
|
+
return this._client.get('/api/search', { query, ...options });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.Search = Search;
|
|
15
|
+
//# sourceMappingURL=search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../src/resources/search.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,MAAM,CAAC,KAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AAPD,wBAOC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class Search extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Searches for assets based on a text query using semantic similarity.
|
|
6
|
+
*/
|
|
7
|
+
search(query, options) {
|
|
8
|
+
return this._client.get('/api/search', { query, ...options });
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=search.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.mjs","sourceRoot":"","sources":["../src/resources/search.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,MAAM,CAAC,KAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;CACF"}
|
package/resources.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.d.mts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
package/resources.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
package/resources.js
ADDED
package/resources.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":";;;AAAA,+DAAkC"}
|
package/resources.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|