@hirefinn/sdk 0.4.0 → 0.5.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.
@@ -1,6 +1,6 @@
1
1
  import type { FinnResponse, HttpMethod, Operation, PathsFor, RequestArgs, RequestOptions, ResultOf } from './types.js';
2
2
  export declare const DEFAULT_BASE_URL = "https://api.hirefinn.ai/v1";
3
- export declare const SDK_VERSION = "0.4.0";
3
+ export declare const SDK_VERSION = "0.5.0";
4
4
  /** The API version this SDK was built against, sent as Finn-Version unless `version` says otherwise. */
5
5
  export declare const DEFAULT_FINN_VERSION = "2026-11-01";
6
6
  export interface FinnOptions {
package/dist/cjs/core.js CHANGED
@@ -17,7 +17,7 @@ exports.honoursIdempotencyKey = honoursIdempotencyKey;
17
17
  exports.idempotencyKey = idempotencyKey;
18
18
  const errors_js_1 = require("./errors.js");
19
19
  exports.DEFAULT_BASE_URL = 'https://api.hirefinn.ai/v1';
20
- exports.SDK_VERSION = '0.4.0';
20
+ exports.SDK_VERSION = '0.5.0';
21
21
  /** The API version this SDK was built against, sent as Finn-Version unless `version` says otherwise. */
22
22
  exports.DEFAULT_FINN_VERSION = '2026-11-01';
23
23
  // Browsers own the User-Agent header, so it is only set on server runtimes.
@@ -20299,6 +20299,34 @@ export interface operations {
20299
20299
  };
20300
20300
  content: {
20301
20301
  "application/json": {
20302
+ /** @description The organization's forms that are not archived, most recently changed first. */
20303
+ forms?: ({
20304
+ /** Format: uuid */
20305
+ id?: string;
20306
+ name?: string;
20307
+ /** @enum {string} */
20308
+ status?: "draft" | "live" | "closed";
20309
+ /**
20310
+ * @description Who can fill it: anyone with the public link, only people sent a link, or only staff.
20311
+ * @enum {string}
20312
+ */
20313
+ audience?: "public" | "links" | "staff";
20314
+ /** @description The public link, or null when the form is not public. */
20315
+ url?: string | null;
20316
+ responses?: number;
20317
+ /** Format: date-time */
20318
+ last_response_at?: string | null;
20319
+ /** Format: date-time */
20320
+ updated_at?: string;
20321
+ /** @description Whether staff can fill this form on a record. */
20322
+ staff_fill?: boolean;
20323
+ /** @description Whether the form is a discovery questionnaire: it has a section group marked as discovery, or its discovery flow is on. */
20324
+ discovery?: boolean;
20325
+ } & {
20326
+ [key: string]: unknown;
20327
+ })[];
20328
+ success?: boolean;
20329
+ } & {
20302
20330
  [key: string]: unknown;
20303
20331
  };
20304
20332
  };
@@ -362,6 +362,22 @@ export declare class Crm extends Resource {
362
362
  * `GET /crm/forms`, operationId `listCrmForms`, scope `crm:read`.
363
363
  */
364
364
  listForms(options?: RequestOptions): Promise<{
365
+ forms?: ({
366
+ id?: string;
367
+ name?: string;
368
+ status?: "draft" | "live" | "closed";
369
+ audience?: "public" | "links" | "staff";
370
+ url?: string | null;
371
+ responses?: number;
372
+ last_response_at?: string | null;
373
+ updated_at?: string;
374
+ staff_fill?: boolean;
375
+ discovery?: boolean;
376
+ } & {
377
+ [key: string]: unknown;
378
+ })[];
379
+ success?: boolean;
380
+ } & {
365
381
  [key: string]: unknown;
366
382
  }>;
367
383
  /**
@@ -1,6 +1,6 @@
1
1
  import type { FinnResponse, HttpMethod, Operation, PathsFor, RequestArgs, RequestOptions, ResultOf } from './types.js';
2
2
  export declare const DEFAULT_BASE_URL = "https://api.hirefinn.ai/v1";
3
- export declare const SDK_VERSION = "0.4.0";
3
+ export declare const SDK_VERSION = "0.5.0";
4
4
  /** The API version this SDK was built against, sent as Finn-Version unless `version` says otherwise. */
5
5
  export declare const DEFAULT_FINN_VERSION = "2026-11-01";
6
6
  export interface FinnOptions {
package/dist/esm/core.js CHANGED
@@ -12,7 +12,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
12
12
  var _FinnCore_apiKey, _FinnCore_fetch, _FinnCore_defaultHeaders, _FinnCore_sleep;
13
13
  import { FinnConnectionError, FinnError, FinnSdkError, FinnTimeoutError } from './errors.js';
14
14
  export const DEFAULT_BASE_URL = 'https://api.hirefinn.ai/v1';
15
- export const SDK_VERSION = '0.4.0';
15
+ export const SDK_VERSION = '0.5.0';
16
16
  /** The API version this SDK was built against, sent as Finn-Version unless `version` says otherwise. */
17
17
  export const DEFAULT_FINN_VERSION = '2026-11-01';
18
18
  // Browsers own the User-Agent header, so it is only set on server runtimes.
@@ -20299,6 +20299,34 @@ export interface operations {
20299
20299
  };
20300
20300
  content: {
20301
20301
  "application/json": {
20302
+ /** @description The organization's forms that are not archived, most recently changed first. */
20303
+ forms?: ({
20304
+ /** Format: uuid */
20305
+ id?: string;
20306
+ name?: string;
20307
+ /** @enum {string} */
20308
+ status?: "draft" | "live" | "closed";
20309
+ /**
20310
+ * @description Who can fill it: anyone with the public link, only people sent a link, or only staff.
20311
+ * @enum {string}
20312
+ */
20313
+ audience?: "public" | "links" | "staff";
20314
+ /** @description The public link, or null when the form is not public. */
20315
+ url?: string | null;
20316
+ responses?: number;
20317
+ /** Format: date-time */
20318
+ last_response_at?: string | null;
20319
+ /** Format: date-time */
20320
+ updated_at?: string;
20321
+ /** @description Whether staff can fill this form on a record. */
20322
+ staff_fill?: boolean;
20323
+ /** @description Whether the form is a discovery questionnaire: it has a section group marked as discovery, or its discovery flow is on. */
20324
+ discovery?: boolean;
20325
+ } & {
20326
+ [key: string]: unknown;
20327
+ })[];
20328
+ success?: boolean;
20329
+ } & {
20302
20330
  [key: string]: unknown;
20303
20331
  };
20304
20332
  };
@@ -362,6 +362,22 @@ export declare class Crm extends Resource {
362
362
  * `GET /crm/forms`, operationId `listCrmForms`, scope `crm:read`.
363
363
  */
364
364
  listForms(options?: RequestOptions): Promise<{
365
+ forms?: ({
366
+ id?: string;
367
+ name?: string;
368
+ status?: "draft" | "live" | "closed";
369
+ audience?: "public" | "links" | "staff";
370
+ url?: string | null;
371
+ responses?: number;
372
+ last_response_at?: string | null;
373
+ updated_at?: string;
374
+ staff_fill?: boolean;
375
+ discovery?: boolean;
376
+ } & {
377
+ [key: string]: unknown;
378
+ })[];
379
+ success?: boolean;
380
+ } & {
365
381
  [key: string]: unknown;
366
382
  }>;
367
383
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hirefinn/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Typed TypeScript client for the Finn public API (hirefinn.ai).",
5
5
  "license": "MIT",
6
6
  "type": "module",