@keystrokehq/refiner 0.1.5 → 0.1.6
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/delete-contact.cjs +1 -0
- package/dist/actions/delete-contact.cjs.map +1 -1
- package/dist/actions/delete-contact.d.cts +3 -16
- package/dist/actions/delete-contact.d.cts.map +1 -1
- package/dist/actions/delete-contact.d.mts +3 -16
- package/dist/actions/delete-contact.d.mts.map +1 -1
- package/dist/actions/delete-contact.mjs +1 -0
- package/dist/actions/delete-contact.mjs.map +1 -1
- package/dist/actions/get-account-info.cjs +1 -0
- package/dist/actions/get-account-info.cjs.map +1 -1
- package/dist/actions/get-account-info.d.cts +3 -13
- package/dist/actions/get-account-info.d.cts.map +1 -1
- package/dist/actions/get-account-info.d.mts +3 -13
- package/dist/actions/get-account-info.d.mts.map +1 -1
- package/dist/actions/get-account-info.mjs +1 -0
- package/dist/actions/get-account-info.mjs.map +1 -1
- package/dist/actions/get-contact.cjs +1 -0
- package/dist/actions/get-contact.cjs.map +1 -1
- package/dist/actions/get-contact.d.cts +3 -17
- package/dist/actions/get-contact.d.cts.map +1 -1
- package/dist/actions/get-contact.d.mts +3 -17
- package/dist/actions/get-contact.d.mts.map +1 -1
- package/dist/actions/get-contact.mjs +1 -0
- package/dist/actions/get-contact.mjs.map +1 -1
- package/dist/actions/get-contacts.cjs +1 -0
- package/dist/actions/get-contacts.cjs.map +1 -1
- package/dist/actions/get-contacts.d.cts +4 -22
- package/dist/actions/get-contacts.d.cts.map +1 -1
- package/dist/actions/get-contacts.d.mts +4 -22
- package/dist/actions/get-contacts.d.mts.map +1 -1
- package/dist/actions/get-contacts.mjs +1 -0
- package/dist/actions/get-contacts.mjs.map +1 -1
- package/dist/actions/get-forms.cjs +1 -0
- package/dist/actions/get-forms.cjs.map +1 -1
- package/dist/actions/get-forms.d.cts +3 -19
- package/dist/actions/get-forms.d.cts.map +1 -1
- package/dist/actions/get-forms.d.mts +3 -19
- package/dist/actions/get-forms.d.mts.map +1 -1
- package/dist/actions/get-forms.mjs +1 -0
- package/dist/actions/get-forms.mjs.map +1 -1
- package/dist/actions/get-reporting.cjs +1 -0
- package/dist/actions/get-reporting.cjs.map +1 -1
- package/dist/actions/get-reporting.d.cts +3 -21
- package/dist/actions/get-reporting.d.cts.map +1 -1
- package/dist/actions/get-reporting.d.mts +3 -21
- package/dist/actions/get-reporting.d.mts.map +1 -1
- package/dist/actions/get-reporting.mjs +1 -0
- package/dist/actions/get-reporting.mjs.map +1 -1
- package/dist/actions/get-responses.cjs +1 -0
- package/dist/actions/get-responses.cjs.map +1 -1
- package/dist/actions/get-responses.d.cts +4 -27
- package/dist/actions/get-responses.d.cts.map +1 -1
- package/dist/actions/get-responses.d.mts +4 -27
- package/dist/actions/get-responses.d.mts.map +1 -1
- package/dist/actions/get-responses.mjs +1 -0
- package/dist/actions/get-responses.mjs.map +1 -1
- package/dist/actions/get-segments.cjs +1 -0
- package/dist/actions/get-segments.cjs.map +1 -1
- package/dist/actions/get-segments.d.cts +3 -17
- package/dist/actions/get-segments.d.cts.map +1 -1
- package/dist/actions/get-segments.d.mts +3 -17
- package/dist/actions/get-segments.d.mts.map +1 -1
- package/dist/actions/get-segments.mjs +1 -0
- package/dist/actions/get-segments.mjs.map +1 -1
- package/dist/actions/track-event.cjs +1 -0
- package/dist/actions/track-event.cjs.map +1 -1
- package/dist/actions/track-event.d.cts +3 -17
- package/dist/actions/track-event.d.cts.map +1 -1
- package/dist/actions/track-event.d.mts +3 -17
- package/dist/actions/track-event.d.mts.map +1 -1
- package/dist/actions/track-event.mjs +1 -0
- package/dist/actions/track-event.mjs.map +1 -1
- package/dist/actions/update-contact.cjs +1 -0
- package/dist/actions/update-contact.cjs.map +1 -1
- package/dist/actions/update-contact.d.cts +3 -22
- package/dist/actions/update-contact.d.cts.map +1 -1
- package/dist/actions/update-contact.d.mts +3 -22
- package/dist/actions/update-contact.d.mts.map +1 -1
- package/dist/actions/update-contact.mjs +1 -0
- package/dist/actions/update-contact.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-contacts.mjs","names":[],"sources":["../../src/actions/get-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetContactsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n search: z.string().describe(\"Filter by contact email, ID, or name.\").optional(),\n order_by: z.enum([\"first_seen_at\", \"last_seen_at\", \"last_form_submission_at\"]).default(\"first_seen_at\").describe(\"Order contacts by this field.\").optional(),\n form_uuid: z.string().describe(\"Filter contacts by survey UUID.\").optional(),\n page_cursor: z.string().describe(\"Cursor for fetching next page in large result sets.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n segment_uuid: z.string().describe(\"Filter contacts by segment UUID.\").optional(),\n}).describe(\"Query parameters for retrieving contacts list.\");\nconst RefinerGetContacts_AccountSchema = z.object({\n uuid: z.string().describe(\"Unique account identifier.\").nullable(),\n domain: z.string().describe(\"Account domain.\").nullable().optional(),\n remote_id: z.string().describe(\"Your system's identifier for the account.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional account attributes.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the account.\").nullable().optional(),\n last_seen_at: z.string().describe(\"Timestamp when the account was last seen (ISO 8601).\").nullable().optional(),\n first_seen_at: z.string().describe(\"Timestamp when the account was first seen (ISO 8601).\").nullable().optional(),\n}).passthrough();\nconst RefinerGetContacts_SegmentSchema = z.object({\n name: z.string().describe(\"Segment name.\").nullable(),\n uuid: z.string().describe(\"Unique segment identifier.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the segment was created (ISO 8601).\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the segment was last updated (ISO 8601).\").nullable().optional(),\n}).passthrough();\nconst RefinerGetContacts_ContactSchema = z.object({\n uuid: z.string().describe(\"Unique contact identifier.\").nullable(),\n email: z.string().describe(\"Email address of the contact.\").nullable().optional(),\n account: RefinerGetContacts_AccountSchema.nullable().optional(),\n segments: z.array(RefinerGetContacts_SegmentSchema).describe(\"List of segments the contact belongs to.\").nullable().optional(),\n remote_id: z.string().describe(\"Your system's identifier for the contact.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Merged user attributes and survey responses.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the contact.\").nullable().optional(),\n last_seen_at: z.string().describe(\"Timestamp when the contact was last seen (ISO 8601).\").nullable().optional(),\n first_seen_at: z.string().describe(\"Timestamp when the contact was first seen (ISO 8601).\").nullable().optional(),\n last_tracking_event_at: z.string().describe(\"Timestamp of the last tracking event (ISO 8601).\").nullable().optional(),\n last_form_submission_at: z.string().describe(\"Timestamp of the last form submission (ISO 8601).\").nullable().optional(),\n}).passthrough();\nconst RefinerGetContacts_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number (null when using cursor pagination).\").nullable().optional(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number (null when using cursor pagination).\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetContactsOutput = z.object({\n items: z.array(RefinerGetContacts_ContactSchema).describe(\"List of contacts.\"),\n pagination: RefinerGetContacts_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for a list of contacts with pagination.\");\n\nexport const refinerGetContacts = action(\"REFINER_GET_CONTACTS\", {\n slug: \"refiner-get-contacts\",\n name: \"Get Contacts\",\n description: \"Tool to retrieve a list of contacts from your Refiner account. Use when you need to filter or paginate through contacts.\",\n input: RefinerGetContactsInput,\n output: RefinerGetContactsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-contacts.mjs","names":[],"sources":["../../src/actions/get-contacts.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\n\nexport const RefinerGetContactsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n search: z.string().describe(\"Filter by contact email, ID, or name.\").optional(),\n order_by: z.enum([\"first_seen_at\", \"last_seen_at\", \"last_form_submission_at\"]).default(\"first_seen_at\").describe(\"Order contacts by this field.\").optional(),\n form_uuid: z.string().describe(\"Filter contacts by survey UUID.\").optional(),\n page_cursor: z.string().describe(\"Cursor for fetching next page in large result sets.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n segment_uuid: z.string().describe(\"Filter contacts by segment UUID.\").optional(),\n}).describe(\"Query parameters for retrieving contacts list.\");\nconst RefinerGetContacts_AccountSchema = z.object({\n uuid: z.string().describe(\"Unique account identifier.\").nullable(),\n domain: z.string().describe(\"Account domain.\").nullable().optional(),\n remote_id: z.string().describe(\"Your system's identifier for the account.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional account attributes.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the account.\").nullable().optional(),\n last_seen_at: z.string().describe(\"Timestamp when the account was last seen (ISO 8601).\").nullable().optional(),\n first_seen_at: z.string().describe(\"Timestamp when the account was first seen (ISO 8601).\").nullable().optional(),\n}).passthrough();\nconst RefinerGetContacts_SegmentSchema = z.object({\n name: z.string().describe(\"Segment name.\").nullable(),\n uuid: z.string().describe(\"Unique segment identifier.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the segment was created (ISO 8601).\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp when the segment was last updated (ISO 8601).\").nullable().optional(),\n}).passthrough();\nconst RefinerGetContacts_ContactSchema = z.object({\n uuid: z.string().describe(\"Unique contact identifier.\").nullable(),\n email: z.string().describe(\"Email address of the contact.\").nullable().optional(),\n account: RefinerGetContacts_AccountSchema.nullable().optional(),\n segments: z.array(RefinerGetContacts_SegmentSchema).describe(\"List of segments the contact belongs to.\").nullable().optional(),\n remote_id: z.string().describe(\"Your system's identifier for the contact.\").nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Merged user attributes and survey responses.\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the contact.\").nullable().optional(),\n last_seen_at: z.string().describe(\"Timestamp when the contact was last seen (ISO 8601).\").nullable().optional(),\n first_seen_at: z.string().describe(\"Timestamp when the contact was first seen (ISO 8601).\").nullable().optional(),\n last_tracking_event_at: z.string().describe(\"Timestamp of the last tracking event (ISO 8601).\").nullable().optional(),\n last_form_submission_at: z.string().describe(\"Timestamp of the last form submission (ISO 8601).\").nullable().optional(),\n}).passthrough();\nconst RefinerGetContacts_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number (null when using cursor pagination).\").nullable().optional(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number (null when using cursor pagination).\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetContactsOutput = z.object({\n items: z.array(RefinerGetContacts_ContactSchema).describe(\"List of contacts.\"),\n pagination: RefinerGetContacts_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for a list of contacts with pagination.\");\n\nexport const refinerGetContacts: AppAction<\n typeof RefinerGetContactsInput,\n typeof RefinerGetContactsOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_CONTACTS\", {\n slug: \"refiner-get-contacts\",\n name: \"Get Contacts\",\n description: \"Tool to retrieve a list of contacts from your Refiner account. Use when you need to filter or paginate through contacts.\",\n input: RefinerGetContactsInput,\n output: RefinerGetContactsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC9E,UAAU,EAAE,KAAK;EAAC;EAAiB;EAAgB;CAAyB,CAAC,CAAC,CAAC,QAAQ,eAAe,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3J,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,mCAAmC,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC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CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-forms.cjs","names":["z","action"],"sources":["../../src/actions/get-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetFormsInput = z.object({\n list: z.enum([\"all\", \"published\", \"drafts\", \"archived\", \"all_with_archived\"]).default(\"all\").describe(\"Which surveys to include by state. One of: all, published, drafts, archived, all_with_archived.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >=1.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n include_info: z.boolean().default(false).describe(\"If True, include additional meta data (timestamps, counts, folder, page_url).\").optional(),\n include_config: z.boolean().default(false).describe(\"If True, include full survey configuration and elements.\").optional(),\n}).describe(\"Query parameters for retrieving the list of forms with filters and pagination.\");\nconst RefinerGetForms_FormItemSchema = z.object({\n name: z.string().describe(\"Name of the form.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form.\").nullable(),\n config: z.record(z.string(), z.unknown()).describe(\"Raw configuration of the survey, present if include_config is True.\").nullable().optional(),\n folder: z.record(z.string(), z.unknown()).describe(\"Folder object or identifier this form belongs to, if any.\").nullable().optional(),\n channels: z.array(z.string()).describe(\"Distribution channels available.\").nullable().optional(),\n page_url: z.string().describe(\"Public URL of the form.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when last updated.\").nullable().optional(),\n archived_at: z.string().describe(\"ISO 8601 timestamp when archived.\").nullable().optional(),\n views_count: z.number().int().describe(\"Number of times the form was viewed.\").nullable().optional(),\n published_at: z.string().describe(\"ISO 8601 timestamp when published.\").nullable().optional(),\n responses_count: z.number().int().describe(\"Number of responses received.\").nullable().optional(),\n last_form_view_at: z.string().describe(\"Timestamp of last form view.\").nullable().optional(),\n first_form_view_at: z.string().describe(\"Timestamp of first form view.\").nullable().optional(),\n}).passthrough();\nconst RefinerGetForms_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of forms.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for fetching the next page, if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetFormsOutput = z.object({\n items: z.array(RefinerGetForms_FormItemSchema).describe(\"List of forms matching the query.\"),\n pagination: RefinerGetForms_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetForms = action(\"REFINER_GET_FORMS\", {\n slug: \"refiner-get-forms\",\n name: \"Get Forms\",\n description: \"Tool to retrieve a list of forms (surveys) from your Refiner account with optional filtering and pagination. Use when you need to list surveys by state, page, or include extra info/config.\",\n input: RefinerGetFormsInput,\n output: RefinerGetFormsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-forms.cjs","names":["z","action"],"sources":["../../src/actions/get-forms.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\n\nexport const RefinerGetFormsInput = z.object({\n list: z.enum([\"all\", \"published\", \"drafts\", \"archived\", \"all_with_archived\"]).default(\"all\").describe(\"Which surveys to include by state. One of: all, published, drafts, archived, all_with_archived.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >=1.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n include_info: z.boolean().default(false).describe(\"If True, include additional meta data (timestamps, counts, folder, page_url).\").optional(),\n include_config: z.boolean().default(false).describe(\"If True, include full survey configuration and elements.\").optional(),\n}).describe(\"Query parameters for retrieving the list of forms with filters and pagination.\");\nconst RefinerGetForms_FormItemSchema = z.object({\n name: z.string().describe(\"Name of the form.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form.\").nullable(),\n config: z.record(z.string(), z.unknown()).describe(\"Raw configuration of the survey, present if include_config is True.\").nullable().optional(),\n folder: z.record(z.string(), z.unknown()).describe(\"Folder object or identifier this form belongs to, if any.\").nullable().optional(),\n channels: z.array(z.string()).describe(\"Distribution channels available.\").nullable().optional(),\n page_url: z.string().describe(\"Public URL of the form.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when last updated.\").nullable().optional(),\n archived_at: z.string().describe(\"ISO 8601 timestamp when archived.\").nullable().optional(),\n views_count: z.number().int().describe(\"Number of times the form was viewed.\").nullable().optional(),\n published_at: z.string().describe(\"ISO 8601 timestamp when published.\").nullable().optional(),\n responses_count: z.number().int().describe(\"Number of responses received.\").nullable().optional(),\n last_form_view_at: z.string().describe(\"Timestamp of last form view.\").nullable().optional(),\n first_form_view_at: z.string().describe(\"Timestamp of first form view.\").nullable().optional(),\n}).passthrough();\nconst RefinerGetForms_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of forms.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for fetching the next page, if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetFormsOutput = z.object({\n items: z.array(RefinerGetForms_FormItemSchema).describe(\"List of forms matching the query.\"),\n pagination: RefinerGetForms_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetForms: AppAction<\n typeof RefinerGetFormsInput,\n typeof RefinerGetFormsOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_FORMS\", {\n slug: \"refiner-get-forms\",\n name: \"Get Forms\",\n description: \"Tool to retrieve a list of forms (surveys) from your Refiner account with optional filtering and pagination. Use when you need to list surveys by state, page, or include extra info/config.\",\n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,CAAC,IAAI,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACzE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,OAAOA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,mCAAmC;CAC3F,YAAY,iCAAiC,SAAS;AACxD,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kBAITC,eAAAA,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { refiner } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-forms.d.ts
|
|
@@ -39,25 +41,7 @@ declare const RefinerGetFormsOutput: z.ZodObject<{
|
|
|
39
41
|
next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
42
|
}, z.core.$loose>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const refinerGetForms:
|
|
43
|
-
list?: "all" | "published" | "drafts" | "archived" | "all_with_archived" | undefined;
|
|
44
|
-
page?: number | undefined;
|
|
45
|
-
page_length?: number | undefined;
|
|
46
|
-
include_info?: boolean | undefined;
|
|
47
|
-
include_config?: boolean | undefined;
|
|
48
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
|
|
49
|
-
connectionId: z.ZodString;
|
|
50
|
-
entityId: z.ZodString;
|
|
51
|
-
instanceId: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
generic_api_key: z.ZodString;
|
|
54
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>;
|
|
44
|
+
declare const refinerGetForms: AppAction<typeof RefinerGetFormsInput, typeof RefinerGetFormsOutput, typeof refiner.credential>;
|
|
61
45
|
//#endregion
|
|
62
46
|
export { refinerGetForms };
|
|
63
47
|
//# sourceMappingURL=get-forms.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-forms.d.cts","names":[],"sources":["../../src/actions/get-forms.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-forms.d.cts","names":[],"sources":["../../src/actions/get-forms.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA8BpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAKrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { refiner } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-forms.d.ts
|
|
@@ -39,25 +41,7 @@ declare const RefinerGetFormsOutput: z.ZodObject<{
|
|
|
39
41
|
next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
42
|
}, z.core.$loose>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const refinerGetForms:
|
|
43
|
-
list?: "all" | "published" | "drafts" | "archived" | "all_with_archived" | undefined;
|
|
44
|
-
page?: number | undefined;
|
|
45
|
-
page_length?: number | undefined;
|
|
46
|
-
include_info?: boolean | undefined;
|
|
47
|
-
include_config?: boolean | undefined;
|
|
48
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
|
|
49
|
-
connectionId: z.ZodString;
|
|
50
|
-
entityId: z.ZodString;
|
|
51
|
-
instanceId: z.ZodString;
|
|
52
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
53
|
-
generic_api_key: z.ZodString;
|
|
54
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
|
|
55
|
-
connectionId: z.ZodString;
|
|
56
|
-
entityId: z.ZodString;
|
|
57
|
-
instanceId: z.ZodString;
|
|
58
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
-
generic_api_key: z.ZodString;
|
|
60
|
-
}, z.core.$strip>>]>;
|
|
44
|
+
declare const refinerGetForms: AppAction<typeof RefinerGetFormsInput, typeof RefinerGetFormsOutput, typeof refiner.credential>;
|
|
61
45
|
//#endregion
|
|
62
46
|
export { refinerGetForms };
|
|
63
47
|
//# sourceMappingURL=get-forms.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-forms.d.mts","names":[],"sources":["../../src/actions/get-forms.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-forms.d.mts","names":[],"sources":["../../src/actions/get-forms.ts"],"mappings":";;;;;cAMa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cA8BpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;cAKrB,eAAA,EAAiB,SAAA,QACrB,oBAAA,SACA,qBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-forms.mjs","names":[],"sources":["../../src/actions/get-forms.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetFormsInput = z.object({\n list: z.enum([\"all\", \"published\", \"drafts\", \"archived\", \"all_with_archived\"]).default(\"all\").describe(\"Which surveys to include by state. One of: all, published, drafts, archived, all_with_archived.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >=1.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n include_info: z.boolean().default(false).describe(\"If True, include additional meta data (timestamps, counts, folder, page_url).\").optional(),\n include_config: z.boolean().default(false).describe(\"If True, include full survey configuration and elements.\").optional(),\n}).describe(\"Query parameters for retrieving the list of forms with filters and pagination.\");\nconst RefinerGetForms_FormItemSchema = z.object({\n name: z.string().describe(\"Name of the form.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form.\").nullable(),\n config: z.record(z.string(), z.unknown()).describe(\"Raw configuration of the survey, present if include_config is True.\").nullable().optional(),\n folder: z.record(z.string(), z.unknown()).describe(\"Folder object or identifier this form belongs to, if any.\").nullable().optional(),\n channels: z.array(z.string()).describe(\"Distribution channels available.\").nullable().optional(),\n page_url: z.string().describe(\"Public URL of the form.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when last updated.\").nullable().optional(),\n archived_at: z.string().describe(\"ISO 8601 timestamp when archived.\").nullable().optional(),\n views_count: z.number().int().describe(\"Number of times the form was viewed.\").nullable().optional(),\n published_at: z.string().describe(\"ISO 8601 timestamp when published.\").nullable().optional(),\n responses_count: z.number().int().describe(\"Number of responses received.\").nullable().optional(),\n last_form_view_at: z.string().describe(\"Timestamp of last form view.\").nullable().optional(),\n first_form_view_at: z.string().describe(\"Timestamp of first form view.\").nullable().optional(),\n}).passthrough();\nconst RefinerGetForms_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of forms.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for fetching the next page, if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetFormsOutput = z.object({\n items: z.array(RefinerGetForms_FormItemSchema).describe(\"List of forms matching the query.\"),\n pagination: RefinerGetForms_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetForms = action(\"REFINER_GET_FORMS\", {\n slug: \"refiner-get-forms\",\n name: \"Get Forms\",\n description: \"Tool to retrieve a list of forms (surveys) from your Refiner account with optional filtering and pagination. Use when you need to list surveys by state, page, or include extra info/config.\",\n input: RefinerGetFormsInput,\n output: RefinerGetFormsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-forms.mjs","names":[],"sources":["../../src/actions/get-forms.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\n\nexport const RefinerGetFormsInput = z.object({\n list: z.enum([\"all\", \"published\", \"drafts\", \"archived\", \"all_with_archived\"]).default(\"all\").describe(\"Which surveys to include by state. One of: all, published, drafts, archived, all_with_archived.\").optional(),\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >=1.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n include_info: z.boolean().default(false).describe(\"If True, include additional meta data (timestamps, counts, folder, page_url).\").optional(),\n include_config: z.boolean().default(false).describe(\"If True, include full survey configuration and elements.\").optional(),\n}).describe(\"Query parameters for retrieving the list of forms with filters and pagination.\");\nconst RefinerGetForms_FormItemSchema = z.object({\n name: z.string().describe(\"Name of the form.\").nullable(),\n uuid: z.string().describe(\"Unique identifier of the form.\").nullable(),\n config: z.record(z.string(), z.unknown()).describe(\"Raw configuration of the survey, present if include_config is True.\").nullable().optional(),\n folder: z.record(z.string(), z.unknown()).describe(\"Folder object or identifier this form belongs to, if any.\").nullable().optional(),\n channels: z.array(z.string()).describe(\"Distribution channels available.\").nullable().optional(),\n page_url: z.string().describe(\"Public URL of the form.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when last updated.\").nullable().optional(),\n archived_at: z.string().describe(\"ISO 8601 timestamp when archived.\").nullable().optional(),\n views_count: z.number().int().describe(\"Number of times the form was viewed.\").nullable().optional(),\n published_at: z.string().describe(\"ISO 8601 timestamp when published.\").nullable().optional(),\n responses_count: z.number().int().describe(\"Number of responses received.\").nullable().optional(),\n last_form_view_at: z.string().describe(\"Timestamp of last form view.\").nullable().optional(),\n first_form_view_at: z.string().describe(\"Timestamp of first form view.\").nullable().optional(),\n}).passthrough();\nconst RefinerGetForms_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of forms.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for fetching the next page, if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetFormsOutput = z.object({\n items: z.array(RefinerGetForms_FormItemSchema).describe(\"List of forms matching the query.\"),\n pagination: RefinerGetForms_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetForms: AppAction<\n typeof RefinerGetFormsInput,\n typeof RefinerGetFormsOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_FORMS\", {\n slug: \"refiner-get-forms\",\n name: \"Get Forms\",\n description: \"Tool to retrieve a list of forms (surveys) from your Refiner account with optional filtering and pagination. Use when you need to list surveys by state, page, or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AAS;CACzE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,kBAIT,OAAO,qBAAqB;CAC9B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdmC,EAAE,OAAO;EAC5C,OAAO,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,mCAAmC;EAC3F,YAAY,iCAAiC,SAAS;CACxD,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reporting.cjs","names":["z","action"],"sources":["../../src/actions/get-reporting.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetReportingInput = z.object({\n type: z.enum([\"nps\", \"csat\", \"ratings\", \"distribution\", \"count\"]).describe(\"Type of report to generate. One of 'nps', 'csat', 'ratings', 'distribution', or 'count'.\"),\n tag_uuids: z.array(z.string()).describe(\"Only include data points linked to these tag UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Only include data points from these form (survey) UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Only include data points for users in these segment UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n date_range_end: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to end date range. Only data before this time is counted.\").optional(),\n date_range_start: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to start date range. Only data on or after this time is counted.\").optional(),\n question_identifiers: z.array(z.string()).describe(\"Only include data points for these question identifiers. If omitted, all matching questions are included. NOTE: This parameter may not be supported by the current API version.\").optional(),\n}).describe(\"Request parameters for GET_REPORTING.\");\nexport const RefinerGetReportingOutput = z.object({\n nps: z.number().int().describe(\"Calculated Net Promoter Score (only for 'nps' report).\").nullable().optional(),\n sum: z.number().int().describe(\"Sum of all rating values (only for 'ratings' report).\").nullable().optional(),\n csat: z.number().int().describe(\"Calculated Customer Satisfaction Score (only for 'csat' report).\").nullable().optional(),\n data: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n count: z.number().int().describe(\"Total count of data points (e.g., total responses).\").nullable().optional(),\n views: z.number().int().describe(\"Number of survey views (only for 'count' report).\").nullable().optional(),\n average: z.number().describe(\"Average rating value (only for 'ratings' report).\").nullable().optional(),\n responses: z.number().int().describe(\"Number of responses (only for 'distribution' report).\").nullable().optional(),\n datapoints: z.number().int().describe(\"Number of total data points considered (only for 'distribution' report).\").nullable().optional(),\n date_range_end: z.string().describe(\"End of the date range for the report (ISO8601 format).\").nullable(),\n date_range_start: z.string().describe(\"Start of the date range for the report (ISO8601 format).\").nullable(),\n}).passthrough().describe(\"Response schema for GET_REPORTING.\");\n\nexport const refinerGetReporting = action(\"REFINER_GET_REPORTING\", {\n slug: \"refiner-get-reporting\",\n name: \"Get Reporting\",\n description: \"Tool to retrieve aggregated reporting data for surveys including metrics and analytics. Use when you need survey analytics over a time range filtered by type, question identifiers, tags, forms, or segments.\",\n input: RefinerGetReportingInput,\n output: RefinerGetReportingOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-reporting.cjs","names":["z","action"],"sources":["../../src/actions/get-reporting.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\n\nexport const RefinerGetReportingInput = z.object({\n type: z.enum([\"nps\", \"csat\", \"ratings\", \"distribution\", \"count\"]).describe(\"Type of report to generate. One of 'nps', 'csat', 'ratings', 'distribution', or 'count'.\"),\n tag_uuids: z.array(z.string()).describe(\"Only include data points linked to these tag UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Only include data points from these form (survey) UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Only include data points for users in these segment UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n date_range_end: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to end date range. Only data before this time is counted.\").optional(),\n date_range_start: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to start date range. Only data on or after this time is counted.\").optional(),\n question_identifiers: z.array(z.string()).describe(\"Only include data points for these question identifiers. If omitted, all matching questions are included. NOTE: This parameter may not be supported by the current API version.\").optional(),\n}).describe(\"Request parameters for GET_REPORTING.\");\nexport const RefinerGetReportingOutput = z.object({\n nps: z.number().int().describe(\"Calculated Net Promoter Score (only for 'nps' report).\").nullable().optional(),\n sum: z.number().int().describe(\"Sum of all rating values (only for 'ratings' report).\").nullable().optional(),\n csat: z.number().int().describe(\"Calculated Customer Satisfaction Score (only for 'csat' report).\").nullable().optional(),\n data: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n count: z.number().int().describe(\"Total count of data points (e.g., total responses).\").nullable().optional(),\n views: z.number().int().describe(\"Number of survey views (only for 'count' report).\").nullable().optional(),\n average: z.number().describe(\"Average rating value (only for 'ratings' report).\").nullable().optional(),\n responses: z.number().int().describe(\"Number of responses (only for 'distribution' report).\").nullable().optional(),\n datapoints: z.number().int().describe(\"Number of total data points considered (only for 'distribution' report).\").nullable().optional(),\n date_range_end: z.string().describe(\"End of the date range for the report (ISO8601 format).\").nullable(),\n date_range_start: z.string().describe(\"Start of the date range for the report (ISO8601 format).\").nullable(),\n}).passthrough().describe(\"Response schema for GET_REPORTING.\");\n\nexport const refinerGetReporting: AppAction<\n typeof RefinerGetReportingInput,\n typeof RefinerGetReportingOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_REPORTING\", {\n slug: \"refiner-get-reporting\",\n name: \"Get Reporting\",\n description: \"Tool to retrieve aggregated reporting data for surveys including metrics and analytics. Use when you need survey analytics over a time range filtered by type, question identifiers, tags, forms, or segments.\",\n input: RefinerGetReportingInput,\n output: RefinerGetReportingOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAW;EAAgB;CAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F;CACrK,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC9K,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;CACpL,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;CACzL,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAC1J,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACnK,sBAAsBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;AACjP,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAk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
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-reporting.d.ts
|
|
@@ -29,27 +31,7 @@ declare const RefinerGetReportingOutput: z.ZodObject<{
|
|
|
29
31
|
date_range_end: z.ZodNullable<z.ZodString>;
|
|
30
32
|
date_range_start: z.ZodNullable<z.ZodString>;
|
|
31
33
|
}, z.core.$loose>;
|
|
32
|
-
declare const refinerGetReporting:
|
|
33
|
-
type: "nps" | "csat" | "ratings" | "distribution" | "count";
|
|
34
|
-
tag_uuids?: string[] | undefined;
|
|
35
|
-
form_uuids?: string[] | undefined;
|
|
36
|
-
segment_uuids?: string[] | undefined;
|
|
37
|
-
date_range_end?: string | undefined;
|
|
38
|
-
date_range_start?: string | undefined;
|
|
39
|
-
question_identifiers?: string[] | undefined;
|
|
40
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
|
|
41
|
-
connectionId: z.ZodString;
|
|
42
|
-
entityId: z.ZodString;
|
|
43
|
-
instanceId: z.ZodString;
|
|
44
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
-
generic_api_key: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
|
|
47
|
-
connectionId: z.ZodString;
|
|
48
|
-
entityId: z.ZodString;
|
|
49
|
-
instanceId: z.ZodString;
|
|
50
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
-
generic_api_key: z.ZodString;
|
|
52
|
-
}, z.core.$strip>>]>;
|
|
34
|
+
declare const refinerGetReporting: AppAction<typeof RefinerGetReportingInput, typeof RefinerGetReportingOutput, typeof refiner.credential>;
|
|
53
35
|
//#endregion
|
|
54
36
|
export { refinerGetReporting };
|
|
55
37
|
//# sourceMappingURL=get-reporting.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reporting.d.cts","names":[],"sources":["../../src/actions/get-reporting.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-reporting.d.cts","names":[],"sources":["../../src/actions/get-reporting.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAczB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { refiner } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-reporting.d.ts
|
|
@@ -29,27 +31,7 @@ declare const RefinerGetReportingOutput: z.ZodObject<{
|
|
|
29
31
|
date_range_end: z.ZodNullable<z.ZodString>;
|
|
30
32
|
date_range_start: z.ZodNullable<z.ZodString>;
|
|
31
33
|
}, z.core.$loose>;
|
|
32
|
-
declare const refinerGetReporting:
|
|
33
|
-
type: "nps" | "csat" | "ratings" | "distribution" | "count";
|
|
34
|
-
tag_uuids?: string[] | undefined;
|
|
35
|
-
form_uuids?: string[] | undefined;
|
|
36
|
-
segment_uuids?: string[] | undefined;
|
|
37
|
-
date_range_end?: string | undefined;
|
|
38
|
-
date_range_start?: string | undefined;
|
|
39
|
-
question_identifiers?: string[] | undefined;
|
|
40
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
|
|
41
|
-
connectionId: z.ZodString;
|
|
42
|
-
entityId: z.ZodString;
|
|
43
|
-
instanceId: z.ZodString;
|
|
44
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
-
generic_api_key: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
|
|
47
|
-
connectionId: z.ZodString;
|
|
48
|
-
entityId: z.ZodString;
|
|
49
|
-
instanceId: z.ZodString;
|
|
50
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
-
generic_api_key: z.ZodString;
|
|
52
|
-
}, z.core.$strip>>]>;
|
|
34
|
+
declare const refinerGetReporting: AppAction<typeof RefinerGetReportingInput, typeof RefinerGetReportingOutput, typeof refiner.credential>;
|
|
53
35
|
//#endregion
|
|
54
36
|
export { refinerGetReporting };
|
|
55
37
|
//# sourceMappingURL=get-reporting.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reporting.d.mts","names":[],"sources":["../../src/actions/get-reporting.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-reporting.d.mts","names":[],"sources":["../../src/actions/get-reporting.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cASxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAczB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-reporting.mjs","names":[],"sources":["../../src/actions/get-reporting.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetReportingInput = z.object({\n type: z.enum([\"nps\", \"csat\", \"ratings\", \"distribution\", \"count\"]).describe(\"Type of report to generate. One of 'nps', 'csat', 'ratings', 'distribution', or 'count'.\"),\n tag_uuids: z.array(z.string()).describe(\"Only include data points linked to these tag UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Only include data points from these form (survey) UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Only include data points for users in these segment UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n date_range_end: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to end date range. Only data before this time is counted.\").optional(),\n date_range_start: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to start date range. Only data on or after this time is counted.\").optional(),\n question_identifiers: z.array(z.string()).describe(\"Only include data points for these question identifiers. If omitted, all matching questions are included. NOTE: This parameter may not be supported by the current API version.\").optional(),\n}).describe(\"Request parameters for GET_REPORTING.\");\nexport const RefinerGetReportingOutput = z.object({\n nps: z.number().int().describe(\"Calculated Net Promoter Score (only for 'nps' report).\").nullable().optional(),\n sum: z.number().int().describe(\"Sum of all rating values (only for 'ratings' report).\").nullable().optional(),\n csat: z.number().int().describe(\"Calculated Customer Satisfaction Score (only for 'csat' report).\").nullable().optional(),\n data: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n count: z.number().int().describe(\"Total count of data points (e.g., total responses).\").nullable().optional(),\n views: z.number().int().describe(\"Number of survey views (only for 'count' report).\").nullable().optional(),\n average: z.number().describe(\"Average rating value (only for 'ratings' report).\").nullable().optional(),\n responses: z.number().int().describe(\"Number of responses (only for 'distribution' report).\").nullable().optional(),\n datapoints: z.number().int().describe(\"Number of total data points considered (only for 'distribution' report).\").nullable().optional(),\n date_range_end: z.string().describe(\"End of the date range for the report (ISO8601 format).\").nullable(),\n date_range_start: z.string().describe(\"Start of the date range for the report (ISO8601 format).\").nullable(),\n}).passthrough().describe(\"Response schema for GET_REPORTING.\");\n\nexport const refinerGetReporting = action(\"REFINER_GET_REPORTING\", {\n slug: \"refiner-get-reporting\",\n name: \"Get Reporting\",\n description: \"Tool to retrieve aggregated reporting data for surveys including metrics and analytics. Use when you need survey analytics over a time range filtered by type, question identifiers, tags, forms, or segments.\",\n input: RefinerGetReportingInput,\n output: RefinerGetReportingOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-reporting.mjs","names":[],"sources":["../../src/actions/get-reporting.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\n\nexport const RefinerGetReportingInput = z.object({\n type: z.enum([\"nps\", \"csat\", \"ratings\", \"distribution\", \"count\"]).describe(\"Type of report to generate. One of 'nps', 'csat', 'ratings', 'distribution', or 'count'.\"),\n tag_uuids: z.array(z.string()).describe(\"Only include data points linked to these tag UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Only include data points from these form (survey) UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Only include data points for users in these segment UUIDs. NOTE: This parameter may not be supported by the current API version.\").optional(),\n date_range_end: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to end date range. Only data before this time is counted.\").optional(),\n date_range_start: z.string().describe(\"ISO8601 timestamp (e.g. 'YYYY-MM-DDThh:mm:ssZ') to start date range. Only data on or after this time is counted.\").optional(),\n question_identifiers: z.array(z.string()).describe(\"Only include data points for these question identifiers. If omitted, all matching questions are included. NOTE: This parameter may not be supported by the current API version.\").optional(),\n}).describe(\"Request parameters for GET_REPORTING.\");\nexport const RefinerGetReportingOutput = z.object({\n nps: z.number().int().describe(\"Calculated Net Promoter Score (only for 'nps' report).\").nullable().optional(),\n sum: z.number().int().describe(\"Sum of all rating values (only for 'ratings' report).\").nullable().optional(),\n csat: z.number().int().describe(\"Calculated Customer Satisfaction Score (only for 'csat' report).\").nullable().optional(),\n data: z.union([z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n count: z.number().int().describe(\"Total count of data points (e.g., total responses).\").nullable().optional(),\n views: z.number().int().describe(\"Number of survey views (only for 'count' report).\").nullable().optional(),\n average: z.number().describe(\"Average rating value (only for 'ratings' report).\").nullable().optional(),\n responses: z.number().int().describe(\"Number of responses (only for 'distribution' report).\").nullable().optional(),\n datapoints: z.number().int().describe(\"Number of total data points considered (only for 'distribution' report).\").nullable().optional(),\n date_range_end: z.string().describe(\"End of the date range for the report (ISO8601 format).\").nullable(),\n date_range_start: z.string().describe(\"Start of the date range for the report (ISO8601 format).\").nullable(),\n}).passthrough().describe(\"Response schema for GET_REPORTING.\");\n\nexport const refinerGetReporting: AppAction<\n typeof RefinerGetReportingInput,\n typeof RefinerGetReportingOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_REPORTING\", {\n slug: \"refiner-get-reporting\",\n name: \"Get Reporting\",\n description: \"Tool to retrieve aggregated reporting data for surveys including metrics and analytics. Use when you need survey analytics over a time range filtered by type, question identifiers, tags, forms, or segments.\",\n input: RefinerGetReportingInput,\n output: RefinerGetReportingOutput,\n});\n"],"mappings":";;;AA6BA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BsC,EAAE,OAAO;EAC/C,MAAM,EAAE,KAAK;GAAC;GAAO;GAAQ;GAAW;GAAgB;EAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F;EACrK,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;EAC9K,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gIAAgI,CAAC,CAAC,SAAS;EACpL,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;EACzL,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EAC1J,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;EACnK,sBAAsB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACjP,CAAC,CAAC,CAAC,SAAS,uCAuBH;CACP,QAvBuC,EAAE,OAAO;EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CA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../src/actions/get-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetResponsesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be >=1. Default is 1.\").optional(),\n search: z.string().describe(\"Search by contact user ID, response UUID, email, or name.\").optional(),\n include: z.enum([\"completed\", \"partials\", \"all\"]).default(\"completed\").describe(\"Which responses to include: completed, partials, or all.\").optional(),\n form_uuid: z.string().describe(\"Filter responses by a single survey form UUID.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Filter responses by multiple survey form UUIDs.\").optional(),\n page_cursor: z.string().describe(\"Cursor token for next page; use pagination.next_page_cursor.\").optional(),\n page_length: z.number().int().default(50).describe(\"Items per page. Default is 50; maximum is 1000.\").optional(),\n segment_uuid: z.string().describe(\"Filter responses by a single segment UUID.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Filter responses by multiple segment UUIDs.\").optional(),\n date_range_end: z.string().describe(\"ISO-8601 end date (exclusive) for last_data_reception_at.\").optional(),\n with_attributes: z.boolean().default(false).describe(\"If true, include full contact attributes (API expects 1 or 0).\").optional(),\n date_range_start: z.string().describe(\"ISO-8601 start date (inclusive) for last_data_reception_at.\").optional(),\n}).describe(\"Parameters to filter, search, and paginate survey responses.\");\nconst RefinerGetResponses_FormInfoSchema = z.object({\n name: z.string().describe(\"Survey form name.\").nullable(),\n uuid: z.string().describe(\"Survey form UUID.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_AccountInfoSchema = z.object({\n uuid: z.string().describe(\"Account UUID.\").nullable(),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\").nullable(),\n display_name: z.string().describe(\"Account display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ContactInfoSchema = z.object({\n uuid: z.string().describe(\"Contact UUID.\").nullable(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\").nullable(),\n display_name: z.string().describe(\"Contact display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Survey answers keyed by question identifiers.\"),\n form: RefinerGetResponses_FormInfoSchema.nullable(),\n uuid: z.string().describe(\"Response UUID.\").nullable(),\n contact: RefinerGetResponses_ContactInfoSchema.nullable(),\n received_at: z.string().describe(\"Timestamp when response was received.\").nullable(),\n completed_at: z.string().describe(\"Timestamp when survey was completed.\").nullable(),\n dismissed_at: z.string().describe(\"Timestamp when survey was dismissed, if any.\").nullable().optional(),\n show_counter: z.number().int().describe(\"Number of times the survey was shown.\").nullable(),\n last_shown_at: z.string().describe(\"Timestamp when survey was last shown.\").nullable(),\n first_shown_at: z.string().describe(\"Timestamp when survey was first shown.\").nullable(),\n last_data_reception_at: z.string().describe(\"Timestamp when data was last received.\").nullable(),\n first_data_reception_at: z.string().describe(\"Timestamp when data was first received.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last page number.\").nullable().optional(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable().optional(),\n page_length: z.number().int().describe(\"Items per page.\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number.\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for next page if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetResponsesOutput = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetResponses = action(\"REFINER_GET_RESPONSES\", {\n slug: \"refiner-get-responses\",\n name: \"Get Survey Responses\",\n description: \"Tool to retrieve all survey responses from your Refiner account with optional filtering and pagination. Use after confirming survey creation to pull response data.\",\n input: RefinerGetResponsesInput,\n output: RefinerGetResponsesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-responses.cjs","names":["z","action"],"sources":["../../src/actions/get-responses.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\n\nexport const RefinerGetResponsesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be >=1. Default is 1.\").optional(),\n search: z.string().describe(\"Search by contact user ID, response UUID, email, or name.\").optional(),\n include: z.enum([\"completed\", \"partials\", \"all\"]).default(\"completed\").describe(\"Which responses to include: completed, partials, or all.\").optional(),\n form_uuid: z.string().describe(\"Filter responses by a single survey form UUID.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Filter responses by multiple survey form UUIDs.\").optional(),\n page_cursor: z.string().describe(\"Cursor token for next page; use pagination.next_page_cursor.\").optional(),\n page_length: z.number().int().default(50).describe(\"Items per page. Default is 50; maximum is 1000.\").optional(),\n segment_uuid: z.string().describe(\"Filter responses by a single segment UUID.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Filter responses by multiple segment UUIDs.\").optional(),\n date_range_end: z.string().describe(\"ISO-8601 end date (exclusive) for last_data_reception_at.\").optional(),\n with_attributes: z.boolean().default(false).describe(\"If true, include full contact attributes (API expects 1 or 0).\").optional(),\n date_range_start: z.string().describe(\"ISO-8601 start date (inclusive) for last_data_reception_at.\").optional(),\n}).describe(\"Parameters to filter, search, and paginate survey responses.\");\nconst RefinerGetResponses_FormInfoSchema = z.object({\n name: z.string().describe(\"Survey form name.\").nullable(),\n uuid: z.string().describe(\"Survey form UUID.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_AccountInfoSchema = z.object({\n uuid: z.string().describe(\"Account UUID.\").nullable(),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\").nullable(),\n display_name: z.string().describe(\"Account display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ContactInfoSchema = z.object({\n uuid: z.string().describe(\"Contact UUID.\").nullable(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\").nullable(),\n display_name: z.string().describe(\"Contact display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Survey answers keyed by question identifiers.\"),\n form: RefinerGetResponses_FormInfoSchema.nullable(),\n uuid: z.string().describe(\"Response UUID.\").nullable(),\n contact: RefinerGetResponses_ContactInfoSchema.nullable(),\n received_at: z.string().describe(\"Timestamp when response was received.\").nullable(),\n completed_at: z.string().describe(\"Timestamp when survey was completed.\").nullable(),\n dismissed_at: z.string().describe(\"Timestamp when survey was dismissed, if any.\").nullable().optional(),\n show_counter: z.number().int().describe(\"Number of times the survey was shown.\").nullable(),\n last_shown_at: z.string().describe(\"Timestamp when survey was last shown.\").nullable(),\n first_shown_at: z.string().describe(\"Timestamp when survey was first shown.\").nullable(),\n last_data_reception_at: z.string().describe(\"Timestamp when data was last received.\").nullable(),\n first_data_reception_at: z.string().describe(\"Timestamp when data was first received.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last page number.\").nullable().optional(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable().optional(),\n page_length: z.number().int().describe(\"Items per page.\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number.\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for next page if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetResponsesOutput = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetResponses: AppAction<\n typeof RefinerGetResponsesInput,\n typeof RefinerGetResponsesOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_RESPONSES\", {\n slug: \"refiner-get-responses\",\n name: \"Get Survey Responses\",\n description: \"Tool to retrieve all survey responses from your Refiner account with optional filtering and pagination. Use after confirming survey creation to pull response data.\",\n input: RefinerGetResponsesInput,\n output: RefinerGetResponsesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,SAASA,IAAAA,EAAE,KAAK;EAAC;EAAa;EAAY;CAAK,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACrJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC/G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC1G,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gEAAgE,CAAC,CA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BAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,OAAOA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,2BAA2B;CAC3F,YAAY,qCAAqC,SAAS;AAC5D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { refiner } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-responses.d.ts
|
|
@@ -5,9 +7,9 @@ declare const RefinerGetResponsesInput: z.ZodObject<{
|
|
|
5
7
|
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
8
|
search: z.ZodOptional<z.ZodString>;
|
|
7
9
|
include: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
10
|
+
all: "all";
|
|
8
11
|
completed: "completed";
|
|
9
12
|
partials: "partials";
|
|
10
|
-
all: "all";
|
|
11
13
|
}>>>;
|
|
12
14
|
form_uuid: z.ZodOptional<z.ZodString>;
|
|
13
15
|
form_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -56,32 +58,7 @@ declare const RefinerGetResponsesOutput: z.ZodObject<{
|
|
|
56
58
|
next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
59
|
}, z.core.$loose>>;
|
|
58
60
|
}, z.core.$loose>;
|
|
59
|
-
declare const refinerGetResponses:
|
|
60
|
-
page?: number | undefined;
|
|
61
|
-
search?: string | undefined;
|
|
62
|
-
include?: "completed" | "partials" | "all" | undefined;
|
|
63
|
-
form_uuid?: string | undefined;
|
|
64
|
-
form_uuids?: string[] | undefined;
|
|
65
|
-
page_cursor?: string | undefined;
|
|
66
|
-
page_length?: number | undefined;
|
|
67
|
-
segment_uuid?: string | undefined;
|
|
68
|
-
segment_uuids?: string[] | undefined;
|
|
69
|
-
date_range_end?: string | undefined;
|
|
70
|
-
with_attributes?: boolean | undefined;
|
|
71
|
-
date_range_start?: string | undefined;
|
|
72
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
|
|
73
|
-
connectionId: z.ZodString;
|
|
74
|
-
entityId: z.ZodString;
|
|
75
|
-
instanceId: z.ZodString;
|
|
76
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
-
generic_api_key: z.ZodString;
|
|
78
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
|
|
79
|
-
connectionId: z.ZodString;
|
|
80
|
-
entityId: z.ZodString;
|
|
81
|
-
instanceId: z.ZodString;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
generic_api_key: z.ZodString;
|
|
84
|
-
}, z.core.$strip>>]>;
|
|
61
|
+
declare const refinerGetResponses: AppAction<typeof RefinerGetResponsesInput, typeof RefinerGetResponsesOutput, typeof refiner.credential>;
|
|
85
62
|
//#endregion
|
|
86
63
|
export { refinerGetResponses };
|
|
87
64
|
//# sourceMappingURL=get-responses.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-responses.d.cts","names":[],"sources":["../../src/actions/get-responses.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-responses.d.cts","names":[],"sources":["../../src/actions/get-responses.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAoDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { refiner } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-responses.d.ts
|
|
@@ -5,9 +7,9 @@ declare const RefinerGetResponsesInput: z.ZodObject<{
|
|
|
5
7
|
page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
8
|
search: z.ZodOptional<z.ZodString>;
|
|
7
9
|
include: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
10
|
+
all: "all";
|
|
8
11
|
completed: "completed";
|
|
9
12
|
partials: "partials";
|
|
10
|
-
all: "all";
|
|
11
13
|
}>>>;
|
|
12
14
|
form_uuid: z.ZodOptional<z.ZodString>;
|
|
13
15
|
form_uuids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -56,32 +58,7 @@ declare const RefinerGetResponsesOutput: z.ZodObject<{
|
|
|
56
58
|
next_page_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
59
|
}, z.core.$loose>>;
|
|
58
60
|
}, z.core.$loose>;
|
|
59
|
-
declare const refinerGetResponses:
|
|
60
|
-
page?: number | undefined;
|
|
61
|
-
search?: string | undefined;
|
|
62
|
-
include?: "completed" | "partials" | "all" | undefined;
|
|
63
|
-
form_uuid?: string | undefined;
|
|
64
|
-
form_uuids?: string[] | undefined;
|
|
65
|
-
page_cursor?: string | undefined;
|
|
66
|
-
page_length?: number | undefined;
|
|
67
|
-
segment_uuid?: string | undefined;
|
|
68
|
-
segment_uuids?: string[] | undefined;
|
|
69
|
-
date_range_end?: string | undefined;
|
|
70
|
-
with_attributes?: boolean | undefined;
|
|
71
|
-
date_range_start?: string | undefined;
|
|
72
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
|
|
73
|
-
connectionId: z.ZodString;
|
|
74
|
-
entityId: z.ZodString;
|
|
75
|
-
instanceId: z.ZodString;
|
|
76
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
77
|
-
generic_api_key: z.ZodString;
|
|
78
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"refiner", z.ZodObject<{
|
|
79
|
-
connectionId: z.ZodString;
|
|
80
|
-
entityId: z.ZodString;
|
|
81
|
-
instanceId: z.ZodString;
|
|
82
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
83
|
-
generic_api_key: z.ZodString;
|
|
84
|
-
}, z.core.$strip>>]>;
|
|
61
|
+
declare const refinerGetResponses: AppAction<typeof RefinerGetResponsesInput, typeof RefinerGetResponsesOutput, typeof refiner.credential>;
|
|
85
62
|
//#endregion
|
|
86
63
|
export { refinerGetResponses };
|
|
87
64
|
//# sourceMappingURL=get-responses.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-responses.d.mts","names":[],"sources":["../../src/actions/get-responses.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-responses.d.mts","names":[],"sources":["../../src/actions/get-responses.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAoDxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-responses.mjs","names":[],"sources":["../../src/actions/get-responses.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetResponsesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be >=1. Default is 1.\").optional(),\n search: z.string().describe(\"Search by contact user ID, response UUID, email, or name.\").optional(),\n include: z.enum([\"completed\", \"partials\", \"all\"]).default(\"completed\").describe(\"Which responses to include: completed, partials, or all.\").optional(),\n form_uuid: z.string().describe(\"Filter responses by a single survey form UUID.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Filter responses by multiple survey form UUIDs.\").optional(),\n page_cursor: z.string().describe(\"Cursor token for next page; use pagination.next_page_cursor.\").optional(),\n page_length: z.number().int().default(50).describe(\"Items per page. Default is 50; maximum is 1000.\").optional(),\n segment_uuid: z.string().describe(\"Filter responses by a single segment UUID.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Filter responses by multiple segment UUIDs.\").optional(),\n date_range_end: z.string().describe(\"ISO-8601 end date (exclusive) for last_data_reception_at.\").optional(),\n with_attributes: z.boolean().default(false).describe(\"If true, include full contact attributes (API expects 1 or 0).\").optional(),\n date_range_start: z.string().describe(\"ISO-8601 start date (inclusive) for last_data_reception_at.\").optional(),\n}).describe(\"Parameters to filter, search, and paginate survey responses.\");\nconst RefinerGetResponses_FormInfoSchema = z.object({\n name: z.string().describe(\"Survey form name.\").nullable(),\n uuid: z.string().describe(\"Survey form UUID.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_AccountInfoSchema = z.object({\n uuid: z.string().describe(\"Account UUID.\").nullable(),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\").nullable(),\n display_name: z.string().describe(\"Account display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ContactInfoSchema = z.object({\n uuid: z.string().describe(\"Contact UUID.\").nullable(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\").nullable(),\n display_name: z.string().describe(\"Contact display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Survey answers keyed by question identifiers.\"),\n form: RefinerGetResponses_FormInfoSchema.nullable(),\n uuid: z.string().describe(\"Response UUID.\").nullable(),\n contact: RefinerGetResponses_ContactInfoSchema.nullable(),\n received_at: z.string().describe(\"Timestamp when response was received.\").nullable(),\n completed_at: z.string().describe(\"Timestamp when survey was completed.\").nullable(),\n dismissed_at: z.string().describe(\"Timestamp when survey was dismissed, if any.\").nullable().optional(),\n show_counter: z.number().int().describe(\"Number of times the survey was shown.\").nullable(),\n last_shown_at: z.string().describe(\"Timestamp when survey was last shown.\").nullable(),\n first_shown_at: z.string().describe(\"Timestamp when survey was first shown.\").nullable(),\n last_data_reception_at: z.string().describe(\"Timestamp when data was last received.\").nullable(),\n first_data_reception_at: z.string().describe(\"Timestamp when data was first received.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last page number.\").nullable().optional(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable().optional(),\n page_length: z.number().int().describe(\"Items per page.\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number.\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for next page if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetResponsesOutput = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetResponses = action(\"REFINER_GET_RESPONSES\", {\n slug: \"refiner-get-responses\",\n name: \"Get Survey Responses\",\n description: \"Tool to retrieve all survey responses from your Refiner account with optional filtering and pagination. Use after confirming survey creation to pull response data.\",\n input: RefinerGetResponsesInput,\n output: RefinerGetResponsesOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-responses.mjs","names":[],"sources":["../../src/actions/get-responses.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\n\nexport const RefinerGetResponsesInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination. Must be >=1. Default is 1.\").optional(),\n search: z.string().describe(\"Search by contact user ID, response UUID, email, or name.\").optional(),\n include: z.enum([\"completed\", \"partials\", \"all\"]).default(\"completed\").describe(\"Which responses to include: completed, partials, or all.\").optional(),\n form_uuid: z.string().describe(\"Filter responses by a single survey form UUID.\").optional(),\n form_uuids: z.array(z.string()).describe(\"Filter responses by multiple survey form UUIDs.\").optional(),\n page_cursor: z.string().describe(\"Cursor token for next page; use pagination.next_page_cursor.\").optional(),\n page_length: z.number().int().default(50).describe(\"Items per page. Default is 50; maximum is 1000.\").optional(),\n segment_uuid: z.string().describe(\"Filter responses by a single segment UUID.\").optional(),\n segment_uuids: z.array(z.string()).describe(\"Filter responses by multiple segment UUIDs.\").optional(),\n date_range_end: z.string().describe(\"ISO-8601 end date (exclusive) for last_data_reception_at.\").optional(),\n with_attributes: z.boolean().default(false).describe(\"If true, include full contact attributes (API expects 1 or 0).\").optional(),\n date_range_start: z.string().describe(\"ISO-8601 start date (inclusive) for last_data_reception_at.\").optional(),\n}).describe(\"Parameters to filter, search, and paginate survey responses.\");\nconst RefinerGetResponses_FormInfoSchema = z.object({\n name: z.string().describe(\"Survey form name.\").nullable(),\n uuid: z.string().describe(\"Survey form UUID.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_AccountInfoSchema = z.object({\n uuid: z.string().describe(\"Account UUID.\").nullable(),\n domain: z.string().describe(\"Account domain if available.\").nullable().optional(),\n remote_id: z.string().describe(\"External account ID.\").nullable(),\n display_name: z.string().describe(\"Account display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ContactInfoSchema = z.object({\n uuid: z.string().describe(\"Contact UUID.\").nullable(),\n email: z.string().describe(\"Contact email address.\").nullable(),\n account: RefinerGetResponses_AccountInfoSchema.nullable(),\n remote_id: z.string().describe(\"External user ID.\").nullable(),\n display_name: z.string().describe(\"Contact display name.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_ResponseItemSchema = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Survey answers keyed by question identifiers.\"),\n form: RefinerGetResponses_FormInfoSchema.nullable(),\n uuid: z.string().describe(\"Response UUID.\").nullable(),\n contact: RefinerGetResponses_ContactInfoSchema.nullable(),\n received_at: z.string().describe(\"Timestamp when response was received.\").nullable(),\n completed_at: z.string().describe(\"Timestamp when survey was completed.\").nullable(),\n dismissed_at: z.string().describe(\"Timestamp when survey was dismissed, if any.\").nullable().optional(),\n show_counter: z.number().int().describe(\"Number of times the survey was shown.\").nullable(),\n last_shown_at: z.string().describe(\"Timestamp when survey was last shown.\").nullable(),\n first_shown_at: z.string().describe(\"Timestamp when survey was first shown.\").nullable(),\n last_data_reception_at: z.string().describe(\"Timestamp when data was last received.\").nullable(),\n first_data_reception_at: z.string().describe(\"Timestamp when data was first received.\").nullable(),\n}).passthrough();\nconst RefinerGetResponses_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last page number.\").nullable().optional(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable().optional(),\n page_length: z.number().int().describe(\"Items per page.\").nullable().optional(),\n current_page: z.number().int().describe(\"Current page number.\").nullable().optional(),\n next_page_cursor: z.string().describe(\"Cursor for next page if available.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetResponsesOutput = z.object({\n items: z.array(RefinerGetResponses_ResponseItemSchema).describe(\"List of survey responses.\"),\n pagination: RefinerGetResponses_PaginationSchema.nullable(),\n}).passthrough();\n\nexport const refinerGetResponses: AppAction<\n typeof RefinerGetResponsesInput,\n typeof RefinerGetResponsesOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_RESPONSES\", {\n slug: \"refiner-get-responses\",\n name: \"Get Survey Responses\",\n description: \"Tool to retrieve all survey responses from your Refiner account with optional filtering and pagination. Use after confirming survey creation to pull response data.\",\n input: RefinerGetResponsesInput,\n output: RefinerGetResponsesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC9G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAClG,SAAS,EAAE,KAAK;EAAC;EAAa;EAAY;CAAK,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACrJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAC1G,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC/G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACpG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC1G,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAChI,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACh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O;CACP,QAduC,EAAE,OAAO;EAChD,OAAO,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,2BAA2B;EAC3F,YAAY,qCAAqC,SAAS;CAC5D,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-segments.cjs","names":["z","action"],"sources":["../../src/actions/get-segments.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RefinerGetSegmentsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n page_cursor: z.string().describe(\"Cursor for fetching next page in large result sets.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n}).describe(\"Query parameters for retrieving user segments.\");\nconst RefinerGetSegments_SegmentItemSchema = z.object({\n name: z.string().describe(\"Segment name.\").nullable(),\n uuid: z.string().describe(\"Unique segment identifier.\").nullable(),\n is_manual: z.boolean().describe(\"Whether the segment is manual.\").nullable(),\n}).passthrough();\nconst RefinerGetSegments_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetSegmentsOutput = z.object({\n items: z.array(RefinerGetSegments_SegmentItemSchema).describe(\"List of segments.\"),\n pagination: RefinerGetSegments_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for a list of segments with pagination.\");\n\nexport const refinerGetSegments = action(\"REFINER_GET_SEGMENTS\", {\n slug: \"refiner-get-segments\",\n name: \"Get Segments\",\n description: \"Tool to retrieve a list of user segments from your Refiner account. Use when you need to view or paginate segments.\",\n input: RefinerGetSegmentsInput,\n output: RefinerGetSegmentsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-segments.cjs","names":["z","action"],"sources":["../../src/actions/get-segments.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { refiner } from \"../app\";\n\nexport const RefinerGetSegmentsInput = z.object({\n page: z.number().int().default(1).describe(\"Page number for pagination, must be >= 1.\").optional(),\n page_cursor: z.string().describe(\"Cursor for fetching next page in large result sets.\").optional(),\n page_length: z.number().int().default(50).describe(\"Number of items per page (max 1000).\").optional(),\n}).describe(\"Query parameters for retrieving user segments.\");\nconst RefinerGetSegments_SegmentItemSchema = z.object({\n name: z.string().describe(\"Segment name.\").nullable(),\n uuid: z.string().describe(\"Unique segment identifier.\").nullable(),\n is_manual: z.boolean().describe(\"Whether the segment is manual.\").nullable(),\n}).passthrough();\nconst RefinerGetSegments_PaginationSchema = z.object({\n last_page: z.number().int().describe(\"Last available page number.\").nullable(),\n items_count: z.number().int().describe(\"Total number of items.\").nullable(),\n page_length: z.number().int().describe(\"Number of items per page.\").nullable(),\n current_page: z.number().int().describe(\"Current page number.\").nullable(),\n next_page_cursor: z.string().describe(\"Cursor for the next page, if any.\").nullable().optional(),\n}).passthrough();\nexport const RefinerGetSegmentsOutput = z.object({\n items: z.array(RefinerGetSegments_SegmentItemSchema).describe(\"List of segments.\"),\n pagination: RefinerGetSegments_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for a list of segments with pagination.\");\n\nexport const refinerGetSegments: AppAction<\n typeof RefinerGetSegmentsInput,\n typeof RefinerGetSegmentsOutput,\n typeof refiner.credential\n> = action(\"REFINER_GET_SEGMENTS\", {\n slug: \"refiner-get-segments\",\n name: \"Get Segments\",\n description: \"Tool to retrieve a list of user segments from your Refiner account. Use when you need to view or paginate segments.\",\n input: RefinerGetSegmentsInput,\n output: RefinerGetSegmentsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,I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